1 2010-03-23 Pádraig Brady <P@draigBrady.com> (tiny change)
3 * maint.mk (sc_Wundef_boolean): Check for the presence of the
4 config header before grepping, as it's not present before
5 autoreconf/configure are run. Reported by Simon Josefsson.
7 2010-03-23 Bruno Haible <bruno@clisp.org>
9 pt_chown: Make it work with automake < 1.11.
10 * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11 Reported by Simon Josefsson.
13 2010-03-23 Bruno Haible <bruno@clisp.org>
15 pt_chown: Don't depend on GPLed modules.
16 * lib/pt_chown.c: Don't include idpriv.h.
17 (main): Don't drop privileges.
18 * modules/pt_chown (Depends-on): Remove idpriv-drop.
19 Reported by Simon Josefsson.
21 2010-03-24 Simon Josefsson <simon@josefsson.org>
23 * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24 suggestions from karl@freefriends.org (Karl Berry).
26 2010-03-22 Eric Blake <eblake@redhat.com>
28 gethostname: further tweaks
29 * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30 are overriding gethostname.
31 Suggested by Bruno Haible.
33 2010-03-21 Bruno Haible <bruno@clisp.org>
36 * lib/forkpty.c (rpl_forkpty): Fix comment.
37 * lib/openpty.c (rpl_openpty): Likewise.
38 Reported by Eric Blake.
40 2010-03-22 Eric Blake <eblake@redhat.com>
42 gethostname: fix build on mingw
43 * lib/unistd.in.h (includes): Work around fact that mingw
44 <winsock2.h> re-includes <unistd.h>, by avoiding any
45 redeclarations if we are being included by <winsock2.h>.
46 Reported by Matthias Bolte.
48 2010-03-21 Bruno Haible <bruno@clisp.org>
50 forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51 * lib/forkpty.c (forkpty): New replacement function, from glibc with
53 * lib/pty.in.h (forkpty): Update declaration. Add comments.
54 * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
55 provide the replacement.
56 * modules/forkpty (Depends-on): Add openpty, login_tty.
57 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
58 * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
59 * doc/glibc-functions/forkpty.texi: More supported platforms.
60 * config/srclist.txt: Add forkpty.c (commented).
62 2010-03-21 Bruno Haible <bruno@clisp.org>
64 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
65 (Makefile.am): Verify that PTY_LIB is defined.
67 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69 2010-03-21 Bruno Haible <bruno@clisp.org>
71 Tests for module 'login_tty'.
72 * modules/login_tty-tests: New file.
73 * tests/test-login_tty.c: New file.
75 New module 'login_tty'.
76 * lib/login_tty.c: New file.
77 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
78 * modules/login_tty: New file.
79 * doc/glibc-functions/login_tty.texi: Mention the new module.
81 2010-03-21 Bruno Haible <bruno@clisp.org>
83 login_tty: Documentation.
84 * doc/glibc-functions/login_tty.texi: New file.
85 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
87 2010-03-21 Bruno Haible <bruno@clisp.org>
89 pty: Consistent macro naming.
90 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
91 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
92 * modules/pty (configure.ac): Update.
94 2010-03-21 Bruno Haible <bruno@clisp.org>
96 Tests for openpty: Make stricter.
97 * tests/test-openpty.c (main): Add test of canonical processing and
99 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
101 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
102 * lib/openpty.c (openpty): New replacement function.
103 * lib/pty.in.h: Include <termios.h>.
104 (openpty): Update declaration. Add comments.
105 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
106 is not declared, arrange to provide the replacement. Check for _getpty
108 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
109 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
110 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
111 * modules/pty-tests (test_pty_c___LDADD): New variable.
112 * doc/glibc-functions/openpty.texi: More supported platforms.
114 2010-03-21 Bruno Haible <bruno@clisp.org>
117 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
119 * doc/posix-functions/setenv.texi: Update platforms list.
121 2010-03-21 Bruno Haible <bruno@clisp.org>
123 New module 'unlockpt'.
124 * lib/unlockpt.c: New file, from glibc with modifications.
125 * m4/unlockpt.m4: New file.
126 * modules/unlockpt: New file.
127 * lib/stdlib.in.h (unlockpt): New declaration.
128 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
129 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
130 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
132 * doc/posix-functions/unlockpt.texi: Mention the new module.
133 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
134 * config/srclist.txt: Add unlockpt.c (commented).
136 2010-03-21 Jim Meyering <meyering@redhat.com>
138 maint.mk: prohibit inclusion of "intprops.h" without use
139 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
141 2010-03-21 Bruno Haible <bruno@clisp.org>
143 New module 'grantpt'.
144 * lib/grantpt.c: New file, from glibc with modifications.
145 * m4/grantpt.m4: New file.
146 * modules/grantpt: New file.
147 * lib/stdlib.in.h (grantpt): New declaration.
148 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
149 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
150 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
152 * doc/posix-functions/grantpt.texi: Mention the new module.
153 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
154 * config/srclist.txt: Add grantpt.c (commented).
156 2010-03-21 Bruno Haible <bruno@clisp.org>
158 New module 'pt_chown'.
159 * lib/pt_chown.c: New file, from glibc with modifications.
160 * lib/pty-private.h: New file, from glibc with modifications.
161 * modules/pt_chown: New file.
162 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
164 2010-03-21 Bruno Haible <bruno@clisp.org>
166 Tests for module 'ptsname'.
167 * modules/ptsname-tests: New file.
168 * tests/test-ptsname.c: New file.
170 New module 'ptsname'.
171 * lib/ptsname.c: New file, from glibc with modifications.
172 * m4/ptsname.m4: New file.
173 * modules/ptsname: New file.
174 * lib/stdlib.in.h (ptsname): New declaration.
175 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
176 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
177 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
179 * doc/posix-functions/ptsname.texi: Mention the new module.
180 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
181 * config/srclist.txt: Add ptsname.c (commented).
183 2010-03-21 Bruno Haible <bruno@clisp.org>
185 Tests for module 'ttyname_r'.
186 * modules/ttyname_r-tests: New file.
187 * tests/test-ttyname_r.c: New file.
189 New module 'ttyname_r'.
190 * lib/ttyname_r.c: New file.
191 * m4/ttyname_r.m4: New file.
192 * modules/ttyname_r: New file.
193 * lib/unistd.in.h (ttyname_r): New declaration.
194 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
195 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
196 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
198 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
199 * doc/posix-functions/ttyname_r.texi: Mention the new module.
201 2010-03-20 Bruno Haible <bruno@clisp.org>
203 signal: Undefine macro definitions in C++ mode.
204 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
205 sigfillset): Undefine macro definitions from the system header in C++
207 Reported by John W. Eaton <jwe@gnu.org>.
209 2010-03-20 Bruno Haible <bruno@clisp.org>
211 Ensure no #include statements inside extern "C" { ... }.
212 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
213 contain #include statements.
214 * lib/time.in.h: Likewise.
216 2010-03-20 Bruno Haible <bruno@clisp.org>
218 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
219 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
220 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
221 Reported by John W. Eaton <jwe@gnu.org>.
223 2010-03-20 Bruno Haible <bruno@clisp.org>
225 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
226 Reported by Jim Meyering.
228 2010-03-20 Bruno Haible <bruno@clisp.org>
230 pipe: Set errno upon failure.
231 * lib/pipe.h: Specify that when -1 is returned, errno is set.
232 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
233 errno value in error message.
235 2010-03-20 Bruno Haible <bruno@clisp.org>
236 Jim Meyering <meyering@redhat.com>
238 lchown: Avoid "unused variable" warning.
239 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
241 2010-03-20 Bruno Haible <bruno@clisp.org>
243 Work around unlink() bug on MacOS X 10.5.6.
244 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
245 attempting to unlink a parent directory.
246 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
247 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
248 activate for the replacement function.
249 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
251 2010-03-20 Bruno Haible <bruno@clisp.org>
253 Fix link errors on Solaris 8.
254 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
255 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
257 2010-03-19 Jim Meyering <meyering@redhat.com>
259 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
260 The _LIBC implementation of build_range_exp correctly honors the
261 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
262 However, the non-_LIBC implementation would ignore that syntax-bit
263 flag and return REG_ERANGE unconditionally.
264 This change makes it honor that flag.
265 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
266 Make two pointer parameters "const".
267 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
268 (parse_bracket_exp): Update caller.
270 regex.m4: correct the reversed range endpoint ([b-a]) test
271 * m4/regex.m4: When requiring that [b-a] evoke failure,
272 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
273 test pass once again for x86-based systems.
275 2010-03-19 Bruno Haible <bruno@clisp.org>
277 scandir: Fix link error on Solaris 8.
278 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
281 2010-03-19 Bruno Haible <bruno@clisp.org>
283 getusershell: Fix documentation.
284 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
286 * doc/glibc-functions/setusershell.texi: Likewise.
288 getusershell: Provide declaration, missing on Solaris 9.
289 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
290 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
291 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
292 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
293 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
294 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
295 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
297 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
299 2010-03-19 Bruno Haible <bruno@clisp.org>
301 wctype: Provide iswblank function.
302 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
304 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
305 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
306 * tests/test-wctype.c (main): Re-enable the iswblank tests.
307 * doc/posix-functions/iswblank.texi: Update.
309 2010-03-19 Bruno Haible <bruno@clisp.org>
311 Tests of module 'pty' in C++ mode.
312 * modules/pty-tests: New file.
313 * tests/test-pty-c++.cc: New file.
314 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
316 2010-03-19 Eric Blake <eblake@redhat.com>
318 logb: fix documentation
319 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
322 forkpty, openpty: prefer glibc's const-safe prototype
323 * lib/forkpty.c (rpl_forkpty): New file.
324 * lib/openpty.c (rpl_openpty): Likewise.
325 * modules/forkpty (Files): Distribute it.
326 * modules/openpty (Files): Likewise.
327 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
329 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
330 replacement for for non-const BSD signature.
331 * modules/pty (Makefile.am): Substitute witnesses.
332 * lib/pty.in.h (forkpty, openpty): Declare replacements.
333 * tests/test-forkpty.c: Update signature check.
334 * tests/test-openpty.c: Likewise.
335 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
336 * doc/glibc-functions/openpty.texi (openpty): Likewise.
338 forkpty, openpty: split functions into new modules
339 * modules/pty (Makefile.am): Substitute new witnesses.
340 (Libraries): Move library detection...
341 * modules/forkpty: ...into new module.
342 * modules/openpty: Another new module.
343 * modules/pty-tests: Rename and split...
344 * modules/forkpty-tests: ...to this...
345 * modules/openpty-tests: ...and this.
346 * tests/test-pty.c: Rename and split...
347 * tests/test-forkpty.c: ...to this...
348 * tests/test-openpty.c: ...and this.
349 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
350 (gl_PTY): Split library searching...
351 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
352 (gl_FORKPTY, gl_OPENPTY): New macros.
353 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
354 * NEWS: Mention the split.
355 * MODULES.html.sh (Misc): Document the modules.
356 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
357 * doc/glibc-functions/openpty.texi (openpty): Likewise.
359 pty: improve replacement header
360 * lib/pty.in.h: New file.
361 * modules/pty (Files): Ship it.
362 (Makefile.am): Always build replacement.
363 * m4/pty.m4: Rename...
364 * m4/pty_h.m4: ...to this.
365 (gl_PTY): Modernize setting of witness macros; update check of
366 forkpty to take proper advantage of cache.
367 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
369 getopt: avoid compiler warning
370 * lib/getopt.c (attribute_hidden): Remove unused macro.
372 2010-03-18 Bruno Haible <bruno@clisp.org>
374 Fix link errors on Solaris 8.
375 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
376 * modules/search-tests (test_search_c___LDADD): Likewise.
377 * modules/signal-tests (test_signal_c___LDADD): Likewise.
378 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
379 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
380 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
381 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
382 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
383 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
385 2010-03-18 Bruno Haible <bruno@clisp.org>
387 Fix bug introduced on 2010-03-14.
388 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
389 (gl_SPAWN_H): Require it.
390 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
391 Reported by Simon Josefsson.
393 2010-03-18 Bruno Haible <bruno@clisp.org>
395 Fix typo introduced on 2009-12-31.
396 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
397 posix_spawn_file_actions_adddup2.
399 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
400 and Eric Blake <eblake@redhat.com>
402 test-vc-list-files-git: make more robust
403 * tests/test-vc-list-files-git.sh: Unset problematic environment
404 variables. Chain commands together.
406 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
408 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
409 `AC_CHECK_DECL' invocation.
411 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
413 * lib/inttostr.c (inttostr): Make sure the invocation of verify
414 appears before executable statements. Suggested by Petr Sumbera
415 <Petr.Sumbera@Sun.COM>.
417 2010-03-14 Bruno Haible <bruno@clisp.org>
419 * tests/test-flock.c (test_exclusive): Comment out a test that causes
420 portability problems. Instead use a simpler test.
421 (main): Check that invalid arguments are rejected only on Linux.
423 2010-03-14 Bruno Haible <bruno@clisp.org>
425 Fix bug introduced on 2009-12-31.
426 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
427 gl_PREREQ_SYS_H_WINSOCK2 always.
428 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
429 SYS_SOCKET_H variable.
430 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
432 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
433 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
434 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
435 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
436 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
438 2010-03-14 Bruno Haible <bruno@clisp.org>
440 Fix values returned by sinl, cosl.
441 * lib/trigl.h: Add specification comments.
442 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
443 that combines the values from the precomputed table with the values of
444 the Chebyshev polynomials.
446 2010-03-14 Bruno Haible <bruno@clisp.org>
448 Fix compilation error when modules 'posix_spawn[p]' are not used.
449 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
450 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
452 2010-03-14 Bruno Haible <bruno@clisp.org>
454 Fix compilation error on mingw when module 'time_r' is not used.
455 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
457 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
458 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
459 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
460 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
462 2010-03-14 Bruno Haible <bruno@clisp.org>
464 Fix compilation error with Sun C.
465 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
466 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
467 instead of GCC specific ULONG_LONG_MAX.
468 * lib/xstrtoll.c: Likewise.
469 * lib/xstrtoull.c: Likewise.
471 2010-03-13 Bruno Haible <bruno@clisp.org>
473 Allow the user to disable C++ code and tests.
474 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
475 (gl_PROG_ANSI_CXX): Require it.
477 2010-03-13 Bruno Haible <bruno@clisp.org>
479 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
482 2010-03-13 Bruno Haible <bruno@clisp.org>
484 Test that gnulib does not break the standard C++ headers.
485 * tests/test-locale-c++2.cc: New file.
486 * modules/locale-tests (Files): Add it.
487 (Makefile.am): Compile it for test-locale-c++.
488 * tests/test-math-c++2.cc: New file.
489 * modules/math-tests (Files): Add it.
490 (Makefile.am): Compile it for test-math-c++.
491 * tests/test-signal-c++2.cc: New file.
492 * modules/signal-tests (Files): Add it.
493 (Makefile.am): Compile it for test-signal-c++.
494 * tests/test-stdio-c++2.cc: New file.
495 * modules/stdio-tests (Files): Add it.
496 (Makefile.am): Compile it for test-stdio-c++.
497 * tests/test-stdlib-c++2.cc: New file.
498 * modules/stdlib-tests (Files): Add it.
499 (Makefile.am): Compile it for test-stdlib-c++.
500 * tests/test-string-c++2.cc: New file.
501 * modules/string-tests (Files): Add it.
502 (Makefile.am): Compile it for test-string-c++.
503 * tests/test-time-c++2.cc: New file.
504 * modules/time-tests (Files): Add it.
505 (Makefile.am): Compile it for test-time-c++.
506 Reported by John W. Eaton <jwe@gnu.org>.
508 2010-03-13 Bruno Haible <bruno@clisp.org>
510 * gnulib-tool (func_usage): Clarify which options are available for
511 --create-testdir and --create-megatestdir.
513 2010-03-13 Bruno Haible <bruno@clisp.org>
515 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
516 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
517 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
518 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
519 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
521 Reported by Jim Meyering.
523 2010-03-12 Simon Josefsson <simon@josefsson.org>
525 * gnulib-tool (func_import): Explain origin of code.
527 2010-03-12 Bruno Haible <bruno@clisp.org>
529 Fix problem with automake's definition of CXXLINK.
530 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
531 Reported by Simon Josefsson and Ludovic Courtès.
533 2010-03-12 Bruno Haible <bruno@clisp.org>
535 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
538 2010-03-11 Bruno Haible <bruno@clisp.org>
540 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
541 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
542 whether the system provides one variant or multiple variants of the
544 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
546 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
547 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
548 Reported by Jim Meyering.
550 2010-03-09 Simon Josefsson <simon@josefsson.org>
552 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
554 2010-03-08 Bruno Haible <bruno@clisp.org>
556 gnulib-tool: Add support for --libtool in --create-testdir.
557 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
558 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
560 2010-03-08 Eric Blake <eblake@redhat.com>
562 gnulib-tool.texi: mention possibility of git submodule
563 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
565 * doc/.gitignore: Ignore another generated file.
567 2010-03-08 Karl Berry <karl@gnu.org>
569 * doc/gnulib-tool.texi (VCS Issues): Mention third option
570 of committing gnulib files while skipping others.
572 2010-03-07 Bruno Haible <bruno@clisp.org>
574 Tests of module 'wctype' in C++ mode.
575 * tests/test-wctype-c++.cc: New file.
576 * modules/wctype-tests (Files): Add it and tests/signature.h.
577 (Depends-on): Add ansi-c++-opt.
578 (Makefile.am): Arrange to compile and run test-wctype-c++.
580 Tests of module 'wchar' in C++ mode.
581 * tests/test-wchar-c++.cc: New file.
582 * modules/wchar-tests (Files): Add it and tests/signature.h.
583 (Depends-on): Add ansi-c++-opt.
584 (Makefile.am): Arrange to compile and run test-wchar-c++.
585 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
588 Tests of module 'unistd' in C++ mode.
589 * tests/test-unistd-c++.cc: New file.
590 * modules/unistd-tests (Files): Add it and tests/signature.h.
591 (Depends-on): Add ansi-c++-opt.
592 (Makefile.am): Arrange to compile and run test-unistd-c++.
593 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
596 Tests of module 'time' in C++ mode.
597 * tests/test-time-c++.cc: New file.
598 * modules/time-tests (Files): Add it and tests/signature.h.
599 (Depends-on): Add ansi-c++-opt.
600 (Makefile.am): Arrange to compile and run test-time-c++.
601 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
603 Tests of module 'sys_time' in C++ mode.
604 * tests/test-sys_time-c++.cc: New file.
605 * modules/sys_time-tests (Files): Add it and tests/signature.h.
606 (Depends-on): Add ansi-c++-opt.
607 (Makefile.am): Arrange to compile and run test-sys_time-c++.
608 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
611 Tests of module 'sys_stat' in C++ mode.
612 * tests/test-sys_stat-c++.cc: New file.
613 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
614 (Depends-on): Add ansi-c++-opt.
615 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
616 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
619 Tests of module 'sys_socket' in C++ mode.
620 * tests/test-sys_socket-c++.cc: New file.
621 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
622 (Depends-on): Add ansi-c++-opt.
623 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
624 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
627 Tests of module 'sys_select' in C++ mode.
628 * tests/test-sys_select-c++.cc: New file.
629 * modules/sys_select-tests (Files): Add it and tests/signature.h.
630 (Depends-on): Add ansi-c++-opt.
631 (Makefile.am): Arrange to compile and run test-sys_select-c++.
632 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
635 Tests of module 'sys_ioctl' in C++ mode.
636 * tests/test-sys_ioctl-c++.cc: New file.
637 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
638 (Depends-on): Add ansi-c++-opt.
639 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
640 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
643 Tests of module 'string' in C++ mode.
644 * tests/test-string-c++.cc: New file.
645 * modules/string-tests (Files): Add it and tests/signature.h.
646 (Depends-on): Add ansi-c++-opt.
647 (Makefile.am): Arrange to compile and run test-string-c++.
648 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
651 Tests of module 'stdlib' in C++ mode.
652 * tests/test-stdlib-c++.cc: New file.
653 * modules/stdlib-tests (Files): Add it and tests/signature.h.
654 (Depends-on): Add ansi-c++-opt.
655 (Makefile.am): Arrange to compile and run test-stdlib-c++.
656 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
659 Tests of module 'stdio' in C++ mode.
660 * tests/test-stdio-c++.cc: New file.
661 * modules/stdio-tests (Files): Add it and tests/signature.h.
662 (Depends-on): Add ansi-c++-opt.
663 (Makefile.am): Arrange to compile and run test-stdio-c++.
664 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
667 Tests of module 'spawn' in C++ mode.
668 * tests/test-spawn-c++.cc: New file.
669 * modules/spawn-tests (Files): Add it and tests/signature.h.
670 (Depends-on): Add ansi-c++-opt.
671 (Makefile.am): Arrange to compile and run test-spawn-c++.
672 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
675 Tests of module 'signal' in C++ mode.
676 * tests/test-signal-c++.cc: New file.
677 * modules/signal-tests (Files): Add it and tests/signature.h.
678 (Depends-on): Add ansi-c++-opt.
679 (Makefile.am): Arrange to compile and run test-signal-c++.
680 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
683 Tests of module 'search' in C++ mode.
684 * tests/test-search-c++.cc: New file.
685 * modules/search-tests (Files): Add it and tests/signature.h.
686 (Depends-on): Add ansi-c++-opt.
687 (Makefile.am): Arrange to compile and run test-search-c++.
688 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
691 Tests of module 'math' in C++ mode.
692 * tests/test-math-c++.cc: New file.
693 * modules/math-tests (Files): Add it and tests/signature.h.
694 (Depends-on): Add ansi-c++-opt.
695 (Makefile.am): Arrange to compile and run test-math-c++.
696 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
698 Tests of module 'locale' in C++ mode.
699 * tests/test-locale-c++.cc: New file.
700 * modules/locale-tests (Files): Add it and tests/signature.h.
701 (Depends-on): Add ansi-c++-opt.
702 (Makefile.am): Arrange to compile and run test-locale-c++.
703 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
706 Tests of module 'langinfo' in C++ mode.
707 * tests/test-langinfo-c++.cc: New file.
708 * modules/langinfo-tests (Files): Add it and tests/signature.h.
709 (Depends-on): Add ansi-c++-opt.
710 (Makefile.am): Arrange to compile and run test-langinfo-c++.
711 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
714 Tests of module 'iconv-h' in C++ mode.
715 * tests/test-iconv-h-c++.cc: New file.
716 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
717 (Depends-on): Add ansi-c++-opt.
718 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
720 Tests of module 'glob' in C++ mode.
721 * tests/test-glob-c++.cc: New file.
722 * modules/glob-tests (Files): Add it.
723 (Depends-on): Add ansi-c++-opt.
724 (Makefile.am): Arrange to compile and run test-glob-c++.
726 Tests of module 'fcntl-h' in C++ mode.
727 * tests/test-fcntl-h-c++.cc: New file.
728 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
729 (Depends-on): Add ansi-c++-opt.
730 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
731 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
734 Tests of module 'dirent' in C++ mode.
735 * tests/test-dirent-c++.cc: New file.
736 * modules/dirent-tests (Files): Add it and tests/signature.h.
737 (Depends-on): Add ansi-c++-opt.
738 (Makefile.am): Arrange to compile and run test-dirent-c++.
739 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
742 New module 'ansi-c++-opt'.
743 * modules/ansi-c++-opt: New file.
744 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
746 Document C++ namespace mode.
747 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
749 wctype: Avoid #define replacements in C++ mode.
750 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
751 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
752 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
753 In C++, define a namespaced alias symbol.
754 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
755 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
756 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
759 wchar: Avoid #define replacements in C++ mode.
760 * lib/wchar.in.h: Include c++defs.h.
761 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
762 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
764 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
765 * modules/wchar (Depends-on): Add c++defs.
766 (Makefile.am): Update wchar.h rule.
768 unistd: Avoid #define replacements in C++ mode.
769 * lib/unistd.in.h: Include c++defs.h.
770 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
771 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
772 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
773 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
774 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
775 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
778 * modules/unistd (Depends-on): Add c++defs.
779 (Makefile.am): Update unistd.h rule.
781 time: Avoid #define replacements in C++ mode.
782 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
783 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
784 define a namespaced alias symbol.
785 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
786 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
787 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
788 * modules/time (Depends-on): Add c++defs, warn-on-use.
789 (Makefile.am): Update time.h rule.
790 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
791 * modules/nanosleep (configure.ac): Likewise.
792 * modules/strptime (configure.ac): Likewise.
793 * modules/timegm (configure.ac): Likewise.
795 sys_time: Avoid #define replacements in C++ mode.
796 * lib/sys_time.in.h: Include c++defs.h.
797 (gettimeofday): In C++, define a namespaced alias symbol.
798 * modules/sys_time (Depends-on): Add c++defs.
799 (Makefile.am): Update sys/time.h rule.
801 sys_stat: Avoid #define replacements in C++ mode.
802 * lib/sys_stat.in.h: Include c++defs.h.
803 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
804 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
805 namespaced alias symbol.
806 In C++, define a namespaced alias symbol.
807 * modules/sys_stat (Depends-on): Add c++defs.
808 (Makefile.am): Update sys/stat.h rule.
810 sys_socket: Avoid #define replacements in C++ mode.
811 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
812 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
813 definitions also when the system has a <sys/socket.h>.
814 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
815 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
816 In C++, define a namespaced alias symbol.
817 * modules/sys_socket (Depends-on): Add c++defs.
818 (Makefile.am): Update sys/socket.h rule.
820 sys_select: Avoid #define replacements in C++ mode.
821 * lib/sys_select.in.h: Include c++defs.h. Enable the function
822 definitions also when the system has a <sys/select.h>.
823 (select): In C++, define a namespaced alias symbol.
824 * modules/sys_select (Depends-on): Add c++defs.
825 (Makefile.am): Update sys/select.h rule.
827 sys_ioctl: Avoid #define replacements in C++ mode.
828 * lib/sys_ioctl.in.h: Include c++defs.h.
829 (ioctl): In C++, define a namespaced alias symbol.
830 * modules/sys_ioctl (Depends-on): Add c++defs.
831 (Makefile.am): Update sys/ioctl.h rule.
833 string: Avoid #define replacements in C++ mode.
834 * lib/string.in.h: Include c++defs.h.
835 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
836 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
837 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
838 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
839 strsignal, strverscmp): In C++, define a namespaced alias symbol.
840 * modules/string (Depends-on): Add c++defs.
841 (Makefile.am): Update string.h rule.
843 stdlib: Avoid #define replacements in C++ mode.
844 * lib/stdlib.in.h: Include c++defs.h.
845 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
846 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
847 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
848 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
850 * modules/stdlib (Depends-on): Add c++defs.
851 (Makefile.am): Update stdlib.h rule.
853 stdio: Avoid #define replacements in C++ mode.
854 * lib/stdio.in.h: Include c++defs.h.
855 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
856 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
857 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
858 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
859 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
860 namespaced alias symbol.
861 * modules/stdio (Depends-on): Add c++defs.
862 (Makefile.am): Update stdio.h rule.
864 spawn: Avoid #define replacements in C++ mode.
865 * lib/spawn.in.h: Include c++defs.h.
866 (posix_spawn, posix_spawnp, posix_spawnattr_init,
867 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
868 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
869 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
870 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
871 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
872 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
873 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
874 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
875 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
876 In C++, define a namespaced alias symbol.
877 * modules/spawn (Depends-on): Add c++defs.
878 (Makefile.am): Update spawn.h rule.
880 signal: Avoid #define replacements in C++ mode.
881 * lib/signal.in.h: Include c++defs.h.
882 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
883 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
884 namespaced alias symbol.
885 * modules/signal (Depends-on): Add c++defs.
886 (Makefile.am): Update signal.h rule.
888 search: Avoid #define replacements in C++ mode.
889 * lib/search.in.h: Include c++defs.h.
890 (_gl_search_compar_fn, _gl_search_action_fn): New types.
891 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
893 * modules/search (Depends-on): Add c++defs.
894 (Makefile.am): Update search.h rule.
896 math: Avoid #define replacements in C++ mode.
897 * lib/math.in.h: Include c++defs.h.
898 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
899 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
900 trunc, truncl): In C++, define a namespaced alias symbol.
901 * modules/math (Depends-on): Add c++defs.
902 (Makefile.am): Update math.h rule.
904 locale: Avoid #define replacements in C++ mode.
905 * lib/locale.in.h: Include c++defs.h.
906 (duplocale): In C++, define a namespaced alias symbol.
907 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
908 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
909 * modules/locale (Depends-on): Add c++defs.
910 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
912 langinfo: Avoid #define replacements in C++ mode.
913 * lib/langinfo.in.h: Include c++defs.h.
914 (nl_langinfo): In C++, define a namespaced alias symbol.
915 * modules/langinfo (Depends-on): Add c++defs.
916 (Makefile.am): Update langinfo.h rule.
918 iconv-h: Avoid #define replacements in C++ mode.
919 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
920 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
922 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
923 whenever iconv is present.
924 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
925 (Makefile.am): Update iconv.h rule.
927 glob: Avoid #define replacements in C++ mode.
928 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
929 (_gl_glob_errfunc_fn): New type.
930 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
932 * modules/glob (Depends-on): Add c++defs, warn-on-use.
933 (Makefile.am): Update glob.h rule.
935 fcntl-h: Avoid #define replacements in C++ mode.
936 * lib/fcntl.in.h: Include c++defs.h.
937 (fcntl, open, openat): In C++, define a namespaced alias symbol.
938 * modules/fcntl-h (Depends-on): Add c++defs.
939 (Makefile.am): Update fcntl.h rule.
941 dirent: Avoid #define replacements in C++ mode.
942 * lib/dirent.in.h: Include c++defs.h.
943 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
944 namespaced alias symbol.
945 (dirfd): Update declaration.
946 * modules/dirent (Depends-on): Add c++defs.
947 (Makefile.am): Update dirent.h rule.
949 ctype: Make it usable in C++ code.
950 * lib/ctype.in.h: Include c++defs.h.
951 (isblank): Declare as extern "C".
952 * modules/ctype (Depends-on): Add c++defs.
953 (Makefile.am): Update ctype.h rule.
955 New module 'c++defs'.
956 * modules/c++defs: New file.
957 * build-aux/c++defs.h: New file.
958 Reported by John W. Eaton <jwe@gnu.org>.
960 2010-03-07 Bruno Haible <bruno@clisp.org>
962 logb: Provide missing declaration for Cygwin.
963 * lib/math.in.h (logb): New declaration.
964 * m4/logb.m4: New file.
965 * modules/logb (Files): Add m4/logb.m4.
966 (Depends-on): Add math.
967 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
968 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
969 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
970 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
971 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
973 2010-03-07 Bruno Haible <bruno@clisp.org>
975 Fix test-cond link error.
976 * tests/test-cond.c: Include <stdio.h>.
978 2010-03-07 Bruno Haible <bruno@clisp.org>
980 Fix test-dirent-safer link error.
981 * modules/dirent-safer-tests (Makefile.am): Define
982 test_dirent_safer_LDADD.
984 2010-03-07 Bruno Haible <bruno@clisp.org>
986 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
987 among default module list.
989 2010-03-07 Bruno Haible <bruno@clisp.org>
991 Fix link error on platforms with GNU libiconv.
992 * modules/unistr/u8-strcoll-tests (Makefile): Define
993 test_u8_strcoll_LDADD.
994 * modules/unistr/u16-strcoll-tests (Makefile): Define
995 test_u16_strcoll_LDADD.
996 * modules/unistr/u32-strcoll-tests (Makefile): Define
997 test_u32_strcoll_LDADD.
999 2010-03-07 Bruno Haible <bruno@clisp.org>
1001 Use POSIX declarations for socket functions.
1002 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1003 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1004 rpl_sendto): Change declaration to match POSIX.
1005 * lib/connect.c (rpl_connect): Likewise.
1006 * lib/accept.c (rpl_accept): Likewise.
1007 * lib/bind.c (rpl_bind): Likewise.
1008 * lib/getpeername.c (rpl_getpeername): Likewise.
1009 * lib/getsockname.c (rpl_getsockname): Likewise.
1010 * lib/recv.c (rpl_recv): Likewise.
1011 * lib/send.c (rpl_send): Likewise.
1012 * lib/recvfrom.c (rpl_recvfrom): Likewise.
1013 * lib/sendto.c (rpl_sendto): Likewise.
1015 2010-03-06 Bruno Haible <bruno@clisp.org>
1017 Clarify access, euidaccess, faccessat.
1018 * doc/posix-functions/faccessat.texi: Mention security problem under
1019 "Other problems", not "Portability problems".
1020 * doc/posix-functions/access.texi: Likewise. Mention a related security
1022 * doc/glibc-functions/euidaccess.texi: Mention security problems.
1023 * lib/euidaccess.c: Add comments about platforms.
1024 * lib/unistd.in.h (access, euidaccess): Add warnings.
1026 2010-03-07 Bruno Haible <bruno@clisp.org>
1028 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1029 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1030 (POSIX_SPAWN_SETSCHEDULER): Likewise.
1031 (POSIX_SPAWN_USEVFORK): Define in a way that works when
1032 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1033 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1034 declare when POSIX_SPAWN_SETSCHEDULER is zero.
1035 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1036 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1037 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1038 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1039 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1040 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1041 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1042 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1043 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1044 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1045 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1046 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1047 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1049 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1050 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1051 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1053 * tests/test-spawn.c (main): Make it work when
1054 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1056 2010-03-07 Bruno Haible <bruno@clisp.org>
1058 Fix incorrect Makefile.am generation in German locale.
1059 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1060 Execute sed command with character range in C locale.
1062 2010-03-06 Bruno Haible <bruno@clisp.org>
1064 Tests for module 'iconv-h'.
1065 * modules/iconv-h-tests: New file.
1066 * tests/test-iconv-h.c: New file.
1068 New module 'iconv-h'.
1069 * modules/iconv-h: New file.
1070 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1071 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1072 (configure.ac): Remove gl_ICONV_H.
1073 (Makefile.am): Remove rule for iconv.h.
1075 2010-03-06 Bruno Haible <bruno@clisp.org>
1077 More consistent naming of *.m4 files.
1078 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1079 * modules/wctype (Files): Update.
1081 More consistent naming of *.m4 files.
1082 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1083 * modules/wchar (Files): Update.
1085 2010-03-06 Jim Meyering <meyering@redhat.com>
1087 euidaccess: relax license to LGPLv2+
1088 * modules/euidaccess (License): Relax to LGPLv2+.
1090 2010-03-06 Bruno Haible <bruno@clisp.org>
1092 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1093 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1094 (Makefile.am): Augment lib_SOURCES instead.
1096 2010-03-04 Jim Meyering <meyering@redhat.com>
1098 utime: remove obsolete module
1099 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1100 unnecessary for years, and has been marked as obsolete for 10 months.
1101 * modules/utime: Remove file.
1102 * lib/utime.c: Remove file.
1103 * m4/utime.m4: Remove file.
1104 * m4/utimes-null.m4: Remove file.
1105 * doc/posix-functions/utime.texi (utime): Remove reference to
1106 the module. Move the sole "fixed by gnulib" item into the
1107 "problems not fixed by Gnulib" list.
1108 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1110 2010-03-05 Simon Josefsson <simon@josefsson.org>
1112 * modules/exit (License): Relax license to LGPLv2+.
1113 (Status): Mark as obsolete.
1114 * NEWS: Mention deprecated 'exit' module.
1115 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1116 of now obsolete 'exit'.
1118 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1120 fts-lgpl: remove unused module
1121 * modules/fts-lgpl: Remove.
1122 * MODULES.html.sh (func_all_modules): Adjust.
1123 * check-module (find_included_lib_files): Adjust.
1124 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1126 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1128 copy-acl: enhance Solaris ACL error handling
1129 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1130 * lib/set-mode-acl.c (qset_acl): Likewise.
1132 2010-03-02 Bruno Haible <bruno@clisp.org>
1134 spawn: Don't override the system defined values on FreeBSD 8.
1135 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1136 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1137 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1138 if HAVE_POSIX_SPAWN is 1.
1139 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1141 2010-03-01 Bruno Haible <bruno@clisp.org>
1143 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1146 2010-02-25 Bruno Haible <bruno@clisp.org>
1148 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1149 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1150 setting, not afterwards.
1151 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1153 2010-02-24 Eric Blake <eblake@redhat.com>
1155 bootstrap, git-version-gen: use timestamp
1156 * build-aux/git-version-gen (scriptversion): Force UTC.
1157 * build-aux/bootstrap (scriptversion): New variable.
1159 bootstrap: allow older git
1160 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1161 older than 1.6.4. Requested by the libvirt project.
1163 2010-02-23 Eric Blake <eblake@redhat.com>
1165 warn-on-use: work with old autoconf
1166 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1167 AS_VAR semantics of autoconf 2.60.
1168 Reported by Bruno Haible.
1170 bootstrap: improve some comments
1171 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1172 clarification comments.
1174 gettimeofday: provide correct function
1175 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1176 when replacement is declared, otherwise provide gettimeofday.
1177 Reported by Michael Goffioul.
1179 2010-02-23 Jim Meyering <meyering@redhat.com>
1181 lib-ignore: relax license to "unlimited", not LGPLv2+
1182 * modules/lib-ignore (License): Relax to "unlimited".
1184 2010-02-23 Jim Meyering <meyering@redhat.com>
1186 lib-ignore: relax license to LGPLv2+
1187 * modules/lib-ignore (License): Relax to LGPLv2+.
1189 2010-02-22 Eric Blake <eblake@redhat.com>
1191 lseek: avoid bash 3.2 broken pipe bug
1192 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1193 warning from bash 3.2.
1194 Reported by Ben Pfaff, with analysis from Bruno Haible.
1196 bootstrap: support non-FSF copyright holder
1197 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1198 bootstrap.conf override of COPYRIGHT_HOLDER.
1199 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1201 bootstrap: interoperate with gettext 0.14.1
1202 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1204 bootstrap: allow for alternate submodule location
1205 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1206 hardcoding submodule location.
1207 (gnulib_mk): Allow direct use of Makefile.am.
1209 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1210 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1211 rather than reconfiguring where the submodule points.
1213 gettimeofday: restore support for platforms that lack function
1214 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1215 replacement if function is missing.
1216 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1217 * modules/sys_time (Makefile.am): Substitute it.
1218 * lib/sys_time.in.h (gettimeofday): Check it.
1219 Reported by Michael Goffioul.
1221 2010-02-21 Bruno Haible <bruno@clisp.org>
1223 * lib/stdio.in.h (obstack_printf): Fix typo.
1225 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1227 vc-list-files: use bzr ls's -R option
1228 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1229 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1231 2010-02-21 Jim Meyering <meyering@redhat.com>
1233 init.sh: fix EXEEXT shims to work also for names like test-prog
1234 * tests/init.sh: Re-exec a better shell, when needed.
1235 If the current shell lacks support for posix $(...), an init.sh-using
1236 test will now try to find a shell that supports that. If EXEEXT is
1237 nonempty, we also require support for hyphen-in-alias-name and shell
1238 substitutions like ${var#glob}. Failure to find such a shell results
1241 2010-02-21 Bruno Haible <bruno@clisp.org>
1243 Really work around around "broken pipe" error message from bash 3.2.
1244 * gnulib-tool (func_reset_sigpipe): Remove function.
1245 (echo): In bash 3.2, define to a function that uses printf.
1246 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1248 2010-02-20 Bruno Haible <bruno@clisp.org>
1250 Restore support for automake 1.9.6 with autoconf 2.61.
1251 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1252 Reported by James Youngman <jay@gnu.org>.
1254 2010-02-20 Bruno Haible <bruno@clisp.org>
1256 Improve *printf warning condition.
1257 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1258 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1259 and the function is overridden due to SIGPIPE emulation.
1261 2010-02-20 Bruno Haible <bruno@clisp.org>
1263 * lib/stdio.in.h: Tweak comments.
1265 2010-02-19 Bruno Haible <bruno@clisp.org>
1267 Make it easier to find modules. New gnulib-tool option '--find'.
1268 * gnulib-tool: New option --find.
1269 (func_usage): Document it.
1270 (func_sanitize_modulelist): New function, extracted from
1272 (func_all_modules): Invoke it.
1273 * doc/gnulib-tool.texi (Which modules?): New node.
1275 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1277 * lib/sys_select.in.h: Provide select replacement even if
1278 sys/select.h exists on a system, for Interix.
1280 2010-02-18 Jim Meyering <meyering@redhat.com>
1282 init.sh: don't use $(...) just yet
1283 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1284 to accommodate e.g., Solaris' /bin/sh.
1286 2010-02-17 Bruno Haible <bruno@clisp.org>
1288 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1289 Reported by Ludovic Courtès <ludo@gnu.org>.
1291 2010-02-16 Simon Josefsson <simon@josefsson.org>
1293 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1294 linking with -lintl.
1296 2010-02-17 Simon Josefsson <simon@josefsson.org>
1298 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1299 if not provided by the system's netdb.h. Reported by
1300 ludo@gnu.org (Ludovic Courtès).
1302 2010-02-15 Jim Meyering <meyering@redhat.com>
1304 init.sh: improve portability and efficiency
1305 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1306 "dummy" in a for loop.
1307 Use '!', not '^' to select the complement of a character set used
1308 in a "case" statement.
1309 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1310 Suggestions from Eric Blake.
1312 init.sh: automatically accommodate programs with the .exe suffix
1313 Automatically arrange for an invocation of "prog" to execute the
1314 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1315 may use the simpler "prog", yet still work when built on a system
1316 that requires specifying the added suffix.
1317 Do this by constructing a function named "prog" that invokes
1318 "prog.exe" for each .exe file in selected directories.
1319 * tests/init.sh (find_exe_basenames_): New function.
1320 (create_exe_shim_functions_): New function.
1321 (path_prepend_): Use it.
1323 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1324 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1325 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1327 2010-02-14 Jim Meyering <meyering@redhat.com>
1329 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1330 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1331 (sc_prohibit_hash_pjw_without_use): New rule.
1333 maint.mk: allow the default upload destination dir to be overridden
1334 * top/maint.mk (upload_dest_dir_): Define with a default that
1335 preserves the status quo.
1336 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1337 Reported by Peter Simons.
1339 maint.mk: prohibit inclusion of "hash.h" without_use
1340 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1342 2010-02-10 Jim Meyering <meyering@redhat.com>
1344 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1345 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1347 2010-02-09 Eric Blake <ebb9@byu.net>
1348 and Bruno Haible <bruno@clisp.org>
1350 obstack-printf-posix: ensure declaration
1351 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1352 extracted from gl_FUNC_OBSTACK_PRINTF.
1353 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1354 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1356 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1357 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1360 2010-02-08 Bruno Haible <bruno@clisp.org>
1362 gnulib-tool: Fix typo in 2010-02-07 commit.
1363 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1364 Reported by Eric Blake.
1366 2010-02-07 Bruno Haible <bruno@clisp.org>
1368 gnulib-tool: Fix up caching patches.
1369 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1370 option --no-cache. Use associative arrays when supported by the shell.
1371 (sed_comments): New variable.
1372 (modcache): Renamed from do_cache.
1373 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1374 abbreviate unnecessarily.
1375 (have_associative): New variable.
1376 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1377 way also for ksh and zsh.
1378 (func_init_sed_convert_to_cache_statements): New function, extracted
1379 from func_cache_lookup_module. Add support for associative arrays.
1380 Don't set the c_MODULE_cached variable here. Ignore all lines before
1381 the first field header. Remove only the final newline, not all trailing
1382 newlines. Support empty fields correctly. Limit the use of 'eval' to
1384 (func_get_description, func_get_status, func_get_notice,
1385 func_get_applicability, func_get_filelist, func_get_dependencies,
1386 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1387 func_get_automake_snippet, func_get_include_directive,
1388 func_get_link_directive, func_get_license, func_get_maintainer):
1389 Update documentation. List the unoptimized code first. Add support for
1390 associative arrays. Limit the use of 'eval' to assignments.
1391 (func_get_applicability): Undo stylistic pessimisations.
1392 (func_get_automake_snippet, func_get_include_directive): Reduce code
1394 (func_modules_transitive_closure, func_modules_add_dummy,
1395 func_modules_notice, func_modules_to_filelist, func_add_file,
1396 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1397 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1398 func_create_testdir, func_create_megatestdir): Update documentation.
1400 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1402 * gnulib-tool (func_cache_lookup_module): Store the module name
1403 belonging to the cache variable; error out if two different
1404 module names map to the same cache variable name.
1406 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1408 gnulib-tool: Make caching optional.
1409 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1410 Update matching short versions of --no-changelog.
1411 (func_usage): Update.
1412 (sed_extract_cache_prog): Renamed from ...
1413 (sed_extract_prog): ... this; revert to old extraction script.
1414 (func_get_description, func_get_status)
1415 (func_get_notice, func_get_applicability, func_get_filelist)
1416 (func_get_dependencies, func_get_autoconf_early_snippet)
1417 (func_get_autoconf_snippet, func_get_automake_snippet)
1418 (func_get_include_directive, func_get_link_directive)
1419 (func_get_license, func_get_maintainer): If $do_cache is false,
1420 use old, non-caching extraction scripts.
1421 Suggestion by Bruno Haible.
1423 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1425 gnulib-tool: cache module metainformation.
1426 * gnulib-tool (sed_extract_prog): Match newline before each
1427 header, and rewrite header to a shell variable suffix.
1428 (func_cache_var, func_cache_lookup_module): New functions,
1429 to turn a module name into a cache variable prefix, and to
1430 look up and cache module metainformation.
1431 (func_get_description, func_get_status)
1432 (func_get_notice, func_get_applicability, func_get_filelist)
1433 (func_get_dependencies, func_get_autoconf_early_snippet)
1434 (func_get_autoconf_snippet, func_get_automake_snippet)
1435 (func_get_include_directive, func_get_link_directive)
1436 (func_get_license, func_get_maintainer): Use
1437 func_cache_lookup_module.
1439 2010-02-07 Bruno Haible <bruno@clisp.org>
1441 fnctl: Fix missing dependency.
1442 * modules/fcntl (Depends-on): Add getdtablesize.
1443 Reported by John W. Eaton <jwe@gnu.org>.
1445 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1447 Argp: fix recognition of short alias options.
1449 * lib/argp-parse.c (convert_options): Fix improper use of
1450 `|' between character values.
1451 * tests/test-argp.c (group1_option): New alias option
1453 (group1_parser): Special handling for 'r'.
1454 (test15): New test case.
1455 (test_fun): Add test15.
1456 * tests/test-argp-2.sh: Update expected --help and --usage
1459 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1461 * tests/test-argp.c: Fix indentation.
1463 2010-02-04 Eric Blake <ebb9@byu.net>
1465 gettimeofday: expose type of second argument
1466 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1467 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1468 * tests/test-gettimeofday.c: Use it to silence warning.
1469 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1472 2010-02-03 Jim Meyering <meyering@redhat.com>
1474 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1475 * lib/regcomp.c (TYPE_SIGNED): Define.
1476 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1478 regcomp.c: avoid a new -Wshadow warning
1479 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1481 2010-02-01 Jim Meyering <meyering@redhat.com>
1483 removing useless parentheses in cpp #define directives
1484 For motivation, see commit c0221df4, "define STREQ(a,b)
1485 consistently, removing useless parentheses"
1486 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1487 * lib/mountlist.c (MNT_IGNORE): Likewise.
1488 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1490 2010-02-01 Eric Blake <ebb9@byu.net>
1492 sys_time: use link-warning
1493 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1494 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1495 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1496 * modules/sys_time (Depends-on): Add warn-on-use.
1497 (Makefile.am): Always build replacement.
1498 (configure.ac): Update substitutions.
1499 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1500 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1501 bother with SYS_TIME_H.
1502 * modules/gettimeofday (configure.ac): Declare indicator.
1503 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1506 closein-tests: silence compiler warning
1507 * tests/test-closein.c (main): Ignore fread result.
1508 * modules/closein-tests (Depends-on): Add ignore-value.
1510 tests: silence warning about system return
1511 * tests/test-areadlink-with-size.c (main): Ignore system result.
1512 * tests/test-areadlink.c (main): Likewise.
1513 * tests/test-areadlinkat-with-size.c (main): Likewise.
1514 * tests/test-areadlinkat.c (main): Likewise.
1515 * tests/test-canonicalize-lgpl.c (main): Likewise.
1516 * tests/test-canonicalize.c (main): Likewise.
1517 * tests/test-chown.c (main): Likewise.
1518 * tests/test-fchownat.c (main): Likewise.
1519 * tests/test-fdutimensat.c (main): Likewise.
1520 * tests/test-fstatat.c (main): Likewise.
1521 * tests/test-futimens.c (main): Likewise.
1522 * tests/test-lchown.c (main): Likewise.
1523 * tests/test-link.c (main): Likewise.
1524 * tests/test-linkat.c (main): Likewise.
1525 * tests/test-lstat.c (main): Likewise.
1526 * tests/test-mkdir.c (main): Likewise.
1527 * tests/test-mkdirat.c (main): Likewise.
1528 * tests/test-mkfifo.c (main): Likewise.
1529 * tests/test-mkfifoat.c (main): Likewise.
1530 * tests/test-mknod.c (main): Likewise.
1531 * tests/test-readlink.c (main): Likewise.
1532 * tests/test-remove.c (main): Likewise.
1533 * tests/test-rename.c (main): Likewise.
1534 * tests/test-renameat.c (main): Likewise.
1535 * tests/test-rmdir.c (main): Likewise.
1536 * tests/test-symlink.c (main): Likewise.
1537 * tests/test-symlinkat.c (main): Likewise.
1538 * tests/test-unlink.c (main): Likewise.
1539 * tests/test-unlinkat.c (main): Likewise.
1540 * tests/test-utimens.c (main): Likewise.
1541 * tests/test-utimensat.c (main): Likewise.
1542 * modules/areadlink-tests (Depends-on): Add ignore-value.
1543 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1544 * modules/areadlinkat-tests (Depends-on): Likewise.
1545 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1546 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1547 * modules/canonicalize-tests (Depends-on): Likewise.
1548 * modules/chown-tests (Depends-on): Likewise.
1549 * modules/fdutimensat-tests (Depends-on): Likewise.
1550 * modules/futimens-tests (Depends-on): Likewise.
1551 * modules/lchown-tests (Depends-on): Likewise.
1552 * modules/link-tests (Depends-on): Likewise.
1553 * modules/linkat-tests (Depends-on): Likewise.
1554 * modules/lstat-tests (Depends-on): Likewise.
1555 * modules/mkdir-tests (Depends-on): Likewise.
1556 * modules/mkfifo-tests (Depends-on): Likewise.
1557 * modules/mkfifoat-tests (Depends-on): Likewise.
1558 * modules/mknod-tests (Depends-on): Likewise.
1559 * modules/openat-tests (Depends-on): Likewise.
1560 * modules/readlink-tests (Depends-on): Likewise.
1561 * modules/remove-tests (Depends-on): Likewise.
1562 * modules/rename-tests (Depends-on): Likewise.
1563 * modules/renameat-tests (Depends-on): Likewise.
1564 * modules/rmdir-tests (Depends-on): Likewise.
1565 * modules/symlink-tests (Depends-on): Likewise.
1566 * modules/symlinkat-tests (Depends-on): Likewise.
1567 * modules/unlink-tests (Depends-on): Likewise.
1568 * modules/utimens-tests (Depends-on): Likewise.
1569 * modules/utimensat-tests (Depends-on): Likewise.
1571 2010-01-31 Bruno Haible <bruno@clisp.org>
1573 Perform the same test for many <math.h> functions.
1574 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1575 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1576 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1578 * modules/acos (configure.ac): Likewise.
1579 * modules/asin (configure.ac): Likewise.
1580 * modules/atan (configure.ac): Likewise.
1581 * modules/atan2 (configure.ac): Likewise.
1582 * modules/cbrt (configure.ac): Likewise.
1583 * modules/copysign (configure.ac): Likewise.
1584 * modules/cos (configure.ac): Likewise.
1585 * modules/cosh (configure.ac): Likewise.
1586 * modules/erf (configure.ac): Likewise.
1587 * modules/erfc (configure.ac): Likewise.
1588 * modules/exp (configure.ac): Likewise.
1589 * modules/fmod (configure.ac): Likewise.
1590 * modules/hypot (configure.ac): Likewise.
1591 * modules/j0 (configure.ac): Likewise.
1592 * modules/j1 (configure.ac): Likewise.
1593 * modules/jn (configure.ac): Likewise.
1594 * modules/lgamma (configure.ac): Likewise.
1595 * modules/log (configure.ac): Likewise.
1596 * modules/log10 (configure.ac): Likewise.
1597 * modules/log1p (configure.ac): Likewise.
1598 * modules/pow (configure.ac): Likewise.
1599 * modules/remainder (configure.ac): Likewise.
1600 * modules/sin (configure.ac): Likewise.
1601 * modules/sinh (configure.ac): Likewise.
1602 * modules/tan (configure.ac): Likewise.
1603 * modules/tanh (configure.ac): Likewise.
1604 * modules/y0 (configure.ac): Likewise.
1605 * modules/y1 (configure.ac): Likewise.
1606 * modules/yn (configure.ac): Likewise.
1607 Suggested by Paolo Bonzini.
1609 2010-01-31 Bruno Haible <bruno@clisp.org>
1611 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1613 2010-01-31 Bruno Haible <bruno@clisp.org>
1615 Work around getdelim() bug on FreeBSD 8.0.
1616 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1617 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1619 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1621 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1622 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1623 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1625 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1627 2010-01-31 Bruno Haible <bruno@clisp.org>
1629 Work around getline() bug on FreeBSD 8.0.
1630 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1631 and a non-zero size.
1632 * tests/test-getline.c (main): Likewise.
1633 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1634 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1636 2010-01-28 Eric Blake <ebb9@byu.net>
1638 regex: fix build failure
1639 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1642 2010-01-28 Jim Meyering <meyering@redhat.com>
1644 regex: do not ignore memory allocation failure
1645 * lib/regex_internal.c (create_cd_newstate): Detect
1646 re_node_set_init_copy failure. Extracted from glibc commit
1647 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1649 regex: sync more white-space changes from libc
1650 * lib/regex_internal.c: White-space only changes.
1651 * lib/regexec.c: Likewise.
1653 regex: add many uses of __attribute_warn_unused_result__
1654 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1655 * lib/regexec.c: Likewise.
1656 Extracted from a messy glibc commit.
1658 regcomp.c: spelling and merge-artifact from glibc
1659 * lib/regcomp.c: Merge remainder of glibc's
1660 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1662 regcomp.c: sync white-space changes from glibc
1663 * lib/regcomp.c: Merge to accommodate white space
1664 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1666 regcomp.c: do not ignore internal return values
1667 * lib/regcomp.c: Do not ignore internal return values.
1668 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1669 but without its white-space changes and spelling fixes.
1671 regex_internal.h: define __attribute_warn_unused_result__
1672 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1674 maint: add a syntax-check rule to check for vulnerable Makefile.in
1675 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1677 2010-01-27 Jim Meyering <meyering@redhat.com>
1679 ncftpput-ftp: clean up spaces
1680 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1681 Remove trailing blanks.
1683 2010-01-27 Simon Josefsson <simon@josefsson.org>
1685 * build-aux/git-version-gen: Fix copyright statement.
1686 * build-aux/gnupload: Likewise.
1687 * tests/test-arcfour.c: Likewise.
1688 * tests/test-arctwo.c: Likewise.
1689 * tests/test-count-one-bits.c: Likewise.
1690 * tests/test-crc.c: Likewise.
1691 * tests/test-des.c: Likewise.
1692 * tests/test-gc-arcfour.c: Likewise.
1693 * tests/test-gc-arctwo.c: Likewise.
1694 * tests/test-gc-des.c: Likewise.
1695 * tests/test-gc-hmac-md5.c: Likewise.
1696 * tests/test-gc-hmac-sha1.c: Likewise.
1697 * tests/test-gc-md2.c: Likewise.
1698 * tests/test-gc-md4.c: Likewise.
1699 * tests/test-gc-md5.c: Likewise.
1700 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1701 * tests/test-gc-rijndael.c: Likewise.
1702 * tests/test-gc-sha1.c: Likewise.
1703 * tests/test-gc.c: Likewise.
1704 * tests/test-gethostname.c: Likewise.
1705 * tests/test-gettimeofday.c: Likewise.
1706 * tests/test-hash.c: Likewise.
1707 * tests/test-hmac-md5.c: Likewise.
1708 * tests/test-hmac-sha1.c: Likewise.
1709 * tests/test-md2.c: Likewise.
1710 * tests/test-md4.c: Likewise.
1711 * tests/test-md5.c: Likewise.
1712 * tests/test-memchr.c: Likewise.
1713 * tests/test-memchr2.c: Likewise.
1714 * tests/test-memcmp.c: Likewise.
1715 * tests/test-memmem.c: Likewise.
1716 * tests/test-memrchr.c: Likewise.
1717 * tests/test-rawmemchr.c: Likewise.
1718 * tests/test-read-file.c: Likewise.
1719 * tests/test-rijndael.c: Likewise.
1720 * tests/test-sockets.c: Likewise.
1721 * tests/test-strchrnul.c: Likewise.
1722 * tests/test-strstr.c: Likewise.
1723 * tests/test-strtod.c: Likewise.
1724 * build-aux/ncftpput-ftp: Likewise.
1726 2010-01-26 Eric Blake <ebb9@byu.net>
1728 ignore-value: update recommended header name
1729 * modules/ignore-value (Include): Only use <> for headers that
1732 2010-01-26 Jim Meyering <meyering@redhat.com>
1734 test-userspec.c: avoid compiler warnings
1735 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1736 and "initialization discards qualifiers..." warnings.
1737 Put the first "uid" in its own scope, and make char* members "const".
1739 2010-01-25 Bruno Haible <bruno@clisp.org>
1741 gnulib-tool: Make warning diagnostics consistent.
1742 * gnulib-tool (func_warning): New function.
1743 Use it everywhere where gnulib-tool produces output to stderr and it is
1746 2010-01-25 Bruno Haible <bruno@clisp.org>
1748 Fix test dependencies.
1749 * modules/xstrtol-tests (Depends-on): Add inttypes.
1750 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1752 2010-01-25 Pádraig Brady <P@draigBrady.com>
1754 syntax-check: detect incorrect boolean macro values in config.h
1755 * modules/maintainer-makefile (configure.ac): Parameterize the location
1756 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1757 The logic is from Eric Blake and the location indicated by Jim Meyering.
1758 Note the more natural CONFIG_HEADER name is prohibited by automake
1759 for backwards compatibility reasons.
1760 * top/maint.mk (sc_Wundef_boolean): New rule.
1762 2010-01-25 Jim Meyering <meyering@redhat.com>
1764 bootstrap: detect MacOS 10.6's shasum, too
1765 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1766 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1768 2010-01-23 Jim Meyering <meyering@redhat.com>
1770 xstrtoll: new module
1771 * modules/xstrtoll: New file.
1772 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1773 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1774 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1775 ./configure fails if you use this module and lack "long long".
1776 * modules/xstrtoll-tests: New module.
1777 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1778 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1779 new init.sh-based test framework.
1781 2010-01-24 Bruno Haible <bruno@clisp.org>
1783 Tests for module 'yn'.
1784 * modules/yn-tests: New file.
1785 * tests/test-yn.c: New file.
1787 Tests for module 'y1'.
1788 * modules/y1-tests: New file.
1789 * tests/test-y1.c: New file.
1791 Tests for module 'y0'.
1792 * modules/y0-tests: New file.
1793 * tests/test-y0.c: New file.
1795 Tests for module 'tanh'.
1796 * modules/tanh-tests: New file.
1797 * tests/test-tanh.c: New file.
1799 Tests for module 'tan'.
1800 * modules/tan-tests: New file.
1801 * tests/test-tan.c: New file.
1803 Tests for module 'sqrt'.
1804 * modules/sqrt-tests: New file.
1805 * tests/test-sqrt.c: New file.
1807 Tests for module 'sinh'.
1808 * modules/sinh-tests: New file.
1809 * tests/test-sinh.c: New file.
1811 Tests for module 'sin'.
1812 * modules/sin-tests: New file.
1813 * tests/test-sin.c: New file.
1815 Tests for module 'rint'.
1816 * modules/rint-tests: New file.
1817 * tests/test-rint.c: New file.
1819 Tests for module 'remainder'.
1820 * modules/remainder-tests: New file.
1821 * tests/test-remainder.c: New file.
1823 Tests for module 'pow'.
1824 * modules/pow-tests: New file.
1825 * tests/test-pow.c: New file.
1827 Tests for module 'nextafter'.
1828 * modules/nextafter-tests: New file.
1829 * tests/test-nextafter.c: New file.
1831 Tests for module 'modf'.
1832 * modules/modf-tests: New file.
1833 * tests/test-modf.c: New file.
1835 Tests for module 'logb'.
1836 * modules/logb-tests: New file.
1837 * tests/test-logb.c: New file.
1839 Tests for module 'log1p'.
1840 * modules/log1p-tests: New file.
1841 * tests/test-log1p.c: New file.
1843 Tests for module 'log10'.
1844 * modules/log10-tests: New file.
1845 * tests/test-log10.c: New file.
1847 Tests for module 'log'.
1848 * modules/log-tests: New file.
1849 * tests/test-log.c: New file.
1851 Tests for module 'lgamma'.
1852 * modules/lgamma-tests: New file.
1853 * tests/test-lgamma.c: New file.
1855 Tests for module 'ldexp'.
1856 * modules/ldexp-tests: New file.
1857 * tests/test-ldexp.c: New file.
1859 Tests for module 'jn'.
1860 * modules/jn-tests: New file.
1861 * tests/test-jn.c: New file.
1863 Tests for module 'j1'.
1864 * modules/j1-tests: New file.
1865 * tests/test-j1.c: New file.
1867 Tests for module 'j0'.
1868 * modules/j0-tests: New file.
1869 * tests/test-j0.c: New file.
1871 Tests for module 'hypot'.
1872 * modules/hypot-tests: New file.
1873 * tests/test-hypot.c: New file.
1875 Tests for module 'fmod'.
1876 * modules/fmod-tests: New file.
1877 * tests/test-fmod.c: New file.
1879 Tests for module 'fabs'.
1880 * modules/fabs-tests: New file.
1881 * tests/test-fabs.c: New file.
1883 Tests for module 'exp'.
1884 * modules/exp-tests: New file.
1885 * tests/test-exp.c: New file.
1887 Tests for module 'erfc'.
1888 * modules/erfc-tests: New file.
1889 * tests/test-erfc.c: New file.
1891 Tests for module 'erf'.
1892 * modules/erf-tests: New file.
1893 * tests/test-erf.c: New file.
1895 Tests for module 'cosh'.
1896 * modules/cosh-tests: New file.
1897 * tests/test-cosh.c: New file.
1899 Tests for module 'cos'.
1900 * modules/cos-tests: New file.
1901 * tests/test-cos.c: New file.
1903 Tests for module 'copysign'.
1904 * modules/copysign-tests: New file.
1905 * tests/test-copysign.c: New file.
1907 Tests for module 'cbrt'.
1908 * modules/cbrt-tests: New file.
1909 * tests/test-cbrt.c: New file.
1911 Tests for module 'atan2'.
1912 * modules/atan2-tests: New file.
1913 * tests/test-atan2.c: New file.
1915 Tests for module 'atan'.
1916 * modules/atan-tests: New file.
1917 * tests/test-atan.c: New file.
1919 Tests for module 'asin'.
1920 * modules/asin-tests: New file.
1921 * tests/test-asin.c: New file.
1923 Tests for module 'acos'.
1924 * modules/acos-tests: New file.
1925 * tests/test-acos.c: New file.
1927 2010-01-24 Bruno Haible <bruno@clisp.org>
1929 Fix tests for common <math.h> functions.
1930 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1931 code snippet that references the function pointer, rather than merely
1932 calling the function. Substitute the FUNC_LIBM variable.
1933 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1934 * modules/acos (configure.ac): Likewise.
1935 * modules/asin (configure.ac): Likewise.
1936 * modules/atan (configure.ac): Likewise.
1937 * modules/atan2 (configure.ac): Likewise.
1938 * modules/cbrt (configure.ac): Likewise.
1939 * modules/copysign (configure.ac): Likewise.
1940 * modules/cos (configure.ac): Likewise.
1941 * modules/cosh (configure.ac): Likewise.
1942 * modules/erf (configure.ac): Likewise.
1943 * modules/erfc (configure.ac): Likewise.
1944 * modules/exp (configure.ac): Likewise.
1945 * modules/fabs (configure.ac): Likewise.
1946 * modules/fmod (configure.ac): Likewise.
1947 * modules/hypot (configure.ac): Likewise.
1948 * modules/j0 (configure.ac): Likewise.
1949 * modules/j1 (configure.ac): Likewise.
1950 * modules/jn (configure.ac): Likewise.
1951 * modules/ldexp (configure.ac): Likewise.
1952 * modules/lgamma (configure.ac): Likewise.
1953 * modules/log (configure.ac): Likewise.
1954 * modules/log10 (configure.ac): Likewise.
1955 * modules/log1p (configure.ac): Likewise.
1956 * modules/logb (configure.ac): Likewise.
1957 * modules/modf (configure.ac): Likewise.
1958 * modules/nextafter (configure.ac): Likewise.
1959 * modules/pow (configure.ac): Likewise.
1960 * modules/remainder (configure.ac): Likewise.
1961 * modules/rint (configure.ac): Likewise.
1962 * modules/sin (configure.ac): Likewise.
1963 * modules/sinh (configure.ac): Likewise.
1964 * modules/tan (configure.ac): Likewise.
1965 * modules/tanh (configure.ac): Likewise.
1966 * modules/y0 (configure.ac): Likewise.
1967 * modules/y1 (configure.ac): Likewise.
1968 * modules/yn (configure.ac): Likewise.
1970 2010-01-24 Bruno Haible <bruno@clisp.org>
1972 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1973 * tests/test-acosl.c (x): New variable.
1974 (main): Store argument in x and fetch it from x.
1975 * tests/test-asinl.c (x): New variable.
1976 (main): Store argument in x and fetch it from x.
1977 * tests/test-atanl.c (x): New variable.
1978 (main): Store argument in x and fetch it from x.
1979 * tests/test-cosl.c (x): New variable.
1980 (main): Store argument in x and fetch it from x.
1981 * tests/test-expl.c (x): New variable.
1982 (main): Store argument in x and fetch it from x.
1983 * tests/test-logl.c (x): New variable.
1984 (main): Store argument in x and fetch it from x.
1985 * tests/test-sinl.c (x): New variable.
1986 (main): Store argument in x and fetch it from x.
1987 * tests/test-sqrtl.c (x): New variable.
1988 (main): Store argument in x and fetch it from x.
1989 * tests/test-tanl.c (x): New variable.
1990 (main): Store argument in x and fetch it from x.
1992 2010-01-24 Bruno Haible <bruno@clisp.org>
1994 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1995 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1996 assignments to the initial TESTS_ENVIRONMENT.
1997 * doc/gnulib.texi (Unit test modules): Document it.
1998 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2000 * modules/btowc-tests (Makefile.am): Likewise.
2001 * modules/c-stack-tests (Makefile.am): Likewise.
2002 * modules/c-strcase-tests (Makefile.am): Likewise.
2003 * modules/copy-file-tests (Makefile.am): Likewise.
2004 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2005 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2006 * modules/mbrtowc-tests (Makefile.am): Likewise.
2007 * modules/mbscasecmp-tests (Makefile.am): Likewise.
2008 * modules/mbscasestr-tests (Makefile.am): Likewise.
2009 * modules/mbschr-tests (Makefile.am): Likewise.
2010 * modules/mbscspn-tests (Makefile.am): Likewise.
2011 * modules/mbsinit-tests (Makefile.am): Likewise.
2012 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2013 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2014 * modules/mbspbrk-tests (Makefile.am): Likewise.
2015 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2016 * modules/mbsrchr-tests (Makefile.am): Likewise.
2017 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2018 * modules/mbsspn-tests (Makefile.am): Likewise.
2019 * modules/mbsstr-tests (Makefile.am): Likewise.
2020 * modules/nl_langinfo-tests (Makefile.am): Likewise.
2021 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2022 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2023 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2024 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2025 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2026 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2027 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2028 * modules/wcrtomb-tests (Makefile.am): Likewise.
2029 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2030 * modules/wcsrtombs-tests (Makefile.am): Likewise.
2031 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2032 assignments from TESTS_ENVIRONMENT.
2033 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2035 * modules/argp-version-etc-tests (Makefile.am): Likewise.
2036 * modules/atexit-tests (Makefile.am): Likewise.
2037 * modules/binary-io-tests (Makefile.am): Likewise.
2038 * modules/closein-tests (Makefile.am): Likewise.
2039 * modules/dprintf-posix-tests (Makefile.am): Likewise.
2040 * modules/exclude-tests (Makefile.am): Likewise.
2041 * modules/fflush-tests (Makefile.am): Likewise.
2042 * modules/fpending-tests (Makefile.am): Likewise.
2043 * modules/fprintf-posix-tests (Makefile.am): Likewise.
2044 * modules/freadahead-tests (Makefile.am): Likewise.
2045 * modules/freadptr-tests (Makefile.am): Likewise.
2046 * modules/freadseek-tests (Makefile.am): Likewise.
2047 * modules/fseek-tests (Makefile.am): Likewise.
2048 * modules/fseeko-tests (Makefile.am): Likewise.
2049 * modules/ftell-tests (Makefile.am): Likewise.
2050 * modules/ftello-tests (Makefile.am): Likewise.
2051 * modules/idpriv-drop-tests (Makefile.am): Likewise.
2052 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2053 * modules/lseek-tests (Makefile.am): Likewise.
2054 * modules/parse-duration-tests (Makefile.am): Likewise.
2055 * modules/perror-tests (Makefile.am): Likewise.
2056 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2057 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2058 * modules/pipe-tests (Makefile.am): Likewise.
2059 * modules/pread-tests (Makefile.am): Likewise.
2060 * modules/printf-posix-tests (Makefile.am): Likewise.
2061 * modules/select-tests (Makefile.am): Likewise.
2062 * modules/sigpipe-tests (Makefile.am): Likewise.
2063 * modules/tsearch-tests (Makefile.am): Likewise.
2064 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2065 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2066 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2067 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2068 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2069 * modules/version-etc-tests (Makefile.am): Likewise.
2070 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2071 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2072 * modules/xalloc-die-tests (Makefile.am): Likewise.
2073 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2074 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2075 * modules/xstrtol-tests (Makefile.am): Likewise.
2076 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2077 * modules/yesno-tests (Makefile.am): Likewise.
2078 Suggested by Jim Meyering.
2080 2010-01-24 Bruno Haible <bruno@clisp.org>
2083 * doc/gnulib.texi (Writing modules): New chapter.
2084 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2087 2010-01-24 Jim Meyering <meyering@redhat.com>
2089 maint.mk: do not prepend "./" after filtering
2090 * top/maint.mk (_prepend_srcdir_prefix): New variable
2091 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2092 "./" when $(srcdir) is ".".
2094 define STREQ(a,b) consistently, removing useless parentheses
2095 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2096 since the only risk is that "a" or "b" contains an unparenthesized
2097 comma, but if either did that, STREQ would have 3 or more arguments.
2098 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2099 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2100 * lib/hash-triple.c (STREQ): Likewise.
2101 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2102 * lib/getugroups.c (STREQ): Likewise.
2104 2010-01-23 Jim Meyering <meyering@redhat.com>
2106 maint.mk: fix syntax-check in a non-srcdir build directory
2107 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2108 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2110 2010-01-22 Jim Meyering <meyering@redhat.com>
2112 userspec: add unit tests
2113 * tests/test-userspec.c: New file.
2114 * modules/userspec-tests: Likewise.
2116 2010-01-21 Jim Meyering <meyering@redhat.com>
2118 maint.mk: handle source file names containing "." robustly
2119 * top/maint.mk (_dot_escaped_srcdir): Define.
2120 (VC_LIST): Use it in LHS of sed substitution.
2122 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2124 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2125 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2126 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2127 from a non-srcdir build.
2129 2010-01-20 Eric Blake <ebb9@byu.net>
2131 warn-on-use: use instead of link-warning
2132 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2133 * modules/unistd (Depends-on, Makefile.am): Likewise.
2134 * modules/arpa_inet (Depends-on): Replace link-warning with
2136 (Makefile.am): Update rules accordingly.
2137 * modules/ctype (Depends-on, Makefile.am): Likewise.
2138 * modules/dirent (Depends-on, Makefile.am): Likewise.
2139 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2140 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2141 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2142 * modules/locale (Depends-on, Makefile.am): Likewise.
2143 * modules/math (Depends-on, Makefile.am): Likewise.
2144 * modules/search (Depends-on, Makefile.am): Likewise.
2145 * modules/signal (Depends-on, Makefile.am): Likewise.
2146 * modules/spawn (Depends-on, Makefile.am): Likewise.
2147 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2148 * modules/string (Depends-on, Makefile.am): Likewise.
2149 * modules/strings (Depends-on, Makefile.am): Likewise.
2150 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2151 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2152 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2153 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2154 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2155 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2156 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2157 * modules/wchar (Depends-on, Makefile.am): Likewise.
2158 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2160 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2161 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2162 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2163 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2164 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2165 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2166 * m4/math_h.m4 (gl_MATH_H): Likewise.
2167 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2168 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2169 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2170 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2171 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2172 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2173 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2174 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2175 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2176 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2177 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2178 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2179 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2180 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2181 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2182 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2183 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2185 * lib/ctype.in.h: Likewise.
2186 * lib/dirent.in.h: Likewise.
2187 * lib/fcntl.in.h: Likewise.
2188 * lib/inttypes.in.h: Likewise.
2189 * lib/langinfo.in.h: Likewise.
2190 * lib/locale.in.h: Likewise.
2191 * lib/math.in.h: Likewise.
2192 * lib/search.in.h: Likewise.
2193 * lib/signal.in.h: Likewise.
2194 * lib/spawn.in.h: Likewise.
2195 * lib/stdio.in.h: Likewise.
2196 * lib/stdlib.in.h: Likewise.
2197 * lib/string.in.h: Likewise.
2198 * lib/strings.in.h: Likewise.
2199 * lib/sys_file.in.h: Likewise.
2200 * lib/sys_ioctl.in.h: Likewise.
2201 * lib/sys_select.in.h: Likewise.
2202 * lib/sys_socket.in.h: Likewise.
2203 * lib/sys_stat.in.h: Likewise.
2204 * lib/sys_times.in.h: Likewise.
2205 * lib/sys_utsname.in.h: Likewise.
2206 * lib/unistd.in.h: Likewise.
2207 * lib/wchar.in.h: Likewise.
2209 2010-01-20 Bruno Haible <bruno@clisp.org>
2211 Avoid duplicate -lm.
2212 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2213 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2214 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2215 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2216 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2217 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2218 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2219 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2220 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2221 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2222 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2223 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2224 Reported by Paolo Bonzini.
2226 2010-01-19 Bruno Haible <bruno@clisp.org>
2228 langinfo, nl_langinfo: Relicense under LGPLv2+.
2229 * modules/langinfo (License): Change to LGPLv2+.
2230 * modules/nl_langinfo (License): Likewise.
2231 Patch by David Lutterkort <lutter@redhat.com>.
2233 2010-01-19 Bruno Haible <bruno@clisp.org>
2235 Avoid compilation error with cc on OSF/1 5.1.
2236 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2237 statement, not before.
2238 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2240 2010-01-18 Bruno Haible <bruno@clisp.org>
2242 Avoid a link error due to the __printf__ symbol.
2243 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2245 (__format__, __printf__): Remove definitions.
2246 * lib/argp-fmtstream.h: Likewise.
2247 * lib/argp.h: Likewise.
2248 * lib/error.h: Likewise.
2249 * lib/vasnprintf.h: Likewise.
2250 * lib/xprintf.h: Likewise.
2251 * lib/xvasprintf.h: Likewise.
2252 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2254 2010-01-18 Bruno Haible <bruno@clisp.org>
2256 Tests for module 'tanl'.
2257 * modules/tanl-tests: New file.
2258 * tests/test-tanl.c: New file.
2260 Tests for module 'sqrtl'.
2261 * modules/sqrtl-tests: New file.
2262 * tests/test-sqrtl.c: New file.
2264 Tests for module 'sinl'.
2265 * modules/sinl-tests: New file.
2266 * tests/test-sinl.c: New file.
2268 Tests for module 'logl'.
2269 * modules/logl-tests: New file.
2270 * tests/test-logl.c: New file.
2272 Tests for module 'expl'.
2273 * modules/expl-tests: New file.
2274 * tests/test-expl.c: New file.
2276 Tests for module 'cosl'.
2277 * modules/cosl-tests: New file.
2278 * tests/test-cosl.c: New file.
2280 Tests for module 'atanl'.
2281 * modules/atanl-tests: New file.
2282 * tests/test-atanl.c: New file.
2284 Tests for module 'asinl'.
2285 * modules/asinl-tests: New file.
2286 * tests/test-asinl.c: New file.
2288 Tests for module 'acosl'.
2289 * modules/acosl-tests: New file.
2290 * tests/test-acosl.c: New file.
2292 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2293 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2294 tanl): Use the standard gnulib idiom.
2295 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2296 * lib/sinl.c: Likewise.
2297 * lib/tanl.c: Don't include trigl.c.
2298 (kernel_tanl): Make static.
2299 * lib/sincosl.c: Include trigl.h first.
2300 * lib/trigl.c: Likewise.
2301 * m4/acosl.m4: New file.
2302 * m4/asinl.m4: New file.
2303 * m4/atanl.m4: New file.
2304 * m4/cosl.m4: New file.
2305 * m4/expl.m4: New file.
2306 * m4/logl.m4: New file.
2307 * m4/sinl.m4: New file.
2308 * m4/sqrtl.m4: New file.
2309 * m4/tanl.m4: New file.
2310 * m4/mathl.m4: Remove file.
2311 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2312 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2313 Don't initialize GNULIB_MATHL.
2314 * modules/acosl: New file.
2315 * modules/asinl: New file.
2316 * modules/atanl: New file.
2317 * modules/cosl: New file.
2318 * modules/expl: New file.
2319 * modules/logl: New file.
2320 * modules/sinl: New file.
2321 * modules/sqrtl: New file.
2322 * modules/tanl: New file.
2323 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2324 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2325 substitute GNULIB_MATHL.
2326 * modules/mathl: Rewritten.
2327 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2328 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2329 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2330 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2331 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2332 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2333 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2334 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2335 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2337 2010-01-18 Bruno Haible <bruno@clisp.org>
2339 sqrt: Make gl_FUNC_SQRT requirable.
2340 * m4/sqrt.m4: New file.
2341 * modules/sqrt (Files): Add it.
2342 (configure.ac): Invoke gl_FUNC_SQRT.
2344 2010-01-18 Bruno Haible <bruno@clisp.org>
2346 New modules for common <math.h> functions.
2347 * m4/mathfunc.m4: New file.
2348 * modules/acos: New file.
2349 * modules/asin: New file.
2350 * modules/atan: New file.
2351 * modules/atan2: New file.
2352 * modules/cbrt: New file.
2353 * modules/copysign: New file.
2354 * modules/cos: New file.
2355 * modules/cosh: New file.
2356 * modules/erf: New file.
2357 * modules/erfc: New file.
2358 * modules/exp: New file.
2359 * modules/fabs: New file.
2360 * modules/fmod: New file.
2361 * modules/hypot: New file.
2362 * modules/j0: New file.
2363 * modules/j1: New file.
2364 * modules/jn: New file.
2365 * modules/ldexp: New file.
2366 * modules/lgamma: New file.
2367 * modules/log: New file.
2368 * modules/log10: New file.
2369 * modules/log1p: New file.
2370 * modules/logb: New file.
2371 * modules/modf: New file.
2372 * modules/nextafter: New file.
2373 * modules/pow: New file.
2374 * modules/remainder: New file.
2375 * modules/rint: New file.
2376 * modules/sin: New file.
2377 * modules/sinh: New file.
2378 * modules/sqrt: New file.
2379 * modules/tan: New file.
2380 * modules/tanh: New file.
2381 * modules/y0: New file.
2382 * modules/y1: New file.
2383 * modules/yn: New file.
2384 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2385 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2386 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2387 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2388 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2389 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2390 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2391 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2392 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2393 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2394 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2395 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2396 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2397 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2398 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2399 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2400 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2401 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2402 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2403 * doc/posix-functions/log.texi: Mention the 'log' module.
2404 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2405 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2406 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2407 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2408 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2409 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2410 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2411 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2412 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2413 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2414 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2415 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2416 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2417 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2418 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2419 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2421 2010-01-18 Jim Meyering <meyering@redhat.com>
2423 ignore-value: relax license to LGPLv2+
2424 * modules/ignore-value (License): Relax to LGPLv2+.
2426 getdate: don't leak when TZ contains two or more '"'s
2427 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2428 double quote in TZ after the first one.
2430 readtokens: do not leak internal token_lengths buffer
2431 * lib/readtokens.c (readtokens): Free the local, lengths,
2432 when the supplied "token_lengths" parameter is NULL.
2434 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2436 Fix a couple of missing LIBTHREAD link failures on AIX.
2437 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2439 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2441 Link test-poll against INET_PTON_LIB.
2442 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2443 for inet_pton on Solaris 10.
2445 2010-01-17 Bruno Haible <bruno@clisp.org>
2447 unistdio/*-sprintf: Fix typo in module description.
2448 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2449 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2450 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2451 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2452 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2453 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2454 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2455 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2457 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2459 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2460 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2461 variables in shell case patterns, for AIX and HP-UX ksh.
2463 Split large sed scripts, for HP-UX sed.
2464 * modules/stdio: Split sed scripts around 50 sed commands,
2465 to avoid HP-UX limit of 99 commands, in the near future.
2466 * modules/string: Likewise.
2467 * modules/unistd: Likewise.
2469 gnulib-tool: avoid writing in the current directory.
2470 * gnulib-tool (func_emit_lib_Makefile_am)
2471 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2472 not in the current directory, so concurrent gnulib-tool
2473 instances do not interfere.
2475 2010-01-16 Jim Meyering <meyering@redhat.com>
2477 doc: update users.txt
2478 * users.txt: Add grep.
2479 (diffutils, gzip): Update URLs.
2481 2010-01-12 Bruno Haible <bruno@clisp.org>
2483 posix_spawn: Avoid test failure on Cygwin.
2484 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2486 Reported by Simon Josefsson.
2488 2010-01-12 Bruno Haible <bruno@clisp.org>
2490 * tests/test-cond.c (main): When skipping the test, show the reason.
2492 2010-01-12 Simon Josefsson <simon@josefsson.org>
2494 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2496 2010-01-12 Simon Josefsson <simon@josefsson.org>
2498 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2499 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2501 2010-01-12 Eric Blake <ebb9@byu.net>
2503 build: guarantee AS_VAR_IF
2504 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2505 (gl_AS_VAR_IF): Move...
2506 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2507 Reported by Simon Josefsson.
2509 2010-01-12 Simon Josefsson <simon@josefsson.org>
2511 * lib/stdio.in.h: Fix typo.
2513 2010-01-12 Simon Josefsson <simon@josefsson.org>
2515 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2518 2010-01-12 Simon Josefsson <simon@josefsson.org>
2520 * tests/test-xalloc-die.sh: Use $EXEEXT.
2522 2010-01-12 Simon Josefsson <simon@josefsson.org>
2523 Bruno Haible <bruno@clisp.org>
2525 getlogin, getlogin_r: Avoid test failure.
2526 * tests/test-getlogin.c: Include <stdio.h>.
2527 (main): Skip the test when the function fails because stdin is not a
2529 * tests/test-getlogin_r.c: Include <stdio.h>.
2530 (main): Skip the test when the function fails because stdin is not a
2533 2010-01-11 Eric Blake <ebb9@byu.net>
2535 tests: avoid more large file warnings
2536 * tests/test-fflush.c: Avoid warning about ftell use.
2537 * tests/test-fseek.c: Avoid warning about fseek use.
2539 2010-01-10 Bruno Haible <bruno@clisp.org>
2541 nproc: Work better on Linux when /proc and /sys are not mounted.
2542 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2543 as lower bound when, on glibc/Linux systems,
2544 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2545 Suggested by Pádraig Brady <P@draigbrady.com>.
2546 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2549 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2550 extracted from num_processors.
2551 (num_processors): Call it.
2553 2010-01-11 Jim Meyering <meyering@redhat.com>
2555 utimecmp: avoid new warning from upcoming gcc-4.5.0
2556 * lib/utimecmp.c (BILLION): Define using #define rather than an
2557 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2559 2010-01-11 Eric Blake <ebb9@byu.net>
2561 math: add portability warnings for classification macros
2562 * modules/math (Depends-on): Add warn-on-use.
2563 (Makefile.am): Provide new substitutions.
2564 * m4/math_h.m4 (gl_MATH_H): Require inline.
2565 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2566 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2567 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2570 unistd: warn on use of environ without module
2571 * modules/unistd (Depends-on): Add warn-on-use.
2572 (Makefile.am): Provide new substitutions.
2573 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2574 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2576 stdio: warn on suspicious uses
2577 * modules/stdio (Depends-on): Add warn-on-use.
2578 (Makefile.am): Provide new substitutions.
2579 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2581 * lib/stdio.in.h (gets): Always warn on use.
2582 (fseek, ftell): Adjust when warnings are issued, and honor
2583 _GL_NO_LARGE_FILES as a way to silence the warning.
2584 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2585 any warning about large file offsets.
2586 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2587 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2588 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2589 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2590 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2591 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2592 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2593 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2595 warn-on-use: new module
2596 * modules/warn-on-use: New file.
2597 * build-aux/warn-on-use.h: Likewise.
2598 * m4/warn-on-use.m4: Likewise.
2599 * MODULES.html.sh (Support for building): Mention it.
2601 2010-01-10 Bruno Haible <bruno@clisp.org>
2603 Tests for module 'unistr/u32-strdup'.
2604 * modules/unistr/u32-strdup-tests: New file.
2605 * tests/unistr/test-u32-strdup.c: New file.
2607 Tests for module 'unistr/u16-strdup'.
2608 * modules/unistr/u16-strdup-tests: New file.
2609 * tests/unistr/test-u16-strdup.c: New file.
2611 Tests for module 'unistr/u8-strdup'.
2612 * modules/unistr/u8-strdup-tests: New file.
2613 * tests/unistr/test-u8-strdup.c: New file.
2614 * tests/unistr/test-strdup.h: New file.
2616 Tests for module 'unistr/u32-strncmp'.
2617 * modules/unistr/u32-strncmp-tests: New file.
2618 * tests/unistr/test-u32-strncmp.c: New file.
2620 Tests for module 'unistr/u16-strncmp'.
2621 * modules/unistr/u16-strncmp-tests: New file.
2622 * tests/unistr/test-u16-strncmp.c: New file.
2624 Tests for module 'unistr/u8-strncmp'.
2625 * modules/unistr/u8-strncmp-tests: New file.
2626 * tests/unistr/test-u8-strncmp.c: New file.
2627 * tests/unistr/test-strncmp.h: New file.
2629 Tests for module 'unistr/u32-strcoll'.
2630 * modules/unistr/u32-strcoll-tests: New file.
2631 * tests/unistr/test-u32-strcoll.c: New file.
2633 Tests for module 'unistr/u16-strcoll'.
2634 * modules/unistr/u16-strcoll-tests: New file.
2635 * tests/unistr/test-u16-strcoll.c: New file.
2637 Tests for module 'unistr/u8-strcoll'.
2638 * modules/unistr/u8-strcoll-tests: New file.
2639 * tests/unistr/test-u8-strcoll.c: New file.
2641 Tests for module 'unistr/u32-strcmp'.
2642 * modules/unistr/u32-strcmp-tests: New file.
2643 * tests/unistr/test-u32-strcmp.c: New file.
2644 * tests/unistr/test-u32-strcmp.h: New file.
2646 Tests for module 'unistr/u16-strcmp'.
2647 * modules/unistr/u16-strcmp-tests: New file.
2648 * tests/unistr/test-u16-strcmp.c: New file.
2649 * tests/unistr/test-u16-strcmp.h: New file.
2651 Tests for module 'unistr/u8-strcmp'.
2652 * modules/unistr/u8-strcmp-tests: New file.
2653 * tests/unistr/test-u8-strcmp.c: New file.
2654 * tests/unistr/test-u8-strcmp.h: New file.
2655 * tests/unistr/test-strcmp.h: New file.
2657 Tests for module 'unistr/u32-strncat'.
2658 * modules/unistr/u32-strncat-tests: New file.
2659 * tests/unistr/test-u32-strncat.c: New file.
2661 Tests for module 'unistr/u16-strncat'.
2662 * modules/unistr/u16-strncat-tests: New file.
2663 * tests/unistr/test-u16-strncat.c: New file.
2665 Tests for module 'unistr/u8-strncat'.
2666 * modules/unistr/u8-strncat-tests: New file.
2667 * tests/unistr/test-u8-strncat.c: New file.
2668 * tests/unistr/test-strncat.h: New file.
2670 Tests for module 'unistr/u32-strcat'.
2671 * modules/unistr/u32-strcat-tests: New file.
2672 * tests/unistr/test-u32-strcat.c: New file.
2674 Tests for module 'unistr/u16-strcat'.
2675 * modules/unistr/u16-strcat-tests: New file.
2676 * tests/unistr/test-u16-strcat.c: New file.
2678 Tests for module 'unistr/u8-strcat'.
2679 * modules/unistr/u8-strcat-tests: New file.
2680 * tests/unistr/test-u8-strcat.c: New file.
2681 * tests/unistr/test-strcat.h: New file.
2683 Tests for module 'unistr/u32-stpncpy'.
2684 * modules/unistr/u32-stpncpy-tests: New file.
2685 * tests/unistr/test-u32-stpncpy.c: New file.
2687 Tests for module 'unistr/u16-stpncpy'.
2688 * modules/unistr/u16-stpncpy-tests: New file.
2689 * tests/unistr/test-u16-stpncpy.c: New file.
2691 Tests for module 'unistr/u8-stpncpy'.
2692 * modules/unistr/u8-stpncpy-tests: New file.
2693 * tests/unistr/test-u8-stpncpy.c: New file.
2694 * tests/unistr/test-stpncpy.h: New file.
2696 Tests for module 'unistr/u32-strncpy'.
2697 * modules/unistr/u32-strncpy-tests: New file.
2698 * tests/unistr/test-u32-strncpy.c: New file.
2700 Tests for module 'unistr/u16-strncpy'.
2701 * modules/unistr/u16-strncpy-tests: New file.
2702 * tests/unistr/test-u16-strncpy.c: New file.
2704 Tests for module 'unistr/u8-strncpy'.
2705 * modules/unistr/u8-strncpy-tests: New file.
2706 * tests/unistr/test-u8-strncpy.c: New file.
2707 * tests/unistr/test-strncpy.h: New file.
2709 Tests for module 'unistr/u32-stpcpy'.
2710 * modules/unistr/u32-stpcpy-tests: New file.
2711 * tests/unistr/test-u32-stpcpy.c: New file.
2713 Tests for module 'unistr/u16-stpcpy'.
2714 * modules/unistr/u16-stpcpy-tests: New file.
2715 * tests/unistr/test-u16-stpcpy.c: New file.
2717 Tests for module 'unistr/u8-stpcpy'.
2718 * modules/unistr/u8-stpcpy-tests: New file.
2719 * tests/unistr/test-u8-stpcpy.c: New file.
2720 * tests/unistr/test-stpcpy.h: New file.
2722 Tests for module 'unistr/u32-strcpy'.
2723 * modules/unistr/u32-strcpy-tests: New file.
2724 * tests/unistr/test-u32-strcpy.c: New file.
2726 Tests for module 'unistr/u16-strcpy'.
2727 * modules/unistr/u16-strcpy-tests: New file.
2728 * tests/unistr/test-u16-strcpy.c: New file.
2730 Tests for module 'unistr/u8-strcpy'.
2731 * modules/unistr/u8-strcpy-tests: New file.
2732 * tests/unistr/test-u8-strcpy.c: New file.
2733 * tests/unistr/test-strcpy.h: New file.
2735 Tests for module 'unistr/u32-strnlen'.
2736 * modules/unistr/u32-strnlen-tests: New file.
2737 * tests/unistr/test-u32-strnlen.c: New file.
2739 Tests for module 'unistr/u16-strnlen'.
2740 * modules/unistr/u16-strnlen-tests: New file.
2741 * tests/unistr/test-u16-strnlen.c: New file.
2743 Tests for module 'unistr/u8-strnlen'.
2744 * modules/unistr/u8-strnlen-tests: New file.
2745 * tests/unistr/test-u8-strnlen.c: New file.
2746 * tests/unistr/test-strnlen.h: New file.
2748 Tests for module 'unistr/u32-strlen'.
2749 * modules/unistr/u32-strlen-tests: New file.
2750 * tests/unistr/test-u32-strlen.c: New file.
2752 Tests for module 'unistr/u16-strlen'.
2753 * modules/unistr/u16-strlen-tests: New file.
2754 * tests/unistr/test-u16-strlen.c: New file.
2756 Tests for module 'unistr/u8-strlen'.
2757 * modules/unistr/u8-strlen-tests: New file.
2758 * tests/unistr/test-u8-strlen.c: New file.
2760 Tests for module 'unistr/u32-prev'.
2761 * modules/unistr/u32-prev-tests: New file.
2762 * tests/unistr/test-u32-prev.c: New file.
2764 Tests for module 'unistr/u16-prev'.
2765 * modules/unistr/u16-prev-tests: New file.
2766 * tests/unistr/test-u16-prev.c: New file.
2768 Tests for module 'unistr/u8-prev'.
2769 * modules/unistr/u8-prev-tests: New file.
2770 * tests/unistr/test-u8-prev.c: New file.
2772 Tests for module 'unistr/u32-next'.
2773 * modules/unistr/u32-next-tests: New file.
2774 * tests/unistr/test-u32-next.c: New file.
2776 Tests for module 'unistr/u16-next'.
2777 * modules/unistr/u16-next-tests: New file.
2778 * tests/unistr/test-u16-next.c: New file.
2780 Tests for module 'unistr/u8-next'.
2781 * modules/unistr/u8-next-tests: New file.
2782 * tests/unistr/test-u8-next.c: New file.
2784 Tests for module 'unistr/u32-strmbtouc'.
2785 * modules/unistr/u32-strmbtouc-tests: New file.
2786 * tests/unistr/test-u32-strmbtouc.c: New file.
2788 Tests for module 'unistr/u16-strmbtouc'.
2789 * modules/unistr/u16-strmbtouc-tests: New file.
2790 * tests/unistr/test-u16-strmbtouc.c: New file.
2792 Tests for module 'unistr/u8-strmbtouc'.
2793 * modules/unistr/u8-strmbtouc-tests: New file.
2794 * tests/unistr/test-u8-strmbtouc.c: New file.
2796 Tests for module 'unistr/u32-strmblen'.
2797 * modules/unistr/u32-strmblen-tests: New file.
2798 * tests/unistr/test-u32-strmblen.c: New file.
2800 Tests for module 'unistr/u16-strmblen'.
2801 * modules/unistr/u16-strmblen-tests: New file.
2802 * tests/unistr/test-u16-strmblen.c: New file.
2804 Tests for module 'unistr/u8-strmblen'.
2805 * modules/unistr/u8-strmblen-tests: New file.
2806 * tests/unistr/test-u8-strmblen.c: New file.
2808 Tests for module 'unistr/u32-cpy-alloc'.
2809 * modules/unistr/u32-cpy-alloc-tests: New file.
2810 * tests/unistr/test-u32-cpy-alloc.c: New file.
2812 Tests for module 'unistr/u16-cpy-alloc'.
2813 * modules/unistr/u16-cpy-alloc-tests: New file.
2814 * tests/unistr/test-u16-cpy-alloc.c: New file.
2816 Tests for module 'unistr/u8-cpy-alloc'.
2817 * modules/unistr/u8-cpy-alloc-tests: New file.
2818 * tests/unistr/test-u8-cpy-alloc.c: New file.
2819 * tests/unistr/test-cpy-alloc.h: New file.
2821 Tests for module 'unistr/u32-mbsnlen'.
2822 * modules/unistr/u32-mbsnlen-tests: New file.
2823 * tests/unistr/test-u32-mbsnlen.c: New file.
2825 Tests for module 'unistr/u16-mbsnlen'.
2826 * modules/unistr/u16-mbsnlen-tests: New file.
2827 * tests/unistr/test-u16-mbsnlen.c: New file.
2829 Tests for module 'unistr/u8-mbsnlen'.
2830 * modules/unistr/u8-mbsnlen-tests: New file.
2831 * tests/unistr/test-u8-mbsnlen.c: New file.
2833 Tests for module 'unistr/u32-chr'.
2834 * modules/unistr/u32-chr-tests: New file.
2835 * tests/unistr/test-u32-chr.c: New file.
2837 Tests for module 'unistr/u16-chr'.
2838 * modules/unistr/u16-chr-tests: New file.
2839 * tests/unistr/test-u16-chr.c: New file.
2841 Tests for module 'unistr/u8-chr'.
2842 * modules/unistr/u8-chr-tests: New file.
2843 * tests/unistr/test-u8-chr.c: New file.
2844 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2846 Tests for module 'unistr/u32-cmp2'.
2847 * modules/unistr/u32-cmp2-tests: New file.
2848 * tests/unistr/test-u32-cmp2.c: New file.
2850 Tests for module 'unistr/u16-cmp2'.
2851 * modules/unistr/u16-cmp2-tests: New file.
2852 * tests/unistr/test-u16-cmp2.c: New file.
2854 Tests for module 'unistr/u8-cmp2'.
2855 * modules/unistr/u8-cmp2-tests: New file.
2856 * tests/unistr/test-u8-cmp2.c: New file.
2857 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2859 Tests for module 'unistr/u32-cmp'.
2860 * modules/unistr/u32-cmp-tests: New file.
2861 * tests/unistr/test-u32-cmp.c: New file.
2863 Tests for module 'unistr/u16-cmp'.
2864 * modules/unistr/u16-cmp-tests: New file.
2865 * tests/unistr/test-u16-cmp.c: New file.
2867 Tests for module 'unistr/u8-cmp'.
2868 * modules/unistr/u8-cmp-tests: New file.
2869 * tests/unistr/test-u8-cmp.c: New file.
2870 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2872 Tests for module 'unistr/u32-set'.
2873 * modules/unistr/u32-set-tests: New file.
2874 * tests/unistr/test-u32-set.c: New file.
2876 Tests for module 'unistr/u16-set'.
2877 * modules/unistr/u16-set-tests: New file.
2878 * tests/unistr/test-u16-set.c: New file.
2880 Tests for module 'unistr/u8-set'.
2881 * modules/unistr/u8-set-tests: New file.
2882 * tests/unistr/test-u8-set.c: New file.
2883 * tests/unistr/test-set.h: New file.
2885 Tests for module 'unistr/u32-move'.
2886 * modules/unistr/u32-move-tests: New file.
2887 * tests/unistr/test-u32-move.c: New file.
2889 Tests for module 'unistr/u16-move'.
2890 * modules/unistr/u16-move-tests: New file.
2891 * tests/unistr/test-u16-move.c: New file.
2893 Tests for module 'unistr/u8-move'.
2894 * modules/unistr/u8-move-tests: New file.
2895 * tests/unistr/test-u8-move.c: New file.
2896 * tests/unistr/test-move.h: New file.
2898 Tests for module 'unistr/u32-cpy'.
2899 * modules/unistr/u32-cpy-tests: New file.
2900 * tests/unistr/test-u32-cpy.c: New file.
2902 Tests for module 'unistr/u16-cpy'.
2903 * modules/unistr/u16-cpy-tests: New file.
2904 * tests/unistr/test-u16-cpy.c: New file.
2906 Tests for module 'unistr/u8-cpy'.
2907 * modules/unistr/u8-cpy-tests: New file.
2908 * tests/unistr/test-u8-cpy.c: New file.
2909 * tests/unistr/test-cpy.h: New file.
2911 2010-01-09 Bruno Haible <bruno@clisp.org>
2913 Tests for module 'unistr/u32-uctomb'.
2914 * modules/unistr/u32-uctomb-tests: New file.
2915 * tests/unistr/test-u32-uctomb.c: New file.
2917 Tests for module 'unistr/u16-uctomb'.
2918 * modules/unistr/u16-uctomb-tests: New file.
2919 * tests/unistr/test-u16-uctomb.c: New file.
2921 Tests for module 'unistr/u8-uctomb'.
2922 * modules/unistr/u8-uctomb-tests: New file.
2923 * tests/unistr/test-u8-uctomb.c: New file.
2925 Tests for module 'unistr/u32-mbtoucr'.
2926 * modules/unistr/u32-mbtoucr-tests: New file.
2927 * tests/unistr/test-u32-mbtoucr.c: New file.
2929 Tests for module 'unistr/u16-mbtoucr'.
2930 * modules/unistr/u16-mbtoucr-tests: New file.
2931 * tests/unistr/test-u16-mbtoucr.c: New file.
2933 Tests for module 'unistr/u8-mbtoucr'.
2934 * modules/unistr/u8-mbtoucr-tests: New file.
2935 * tests/unistr/test-u8-mbtoucr.c: New file.
2937 Tests for module 'unistr/u32-mbtouc'.
2938 * modules/unistr/u32-mbtouc-tests: New file.
2939 * tests/unistr/test-u32-mbtouc.c: New file.
2941 Tests for module 'unistr/u16-mbtouc'.
2942 * modules/unistr/u16-mbtouc-tests: New file.
2943 * tests/unistr/test-u16-mbtouc.c: New file.
2945 Tests for module 'unistr/u8-mbtouc'.
2946 * modules/unistr/u8-mbtouc-tests: New file.
2947 * tests/unistr/test-u8-mbtouc.c: New file.
2949 Tests for module 'unistr/u32-mbtouc-unsafe'.
2950 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2951 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2952 * tests/unistr/test-u32-mbtouc.h: New file.
2954 Tests for module 'unistr/u16-mbtouc-unsafe'.
2955 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2956 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2957 * tests/unistr/test-u16-mbtouc.h: New file.
2959 Tests for module 'unistr/u8-mbtouc-unsafe'.
2960 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2961 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2962 * tests/unistr/test-u8-mbtouc.h: New file.
2964 Tests for module 'unistr/u32-mblen'.
2965 * modules/unistr/u32-mblen-tests: New file.
2966 * tests/unistr/test-u32-mblen.c: New file.
2968 Tests for module 'unistr/u16-mblen'.
2969 * modules/unistr/u16-mblen-tests: New file.
2970 * tests/unistr/test-u16-mblen.c: New file.
2972 Tests for module 'unistr/u8-mblen'.
2973 * modules/unistr/u8-mblen-tests: New file.
2974 * tests/unistr/test-u8-mblen.c: New file.
2976 Tests for module 'unistr/u32-to-u16'.
2977 * modules/unistr/u32-to-u16-tests: New file.
2978 * tests/unistr/test-u32-to-u16.c: New file.
2980 Tests for module 'unistr/u32-to-u8'.
2981 * modules/unistr/u32-to-u8-tests: New file.
2982 * tests/unistr/test-u32-to-u8.c: New file.
2984 Tests for module 'unistr/u16-to-u32'.
2985 * modules/unistr/u16-to-u32-tests: New file.
2986 * tests/unistr/test-u16-to-u32.c: New file.
2988 Tests for module 'unistr/u16-to-u8'.
2989 * modules/unistr/u16-to-u8-tests: New file.
2990 * tests/unistr/test-u16-to-u8.c: New file.
2992 Tests for module 'unistr/u8-to-u32'.
2993 * modules/unistr/u8-to-u32-tests: New file.
2994 * tests/unistr/test-u8-to-u32.c: New file.
2996 Tests for module 'unistr/u8-to-u16'.
2997 * modules/unistr/u8-to-u16-tests: New file.
2998 * tests/unistr/test-u8-to-u16.c: New file.
3000 Tests for module 'unistr/u32-check'.
3001 * modules/unistr/u32-check-tests: New file.
3002 * tests/unistr/test-u32-check.c: New file.
3004 Tests for module 'unistr/u16-check'.
3005 * modules/unistr/u16-check-tests: New file.
3006 * tests/unistr/test-u16-check.c: New file.
3008 Tests for module 'unistr/u8-check'.
3009 * modules/unistr/u8-check-tests: New file.
3010 * tests/unistr/test-u8-check.c: New file.
3012 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3013 (category_equals): New function.
3014 (main): Add more tests.
3015 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3017 * tests/unictype/test-bidi_byname.c (main): Add more tests.
3019 2010-01-10 Bruno Haible <bruno@clisp.org>
3021 unistr/u*-strcoll: Try harder to distinguish different strings.
3022 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3023 compare s1 and s2 to see if they are different.
3025 2010-01-10 Bruno Haible <bruno@clisp.org>
3027 unistr/u*-stpncpy: Fix the return value.
3028 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3029 description of the return value consistent with stpncpy in glibc.
3030 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3031 written non-NUL unit.
3033 2010-01-10 Bruno Haible <bruno@clisp.org>
3035 unistr/u*-next: Add missing dependencies.
3036 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3037 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3038 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3040 2010-01-10 Bruno Haible <bruno@clisp.org>
3042 unistr/u8-mbsnlen: Fix return value for incomplete character.
3043 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3045 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3046 Remove unistr/u8-mblen.
3047 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3049 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3050 Remove unistr/u16-mblen.
3052 2010-01-10 Bruno Haible <bruno@clisp.org>
3054 wchar: Fix compilation error when <wchar.h> is used from coreutils.
3055 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3056 Reported by Brian Gough <bjg@gnu.org> and
3057 Chris Clayton <chris2553@googlemail.com> via
3058 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3060 2010-01-09 Bruno Haible <bruno@clisp.org>
3062 unistr/u16-to-u32: Reject invalid input.
3063 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3065 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3066 Remove unistr/u16-mbtouc.
3068 unistr/u16-to-u8: Reject invalid input.
3069 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3071 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3072 Remove unistr/u16-mbtouc.
3074 unistr/u8-to-u32: Reject invalid input.
3075 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3077 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3078 Remove unistr/u8-mbtouc.
3080 unistr/u8-to-u16: Reject invalid input.
3081 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3083 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3084 Remove unistr/u8-mbtouc.
3086 2010-01-09 Bruno Haible <bruno@clisp.org>
3088 Tests for module 'getlogin'.
3089 * modules/getlogin-tests: New file.
3090 * tests/test-getlogin.c: New file.
3092 New module 'getlogin'.
3093 * lib/unistd.in.h (getlogin): New declaration.
3094 * lib/getlogin.c: New file.
3095 * m4/getlogin.m4: New file.
3096 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3098 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3100 * modules/getlogin: New file.
3101 * doc/posix-functions/getlogin.texi: Mention the new module.
3102 Reported by John W. Eaton <jwe@gnu.org>.
3104 2010-01-09 Bruno Haible <bruno@clisp.org>
3106 getlogin_r: Support for native Windows.
3107 * lib/getlogin_r.c: Include <windows.h>
3108 (getlogin_r): Implement for native Windows.
3109 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3110 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3111 via John W. Eaton <jwe@gnu.org>.
3113 2010-01-09 Bruno Haible <bruno@clisp.org>
3115 getlogin_r: Small fixes.
3116 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3118 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3119 before testing whether getlogin_r is declared. No need to set
3120 HAVE_DECL_GETLOGIN_R to 1.
3121 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3123 2010-01-09 Bruno Haible <bruno@clisp.org>
3125 * lib/unistd.in.h (getlogin_r): Add comment.
3127 2010-01-09 Bruno Haible <bruno@clisp.org>
3129 Tests for module 'getlogin_r'.
3130 * modules/getlogin_r-tests: New file.
3131 * tests/test-getlogin_r.c: New file.
3133 2010-01-09 Jim Meyering <meyering@redhat.com>
3135 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3136 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3137 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3139 2010-01-08 Simon Josefsson <simon@josefsson.org>
3141 * lib/dup2.c (rpl_dup2): Improve comment.
3143 2010-01-08 Eric Blake <ebb9@byu.net>
3145 maint.mk: allow packages to add makefile @@ exceptions
3146 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3147 (sc_makefile_check): Rename...
3148 (sc_makefile_at_at_check): ...to this, and use hook.
3150 dup2: work around mingw bug
3151 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3152 Reported by Simon Josefsson.
3154 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3156 glob: Fix C++ compilation.
3157 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3160 2010-01-07 Bruno Haible <bruno@clisp.org>
3162 Fix indentation of wctype.in.h, broken since 2007-01-06.
3163 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3165 2010-01-07 Bruno Haible <bruno@clisp.org>
3167 mbslen: Avoid collision with system function.
3168 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3169 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3170 * m4/mbslen.m4: New file.
3171 * modules/mbslen (Files): Add it.
3172 (configure.ac): Invoke gl_MBSLEN.
3173 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3174 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3175 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3176 via Ian Beckwith <ianb@erislabs.net>.
3178 2010-01-07 Bruno Haible <bruno@clisp.org>
3180 dirent: Document the last fix.
3181 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3183 2010-01-07 Bruno Haible <bruno@clisp.org>
3185 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3186 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3187 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3188 va_list are defined.
3189 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3190 Reported by Eric Blake.
3192 2010-01-07 Bruno Haible <bruno@clisp.org>
3194 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3195 * modules/xlist (Depends-on): Add 'list',
3196 * modules/xoset (Depends-on): Add 'oset'.
3197 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3199 2010-01-07 Bruno Haible <bruno@clisp.org>
3201 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3202 * doc/posix-functions/strncasecmp.texi: Likewise.
3204 2010-01-07 Bruno Haible <bruno@clisp.org>
3206 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3208 2010-01-07 John W. Eaton <jwe@octave.org>
3210 wctype: allow C++ use
3211 * lib/wctype.in.h: Add extern "C" block for C++.
3213 2010-01-06 Eric Blake <ebb9@byu.net>
3215 maint.mk: detect incorrect GFDL usage
3216 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3218 2010-01-06 Jim Meyering <meyering@redhat.com>
3219 and Eric Blake <ebb9@byu.net>
3221 maint.mk: ignore multi-line copyright in NEWS
3222 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3224 2010-01-06 Eric Blake <ebb9@byu.net>
3226 select: add missing dependency
3227 * modules/select-tests (Depends-on): Move sockets dependency...
3228 * modules/select (Depends-on): ...here.
3229 Reported by Ian Beckwith.
3231 doc: regenerate INSTALL
3232 * doc/INSTALL: Reflect recent autoconf update.
3233 * doc/INSTALL.ISO: Likewise.
3234 * doc/INSTALL.UTF-8: Likewise.
3236 pread: fix compilation on glibc
3237 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3238 Reported by Ralf Wildenhues.
3240 dirent: fix test failure
3241 * lib/dirent.in.h (includes): Guarantee ino_t.
3242 Reported by Ralf Wildenhues.
3244 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3246 linkat, renameat: avoid bad free
3247 * lib/at-func2.c (at_func2): Fix typo.
3248 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3250 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3252 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3253 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3254 to avoid failure of symlink test later.
3256 2010-01-06 Eric Blake <ebb9@byu.net>
3258 stdio, unistd: guarantee ssize_t
3259 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3260 2008 are exposed when needed.
3261 * lib/stdio.in.h (includes): Likewise.
3262 Reported by Ralf Wildenhues.
3264 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3266 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3267 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3268 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3270 2010-01-06 Jim Meyering <meyering@redhat.com>
3272 readtokens: this module *does* require xalloc.h
3273 It uses only functions that were omitted by the old syntax-check rule.
3274 * lib/readtokens.c: Include "xalloc.h" once again.
3275 * modules/readtokens (Depends-on): Add xalloc.
3276 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3278 2010-01-05 Eric Blake <ebb9@byu.net>
3280 maint: support 'make announcement' from a VPATH build
3281 * top/maint.mk (announcement): Look for correct NEWS file.
3283 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3285 utimens (fdutimens): ignore a negative FD, per contract
3286 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3287 when we have a valid file descriptor. Otherwise, using a brand
3288 new glibc (with just-patched futimens that now fails with EBADF)
3289 would cause this function to fail with ENOSYS.
3290 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3291 See also http://bugzilla.redhat.com/552320.
3293 2010-01-05 Eric Blake <ebb9@byu.net>
3295 strcase: document what it provides
3296 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3298 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3299 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3301 2010-01-05 Jim Meyering <meyering@redhat.com>
3303 maint: remove useless inclusions of "xalloc.h"
3304 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3305 * lib/readtokens.c: Likewise.
3306 * lib/same.c: Likewise.
3307 * modules/getloadavg (Depends-on): Remove xalloc.
3308 * modules/readtokens: Likewise.
3309 * modules/same: Likewise.
3311 maint.mk: include 4 more function names in alloca.h-checking regexp
3312 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3313 regexp. Before, we would give a false-positive (saying alloca.h
3314 is included unnecessarily) when the only uses involved omitted symbols.
3316 xalloc.h: use consistent formatting
3317 * lib/xalloc.h: Move declarations to start in the first column.
3319 2010-01-05 Eric Blake <ebb9@byu.net>
3322 * lib/mkdir.c (includes): Drop unused header.
3323 Reported by John W. Eaton.
3325 2010-01-04 Jim Meyering <meyering@redhat.com>
3327 nl_langinfo: avoid configure-time syntax error
3328 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3329 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3330 the empty string. Don't let that provoke a shell syntax error.
3332 regcomp, regexec, fnmatch: avoid array bounds read error
3333 * lib/regcomp.c (build_equiv_class): From glibc:
3334 Use only the low 24 bits of a findidx return value as an index
3335 into the weights array. Patch by Ulrich Drepper:
3336 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3337 * lib/regexec.c (check_node_accept_bytes): Likewise.
3338 * lib/fnmatch_loop.c (FCT): Likewise.
3340 regcomp: skip collseq lookup when there are no rules
3341 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3342 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3344 regcomp: recognize ill-formed { } expressions
3345 * lib/regcomp.c (parse_dup_op): From glibc:
3346 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3348 regcomp: fix typo in comment
3349 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3350 s/satisfy/satisfies/.
3352 regcomp: sync from glibc: remove dead store
3353 * lib/regcomp.c (duplicate_node_closure): Remove useless
3354 search_duplicated_node call and dead store.
3356 regcomp: sync from glibc; always use nl_langinfo
3357 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3358 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3359 * modules/regex (Depends-on): Add nl_langinfo.
3361 2010-01-04 Eric Blake <ebb9@byu.net>
3363 fdopendir: fix configure test
3364 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3366 2010-01-01 Bruno Haible <bruno@clisp.org>
3368 wchar: Remove unused configure check.
3369 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3371 2010-01-01 Eric Blake <ebb9@byu.net>
3373 headers: make check of system header explicit
3374 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3375 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3377 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3378 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3379 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3380 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3382 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3384 Suggested by Bruno Haible.
3386 2010-01-01 Jim Meyering <meyering@redhat.com>
3388 ChangeLog: tweak to eliminate unnecessary copyright line
3389 * ChangeLog: Remove a copyright line that was mistakenly updated
3390 by today's update-copyright run. Reported by Eric Blake.
3392 test-update-copyright: don't let envvar setting cause test failure
3393 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3395 2010-01-01 Bruno Haible <bruno@clisp.org>
3397 localename: Avoid gcc warning.
3398 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3399 function if it is not used.
3401 2010-01-01 Jim Meyering <meyering@redhat.com>
3403 update nearly all FSF copyright year lists to include 2010
3404 Use the same procedure as for 2009, outlined in
3405 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3407 version-etc: set COPYRIGHT_YEAR to 2010
3408 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3410 2009-12-31 Eric Blake <ebb9@byu.net>
3412 doc: correct availability of cygwin 1.5.x getopt
3413 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3415 * doc/posix-functions/opterr.texi (opterr): Likewise.
3416 * doc/posix-functions/optind.texi (optind): Likewise.
3417 * doc/posix-functions/optopt.texi (optopt): Likewise.
3418 * doc/posix-functions/tzname.texi (tzname): Likewise.
3420 openat: update maintainer
3421 * modules/openat (Maintainer): Add myself.
3423 utimens: avoid shadowing warning
3424 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3425 buffers into one, to avoid shadowing, as well as avoiding a
3427 Reported by Jim Meyering.
3429 test-dup2: avoid compiler warning
3430 * tests/test-dup2.c (is_inheritable): Only define if used.
3432 2010-01-01 Bruno Haible <bruno@clisp.org>
3434 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3435 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3436 defined, use wctomb instead of wcrtomb.
3438 2010-01-01 Bruno Haible <bruno@clisp.org>
3440 iconv: Reject native Solaris iconv.
3441 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3442 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3444 2009-12-31 Bruno Haible <bruno@clisp.org>
3446 * tests/test-signal.c (main): Remove test of 'SIG'.
3448 2009-12-31 Bruno Haible <bruno@clisp.org>
3450 spawn: Fix incomplete fix.
3451 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3452 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3453 warnings for GNULIB_POSIXCHECK again.
3454 Reported by Eric Blake.
3456 2009-12-31 Bruno Haible <bruno@clisp.org>
3458 Avoid namespace pollution on glibc systems.
3459 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3460 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3461 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3464 2009-12-31 Bruno Haible <bruno@clisp.org>
3466 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3467 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3468 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3469 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3470 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3471 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3472 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3474 2009-12-31 Bruno Haible <bruno@clisp.org>
3476 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3477 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3480 2009-12-31 Bruno Haible <bruno@clisp.org>
3482 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3485 2009-12-31 Bruno Haible <bruno@clisp.org>
3487 spawn: Fix misapplied patch.
3488 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3489 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3490 warnings for GNULIB_POSIXCHECK.
3492 2009-12-31 Bruno Haible <bruno@clisp.org>
3494 times: Update after sys_times changed.
3495 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3496 * modules/times (Files): Add it.
3497 (configure.ac): Invoke gl_FUNC_TIMES.
3499 2009-12-31 Bruno Haible <bruno@clisp.org>
3501 Use AC_C_INLINE where necessary.
3502 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3503 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3504 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3505 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3506 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3507 * m4/mbiter.m4 (gl_MBITER): Likewise.
3508 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3509 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3510 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3511 * modules/u64 (configure.ac): Likewise.
3513 2009-12-31 Bruno Haible <bruno@clisp.org>
3515 Use AC_C_INLINE instead of module 'inline' where possible.
3516 * modules/inline (Description): Clarify purpose.
3517 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3518 * modules/count-one-bits (Depends-on): Remove inline.
3519 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3520 * modules/openat (Depends-on): Remove inline.
3521 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3522 instead of depending on module 'inline'.
3523 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3524 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3525 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3526 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3527 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3528 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3529 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3530 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3531 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3532 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3533 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3534 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3535 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3536 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3537 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3538 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3539 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3540 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3542 * modules/unictype/property-ascii-hex-digit (Depends-on,
3543 configure.ac): Likewise.
3544 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3545 configure.ac): Likewise.
3546 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3547 configure.ac): Likewise.
3548 * modules/unictype/property-bidi-block-separator (Depends-on,
3549 configure.ac): Likewise.
3550 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3551 configure.ac): Likewise.
3552 * modules/unictype/property-bidi-common-separator (Depends-on,
3553 configure.ac): Likewise.
3554 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3556 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3557 configure.ac): Likewise.
3558 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3559 configure.ac): Likewise.
3560 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3561 configure.ac): Likewise.
3562 * modules/unictype/property-bidi-european-digit (Depends-on,
3563 configure.ac): Likewise.
3564 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3565 configure.ac): Likewise.
3566 * modules/unictype/property-bidi-left-to-right (Depends-on,
3567 configure.ac): Likewise.
3568 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3569 configure.ac): Likewise.
3570 * modules/unictype/property-bidi-other-neutral (Depends-on,
3571 configure.ac): Likewise.
3572 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3574 * modules/unictype/property-bidi-segment-separator (Depends-on,
3575 configure.ac): Likewise.
3576 * modules/unictype/property-bidi-whitespace (Depends-on,
3577 configure.ac): Likewise.
3578 * modules/unictype/property-combining (Depends-on, configure.ac):
3580 * modules/unictype/property-composite (Depends-on, configure.ac):
3582 * modules/unictype/property-currency-symbol (Depends-on,
3583 configure.ac): Likewise.
3584 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3585 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3587 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3588 configure.ac): Likewise.
3589 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3591 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3593 * modules/unictype/property-extender (Depends-on, configure.ac):
3595 * modules/unictype/property-format-control (Depends-on, configure.ac):
3597 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3599 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3601 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3603 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3605 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3607 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3609 * modules/unictype/property-id-start (Depends-on, configure.ac):
3611 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3613 * modules/unictype/property-ids-binary-operator (Depends-on,
3614 configure.ac): Likewise.
3615 * modules/unictype/property-ids-trinary-operator (Depends-on,
3616 configure.ac): Likewise.
3617 * modules/unictype/property-ignorable-control (Depends-on,
3618 configure.ac): Likewise.
3619 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3621 * modules/unictype/property-join-control (Depends-on, configure.ac):
3623 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3625 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3627 * modules/unictype/property-logical-order-exception (Depends-on,
3628 configure.ac): Likewise.
3629 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3631 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3632 * modules/unictype/property-non-break (Depends-on, configure.ac):
3634 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3636 * modules/unictype/property-numeric (Depends-on, configure.ac):
3638 * modules/unictype/property-other-alphabetic (Depends-on,
3639 configure.ac): Likewise.
3640 * modules/unictype/property-other-default-ignorable-code-point
3641 (Depends-on, configure.ac): Likewise.
3642 * modules/unictype/property-other-grapheme-extend (Depends-on,
3643 configure.ac): Likewise.
3644 * modules/unictype/property-other-id-continue (Depends-on,
3645 configure.ac): Likewise.
3646 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3648 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3650 * modules/unictype/property-other-math (Depends-on, configure.ac):
3652 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3654 * modules/unictype/property-paired-punctuation (Depends-on,
3655 configure.ac): Likewise.
3656 * modules/unictype/property-paragraph-separator (Depends-on,
3657 configure.ac): Likewise.
3658 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3660 * modules/unictype/property-pattern-white-space (Depends-on,
3661 configure.ac): Likewise.
3662 * modules/unictype/property-private-use (Depends-on, configure.ac):
3664 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3666 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3668 * modules/unictype/property-radical (Depends-on, configure.ac):
3670 * modules/unictype/property-sentence-terminal (Depends-on,
3671 configure.ac): Likewise.
3672 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3674 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3675 * modules/unictype/property-terminal-punctuation (Depends-on,
3676 configure.ac): Likewise.
3677 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3679 * modules/unictype/property-unassigned-code-value (Depends-on,
3680 configure.ac): Likewise.
3681 * modules/unictype/property-unified-ideograph (Depends-on,
3682 configure.ac): Likewise.
3683 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3685 * modules/unictype/property-variation-selector (Depends-on,
3686 configure.ac): Likewise.
3687 * modules/unictype/property-white-space (Depends-on, configure.ac):
3689 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3691 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3693 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3695 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3696 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3699 2009-12-31 Bruno Haible <bruno@clisp.org>
3701 Remove unnecessary AC_C_INLINE invocation.
3702 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3705 2009-12-31 Jim Meyering <meyering@redhat.com>
3707 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3708 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3709 With this change, we can all remove the gpg_key_ID = ... definition
3710 from our respective cfg.mk files.
3712 maint.mk: create announcement template in ~/, not in /tmp
3713 * top/maint.mk (emit_upload_commands): Adjust.
3714 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3715 Remove temporary file, .ci-msg.
3717 2009-12-31 Eric Blake <ebb9@byu.net>
3719 link-warning: always build headers with link warnings
3720 * modules/arpa_inet (Makefile.am): Always build replacement
3722 * modules/ctype (Makefile.am): Likewise.
3723 * modules/dirent (Makefile.am): Likewise.
3724 * modules/inttypes (Makefile.am): Likewise.
3725 * modules/langinfo (Makefile.am): Likewise.
3726 * modules/locale (Makefile.am): Likewise.
3727 * modules/spawn (Makefile.am): Likewise.
3728 * modules/sys_file (Makefile.am): Likewise.
3729 * modules/sys_ioctl (Makefile.am): Likewise.
3730 * modules/sys_select (Makefile.am): Likewise.
3731 * modules/sys_socket (Makefile.am): Likewise.
3732 * modules/sys_times (Makefile.am): Likewise.
3733 * modules/sys_utsname (Makefile.am): Likewise.
3734 * modules/sys_wait (Makefile.am): Likewise.
3735 * modules/wchar (Makefile.am): Likewise.
3736 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3737 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3738 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3739 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3740 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3742 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3743 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3744 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3746 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3748 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3749 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3750 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3751 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3752 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3753 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3754 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3755 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3756 (gl_WCHAR_H_DEFAULTS): Likewise.
3758 2009-12-31 Eric Blake <ebb9@byu.net>
3760 signal, spawn: use link warnings
3761 * lib/signal.in.h (sigset_t): Make unconditional.
3762 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3763 (sigpending, sigprocmask, sigaction): Add link warnings.
3764 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3765 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3766 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3767 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3768 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3769 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3770 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3771 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3772 (posix_spawn_file_actions_destroy)
3773 (posix_spawn_file_actions_addopen)
3774 (posix_spawn_file_actions_addclose)
3775 (posix_spawn_file_actions_adddup2): Likewise.
3776 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3777 * tests/test-signal.c (main): Enhance test.
3779 spawn: improve wrapper support
3780 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3781 (gl_SPAWN_H_DEFAULTS): New defaults.
3782 * modules/spawn (Makefile.am): Substitute them.
3783 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3784 Only declare if missing or broken.
3786 sys_times, sys_utsname: use include_next
3787 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3789 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3790 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3791 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3792 * modules/sys_times (Depends-on): Add include_next.
3793 (Makefile.am): Substitute additional values.
3794 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3795 * lib/sys_times.in.h (includes): Include native header, if
3797 * lib/sys_utsname.in.h (includes): Likewise.
3798 * tests/test-sys_times.c (main): Enhance test.
3800 fdutimensat: revert prior patch
3801 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3803 Reported by Bruno Haible.
3805 2009-12-30 Eric Blake <ebb9@byu.net>
3807 sys_wait: drop link-warning dependency
3808 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3809 link-warning efforts.
3810 * lib/sys_wait.in.h: Likewise.
3812 fdutimensat: remove bogus dependency
3813 * modules/fdutimensat (Depends-on): Drop inline.
3816 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3818 2009-12-30 Bruno Haible <bruno@clisp.org>
3820 Fix compilation error with Solaris cc.
3821 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3822 * lib/unicase/u16-is-invariant.c: Likewise.
3823 * lib/unicase/u32-is-invariant.c: Likewise.
3824 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3826 2009-12-30 Bruno Haible <bruno@clisp.org>
3829 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3831 Reported by Simon Josefsson <simon@josefsson.org>.
3833 2009-12-30 Bruno Haible <bruno@clisp.org>
3835 Fix compilation error on most platforms.
3836 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3837 Reported by Simon Josefsson <simon@josefsson.org>
3838 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3840 2009-12-30 Eric Blake <ebb9@byu.net>
3842 futimens, utimensat: work around ntfs-3g bug
3843 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3844 a ctime bug is present, and expand workaround to cover ntfs-3g.
3845 * lib/utimens.c (fdutimens, lutimens): Likewise.
3846 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3847 (validate_timespec): Adjust return value.
3848 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3849 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3850 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3852 2009-12-29 Eric Blake <ebb9@byu.net>
3854 link-warning: make usage consistent
3855 * modules/ctype (Depends-on): Add link-warning.
3856 (Makefile.am): Update rules accordingly.
3857 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3858 * modules/locale (Depends-on, Makefile.am): Likewise.
3859 * modules/sys_file (Makefile.am): Likewise.
3860 * modules/getopt-posix (Makefile.am): Delete unused link warning
3862 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3863 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3864 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3865 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3867 stdio: remove unused variables
3868 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3869 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3870 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3872 tests: test more substitute headers
3873 * modules/ctype-tests: New file.
3874 * modules/dirent-tests: Likewise.
3875 * modules/spawn-tests: Likewise.
3876 * modules/sys_file-tests: Likewise.
3877 * modules/sys_ioctl-tests: Likewise.
3878 * modules/sys_wait-tests: Likewise.
3879 * tests/test-ctype.c: Likewise.
3880 * tests/test-dirent.c: Likewise.
3881 * tests/test-spawn.c: Likewise.
3882 * tests/test-sys_file.c: Likewise.
3883 * tests/test-sys_ioctl.c: Likewise.
3884 * tests/test-sys_wait.c: Likewise.
3885 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3886 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3887 whether or not flock is in use.
3889 tests: remove License section from module
3890 * modules/arpa_inet-tests: Remove unneeded section.
3891 * modules/byteswap-tests: Likewise.
3892 * modules/ceilf-tests: Likewise.
3893 * modules/ceill-tests: Likewise.
3894 * modules/crypto/des-tests: Likewise.
3895 * modules/crypto/gc-arcfour-tests: Likewise.
3896 * modules/crypto/gc-arctwo-tests: Likewise.
3897 * modules/crypto/gc-des-tests: Likewise.
3898 * modules/crypto/gc-hmac-md5-tests: Likewise.
3899 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3900 * modules/crypto/gc-md2-tests: Likewise.
3901 * modules/crypto/gc-md4-tests: Likewise.
3902 * modules/crypto/gc-md5-tests: Likewise.
3903 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3904 * modules/crypto/gc-rijndael-tests: Likewise.
3905 * modules/crypto/gc-sha1-tests: Likewise.
3906 * modules/crypto/gc-tests: Likewise.
3907 * modules/crypto/md2-tests: Likewise.
3908 * modules/crypto/md4-tests: Likewise.
3909 * modules/fcntl-h-tests: Likewise.
3910 * modules/floorf-tests: Likewise.
3911 * modules/floorl-tests: Likewise.
3912 * modules/frexp-nolibm-tests: Likewise.
3913 * modules/frexp-tests: Likewise.
3914 * modules/frexpl-nolibm-tests: Likewise.
3915 * modules/frexpl-tests: Likewise.
3916 * modules/getaddrinfo-tests: Likewise.
3917 * modules/inttypes-tests: Likewise.
3918 * modules/isfinite-tests: Likewise.
3919 * modules/isinf-tests: Likewise.
3920 * modules/ldexpl-tests: Likewise.
3921 * modules/locale-tests: Likewise.
3922 * modules/math-tests: Likewise.
3923 * modules/netdb-tests: Likewise.
3924 * modules/netinet_in-tests: Likewise.
3925 * modules/printf-frexp-tests: Likewise.
3926 * modules/printf-frexpl-tests: Likewise.
3927 * modules/priv-set-tests: Likewise.
3928 * modules/random_r-tests: Likewise.
3929 * modules/round-tests: Likewise.
3930 * modules/roundf-tests: Likewise.
3931 * modules/roundl-tests: Likewise.
3932 * modules/search-tests: Likewise.
3933 * modules/select-tests: Likewise.
3934 * modules/signal-tests: Likewise.
3935 * modules/stdbool-tests: Likewise.
3936 * modules/stddef-tests: Likewise.
3937 * modules/stdint-tests: Likewise.
3938 * modules/stdio-tests: Likewise.
3939 * modules/stdlib-tests: Likewise.
3940 * modules/string-tests: Likewise.
3941 * modules/strings-tests: Likewise.
3942 * modules/sys_select-tests: Likewise.
3943 * modules/sys_socket-tests: Likewise.
3944 * modules/sys_stat-tests: Likewise.
3945 * modules/sys_time-tests: Likewise.
3946 * modules/sys_utsname-tests: Likewise.
3947 * modules/sysexits-tests: Likewise.
3948 * modules/time-tests: Likewise.
3949 * modules/trunc-tests: Likewise.
3950 * modules/truncf-tests: Likewise.
3951 * modules/truncl-tests: Likewise.
3952 * modules/tsearch-tests: Likewise.
3953 * modules/unistd-tests: Likewise.
3954 * modules/wchar-tests: Likewise.
3955 * modules/wctype-tests: Likewise.
3957 tests: fix license on several tests
3958 * tests/test-des.c: Update to GPLv3+.
3959 * tests/test-flock.c: Likewise.
3960 * tests/test-fsync.c: Likewise.
3961 * tests/test-futimens.h: Likewise.
3962 * tests/test-gc-arcfour.c: Likewise.
3963 * tests/test-gc-arctwo.c: Likewise.
3964 * tests/test-gc-des.c: Likewise.
3965 * tests/test-gc-hmac-md5.c: Likewise.
3966 * tests/test-gc-hmac-sha1.c: Likewise.
3967 * tests/test-gc-md2.c: Likewise.
3968 * tests/test-gc-md4.c: Likewise.
3969 * tests/test-gc-md5.c: Likewise.
3970 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3971 * tests/test-gc-rijndael.c: Likewise.
3972 * tests/test-gc-sha1.c: Likewise.
3973 * tests/test-gc.c: Likewise.
3974 * tests/test-getcwd.c: Likewise.
3975 * tests/test-link.c: Likewise.
3976 * tests/test-link.h: Likewise.
3977 * tests/test-lutimens.h: Likewise.
3978 * tests/test-md2.c: Likewise.
3979 * tests/test-md4.c: Likewise.
3980 * tests/test-mkdir.h: Likewise.
3981 * tests/test-rename.c: Likewise.
3982 * tests/test-rename.h: Likewise.
3983 * tests/test-safe-alloc.c: Likewise.
3984 * tests/test-utimens-common.h: Likewise.
3985 * tests/test-utimens.h: Likewise.
3987 maint: sync license texts
3988 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3989 * doc/gpl-3.0.texi: Revert copyright year update.
3990 * doc/lgpl-3.0.texi: Likewise.
3992 2009-12-29 Jim Meyering <meyering@redhat.com>
3994 update nearly all FSF copyright year lists to include 2009
3995 The files named by the following are exempted:
3996 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3997 test -f "$dst" && { echo "$dst"; continue; }
3998 test -d "$dst" || continue
3999 echo "$dst"/$(basename "$src")
4001 git ls-files tests/unictype >> exempt
4002 In the remaining files, convert to all-interval notation if
4003 - there is already at least one year interval like 2000-2003
4004 - the file is maintained by me
4005 - the file is in lib/uni*/, where that style already prevails
4006 Otherwise, use update-copyright's default.
4008 2009-12-29 Simon Josefsson <simon@josefsson.org>
4009 and Eric Blake <ebb9@byu.net>
4011 tests: don't require debug system() to pass
4012 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4013 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4014 * tests/test-unlink.h (test_unlink_func): Likewise.
4015 * tests/test-fstatat.c (main): ...into callers.
4016 * tests/test-lstat.c (main): Likewise.
4017 * tests/test-rmdir.c (main): Likewise.
4018 * tests/test-unlink.c (main): Likewise.
4019 * tests/test-unlinkat.c (main): Likewise.
4020 * tests/test-areadlink-with-size.c (main): Don't require a
4021 debug-only system call to pass, aiding cross-testing to mingw.
4022 * tests/test-areadlink.c (main): Likewise.
4023 * tests/test-areadlinkat-with-size.c (main): Likewise.
4024 * tests/test-areadlinkat.c (main): Likewise.
4025 * tests/test-canonicalize-lgpl.c (main): Likewise.
4026 * tests/test-canonicalize.c (main): Likewise.
4027 * tests/test-chown.c (main): Likewise.
4028 * tests/test-fchownat.c (main): Likewise.
4029 * tests/test-lchown.c (main): Likewise.
4030 * tests/test-fdutimensat.c (main): Likewise.
4031 * tests/test-futimens.c (main): Likewise.
4032 * tests/test-link.c (main): Likewise.
4033 * tests/test-linkat.c (main): Likewise.
4034 * tests/test-mkdir.c (main): Likewise.
4035 * tests/test-mkdirat.c (main): Likewise.
4036 * tests/test-mkfifo.c (main): Likewise.
4037 * tests/test-mkfifoat.c (main): Likewise.
4038 * tests/test-mknod.c (main): Likewise.
4039 * tests/test-readlink.c (main): Likewise.
4040 * tests/test-remove.c (main): Likewise.
4041 * tests/test-rename.c (main): Likewise.
4042 * tests/test-renameat.c (main): Likewise.
4043 * tests/test-symlink.c (main): Likewise.
4044 * tests/test-symlinkat.c (main): Likewise.
4045 * tests/test-utimens.c (main): Likewise.
4046 * tests/test-utimensat.c (main): Likewise.
4048 2009-12-29 Simon Josefsson <simon@josefsson.org>
4050 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4051 on $(UNUSED_PARAMETER_H) to avoid build failure.
4053 2009-12-28 Jim Meyering <meyering@redhat.com>
4055 update-copyright: you may specify a max. line length other than 72
4056 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4058 maint: use consistent FSF copyright line syntax
4059 * lib/posixtm.c: Add missing comma in FSF copyright line.
4060 * lib/posixtm.h: Likewise.
4061 * lib/getugroups.c: Add missing ", Inc.".
4063 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4064 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4065 FSF copyright line. Remove trailing blanks.
4067 2009-12-28 Eric Blake <ebb9@byu.net>
4069 test-dup2: reduce dependencies
4070 * modules/cloexec (Configure.ac): Set witness.
4071 * modules/dup2-tests (Depends-on): Drop cloexec.
4072 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4074 Suggested by Bruno Haible.
4076 2009-12-26 Bruno Haible <bruno@clisp.org>
4078 Remove an unneeded dependency.
4079 * modules/fseterr (Depends-on): Remove dup2.
4081 2009-12-26 Eric Blake <ebb9@byu.net>
4083 tests: use macros.h in more places
4084 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4085 (ASSERT_STREAM): Provide default of stderr.
4086 * tests/test-dirent-safer.c: Include macros.h, using alternate
4087 stream for assertions.
4088 * tests/test-dup-safer.c: Likewise.
4089 * tests/test-freopen-safer.c: Likewise.
4090 * tests/test-getopt.c: Likewise.
4091 * tests/test-openat-safer.c: Likewise.
4092 * tests/test-pipe.c: Likewise.
4093 * tests/test-popen-safer.c: Likewise.
4094 * modules/dirent-safer-tests (Files): Include macros.h.
4095 * modules/unistd-safer-tests (Files): Likewise.
4096 * modules/freopen-safer-tests (Files): Likewise.
4097 * modules/getopt-posix-tests (Files): Likewise.
4098 * modules/openat-safer-tests (Files): Likewise.
4099 * modules/pipe-tests (Files): Likewise.
4101 2009-12-26 Bruno Haible <bruno@clisp.org>
4103 javacomp: Portability fix.
4104 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4105 that it also works on Solaris.
4107 2009-12-26 Bruno Haible <bruno@clisp.org>
4109 localename: Fix storage allocation of gl_locale_name_thread's result.
4110 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4111 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4112 all platforms that have 'uselocale'.
4113 (gl_locale_name_thread_unsafe): New function, extracted from
4114 gl_locale_name_thread.
4115 (gl_locale_name_thread): Call struniq on all platforms that have
4117 * tests/test-localename.c (test_locale_name_thread): Check that the
4118 resulting strings are permanently allocated.
4119 * modules/localename-tests (Depends-on): Add strdup.
4121 2009-12-26 Bruno Haible <bruno@clisp.org>
4123 * tests/test-localename.c (categories): Fill in the strings.
4125 2009-12-26 Jim Meyering <meyering@redhat.com>
4127 isdir: complete the removal of m4/isdir.m4
4128 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4130 isdir: clean up, since at least grep still uses it
4131 * lib/isdir.c: Include "isdir.h".
4132 (S_ISDIR): Remove now-unneeded definition.
4133 * modules/isdir (Files): Add lib/isdir.h.
4134 * lib/isdir.h: New file, with declaration.
4135 * m4/isdir.m4: Remove file -- unneeded.
4137 2009-12-25 Bruno Haible <bruno@clisp.org>
4139 selinux-h: Make generated .h files standalone.
4140 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4141 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4142 * lib/se-selinux.in.h: Likewise.
4143 * modules/selinux-h (Depends-on): Add unused-parameter.
4144 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4145 selinux/selinux.h and selinux/context.h.
4146 Suggested by Eric Blake.
4148 2009-12-25 Bruno Haible <bruno@clisp.org>
4150 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4151 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4152 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4153 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4154 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4156 2009-12-24 Bruno Haible <bruno@clisp.org>
4158 openat: Fix warning.
4159 * lib/openat-proc.c: Include <unistd.h>.
4161 2009-12-24 Bruno Haible <bruno@clisp.org>
4163 New module 'unused-parameter'.
4164 * build-aux/unused-parameter.h: New file, extracted from earlier
4166 * modules/unused-parameter: New file.
4167 * lib/unistr.h: Include unused-parameter.h.
4168 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4170 * modules/unistr/base (Depends-on): Add unused-parameter.
4172 2009-12-24 Bruno Haible <bruno@clisp.org>
4174 Add missing dependencies to 'extensions' module.
4175 * m4/extensions.m4: Add comment.
4176 * modules/accept4 (Depends-on): Add extensions.
4177 * modules/dup3 (Depends-on): Likewise.
4178 * modules/fcntl (Depends-on): Likewise.
4179 * modules/futimens (Depends-on): Likewise.
4180 * modules/mknod (Depends-on): Likewise.
4181 * modules/pipe2 (Depends-on): Likewise.
4182 * modules/stat-time (Depends-on): Likewise.
4183 * modules/strcasestr-simple (Depends-on): Likewise.
4184 * modules/strsignal (Depends-on): Likewise.
4185 * modules/utimensat (Depends-on): Likewise.
4186 * modules/localcharset (Depends-on): Likewise. Needed because of
4188 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4190 * modules/wcsnrtombs (Depends-on): Likewise.
4191 * modules/wcsrtombs (Depends-on): Likewise.
4193 2009-12-24 Bruno Haible <bruno@clisp.org>
4195 binary-io: Avoid gcc warning due to SET_BINARY.
4196 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4197 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4199 2009-12-24 Bruno Haible <bruno@clisp.org>
4201 Avoid future namespace pollution on glibc systems.
4202 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4203 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4204 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4207 2009-12-24 Bruno Haible <bruno@clisp.org>
4209 Refactor common macros used in tests.
4210 * tests/macros.h: New file.
4211 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4212 and/or <stdlib.h>, if appropriate.
4213 (ASSERT, SIZEOF): Remove macros.
4214 * tests/test-areadlink-with-size.c: Likewise.
4215 * tests/test-areadlinkat.c: Likewise.
4216 * tests/test-areadlinkat-with-size.c: Likewise.
4217 * tests/test-argmatch.c: Likewise.
4218 * tests/test-argv-iter.c: Likewise.
4219 * tests/test-array-mergesort.c: Likewise.
4220 * tests/test-array_list.c: Likewise.
4221 * tests/test-array_oset.c: Likewise.
4222 * tests/test-avltree_list.c: Likewise.
4223 * tests/test-avltree_oset.c: Likewise.
4224 * tests/test-avltreehash_list.c: Likewise.
4225 * tests/test-base64.c: Likewise.
4226 * tests/test-binary-io.c: Likewise.
4227 * tests/test-bitrotate.c: Likewise.
4228 * tests/test-btowc.c: Likewise.
4229 * tests/test-byteswap.c: Likewise.
4230 * tests/test-c-ctype.c: Likewise.
4231 * tests/test-c-stack.c: Likewise.
4232 * tests/test-c-strcasecmp.c: Likewise.
4233 * tests/test-c-strcasestr.c: Likewise.
4234 * tests/test-c-strncasecmp.c: Likewise.
4235 * tests/test-c-strstr.c: Likewise.
4236 * tests/test-canonicalize-lgpl.c: Likewise.
4237 * tests/test-canonicalize.c: Likewise.
4238 * tests/test-carray_list.c: Likewise.
4239 * tests/test-ceilf1.c: Likewise.
4240 * tests/test-ceilf2.c: Likewise.
4241 * tests/test-ceill.c: Likewise.
4242 * tests/test-chown.c: Likewise.
4243 * tests/test-cloexec.c: Likewise.
4244 * tests/test-copy-acl.c: Likewise.
4245 * tests/test-copy-file.c: Likewise.
4246 * tests/test-count-one-bits.c: Likewise.
4247 * tests/test-dprintf-posix.c: Likewise.
4248 * tests/test-dup2.c: Likewise.
4249 * tests/test-dup3.c: Likewise.
4250 * tests/test-duplocale.c: Likewise.
4251 * tests/test-fbufmode.c: Likewise.
4252 * tests/test-fchdir.c: Likewise.
4253 * tests/test-fchownat.c: Likewise.
4254 * tests/test-fcntl-safer.c: Likewise.
4255 * tests/test-fcntl.c: Likewise.
4256 * tests/test-fdopendir.c: Likewise.
4257 * tests/test-fdutimensat.c: Likewise.
4258 * tests/test-fflush2.c: Likewise.
4259 * tests/test-file-has-acl.c: Likewise.
4260 * tests/test-filevercmp.c: Likewise.
4261 * tests/test-flock.c: Likewise.
4262 * tests/test-floorf1.c: Likewise.
4263 * tests/test-floorf2.c: Likewise.
4264 * tests/test-floorl.c: Likewise.
4265 * tests/test-fnmatch.c: Likewise.
4266 * tests/test-fopen.h: Likewise.
4267 * tests/test-fpending.c: Likewise.
4268 * tests/test-fprintf-posix.c: Likewise.
4269 * tests/test-fpurge.c: Likewise.
4270 * tests/test-freadable.c: Likewise.
4271 * tests/test-freadahead.c: Likewise.
4272 * tests/test-freading.c: Likewise.
4273 * tests/test-freadptr.c: Likewise.
4274 * tests/test-freadptr2.c: Likewise.
4275 * tests/test-freadseek.c: Likewise.
4276 * tests/test-freopen.c: Likewise.
4277 * tests/test-frexp.c: Likewise.
4278 * tests/test-frexpl.c: Likewise.
4279 * tests/test-fseek.c: Likewise.
4280 * tests/test-fseeko.c: Likewise.
4281 * tests/test-fstatat.c: Likewise.
4282 * tests/test-fstrcmp.c: Likewise.
4283 * tests/test-fsync.c: Likewise.
4284 * tests/test-ftell.c: Likewise.
4285 * tests/test-ftello.c: Likewise.
4286 * tests/test-func.c: Likewise.
4287 * tests/test-futimens.c: Likewise.
4288 * tests/test-fwritable.c: Likewise.
4289 * tests/test-fwriting.c: Likewise.
4290 * tests/test-getcwd.c: Likewise.
4291 * tests/test-getdate.c: Likewise.
4292 * tests/test-getdelim.c: Likewise.
4293 * tests/test-getdtablesize.c: Likewise.
4294 * tests/test-getgroups.c: Likewise.
4295 * tests/test-getline.c: Likewise.
4296 * tests/test-getndelim2.c: Likewise.
4297 * tests/test-glob.c: Likewise.
4298 * tests/test-hash.c: Likewise.
4299 * tests/test-i-ring.c: Likewise.
4300 * tests/test-iconv-utf.c: Likewise.
4301 * tests/test-iconv.c: Likewise.
4302 * tests/test-idpriv-drop.c: Likewise.
4303 * tests/test-idpriv-droptemp.c: Likewise.
4304 * tests/test-inet_ntop.c: Likewise.
4305 * tests/test-inet_pton.c: Likewise.
4306 * tests/test-isblank.c: Likewise.
4307 * tests/test-isfinite.c: Likewise.
4308 * tests/test-isinf.c: Likewise.
4309 * tests/test-isnan.c: Likewise.
4310 * tests/test-isnand.h: Likewise.
4311 * tests/test-isnanf.h: Likewise.
4312 * tests/test-isnanl.h: Likewise.
4313 * tests/test-lchown.c: Likewise.
4314 * tests/test-ldexpl.c: Likewise.
4315 * tests/test-link.c: Likewise.
4316 * tests/test-linkat.c: Likewise.
4317 * tests/test-linked_list.c: Likewise.
4318 * tests/test-linkedhash_list.c: Likewise.
4319 * tests/test-localename.c: Likewise.
4320 * tests/test-lseek.c: Likewise.
4321 * tests/test-lstat.c: Likewise.
4322 * tests/test-mbmemcasecmp.c: Likewise.
4323 * tests/test-mbmemcasecoll.c: Likewise.
4324 * tests/test-mbrtowc.c: Likewise.
4325 * tests/test-mbscasecmp.c: Likewise.
4326 * tests/test-mbscasestr1.c: Likewise.
4327 * tests/test-mbscasestr2.c: Likewise.
4328 * tests/test-mbscasestr3.c: Likewise.
4329 * tests/test-mbscasestr4.c: Likewise.
4330 * tests/test-mbschr.c: Likewise.
4331 * tests/test-mbscspn.c: Likewise.
4332 * tests/test-mbsinit.c: Likewise.
4333 * tests/test-mbsncasecmp.c: Likewise.
4334 * tests/test-mbsnrtowcs.c: Likewise.
4335 * tests/test-mbspbrk.c: Likewise.
4336 * tests/test-mbspcasecmp.c: Likewise.
4337 * tests/test-mbsrchr.c: Likewise.
4338 * tests/test-mbsrtowcs.c: Likewise.
4339 * tests/test-mbsspn.c: Likewise.
4340 * tests/test-mbsstr1.c: Likewise.
4341 * tests/test-mbsstr2.c: Likewise.
4342 * tests/test-mbsstr3.c: Likewise.
4343 * tests/test-memchr.c: Likewise.
4344 * tests/test-memchr2.c: Likewise.
4345 * tests/test-memcmp.c: Likewise.
4346 * tests/test-memmem.c: Likewise.
4347 * tests/test-memrchr.c: Likewise.
4348 * tests/test-mkdir.c: Likewise.
4349 * tests/test-mkdirat.c: Likewise.
4350 * tests/test-mkfifo.c: Likewise.
4351 * tests/test-mkfifoat.c: Likewise.
4352 * tests/test-mknod.c: Likewise.
4353 * tests/test-nanosleep.c: Likewise.
4354 * tests/test-nl_langinfo.c: Likewise.
4355 * tests/test-obstack-printf.c: Likewise.
4356 * tests/test-open.c: Likewise.
4357 * tests/test-openat.c: Likewise.
4358 * tests/test-pipe-filter-gi1.c: Likewise.
4359 * tests/test-pipe-filter-gi2-main.c: Likewise.
4360 * tests/test-pipe-filter-ii1.c: Likewise.
4361 * tests/test-pipe-filter-ii2-main.c: Likewise.
4362 * tests/test-pipe2.c: Likewise.
4363 * tests/test-popen.h: Likewise.
4364 * tests/test-posixtm.c: Likewise.
4365 * tests/test-pread.c: Likewise.
4366 * tests/test-printf-frexp.c: Likewise.
4367 * tests/test-printf-frexpl.c: Likewise.
4368 * tests/test-printf-posix.c: Likewise.
4369 * tests/test-priv-set.c: Likewise.
4370 * tests/test-quotearg.c: Likewise.
4371 * tests/test-random_r.c: Likewise.
4372 * tests/test-rawmemchr.c: Likewise.
4373 * tests/test-rbtree_list.c: Likewise.
4374 * tests/test-rbtree_oset.c: Likewise.
4375 * tests/test-rbtreehash_list.c: Likewise.
4376 * tests/test-readlink.c: Likewise.
4377 * tests/test-remove.c: Likewise.
4378 * tests/test-rename.c: Likewise.
4379 * tests/test-renameat.c: Likewise.
4380 * tests/test-rmdir.c: Likewise.
4381 * tests/test-round1.c: Likewise.
4382 * tests/test-roundf1.c: Likewise.
4383 * tests/test-roundl.c: Likewise.
4384 * tests/test-safe-alloc.c: Likewise.
4385 * tests/test-sameacls.c: Likewise.
4386 * tests/test-set-mode-acl.c: Likewise.
4387 * tests/test-setenv.c: Likewise.
4388 * tests/test-sigaction.c: Likewise.
4389 * tests/test-signbit.c: Likewise.
4390 * tests/test-sleep.c: Likewise.
4391 * tests/test-snprintf-posix.c: Likewise.
4392 * tests/test-snprintf.c: Likewise.
4393 * tests/test-sprintf-posix.c: Likewise.
4394 * tests/test-stat-time.c: Likewise.
4395 * tests/test-stat.c: Likewise.
4396 * tests/test-strcasestr.c: Likewise.
4397 * tests/test-strchrnul.c: Likewise.
4398 * tests/test-strerror.c: Likewise.
4399 * tests/test-striconv.c: Likewise.
4400 * tests/test-striconveh.c: Likewise.
4401 * tests/test-striconveha.c: Likewise.
4402 * tests/test-strsignal.c: Likewise.
4403 * tests/test-strstr.c: Likewise.
4404 * tests/test-strtod.c: Likewise.
4405 * tests/test-strverscmp.c: Likewise.
4406 * tests/test-symlink.c: Likewise.
4407 * tests/test-symlinkat.c: Likewise.
4408 * tests/test-trunc1.c: Likewise.
4409 * tests/test-trunc2.c: Likewise.
4410 * tests/test-truncf1.c: Likewise.
4411 * tests/test-truncf2.c: Likewise.
4412 * tests/test-truncl.c: Likewise.
4413 * tests/test-uname.c: Likewise.
4414 * tests/test-unlink.c: Likewise.
4415 * tests/test-unlinkat.c: Likewise.
4416 * tests/test-unsetenv.c: Likewise.
4417 * tests/test-usleep.c: Likewise.
4418 * tests/test-utimens.c: Likewise.
4419 * tests/test-utimensat.c: Likewise.
4420 * tests/test-vasnprintf-posix.c: Likewise.
4421 * tests/test-vasnprintf-posix2.c: Likewise.
4422 * tests/test-vasnprintf.c: Likewise.
4423 * tests/test-vasprintf-posix.c: Likewise.
4424 * tests/test-vasprintf.c: Likewise.
4425 * tests/test-vdprintf-posix.c: Likewise.
4426 * tests/test-vfprintf-posix.c: Likewise.
4427 * tests/test-vprintf-posix.c: Likewise.
4428 * tests/test-vsnprintf-posix.c: Likewise.
4429 * tests/test-vsnprintf.c: Likewise.
4430 * tests/test-vsprintf-posix.c: Likewise.
4431 * tests/test-wcrtomb.c: Likewise.
4432 * tests/test-wcsnrtombs.c: Likewise.
4433 * tests/test-wcsrtombs.c: Likewise.
4434 * tests/test-wctype.c: Likewise.
4435 * tests/test-wcwidth.c: Likewise.
4436 * tests/test-xfprintf-posix.c: Likewise.
4437 * tests/test-xmemdup0.c: Likewise.
4438 * tests/test-xprintf-posix.c: Likewise.
4439 * tests/test-xvasprintf.c: Likewise.
4440 * tests/unicase/test-locale-language.c: Likewise.
4441 * tests/unicase/test-mapping-part1.h: Likewise.
4442 * tests/unicase/test-predicate-part1.h: Likewise.
4443 * tests/unicase/test-u8-casecmp.c: Likewise.
4444 * tests/unicase/test-u8-casecoll.c: Likewise.
4445 * tests/unicase/test-u8-casefold.c: Likewise.
4446 * tests/unicase/test-u8-is-cased.c: Likewise.
4447 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4448 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4449 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4450 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4451 * tests/unicase/test-u8-tolower.c: Likewise.
4452 * tests/unicase/test-u8-totitle.c: Likewise.
4453 * tests/unicase/test-u8-toupper.c: Likewise.
4454 * tests/unicase/test-u16-casecmp.c: Likewise.
4455 * tests/unicase/test-u16-casecoll.c: Likewise.
4456 * tests/unicase/test-u16-casefold.c: Likewise.
4457 * tests/unicase/test-u16-is-cased.c: Likewise.
4458 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4459 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4460 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4461 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4462 * tests/unicase/test-u16-tolower.c: Likewise.
4463 * tests/unicase/test-u16-totitle.c: Likewise.
4464 * tests/unicase/test-u16-toupper.c: Likewise.
4465 * tests/unicase/test-u32-casecmp.c: Likewise.
4466 * tests/unicase/test-u32-casecoll.c: Likewise.
4467 * tests/unicase/test-u32-casefold.c: Likewise.
4468 * tests/unicase/test-u32-is-cased.c: Likewise.
4469 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4470 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4471 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4472 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4473 * tests/unicase/test-u32-tolower.c: Likewise.
4474 * tests/unicase/test-u32-totitle.c: Likewise.
4475 * tests/unicase/test-u32-toupper.c: Likewise.
4476 * tests/unicase/test-ulc-casecmp.c: Likewise.
4477 * tests/unicase/test-ulc-casecoll.c: Likewise.
4478 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4479 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4480 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4481 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4482 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4483 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4484 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4485 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4486 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4487 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4488 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4489 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4490 * tests/unictype/test-bidi_byname.c: Likewise.
4491 * tests/unictype/test-bidi_name.c: Likewise.
4492 * tests/unictype/test-bidi_of.c: Likewise.
4493 * tests/unictype/test-bidi_test.c: Likewise.
4494 * tests/unictype/test-block_list.c: Likewise.
4495 * tests/unictype/test-block_of.c: Likewise.
4496 * tests/unictype/test-block_test.c: Likewise.
4497 * tests/unictype/test-categ_and.c: Likewise.
4498 * tests/unictype/test-categ_and_not.c: Likewise.
4499 * tests/unictype/test-categ_byname.c: Likewise.
4500 * tests/unictype/test-categ_name.c: Likewise.
4501 * tests/unictype/test-categ_none.c: Likewise.
4502 * tests/unictype/test-categ_of.c: Likewise.
4503 * tests/unictype/test-categ_or.c: Likewise.
4504 * tests/unictype/test-categ_test_withtable.c: Likewise.
4505 * tests/unictype/test-combining.c: Likewise.
4506 * tests/unictype/test-decdigit.c: Likewise.
4507 * tests/unictype/test-digit.c: Likewise.
4508 * tests/unictype/test-mirror.c: Likewise.
4509 * tests/unictype/test-numeric.c: Likewise.
4510 * tests/unictype/test-pr_byname.c: Likewise.
4511 * tests/unictype/test-pr_test.c: Likewise.
4512 * tests/unictype/test-predicate-part1.h: Likewise.
4513 * tests/unictype/test-scripts.c: Likewise.
4514 * tests/unictype/test-sy_c_ident.c: Likewise.
4515 * tests/unictype/test-sy_java_ident.c: Likewise.
4516 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4517 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4518 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4519 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4520 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4521 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4522 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4523 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4524 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4525 * tests/uninorm/test-compat-decomposition.c: Likewise.
4526 * tests/uninorm/test-composition.c: Likewise.
4527 * tests/uninorm/test-decomposing-form.c: Likewise.
4528 * tests/uninorm/test-decomposition.c: Likewise.
4529 * tests/uninorm/test-u8-nfc.c: Likewise.
4530 * tests/uninorm/test-u8-nfd.c: Likewise.
4531 * tests/uninorm/test-u8-nfkc.c: Likewise.
4532 * tests/uninorm/test-u8-nfkd.c: Likewise.
4533 * tests/uninorm/test-u8-normcmp.c: Likewise.
4534 * tests/uninorm/test-u8-normcoll.c: Likewise.
4535 * tests/uninorm/test-u16-nfc.c: Likewise.
4536 * tests/uninorm/test-u16-nfd.c: Likewise.
4537 * tests/uninorm/test-u16-nfkc.c: Likewise.
4538 * tests/uninorm/test-u16-nfkd.c: Likewise.
4539 * tests/uninorm/test-u16-normcmp.c: Likewise.
4540 * tests/uninorm/test-u16-normcoll.c: Likewise.
4541 * tests/uninorm/test-u32-nfc.c: Likewise.
4542 * tests/uninorm/test-u32-nfd.c: Likewise.
4543 * tests/uninorm/test-u32-nfkc.c: Likewise.
4544 * tests/uninorm/test-u32-nfkd.c: Likewise.
4545 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4546 * tests/uninorm/test-u32-normcmp.c: Likewise.
4547 * tests/uninorm/test-u32-normcoll.c: Likewise.
4548 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4549 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4550 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4551 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4552 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4553 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4554 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4555 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4556 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4557 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4558 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4559 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4560 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4561 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4562 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4563 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4564 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4565 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4566 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4567 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4568 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4569 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4570 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4571 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4572 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4573 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4574 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4575 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4576 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4577 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4578 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4579 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4580 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4581 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4582 * tests/uniwidth/test-u8-width.c: Likewise.
4583 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4584 * tests/uniwidth/test-u16-width.c: Likewise.
4585 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4586 * tests/uniwidth/test-u32-width.c: Likewise.
4587 * tests/uniwidth/test-uc_width.c: Likewise.
4588 * tests/uniwidth/test-uc_width2.c: Likewise.
4589 * modules/acl-tests (Files): Add tests/macros.h.
4590 * modules/areadlink-tests (Files): Likewise.
4591 * modules/areadlink-with-size-tests (Files): Likewise.
4592 * modules/areadlinkat-tests (Files): Likewise.
4593 * modules/areadlinkat-with-size-tests (Files): Likewise.
4594 * modules/argmatch-tests (Files): Likewise.
4595 * modules/argv-iter-tests (Files): Likewise.
4596 * modules/array-list-tests (Files): Likewise.
4597 * modules/array-mergesort-tests (Files): Likewise.
4598 * modules/array-oset-tests (Files): Likewise.
4599 * modules/avltree-list-tests (Files): Likewise.
4600 * modules/avltree-oset-tests (Files): Likewise.
4601 * modules/avltreehash-list-tests (Files): Likewise.
4602 * modules/base64-tests (Files): Likewise.
4603 * modules/binary-io-tests (Files): Likewise.
4604 * modules/bitrotate-tests (Files): Likewise.
4605 * modules/btowc-tests (Files): Likewise.
4606 * modules/byteswap-tests (Files): Likewise.
4607 * modules/c-ctype-tests (Files): Likewise.
4608 * modules/c-stack-tests (Files): Likewise.
4609 * modules/c-strcase-tests (Files): Likewise.
4610 * modules/c-strcasestr-tests (Files): Likewise.
4611 * modules/c-strstr-tests (Files): Likewise.
4612 * modules/canonicalize-lgpl-tests (Files): Likewise.
4613 * modules/canonicalize-tests (Files): Likewise.
4614 * modules/carray-list-tests (Files): Likewise.
4615 * modules/ceilf-tests (Files): Likewise.
4616 * modules/ceill-tests (Files): Likewise.
4617 * modules/chown-tests (Files): Likewise.
4618 * modules/cloexec-tests (Files): Likewise.
4619 * modules/copy-file-tests (Files): Likewise.
4620 * modules/count-one-bits-tests (Files): Likewise.
4621 * modules/dprintf-posix-tests (Files): Likewise.
4622 * modules/dup2-tests (Files): Likewise.
4623 * modules/dup3-tests (Files): Likewise.
4624 * modules/duplocale-tests (Files): Likewise.
4625 * modules/fbufmode-tests (Files): Likewise.
4626 * modules/fchdir-tests (Files): Likewise.
4627 * modules/fcntl-safer-tests (Files): Likewise.
4628 * modules/fcntl-tests (Files): Likewise.
4629 * modules/fdopendir-tests (Files): Likewise.
4630 * modules/fdutimensat-tests (Files): Likewise.
4631 * modules/fflush-tests (Files): Likewise.
4632 * modules/filevercmp-tests (Files): Likewise.
4633 * modules/flock-tests (Files): Likewise.
4634 * modules/floorf-tests (Files): Likewise.
4635 * modules/floorl-tests (Files): Likewise.
4636 * modules/fnmatch-tests (Files): Likewise.
4637 * modules/fopen-safer-tests (Files): Likewise.
4638 * modules/fopen-tests (Files): Likewise.
4639 * modules/fpending-tests (Files): Likewise.
4640 * modules/fprintf-posix-tests (Files): Likewise.
4641 * modules/fpurge-tests (Files): Likewise.
4642 * modules/freadable-tests (Files): Likewise.
4643 * modules/freadahead-tests (Files): Likewise.
4644 * modules/freading-tests (Files): Likewise.
4645 * modules/freadptr-tests (Files): Likewise.
4646 * modules/freadseek-tests (Files): Likewise.
4647 * modules/freopen-tests (Files): Likewise.
4648 * modules/frexp-nolibm-tests (Files): Likewise.
4649 * modules/frexp-tests (Files): Likewise.
4650 * modules/frexpl-nolibm-tests (Files): Likewise.
4651 * modules/frexpl-tests (Files): Likewise.
4652 * modules/fseek-tests (Files): Likewise.
4653 * modules/fseeko-tests (Files): Likewise.
4654 * modules/fstrcmp-tests (Files): Likewise.
4655 * modules/fsync-tests (Files): Likewise.
4656 * modules/ftell-tests (Files): Likewise.
4657 * modules/ftello-tests (Files): Likewise.
4658 * modules/func-tests (Files): Likewise.
4659 * modules/futimens-tests (Files): Likewise.
4660 * modules/fwritable-tests (Files): Likewise.
4661 * modules/fwriting-tests (Files): Likewise.
4662 * modules/getcwd-tests (Files): Likewise.
4663 * modules/getdate-tests (Files): Likewise.
4664 * modules/getdelim-tests (Files): Likewise.
4665 * modules/getdtablesize-tests (Files): Likewise.
4666 * modules/getgroups-tests (Files): Likewise.
4667 * modules/getline-tests (Files): Likewise.
4668 * modules/getndelim2-tests (Files): Likewise.
4669 * modules/glob-tests (Files): Likewise.
4670 * modules/hash-tests (Files): Likewise.
4671 * modules/i-ring-tests (Files): Likewise.
4672 * modules/iconv-tests (Files): Likewise.
4673 * modules/iconv_open-utf-tests (Files): Likewise.
4674 * modules/idpriv-drop-tests (Files): Likewise.
4675 * modules/idpriv-droptemp-tests (Files): Likewise.
4676 * modules/inet_ntop-tests (Files): Likewise.
4677 * modules/inet_pton-tests (Files): Likewise.
4678 * modules/isblank-tests (Files): Likewise.
4679 * modules/isfinite-tests (Files): Likewise.
4680 * modules/isinf-tests (Files): Likewise.
4681 * modules/isnan-tests (Files): Likewise.
4682 * modules/isnand-nolibm-tests (Files): Likewise.
4683 * modules/isnand-tests (Files): Likewise.
4684 * modules/isnanf-nolibm-tests (Files): Likewise.
4685 * modules/isnanf-tests (Files): Likewise.
4686 * modules/isnanl-nolibm-tests (Files): Likewise.
4687 * modules/isnanl-tests (Files): Likewise.
4688 * modules/lchown-tests (Files): Likewise.
4689 * modules/ldexpl-tests (Files): Likewise.
4690 * modules/link-tests (Files): Likewise.
4691 * modules/linkat-tests (Files): Likewise.
4692 * modules/linked-list-tests (Files): Likewise.
4693 * modules/linkedhash-list-tests (Files): Likewise.
4694 * modules/localename-tests (Files): Likewise.
4695 * modules/lseek-tests (Files): Likewise.
4696 * modules/lstat-tests (Files): Likewise.
4697 * modules/mbmemcasecmp-tests (Files): Likewise.
4698 * modules/mbmemcasecoll-tests (Files): Likewise.
4699 * modules/mbrtowc-tests (Files): Likewise.
4700 * modules/mbscasecmp-tests (Files): Likewise.
4701 * modules/mbscasestr-tests (Files): Likewise.
4702 * modules/mbschr-tests (Files): Likewise.
4703 * modules/mbscspn-tests (Files): Likewise.
4704 * modules/mbsinit-tests (Files): Likewise.
4705 * modules/mbsncasecmp-tests (Files): Likewise.
4706 * modules/mbsnrtowcs-tests (Files): Likewise.
4707 * modules/mbspbrk-tests (Files): Likewise.
4708 * modules/mbspcasecmp-tests (Files): Likewise.
4709 * modules/mbsrchr-tests (Files): Likewise.
4710 * modules/mbsrtowcs-tests (Files): Likewise.
4711 * modules/mbsspn-tests (Files): Likewise.
4712 * modules/mbsstr-tests (Files): Likewise.
4713 * modules/memchr-tests (Files): Likewise.
4714 * modules/memchr2-tests (Files): Likewise.
4715 * modules/memcmp-tests (Files): Likewise.
4716 * modules/memmem-tests (Files): Likewise.
4717 * modules/memrchr-tests (Files): Likewise.
4718 * modules/mkdir-tests (Files): Likewise.
4719 * modules/mkfifo-tests (Files): Likewise.
4720 * modules/mkfifoat-tests (Files): Likewise.
4721 * modules/mknod-tests (Files): Likewise.
4722 * modules/nanosleep-tests (Files): Likewise.
4723 * modules/nl_langinfo-tests (Files): Likewise.
4724 * modules/obstack-printf-tests (Files): Likewise.
4725 * modules/open-tests (Files): Likewise.
4726 * modules/openat-tests (Files): Likewise.
4727 * modules/pipe-filter-gi-tests (Files): Likewise.
4728 * modules/pipe-filter-ii-tests (Files): Likewise.
4729 * modules/pipe2-tests (Files): Likewise.
4730 * modules/popen-safer-tests (Files): Likewise.
4731 * modules/popen-tests (Files): Likewise.
4732 * modules/posixtm-tests (Files): Likewise.
4733 * modules/pread-tests (Files): Likewise.
4734 * modules/printf-frexp-tests (Files): Likewise.
4735 * modules/printf-frexpl-tests (Files): Likewise.
4736 * modules/printf-posix-tests (Files): Likewise.
4737 * modules/priv-set-tests (Files): Likewise.
4738 * modules/quotearg-tests (Files): Likewise.
4739 * modules/random_r-tests (Files): Likewise.
4740 * modules/rawmemchr-tests (Files): Likewise.
4741 * modules/rbtree-list-tests (Files): Likewise.
4742 * modules/rbtree-oset-tests (Files): Likewise.
4743 * modules/rbtreehash-list-tests (Files): Likewise.
4744 * modules/readlink-tests (Files): Likewise.
4745 * modules/remove-tests (Files): Likewise.
4746 * modules/rename-tests (Files): Likewise.
4747 * modules/renameat-tests (Files): Likewise.
4748 * modules/rmdir-tests (Files): Likewise.
4749 * modules/round-tests (Files): Likewise.
4750 * modules/roundf-tests (Files): Likewise.
4751 * modules/roundl-tests (Files): Likewise.
4752 * modules/safe-alloc-tests (Files): Likewise.
4753 * modules/setenv-tests (Files): Likewise.
4754 * modules/sigaction-tests (Files): Likewise.
4755 * modules/signbit-tests (Files): Likewise.
4756 * modules/sleep-tests (Files): Likewise.
4757 * modules/snprintf-posix-tests (Files): Likewise.
4758 * modules/snprintf-tests (Files): Likewise.
4759 * modules/sprintf-posix-tests (Files): Likewise.
4760 * modules/stat-tests (Files): Likewise.
4761 * modules/stat-time-tests (Files): Likewise.
4762 * modules/strcasestr-tests (Files): Likewise.
4763 * modules/strchrnul-tests (Files): Likewise.
4764 * modules/strerror-tests (Files): Likewise.
4765 * modules/striconv-tests (Files): Likewise.
4766 * modules/striconveh-tests (Files): Likewise.
4767 * modules/striconveha-tests (Files): Likewise.
4768 * modules/strsignal-tests (Files): Likewise.
4769 * modules/strstr-tests (Files): Likewise.
4770 * modules/strtod-tests (Files): Likewise.
4771 * modules/strverscmp-tests (Files): Likewise.
4772 * modules/symlink-tests (Files): Likewise.
4773 * modules/symlinkat-tests (Files): Likewise.
4774 * modules/trunc-tests (Files): Likewise.
4775 * modules/truncf-tests (Files): Likewise.
4776 * modules/truncl-tests (Files): Likewise.
4777 * modules/uname-tests (Files): Likewise.
4778 * modules/unicase/cased-tests (Files): Likewise.
4779 * modules/unicase/ignorable-tests (Files): Likewise.
4780 * modules/unicase/locale-language-tests (Files): Likewise.
4781 * modules/unicase/tolower-tests (Files): Likewise.
4782 * modules/unicase/totitle-tests (Files): Likewise.
4783 * modules/unicase/toupper-tests (Files): Likewise.
4784 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4785 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4786 * modules/unicase/u8-casefold-tests (Files): Likewise.
4787 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4788 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4789 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4790 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4791 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4792 * modules/unicase/u8-tolower-tests (Files): Likewise.
4793 * modules/unicase/u8-totitle-tests (Files): Likewise.
4794 * modules/unicase/u8-toupper-tests (Files): Likewise.
4795 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4796 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4797 * modules/unicase/u16-casefold-tests (Files): Likewise.
4798 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4799 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4800 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4801 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4802 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4803 * modules/unicase/u16-tolower-tests (Files): Likewise.
4804 * modules/unicase/u16-totitle-tests (Files): Likewise.
4805 * modules/unicase/u16-toupper-tests (Files): Likewise.
4806 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4807 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4808 * modules/unicase/u32-casefold-tests (Files): Likewise.
4809 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4810 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4811 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4812 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4813 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4814 * modules/unicase/u32-tolower-tests (Files): Likewise.
4815 * modules/unicase/u32-totitle-tests (Files): Likewise.
4816 * modules/unicase/u32-toupper-tests (Files): Likewise.
4817 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4818 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4819 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4820 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4821 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4822 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4823 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4824 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4825 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4826 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4827 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4828 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4829 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4830 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4831 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4832 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4833 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4834 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4835 * modules/unictype/block-list-tests (Files): Likewise.
4836 * modules/unictype/block-of-tests (Files): Likewise.
4837 * modules/unictype/block-test-tests (Files): Likewise.
4838 * modules/unictype/category-C-tests (Files): Likewise.
4839 * modules/unictype/category-Cc-tests (Files): Likewise.
4840 * modules/unictype/category-Cf-tests (Files): Likewise.
4841 * modules/unictype/category-Cn-tests (Files): Likewise.
4842 * modules/unictype/category-Co-tests (Files): Likewise.
4843 * modules/unictype/category-Cs-tests (Files): Likewise.
4844 * modules/unictype/category-L-tests (Files): Likewise.
4845 * modules/unictype/category-Ll-tests (Files): Likewise.
4846 * modules/unictype/category-Lm-tests (Files): Likewise.
4847 * modules/unictype/category-Lo-tests (Files): Likewise.
4848 * modules/unictype/category-Lt-tests (Files): Likewise.
4849 * modules/unictype/category-Lu-tests (Files): Likewise.
4850 * modules/unictype/category-M-tests (Files): Likewise.
4851 * modules/unictype/category-Mc-tests (Files): Likewise.
4852 * modules/unictype/category-Me-tests (Files): Likewise.
4853 * modules/unictype/category-Mn-tests (Files): Likewise.
4854 * modules/unictype/category-N-tests (Files): Likewise.
4855 * modules/unictype/category-Nd-tests (Files): Likewise.
4856 * modules/unictype/category-Nl-tests (Files): Likewise.
4857 * modules/unictype/category-No-tests (Files): Likewise.
4858 * modules/unictype/category-P-tests (Files): Likewise.
4859 * modules/unictype/category-Pc-tests (Files): Likewise.
4860 * modules/unictype/category-Pd-tests (Files): Likewise.
4861 * modules/unictype/category-Pe-tests (Files): Likewise.
4862 * modules/unictype/category-Pf-tests (Files): Likewise.
4863 * modules/unictype/category-Pi-tests (Files): Likewise.
4864 * modules/unictype/category-Po-tests (Files): Likewise.
4865 * modules/unictype/category-Ps-tests (Files): Likewise.
4866 * modules/unictype/category-S-tests (Files): Likewise.
4867 * modules/unictype/category-Sc-tests (Files): Likewise.
4868 * modules/unictype/category-Sk-tests (Files): Likewise.
4869 * modules/unictype/category-Sm-tests (Files): Likewise.
4870 * modules/unictype/category-So-tests (Files): Likewise.
4871 * modules/unictype/category-Z-tests (Files): Likewise.
4872 * modules/unictype/category-Zl-tests (Files): Likewise.
4873 * modules/unictype/category-Zp-tests (Files): Likewise.
4874 * modules/unictype/category-Zs-tests (Files): Likewise.
4875 * modules/unictype/category-and-not-tests (Files): Likewise.
4876 * modules/unictype/category-and-tests (Files): Likewise.
4877 * modules/unictype/category-byname-tests (Files): Likewise.
4878 * modules/unictype/category-name-tests (Files): Likewise.
4879 * modules/unictype/category-none-tests (Files): Likewise.
4880 * modules/unictype/category-of-tests (Files): Likewise.
4881 * modules/unictype/category-or-tests (Files): Likewise.
4882 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4883 * modules/unictype/combining-class-tests (Files): Likewise.
4884 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4885 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4886 * modules/unictype/ctype-blank-tests (Files): Likewise.
4887 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4888 * modules/unictype/ctype-digit-tests (Files): Likewise.
4889 * modules/unictype/ctype-graph-tests (Files): Likewise.
4890 * modules/unictype/ctype-lower-tests (Files): Likewise.
4891 * modules/unictype/ctype-print-tests (Files): Likewise.
4892 * modules/unictype/ctype-punct-tests (Files): Likewise.
4893 * modules/unictype/ctype-space-tests (Files): Likewise.
4894 * modules/unictype/ctype-upper-tests (Files): Likewise.
4895 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4896 * modules/unictype/decimal-digit-tests (Files): Likewise.
4897 * modules/unictype/digit-tests (Files): Likewise.
4898 * modules/unictype/mirror-tests (Files): Likewise.
4899 * modules/unictype/numeric-tests (Files): Likewise.
4900 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4901 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4902 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4903 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4905 * modules/unictype/property-bidi-block-separator-tests (Files):
4907 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4909 * modules/unictype/property-bidi-common-separator-tests (Files):
4911 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4912 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4914 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4916 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4918 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4919 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4921 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4922 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4924 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4925 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4926 * modules/unictype/property-bidi-segment-separator-tests (Files):
4928 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4929 * modules/unictype/property-byname-tests (Files): Likewise.
4930 * modules/unictype/property-combining-tests (Files): Likewise.
4931 * modules/unictype/property-composite-tests (Files): Likewise.
4932 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4933 * modules/unictype/property-dash-tests (Files): Likewise.
4934 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4935 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4937 * modules/unictype/property-deprecated-tests (Files): Likewise.
4938 * modules/unictype/property-diacritic-tests (Files): Likewise.
4939 * modules/unictype/property-extender-tests (Files): Likewise.
4940 * modules/unictype/property-format-control-tests (Files): Likewise.
4941 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4942 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4943 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4944 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4945 * modules/unictype/property-hyphen-tests (Files): Likewise.
4946 * modules/unictype/property-id-continue-tests (Files): Likewise.
4947 * modules/unictype/property-id-start-tests (Files): Likewise.
4948 * modules/unictype/property-ideographic-tests (Files): Likewise.
4949 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4950 * modules/unictype/property-ids-trinary-operator-tests (Files):
4952 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4953 * modules/unictype/property-iso-control-tests (Files): Likewise.
4954 * modules/unictype/property-join-control-tests (Files): Likewise.
4955 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4956 * modules/unictype/property-line-separator-tests (Files): Likewise.
4957 * modules/unictype/property-logical-order-exception-tests (Files):
4959 * modules/unictype/property-lowercase-tests (Files): Likewise.
4960 * modules/unictype/property-math-tests (Files): Likewise.
4961 * modules/unictype/property-non-break-tests (Files): Likewise.
4962 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4963 * modules/unictype/property-numeric-tests (Files): Likewise.
4964 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4965 * modules/unictype/property-other-default-ignorable-code-point-tests
4967 * modules/unictype/property-other-grapheme-extend-tests (Files):
4969 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4970 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4971 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4972 * modules/unictype/property-other-math-tests (Files): Likewise.
4973 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4974 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4975 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4976 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4977 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4978 * modules/unictype/property-private-use-tests (Files): Likewise.
4979 * modules/unictype/property-punctuation-tests (Files): Likewise.
4980 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4981 * modules/unictype/property-radical-tests (Files): Likewise.
4982 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4983 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4984 * modules/unictype/property-space-tests (Files): Likewise.
4985 * modules/unictype/property-terminal-punctuation-tests (Files):
4987 * modules/unictype/property-test-tests (Files): Likewise.
4988 * modules/unictype/property-titlecase-tests (Files): Likewise.
4989 * modules/unictype/property-unassigned-code-value-tests (Files):
4991 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4992 * modules/unictype/property-uppercase-tests (Files): Likewise.
4993 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4994 * modules/unictype/property-white-space-tests (Files): Likewise.
4995 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4996 * modules/unictype/property-xid-start-tests (Files): Likewise.
4997 * modules/unictype/property-zero-width-tests (Files): Likewise.
4998 * modules/unictype/scripts-tests (Files): Likewise.
4999 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5000 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5001 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5002 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5003 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5004 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5005 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5006 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5007 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5008 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5009 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5010 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5011 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5012 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5013 * modules/uninorm/composition-tests (Files): Likewise.
5014 * modules/uninorm/decomposing-form-tests (Files): Likewise.
5015 * modules/uninorm/decomposition-tests (Files): Likewise.
5016 * modules/uninorm/filter-tests (Files): Likewise.
5017 * modules/uninorm/nfc-tests (Files): Likewise.
5018 * modules/uninorm/nfd-tests (Files): Likewise.
5019 * modules/uninorm/nfkc-tests (Files): Likewise.
5020 * modules/uninorm/nfkd-tests (Files): Likewise.
5021 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5022 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5023 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5024 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5025 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5026 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5027 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5028 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5029 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5030 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5031 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5032 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5033 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5034 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5035 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5036 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5037 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5038 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5039 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5040 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5041 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5042 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5043 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5044 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5045 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5046 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5047 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5048 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5049 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5050 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5051 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5052 * modules/uniwidth/u8-width-tests (Files): Likewise.
5053 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5054 * modules/uniwidth/u16-width-tests (Files): Likewise.
5055 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5056 * modules/uniwidth/u32-width-tests (Files): Likewise.
5057 * modules/uniwidth/width-tests (Files): Likewise.
5058 * modules/unlink-tests (Files): Likewise.
5059 * modules/unsetenv-tests (Files): Likewise.
5060 * modules/usleep-tests (Files): Likewise.
5061 * modules/utimens-tests (Files): Likewise.
5062 * modules/utimensat-tests (Files): Likewise.
5063 * modules/vasnprintf-posix-tests (Files): Likewise.
5064 * modules/vasnprintf-tests (Files): Likewise.
5065 * modules/vasprintf-posix-tests (Files): Likewise.
5066 * modules/vasprintf-tests (Files): Likewise.
5067 * modules/vdprintf-posix-tests (Files): Likewise.
5068 * modules/vfprintf-posix-tests (Files): Likewise.
5069 * modules/vprintf-posix-tests (Files): Likewise.
5070 * modules/vsnprintf-posix-tests (Files): Likewise.
5071 * modules/vsnprintf-tests (Files): Likewise.
5072 * modules/vsprintf-posix-tests (Files): Likewise.
5073 * modules/wcrtomb-tests (Files): Likewise.
5074 * modules/wcsnrtombs-tests (Files): Likewise.
5075 * modules/wcsrtombs-tests (Files): Likewise.
5076 * modules/wctype-tests (Files): Likewise.
5077 * modules/wcwidth-tests (Files): Likewise.
5078 * modules/xmemdup0-tests (Files): Likewise.
5079 * modules/xprintf-posix-tests (Files): Likewise.
5080 * modules/xvasprintf-tests (Files): Likewise.
5082 2009-12-24 Eric Blake <ebb9@byu.net>
5084 test-nanosleep: fix typo
5085 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5087 Reported by Bruno Haible.
5089 2009-12-24 Bruno Haible <bruno@clisp.org>
5091 Reduce namespace pollution on glibc systems.
5092 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5093 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5095 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5096 <getopt.h> on glibc systems.
5097 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5099 * lib/fcntl.c: Include <unistd.h> here instead.
5101 2009-12-24 Bruno Haible <bruno@clisp.org>
5103 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5105 2009-12-24 Eric Blake <ebb9@byu.net>
5107 tests: add signature checks
5108 * tests/signature.h (SIGNATURE_CHECK): New file.
5109 * modules/atexit-tests (Files): Use it.
5110 * modules/btowc-tests (Files): Likewise.
5111 * modules/canonicalize-lgpl-tests (Files): Likewise.
5112 * modules/ceilf-tests (Files): Likewise.
5113 * modules/ceill-tests (Files): Likewise.
5114 * modules/chown-tests (Files): Likewise.
5115 * modules/dprintf-posix-tests (Files): Likewise.
5116 * modules/dup2-tests (Files): Likewise.
5117 * modules/dup3-tests (Files): Likewise.
5118 * modules/duplocale-tests (Files): Likewise.
5119 * modules/fchdir-tests (Files): Likewise.
5120 * modules/fcntl-tests (Files): Likewise.
5121 * modules/fdopendir-tests (Files): Likewise.
5122 * modules/fflush-tests (Files): Likewise.
5123 * modules/flock-tests (Files): Likewise.
5124 * modules/floorf-tests (Files): Likewise.
5125 * modules/floorl-tests (Files): Likewise.
5126 * modules/fnmatch-tests (Files): Likewise.
5127 * modules/fopen-tests (Files): Likewise.
5128 * modules/fprintf-posix-tests (Files): Likewise.
5129 * modules/freopen-tests (Files): Likewise.
5130 * modules/frexp-nolibm-tests (Files): Likewise.
5131 * modules/frexp-tests (Files): Likewise.
5132 * modules/frexpl-nolibm-tests (Files): Likewise.
5133 * modules/frexpl-tests (Files): Likewise.
5134 * modules/fseek-tests (Files): Likewise.
5135 * modules/fseeko-tests (Files): Likewise.
5136 * modules/fsync-tests (Files): Likewise.
5137 * modules/ftell-tests (Files): Likewise.
5138 * modules/ftello-tests (Files): Likewise.
5139 * modules/futimens-tests (Files): Likewise.
5140 * modules/getaddrinfo-tests (Files): Likewise.
5141 * modules/getcwd-tests (Files): Likewise.
5142 * modules/getdelim-tests (Files): Likewise.
5143 * modules/getdtablesize-tests (Files): Likewise.
5144 * modules/getgroups-tests (Files): Likewise.
5145 * modules/gethostname-tests (Files): Likewise.
5146 * modules/getline-tests (Files): Likewise.
5147 * modules/getopt-posix-tests (Files): Likewise.
5148 * modules/gettimeofday-tests (Files): Likewise.
5149 * modules/glob-tests (Files): Likewise.
5150 * modules/iconv-tests (Files): Likewise.
5151 * modules/inet_ntop-tests (Files): Likewise.
5152 * modules/inet_pton-tests (Files): Likewise.
5153 * modules/isblank-tests (Files): Likewise.
5154 * modules/lchown-tests (Files): Likewise.
5155 * modules/ldexpl-tests (Files): Likewise.
5156 * modules/link-tests (Files): Likewise.
5157 * modules/linkat-tests (Files): Likewise.
5158 * modules/lseek-tests (Files): Likewise.
5159 * modules/lstat-tests (Files): Likewise.
5160 * modules/mbrtowc-tests (Files): Likewise.
5161 * modules/mbsinit-tests (Files): Likewise.
5162 * modules/mbsnrtowcs-tests (Files): Likewise.
5163 * modules/mbsrtowcs-tests (Files): Likewise.
5164 * modules/memchr-tests (Files): Likewise.
5165 * modules/memcmp-tests (Files): Likewise.
5166 * modules/memmem-tests (Files): Likewise.
5167 * modules/memrchr-tests (Files): Likewise.
5168 * modules/mkdir-tests (Files): Likewise.
5169 * modules/mkfifo-tests (Files): Likewise.
5170 * modules/mkfifoat-tests (Files): Likewise.
5171 * modules/mknod-tests (Files): Likewise.
5172 * modules/nanosleep-tests (Files): Likewise.
5173 * modules/nl_langinfo-tests (Files): Likewise.
5174 * modules/obstack-printf-tests (Files): Likewise.
5175 * modules/open-tests (Files): Likewise.
5176 * modules/openat-tests (Files): Likewise.
5177 * modules/perror-tests (Files): Likewise.
5178 * modules/pipe2-tests (Files): Likewise.
5179 * modules/poll-tests (Files): Likewise.
5180 * modules/popen-tests (Files): Likewise.
5181 * modules/posix_spawn-tests (Files): Likewise.
5182 * modules/posix_spawnp-tests (Files): Likewise.
5183 * modules/pread-tests (Files): Likewise.
5184 * modules/printf-posix-tests (Files): Likewise.
5185 * modules/pty-tests (Files): Likewise.
5186 * modules/random_r-tests (Files): Likewise.
5187 * modules/rawmemchr-tests (Files): Likewise.
5188 * modules/readlink-tests (Files): Likewise.
5189 * modules/remove-tests (Files): Likewise.
5190 * modules/rename-tests (Files): Likewise.
5191 * modules/renameat-tests (Files): Likewise.
5192 * modules/rmdir-tests (Files): Likewise.
5193 * modules/round-tests (Files): Likewise.
5194 * modules/roundf-tests (Files): Likewise.
5195 * modules/roundl-tests (Files): Likewise.
5196 * modules/select-tests (Files): Likewise.
5197 * modules/setenv-tests (Files): Likewise.
5198 * modules/sigaction-tests (Files): Likewise.
5199 * modules/sleep-tests (Files): Likewise.
5200 * modules/snprintf-posix-tests (Files): Likewise.
5201 * modules/snprintf-tests (Files): Likewise.
5202 * modules/sprintf-posix-tests (Files): Likewise.
5203 * modules/stat-tests (Files): Likewise.
5204 * modules/strcasestr-tests (Files): Likewise.
5205 * modules/strchrnul-tests (Files): Likewise.
5206 * modules/strerror-tests (Files): Likewise.
5207 * modules/strsignal-tests (Files): Likewise.
5208 * modules/strstr-tests (Files): Likewise.
5209 * modules/strtod-tests (Files): Likewise.
5210 * modules/strverscmp-tests (Files): Likewise.
5211 * modules/symlink-tests (Files): Likewise.
5212 * modules/symlinkat-tests (Files): Likewise.
5213 * modules/times-tests (Files): Likewise.
5214 * modules/trunc-tests (Files): Likewise.
5215 * modules/truncf-tests (Files): Likewise.
5216 * modules/truncl-tests (Files): Likewise.
5217 * modules/tsearch-tests (Files): Likewise.
5218 * modules/uname-tests (Files): Likewise.
5219 * modules/unlink-tests (Files): Likewise.
5220 * modules/unsetenv-tests (Files): Likewise.
5221 * modules/usleep-tests (Files): Likewise.
5222 * modules/utimensat-tests (Files): Likewise.
5223 * modules/vasprintf-tests (Files): Likewise.
5224 * modules/vdprintf-posix-tests (Files): Likewise.
5225 * modules/vfprintf-posix-tests (Files): Likewise.
5226 * modules/vprintf-posix-tests (Files): Likewise.
5227 * modules/vsnprintf-posix-tests (Files): Likewise.
5228 * modules/vsnprintf-tests (Files): Likewise.
5229 * modules/vsprintf-posix-tests (Files): Likewise.
5230 * modules/wcrtomb-tests (Files): Likewise.
5231 * modules/wcsnrtombs-tests (Files): Likewise.
5232 * modules/wcsrtombs-tests (Files): Likewise.
5233 * modules/wcwidth-tests (Files): Likewise.
5234 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5235 * tests/test-isinf.c (isinf): Likewise.
5236 * tests/test-isnan.c (isnan): Likewise.
5237 * tests/test-signbit.c (signbit): Likewise.
5238 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5239 declaration, either as macro or with correct signature.
5240 (select): Ensure function under test is declared with correct
5241 signature in correct header.
5242 * tests/test-atexit.c (atexit): Likewise.
5243 * tests/test-btowc.c (btowc): Likewise.
5244 * tests/test-canonicalize-lgpl.c (realpath)
5245 (canonicalize_file_name): Likewise.
5246 * tests/test-ceilf1.c (ceilf): Likewise.
5247 * tests/test-ceill.c (ceill): Likewise.
5248 * tests/test-chown.c (chown): Likewise.
5249 * tests/test-dprintf-posix.c (dprintf): Likewise.
5250 * tests/test-dup2.c (dup2): Likewise.
5251 * tests/test-dup3.c (dup3): Likewise.
5252 * tests/test-duplocale.c (duplocale): Likewise.
5253 * tests/test-fchdir.c (fchdir): Likewise.
5254 * tests/test-fchownat.c (fchownat): Likewise.
5255 * tests/test-fcntl.c (fcntl): Likewise.
5256 * tests/test-fdopendir.c (fdopendir): Likewise.
5257 * tests/test-fflush.c (fflush): Likewise.
5258 * tests/test-flock.c (flock): Likewise.
5259 * tests/test-floorf1.c (floorf): Likewise.
5260 * tests/test-floorl.c (floorl): Likewise.
5261 * tests/test-fnmatch.c (fnmatch): Likewise.
5262 * tests/test-fopen.c (fopen): Likewise.
5263 * tests/test-fprintf-posix.c (fprintf): Likewise.
5264 * tests/test-freopen.c (freopen): Likewise.
5265 * tests/test-frexp.c (frexp): Likewise.
5266 * tests/test-frexpl.c (frexpl): Likewise.
5267 * tests/test-fseek.c (fseek): Likewise.
5268 * tests/test-fseeko.c (fseeko): Likewise.
5269 * tests/test-fstatat.c (fstatat): Likewise.
5270 * tests/test-fsync.c (fsync): Likewise.
5271 * tests/test-ftell.c (ftell): Likewise.
5272 * tests/test-ftello.c (ftello): Likewise.
5273 * tests/test-futimens.c (futimens): Likewise.
5274 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5275 (gai_strerror): Likewise.
5276 * tests/test-getcwd.c (getcwd): Likewise.
5277 * tests/test-getdelim.c (getdelim): Likewise.
5278 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5279 * tests/test-getgroups.c (getgroups): Likewise.
5280 * tests/test-gethostname.c (gethostname): Likewise.
5281 * tests/test-getline.c (getline): Likewise.
5282 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5284 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5285 * tests/test-glob.c (glob, globfree): Likewise.
5286 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5287 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5288 * tests/test-inet_pton.c (inet_pton): Likewise.
5289 * tests/test-isblank.c (isblank): Likewise.
5290 * tests/test-lchown.c (lchown): Likewise.
5291 * tests/test-ldexpl.c (ldexpl): Likewise.
5292 * tests/test-link.c (link): Likewise.
5293 * tests/test-linkat.c (linkat): Likewise.
5294 * tests/test-lseek.c (lseek): Likewise.
5295 * tests/test-lstat.c (lstat): Likewise.
5296 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5297 * tests/test-mbsinit.c (mbsinit): Likewise.
5298 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5299 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5300 * tests/test-memchr.c (memchr): Likewise.
5301 * tests/test-memcmp.c (memcmp): Likewise.
5302 * tests/test-memmem.c (memmem): Likewise.
5303 * tests/test-memrchr.c (memrchr): Likewise.
5304 * tests/test-mkdir.c (mkdir): Likewise.
5305 * tests/test-mkdirat.c (mkdirat): Likewise.
5306 * tests/test-mkfifo.c (mkfifo): Likewise.
5307 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5308 * tests/test-mknod.c (mknod): Likewise.
5309 * tests/test-nanosleep.c (nanosleep): Likewise.
5310 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5311 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5313 * tests/test-open.c (open): Likewise.
5314 * tests/test-openat.c (openat): Likewise.
5315 * tests/test-perror.c (perror): Likewise.
5316 * tests/test-pipe2.c (pipe2): Likewise.
5317 * tests/test-poll.c (poll): Likewise.
5318 * tests/test-popen.c (popen, pclose): Likewise.
5319 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5320 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5321 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5322 (posix_spawn_file_actions_destroy)
5323 (posix_spawn_file_actions_addclose)
5324 (posix_spawn_file_actions_addopen)
5325 (posix_spawn_file_actions_adddup2): Likewise.
5326 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5327 * tests/test-pread.c (pread): Likewise.
5328 * tests/test-printf-posix.c (printf): Likewise.
5329 * tests/test-pty.c (openpty, forkpty): Likewise.
5330 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5331 (random_r): Likewise.
5332 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5333 * tests/test-readlink.c (readlink): Likewise.
5334 * tests/test-remove.c (remove): Likewise.
5335 * tests/test-rename.c (rename): Likewise.
5336 * tests/test-renameat.c (renameat): Likewise.
5337 * tests/test-rmdir.c (rmdir): Likewise.
5338 * tests/test-round1.c (round): Likewise.
5339 * tests/test-roundf1.c (roundf): Likewise.
5340 * tests/test-roundl.c (roundl): Likewise.
5341 * tests/test-setenv.c (setenv): Likewise.
5342 * tests/test-sigaction.c (sigaction): Likewise.
5343 * tests/test-sleep.c (sleep): Likewise.
5344 * tests/test-snprintf.c (snprintf): Likewise.
5345 * tests/test-sprintf-posix.c (sprintf): Likewise.
5346 * tests/test-stat.c (stat): Likewise.
5347 * tests/test-stpncpy.c (stpncpy): Likewise.
5348 * tests/test-strcasestr.c (strcasestr): Likewise.
5349 * tests/test-strchrnul.c (strchrnul): Likewise.
5350 * tests/test-strerror.c (strerror): Likewise.
5351 * tests/test-strsignal.c (strsignal): Likewise.
5352 * tests/test-strstr.c (strstr): Likewise.
5353 * tests/test-strtod.c (strtod): Likewise.
5354 * tests/test-strverscmp.c (strverscmp): Likewise.
5355 * tests/test-symlink.c (symlink): Likewise.
5356 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5357 * tests/test-times.c (times): Likewise.
5358 * tests/test-trunc1.c (trunc): Likewise.
5359 * tests/test-truncf1.c (truncf): Likewise.
5360 * tests/test-truncl.c (truncl): Likewise.
5361 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5363 * tests/test-uname.c (uname): Likewise.
5364 * tests/test-unlink.c (unlink): Likewise.
5365 * tests/test-unlinkat.c (unlinkat): Likewise.
5366 * tests/test-unsetenv.c (unsetenv): Likewise.
5367 * tests/test-usleep.c (usleep): Likewise.
5368 * tests/test-utimensat.c (utimensat): Likewise.
5369 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5370 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5371 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5372 * tests/test-vprintf-posix.c (vprintf): Likewise.
5373 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5374 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5375 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5376 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5377 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5378 * tests/test-wcwidth.c (wcwidth): Likewise.
5380 build: pull in conditional headers during GNULIB_POSIXCHECK
5381 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5382 definitions from any conditionally-included headers.
5383 * lib/stdlib.in.h (includes): Likewise.
5384 * lib/unistd.in.h (includes): Likewise.
5386 2009-12-24 Bruno Haible <bruno@clisp.org>
5388 * tests/test-argv-iter.c: Include header file being tested immediately
5390 * tests/test-base64.c: Likewise.
5391 * tests/test-flock.c: Likewise.
5392 * tests/test-fsync.c: Likewise.
5393 * tests/test-getdate.c: Likewise.
5394 * tests/test-getndelim2.c: Likewise.
5395 * tests/test-isfinite.c: Likewise.
5396 * tests/test-isinf.c: Likewise.
5397 * tests/test-strerror.c: Likewise.
5398 * tests/test-strsignal.c: Likewise.
5400 2009-12-23 Eric Blake <ebb9@byu.net>
5402 unistd: work around cygwin bug
5403 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5404 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5405 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5407 2009-12-23 Bruno Haible <bruno@clisp.org>
5409 localename: More tests.
5410 * tests/test-localename.c (SIZEOF): New macro.
5411 (categories): New variable.
5412 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5413 test_locale_name_default): Add test w.r.t. thread locale.
5414 (test_locale_name_thread): New function.
5417 localename: Make aware of thread locale.
5418 * lib/localename.h (gl_locale_name_thread): New declaration.
5419 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5420 behaviour with respect to thread locale.
5421 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5422 <langinfo.h>, glthread/lock.h.
5423 (SIZE_BITS): New macro.
5424 (string_hash): New function.
5425 (struct hash_node): New type.
5426 (HASH_TABLE_SIZE): New macro.
5427 (struniq_hash_table, struniq_lock): New variables.
5428 (struniq): New function.
5429 (gl_locale_name_thread): New function.
5430 (gl_locale_name): Invoke it.
5431 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5432 * modules/localename (Depends-on): Add lock.
5433 Reported by Mike Gran <spk121@yahoo.com>.
5435 2009-12-23 Eric Blake <ebb9@byu.net>
5438 * modules/va-args: New file.
5439 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5440 * MODULES.html.sh (Core language properties): Mention it.
5442 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5443 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5444 named alias for __attribute__((__unused__)).
5445 * lib/chown.c: Update client.
5446 * lib/fchmodat.c: Likewise.
5447 * lib/fts.c: Likewise.
5448 * lib/getdate.y: Likewise.
5449 * lib/getgroups.c: Likewise.
5450 * lib/getopt.c: Likewise.
5451 * lib/getugroups.c: Likewise.
5452 * lib/mkdir.c: Likewise.
5453 * lib/mkfifo.c: Likewise.
5454 * lib/mkfifoat.c: Likewise.
5455 * lib/mknod.c: Likewise.
5456 * lib/mknodat.c: Likewise.
5457 * lib/readlink.c: Likewise.
5458 * lib/se-context.in.h: Likewise.
5459 * lib/se-selinux.in.h: Likewise.
5460 * lib/sockets.c: Likewise.
5461 * lib/symlink.c: Likewise.
5462 * lib/symlinkat.c: Likewise.
5463 * lib/unicodeio.c: Likewise.
5464 * lib/unistr.h: Likewise.
5465 * tests/test-areadlink.c: Likewise.
5466 * tests/test-areadlinkat.c: Likewise.
5467 * tests/test-filenamecat.c: Likewise.
5468 * tests/test-fseeko.c: Likewise.
5469 * tests/test-ftello.c: Likewise.
5470 * tests/test-getdate.c: Likewise.
5471 * tests/test-getgroups.c: Likewise.
5472 * tests/test-gethostname.c: Likewise.
5473 * tests/test-quotearg.c: Likewise.
5474 * tests/test-version-etc.c: Likewise.
5475 * tests/test-xalloc-die.c: Likewise.
5476 * tests/test-xfprintf-posix.c: Likewise.
5477 * tests/test-xprintf-posix.c: Likewise.
5478 * tests/test-xvasprintf.c: Likewise.
5480 tests: avoid compiler warnings
5481 * tests/test-fcntl.c (main): Delete unused parameters.
5482 * tests/test-freopen-safer.c (main): Likewise.
5483 * tests/test-xalloc-die.c (main): Mark unused parameters.
5484 * tests/test-fseeko.c (main): Likewise.
5485 * tests/test-ftello.c (main): Likewise.
5486 * tests/test-nanosleep.c (main): Avoid declaration warning.
5487 * tests/test-sleep.c (main): Likewise.
5488 * tests/test-unsetenv.c (main): Silence warning about string
5490 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5492 2009-12-23 Bruno Haible <bruno@clisp.org>
5494 * tests/test-localename.c (test_locale_name): New function, extracted
5495 from main. Also test mixed situations.
5496 (test_locale_name_posix, test_locale_name_environ,
5497 test_locale_name_default): New functions.
5498 (main): Invoke them all.
5499 * modules/localename-tests (configure.ac): Test for newlocale.
5501 2009-12-23 Bruno Haible <bruno@clisp.org>
5503 unistd: Ensure getcwd gets declared before being overridden.
5504 * lib/unistd.in.h: Conditionally include <io.h>.
5506 2009-12-22 Bruno Haible <bruno@clisp.org>
5508 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5509 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5510 (gl_WCHAR_H): Invoke it.
5511 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5512 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5513 Reported by Karl Berry <karl@freefriends.org>.
5515 2009-12-22 Eric Blake <ebb9@byu.net>
5517 math, unistd: avoid redundant includes
5518 * lib/math.in.h (isnan): No need to re-include <math.h>.
5519 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5521 getsubopt: work around cygwin bug
5522 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5523 avoid conflicting with system getsubopt.
5524 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5527 getopt: synchronize from glibc
5528 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5529 parameter order. Adjust all callers.
5530 (_getopt_internal_r, main): Adjust quoting in error messages.
5531 Drop considerations for outdated POSIX 1003.2 error message.
5532 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5534 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5536 test-getopt: test stderr behavior
5537 * modules/getopt-posix-tests (Depends-on): Add dup2.
5538 * tests/test-getopt.c (ASSERT): Avoid stderr.
5539 (main): Move stderr to a temporary file.
5540 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5541 Instead, add parameter to inform caller if output occurred.
5542 (test_getopt): Adjust all existing tests to expect silence, and
5543 add new tests of leading ":".
5544 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5545 glibc shortcomings with leading "-:" or "+:" in optstring.
5546 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5548 * doc/posix-functions/getopt.texi (getopt): Likewise.
5550 test-getopt: enhance test
5551 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5553 * tests/test-getopt.c (OPTIND_MIN): Move...
5554 * tests/test-getopt.h (OPTIND_MIN): ...here.
5555 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5556 Require that optind=0 works, since modern BSD supports it in
5557 addition to optreset, and since coreutils expects it.
5558 (test_getopt_long_only): New test.
5559 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5560 glibc shortcomings with 'W;', and enforcement of optind=0.
5561 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5564 2009-12-21 Bruno Haible <bruno@clisp.org>
5566 localename: Improvements for MacOS X and Cygwin.
5567 * lib/localename.h (gl_locale_name_environ): New declaration.
5568 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5569 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5570 (gl_locale_name_posix): Invoke it.
5571 (gl_locale_name_default): Add comments. Use Windows native API also on
5574 2009-12-21 Bruno Haible <bruno@clisp.org>
5576 Update list of Win32 locale ids.
5577 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5578 (LANG_SAMI): Renamed from LANG_SAAMI.
5579 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5580 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5581 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5582 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5583 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5584 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5585 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5586 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5587 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5588 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5589 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5590 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5591 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5592 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5593 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5594 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5595 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5596 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5597 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5598 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5599 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5600 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5601 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5602 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5603 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5604 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5605 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5606 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5607 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5608 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5609 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5610 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5611 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5612 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5613 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5614 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5615 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5616 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5617 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5618 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5619 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5620 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5621 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5622 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5623 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5624 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5625 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5626 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5627 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5628 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5629 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5630 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5631 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5632 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5633 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5634 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5635 Add more languages and countries for Sami, Sorbian. Add more countries
5636 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5637 for Pashto. Change country for Syriac, Tswana.
5639 2009-12-21 Eric Blake <ebb9@byu.net>
5641 test-utimens: avoid spurious failure
5642 * tests/test-chown.h (nap): Factor...
5643 * tests/nap.h: ...into new file.
5644 * tests/test-lchown.h (nap): Avoid duplication.
5645 * tests/test-utimens-common.h (nap): Use shared implementation,
5646 necessary on file systems with 1-second resolution.
5647 * modules/chown-tests (Files): Include new file.
5648 * modules/fdutimensat-tests (Files): Likewise.
5649 * modules/futimens-tests (Files): Likewise.
5650 * modules/lchown-tests (Files): Likewise.
5651 * modules/openat-tests (Files): Likewise.
5652 * modules/utimens-tests (Files): Likewise.
5653 * modules/utimensat-tests (Files): Likewise.
5655 2009-12-19 Eric Blake <ebb9@byu.net>
5657 futimens, utimensat: work around Linux bug
5658 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5659 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5660 * lib/utimensat.c (rpl_utimensat): Work around it.
5661 * lib/futimens.c (rpl_futimens): Adjust comment.
5663 utimens: work around Linux ctime bug
5664 * lib/utimens.c (detect_ctime_bug): New helper function.
5665 (update_timespec): Differentiate between workaround needed for
5666 this bug vs. what is needed for systems that lack utimensat.
5667 (fdutimens, lutimens): Work around bug.
5669 utimens: check for ctime update
5670 * tests/test-utimens-common.h (check_ctime): Define.
5671 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5672 * tests/test-futimens.h (test_futimens): Likewise.
5673 * tests/test-lutimens.h (test_lutimens): Likewise.
5674 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5675 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5677 2009-12-19 Bruno Haible <bruno@clisp.org>
5679 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5680 * tests/test-dprintf-posix2.sh: New file.
5681 * tests/test-dprintf-posix2.c: New file.
5682 * modules/dprintf-posix-tests (Files): Add them.
5683 (configure.ac): Check for getrlimit and setrlimit.
5684 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5686 2009-12-19 Bruno Haible <bruno@clisp.org>
5688 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5689 * tests/test-fprintf-posix3.sh: New file.
5690 * tests/test-fprintf-posix3.c: New file.
5691 * modules/fprintf-posix-tests (Files): Add them.
5692 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5694 2009-12-19 Eric Blake <ebb9@byu.net>
5696 dirfd: fix prototype
5697 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5698 * lib/dirfd.c (dirfd): Likewise.
5700 canonicalize: reduce memory usage
5701 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5703 Reported by Solar Designer <solar@openwall.com>.
5705 2009-12-19 Bruno Haible <bruno@clisp.org>
5707 New module attribute 'Applicability'.
5708 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5709 * gnulib-tool: New option --extract-applicability.
5710 (func_usage): Document it.
5711 (sed_extract_prog): Recognize it.
5712 (func_get_applicability): New function.
5713 (func_import): Generalize handling of 'link-warning' module.
5714 * modules/link-warning (Applicability): New section.
5715 * modules/arg-nonnull (Applicability): New section.
5716 Repoted by Simon Josefsson <simon@josefsson.org>.
5718 2009-12-19 Bruno Haible <bruno@clisp.org>
5721 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5722 * lib/fseeko.c (rpl_fseeko): Likewise.
5724 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5726 * lib/gl_list.h: Fix typo in comment.
5728 2009-12-16 Eric Blake <ebb9@byu.net>
5730 fcntl: use to simplify other modules
5731 * modules/cloexec (Depends-on): Add fcntl.
5732 * modules/fchdir (Depends-on): Likewise.
5733 * modules/fd-safer-flag (Depends-on): Likewise.
5734 * modules/unistd-safer (Depends-on): Likewise.
5735 * modules/dup3 (configure.ac): Set module indicator.
5736 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5738 * lib/fchdir.c (_gl_register_dup): Fix comment.
5739 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5740 * lib/dup-safer.c (dup_safer): Likewise.
5741 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5742 * lib/dup3.c (dup3): Likewise.
5743 * tests/test-fchdir.c (main): Enhance test.
5744 Fixes a dup_cloexec bug reported by Ondřej Vašík.
5746 fcntl: port portions of fcntl to mingw
5747 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5748 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5749 replacement for mingw.
5750 * modules/fcntl (Description): Update.
5751 (Depends-on): Add dup2.
5752 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5753 * modules/fcntl-h (Makefile.am): Substitute it.
5754 * lib/fcntl.in.h (fcntl): Update declaration.
5755 (F_DUPFD, F_GETFD): New macros, when needed.
5756 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5757 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5758 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5761 fcntl: work around cygwin bug in F_DUPFD
5762 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5763 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5764 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5765 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5766 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5768 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5769 * modules/fcntl (Files): List new files.
5770 (configure.ac): Run a test.
5771 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5772 * lib/fcntl.c (rpl_fcntl): Likewise.
5773 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5774 (gl_FCNTL_H): Always replace fcntl.h.
5775 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5776 * lib/fcntl.in.h (fcntl): Declare replacement.
5777 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5778 needed, plus a witness.
5779 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5780 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5781 * tests/test-fcntl.c: New file.
5782 * modules/fcntl-tests: Likewise.
5784 binary-io: avoid potential compilation warning
5785 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5788 fflush: avoid compilation error on NetBSD
5789 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5790 between off_t and fpos_t, since the latter is sometimes a struct.
5791 * lib/fseeko.c (rpl_fseeko): Likewise.
5792 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5794 2009-12-15 Eric Blake <ebb9@byu.net>
5796 fcntl-h, stdio, sys_ioctl: fix declarations
5797 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5798 function must not take arguments.
5799 * lib/sys_ioctl.in.h (ioctl): Likewise.
5800 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5801 (open): Add a link warning.
5803 2009-12-15 Jim Meyering <meyering@redhat.com>
5805 areadlink, areadlink-with-size: relax license to LGPLv2+
5806 * modules/areadlink (License): Relax to LGPLv2+.
5807 * modules/areadlink-with-size (License): Likewise.
5809 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5810 Bruno Haible <bruno@clisp.org>
5812 *printf: Fix memory leak.
5813 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5814 * lib/vfprintf.c (vfprintf): Likewise.
5815 * lib/dprintf.c (dprintf): Likewise.
5816 * lib/vdprintf.c (vdprintf): Likewise.
5818 2009-12-14 Eric Blake <ebb9@byu.net>
5820 accept4: adjust module dependencies
5821 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5823 utimens: one more try at avoiding compiler warning
5824 * lib/utimens.c (lutimens): Lower scope of result.
5826 2009-12-13 Bruno Haible <bruno@clisp.org>
5828 Move the malloc checking from module 'list' to new module 'xlist'.
5829 * modules/xlist: New file.
5830 * lib/gl_xlist.h: New file.
5831 * lib/gl_xlist.c: New file.
5832 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5833 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5834 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5835 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5836 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5837 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5838 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5839 gl_sortedlist_nx_add): New declarations.
5840 (struct gl_list_implementation): Rename and change methods accordingly.
5841 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5842 (gl_list_nx_create): Renamed from gl_list_create.
5843 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5844 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5845 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5846 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5847 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5848 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5849 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5850 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5851 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5852 gl_list_create_empty.
5853 (gl_list_nx_create): Renamed from gl_list_create.
5854 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5855 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5856 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5857 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5858 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5859 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5860 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5861 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5862 * lib/gl_array_list.c: Don't include xalloc.h.
5863 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5864 NULL upon out-of-memory.
5865 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5867 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5868 Change return type to 'int'.
5869 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5870 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5871 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5873 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5875 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5877 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5879 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5881 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5883 (gl_array_list_implementation): Update.
5884 * lib/gl_carray_list.c: Don't include xalloc.h.
5885 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5886 Return NULL upon out-of-memory.
5887 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5889 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5890 Change return type to 'int'.
5891 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5892 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5893 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5895 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5897 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5899 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5900 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5901 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5903 (gl_carray_list_implementation): Update.
5904 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5905 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5906 gl_linked_create_empty. Return NULL upon out-of-memory.
5907 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5909 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5910 Change return type to 'int'. Return -1 upon out-of-memory.
5911 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5913 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5915 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5917 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5918 NULL upon out-of-memory.
5919 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5921 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5923 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5925 * lib/gl_linked_list.c: Don't include xalloc.h.
5926 (gl_linked_list_implementation): Update.
5927 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5928 (add_to_bucket): Change return type to 'int'.
5929 (gl_linkedhash_list_implementation): Update.
5930 * lib/gl_anytree_list1.h (free_subtree): New function.
5931 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5932 gl_tree_create_empty. Return NULL upon out-of-memory.
5933 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5934 Change return type to 'int'. Return -1 upon out-of-memory.
5935 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5937 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5938 (gl_tree_remove_node): New function, moved here from
5939 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5940 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5942 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5943 malloc, not xmalloc. Return NULL upon out-of-memory.
5944 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5946 (gl_tree_remove_node_from_tree): New function, extracted from
5947 gl_tree_remove_node.
5948 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5950 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5952 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5954 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5956 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5957 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5958 not xmalloc. Return NULL upon out-of-memory.
5959 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5961 (gl_tree_remove_node_from_tree): New function, extracted from
5962 gl_tree_remove_node.
5963 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5965 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5967 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5969 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5971 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5972 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5973 gl_anytree_list1.h before gl_anyavltree_list2.h.
5974 (gl_avltree_list_implementation): Update.
5975 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5976 gl_anytree_list1.h before gl_anyavltree_list2.h.
5977 (gl_rbtree_list_implementation): Update.
5978 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5979 Change return type to 'int'. Return -1 upon out-of-memory. Use
5981 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5982 (gl_avltreehash_list_implementation): Update.
5983 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5984 (gl_rbtreehash_list_implementation): Update.
5985 * modules/array-list (Depends-on): Remove xalloc.
5986 * modules/carray-list (Depends-on): Likewise.
5987 * modules/linked-list (Depends-on): Likewise.
5988 * modules/linkedhash-list (Depends-on): Likewise.
5989 * modules/avltree-list (Depends-on): Likewise.
5990 * modules/rbtree-list (Depends-on): Likewise.
5991 * modules/avltreehash-list (Depends-on): Likewise.
5992 * modules/rbtreehash-list (Depends-on): Likewise.
5994 * modules/xsublist: New file.
5995 * lib/gl_xsublist.h: New file.
5996 * lib/gl_xsublist.c: New file.
5997 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5998 (gl_sublist_nx_create): New declaration.
5999 * lib/gl_sublist.c: Don't include xalloc.h.
6000 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6001 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6002 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6003 Change return type to 'int'. Return -1 upon out-of-memory.
6004 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6006 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6007 NULL upon out-of-memory.
6008 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6010 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6011 NULL upon out-of-memory.
6012 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6013 NULL upon out-of-memory.
6014 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6016 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6017 (gl_sublist_list_implementation): Update.
6018 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6020 * modules/sublist (Depends-on): Remove xalloc.
6022 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6023 * tests/test-carray_list.c: Likewise.
6024 * tests/test-linked_list.c: Likewise.
6025 * tests/test-linkedhash_list.c: Likewise.
6026 * tests/test-avltree_list.c: Likewise.
6027 * tests/test-rbtree_list.c: Likewise.
6028 * tests/test-avltreehash_list.c: Likewise.
6029 * tests/test-rbtreehash_list.c: Likewise.
6030 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6031 * modules/carray-list-tests (Makefile.am): Likewise.
6032 * modules/linked-list-tests (Makefile.am): Likewise.
6033 * modules/linkedhash-list-tests (Makefile.am): Likewise.
6034 * modules/avltree-list-tests (Makefile.am): Likewise.
6035 * modules/rbtree-list-tests (Makefile.am): Likewise.
6036 * modules/avltreehash-list-tests (Makefile.am): Likewise.
6037 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6039 * NEWS: Mention the changes.
6041 * lib/clean-temp.c: Include gl_xlist.h.
6042 * modules/clean-temp (Depends-on): Add xlist.
6044 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6045 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6047 * tests/test-array_oset.c: Include gl_xlist.h.
6048 * modules/array-oset-tests (Depends-on): Add xlist.
6050 Reported by José E. Marchesi <jemarch@gnu.org>.
6052 2009-12-13 Bruno Haible <bruno@clisp.org>
6054 Move the malloc checking from module 'oset' to new module 'xoset'.
6055 * modules/xoset: New file.
6056 * lib/gl_xoset.h: New file.
6057 * lib/gl_xoset.c: New file.
6058 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6060 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6061 (struct gl_oset_implementation): Rename and change methods accordingly.
6062 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6063 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6064 'int'. Mark as __warn_unused_result__.
6065 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6066 gl_oset_create_empty.
6067 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6069 * lib/gl_array_oset.c: Don't include xalloc.h.
6070 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6071 malloc, not xmalloc.
6072 (grow): Change return type to 'int'. Don't call xalloc_die.
6073 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6075 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6077 (gl_array_oset_implementation): Update.
6078 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6079 gl_tree_create_empty.
6080 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6082 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6083 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6085 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6087 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6089 (gl_avltree_oset_implementation): Update.
6090 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6091 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6093 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6095 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6097 (gl_rbtree_oset_implementation): Update.
6098 * modules/array-oset (Depends-on): Remove xalloc.
6099 * modules/avltree-oset (Depends-on): Likewise.
6100 * modules/rbtree-oset (Depends-on): Likewise.
6101 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6102 * tests/test-avltree_oset.c: Likewise.
6103 * tests/test-rbtree_oset.c: Likewise.
6104 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6105 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6106 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6107 * NEWS: Mention the change.
6109 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6111 maint.mk: allow a project to override release-prep commands
6112 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6113 commands into a new rule.
6114 (release-prep): New rule.
6115 (release-prep-hook): New overridable variable.
6117 2009-12-13 Bruno Haible <bruno@clisp.org>
6119 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6121 2009-12-13 Jim Meyering <meyering@redhat.com>
6123 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6124 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6126 2009-12-12 Bruno Haible <bruno@clisp.org>
6129 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6131 2009-12-12 Karl Berry <karl@gnu.org>
6133 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6135 2009-12-12 Bruno Haible <bruno@clisp.org>
6137 * m4/po.m4: Undo incorrect untabification.
6139 2009-12-12 Bruno Haible <bruno@clisp.org>
6141 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6142 * modules/c-strtod (Depends-on): Add locale.
6143 * modules/c-strtold (Depends-on): Likewise.
6145 2009-12-12 Bruno Haible <bruno@clisp.org>
6147 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6149 2009-12-11 Eric Blake <ebb9@byu.net>
6151 setenv: relax requirement in light of POSIX ruling
6152 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6154 * tests/test-setenv.c (main): Relax test.
6155 * tests/test-unsetenv.c (main): Likewise.
6156 * doc/posix-functions/setenv.texi (setenv): Document this.
6157 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6159 2009-12-11 Bruno Haible <bruno@clisp.org>
6161 New module 'fd-safer-flag'.
6162 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6163 * lib/dup-safer.c (dup_safer_flag): Remove function.
6164 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6165 * lib/fd-safer.c (fd_safer_flag): Remove function.
6166 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6167 * modules/cloexec (configure.ac): Drop indicator macro.
6168 * modules/fd-safer-flag: New file.
6169 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6170 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6171 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6173 2009-12-11 Bruno Haible <bruno@clisp.org>
6175 Tests for module 'nl_langinfo'.
6176 * modules/nl_langinfo-tests: New file.
6177 * tests/test-nl_langinfo.sh: New file.
6178 * tests/test-nl_langinfo.c: New file.
6180 New module 'nl_langinfo'.
6181 * lib/nl_langinfo.c: New file.
6182 * m4/nl_langinfo.m4: New file.
6183 * modules/nl_langinfo: New file.
6184 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6186 2009-12-11 Bruno Haible <bruno@clisp.org>
6188 Tests for module 'langinfo'.
6189 * modules/langinfo-tests: New file.
6190 * tests/test-langinfo.c: New file.
6192 New module 'langinfo'.
6193 * lib/langinfo.in.h: New file.
6194 * m4/langinfo_h.m4: New file.
6195 * modules/langinfo: New file.
6196 * doc/posix-headers/langinfo.texi: Mention the new module.
6198 2009-12-11 Bruno Haible <bruno@clisp.org>
6200 * lib/config.charset: Untabify.
6202 2009-12-11 Bruno Haible <bruno@clisp.org>
6204 * modules/unistd-safer (configure.ac): Drop indicator macro.
6206 2009-12-11 Bruno Haible <bruno@clisp.org>
6208 Move pipe2-safer code to its own file.
6209 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6210 * lib/pipe-safer.c (pipe2_safer): Remove function.
6211 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6212 (Makefile.am): Add it to lib_SOURCES.
6214 2009-12-10 Bruno Haible <bruno@clisp.org>
6216 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6218 2009-12-10 Bruno Haible <bruno@clisp.org>
6220 Declare which arguments expect non-NULL values, for GCC and clang.
6221 * build-aux/arg-nonnull.h: New file.
6222 * modules/arg-nonnull: New file.
6223 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6224 (inet_ntop, inet_pton): Use it.
6225 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6226 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6227 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6228 (open, openat): Use it.
6229 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6231 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6232 (getopt, getopt_long, getopt_long_only): Use it.
6233 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6234 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6236 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6237 (iconv_open): Use it.
6238 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6239 (strtoimax, strtoumax): Use it.
6240 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6241 (duplocale): Use it.
6242 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6243 (frexp, frexpl): Use it.
6244 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6245 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6246 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6247 (tsearch, tfind, tdelete, twalk): Use it.
6248 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6249 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6250 sigpending): Use it.
6251 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6252 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6253 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6254 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6255 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6256 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6257 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6258 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6259 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6260 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6261 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6263 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6264 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6265 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6266 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6267 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6268 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6269 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6270 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6271 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6272 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6273 strtoull, unsetenv): Use it.
6274 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6275 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6276 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6277 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6278 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6279 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6280 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6281 (strcasecmp, strncasecmp): Use it.
6282 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6283 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6284 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6285 rpl_setsockopt): Use it.
6286 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6287 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6288 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6289 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6290 (gettimeofday): Use it.
6291 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6293 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6295 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6296 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6297 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6298 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6299 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6300 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6301 unlinkat, write): Use it.
6302 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6303 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6304 * lib/argv-iter.h: Include arg-nonnull.h.
6305 (_ATTRIBUTE_NONNULL_): Remove macro.
6306 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6307 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6308 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6310 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6311 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6312 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6313 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6314 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6315 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6316 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6317 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6318 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6319 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6320 * modules/dirent (Depends-on): Add arg-nonnull.
6321 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6322 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6323 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6324 * modules/fnmatch (Depends-on): Add arg-nonnull.
6325 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6326 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6327 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6328 * modules/glob (Depends-on): Add arg-nonnull.
6329 (Makefile.am): Insert arg-nonnull.h into glob.h.
6330 * modules/iconv_open (Depends-on): Add arg-nonnull.
6331 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6332 * modules/inttypes (Depends-on): Add arg-nonnull.
6333 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6334 * modules/locale (Depends-on): Add arg-nonnull.
6335 (Makefile.am): Insert arg-nonnull.h into locale.h.
6336 * modules/math (Depends-on): Add arg-nonnull.
6337 (Makefile.am): Insert arg-nonnull.h into math.h.
6338 * modules/netdb (Depends-on): Add arg-nonnull.
6339 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6340 * modules/search (Depends-on): Add arg-nonnull.
6341 (Makefile.am): Insert arg-nonnull.h into search.h.
6342 * modules/signal (Depends-on): Add arg-nonnull.
6343 (Makefile.am): Insert arg-nonnull.h into signal.h.
6344 * modules/spawn (Depends-on): Add arg-nonnull.
6345 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6346 * modules/stdio (Depends-on): Add arg-nonnull.
6347 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6348 * modules/stdlib (Depends-on): Add arg-nonnull.
6349 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6350 * modules/string (Depends-on): Add arg-nonnull.
6351 (Makefile.am): Insert arg-nonnull.h into string.h.
6352 * modules/strings (Depends-on): Add arg-nonnull.
6353 (Makefile.am): Insert arg-nonnull.h into strings.h.
6354 * modules/sys_socket (Depends-on): Add arg-nonnull.
6355 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6356 * modules/sys_stat (Depends-on): Add arg-nonnull.
6357 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6358 * modules/sys_time (Depends-on): Add arg-nonnull.
6359 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6360 * modules/sys_times (Depends-on): Add arg-nonnull.
6361 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6362 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6363 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6364 * modules/time (Depends-on): Add arg-nonnull.
6365 (Makefile.am): Insert arg-nonnull.h into time.h.
6366 * modules/unistd (Depends-on): Add arg-nonnull.
6367 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6368 * modules/wchar (Depends-on): Add arg-nonnull.
6369 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6370 * modules/argv-iter (Depends-on): Add arg-nonnull.
6371 * tests/test-canonicalize.c (null_ptr): New function.
6373 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6375 * tests/test-memmem.c (null_ptr): New function.
6377 Reported by Jim Meyering.
6379 2009-12-10 Bruno Haible <bruno@clisp.org>
6381 Use spaces for indentation, not tabs.
6382 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6383 * m4/*.m4: Untabify.
6384 * build-aux/*.h: Untabify.
6385 * tests/**/*.[hc]: Untabify.
6386 * README: New section "Indent with spaces, not TABs", based on
6387 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6388 * NEWS: Mention the change.
6390 2009-12-10 Bruno Haible <bruno@clisp.org>
6392 pty test: Fix link error.
6393 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6396 2009-12-07 Simon Josefsson <simon@josefsson.org>
6398 * modules/pty: New file.
6399 * modules/pty-tests: New file.
6400 * m4/pty.m4: New file.
6401 * tests/test-pty.c: New file.
6402 * doc/glibc-headers/pty.texi: Modified.
6403 * doc/glibc-functions/forkpty.texi: Modified.
6404 * doc/glibc-functions/openpty.texi: Modified.
6406 2009-12-10 Bruno Haible <bruno@clisp.org>
6408 Avoid syntax error in C++ mode.
6409 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6411 2009-12-10 Bruno Haible <bruno@clisp.org>
6413 Use sed with option -e.
6414 * gnulib-tool (func_version, func_emit_copyright_notice,
6415 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6417 * modules/link-warning (Makefile.am): Likewise.
6419 2009-12-10 Jim Meyering <meyering@redhat.com>
6421 mgetgroups: do not write bytes beyond end of malloc'd buffer
6422 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6423 username, we call getgroups with a one-element-shorter buffer,
6424 but still told it the length was original, max_n_groups.
6426 2009-12-09 Eric Blake <ebb9@byu.net>
6428 cloexec: relax license
6429 * modules/cloexec (Maintainer): Add myself.
6430 (License): Use LGPL, not GPL.
6432 link-warning: optimize generation
6433 * modules/link-warning (Makefile.am): Reduce process usage.
6435 2009-12-09 Bruno Haible <bruno@clisp.org>
6437 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6438 workaround was added on 2009-11-17.
6440 2009-12-09 Jim Meyering <meyering@redhat.com>
6441 Bruno Haible <bruno@clisp.org>
6443 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6444 * modules/link-warning (Makefile.am): Make the comment-removing sed
6445 command more robust in the face of bootstrap-prepended comment lines.
6447 2009-12-09 Bruno Haible <bruno@clisp.org>
6449 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6452 2009-12-09 Simon Josefsson <simon@josefsson.org>
6453 Bruno Haible <bruno@clisp.org>
6455 * build-aux/link-warning.h: Add copyright notice.
6456 * modules/link-warning (Makefile.am): Generate link-warning.h from
6457 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6458 * NEWS: Mention change in link-warning module.
6459 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6460 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6461 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6462 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6463 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6464 * modules/math (Makefile.am): Add dependency to math.h.
6465 * modules/search (Makefile.am): Add dependency to search.h.
6466 * modules/signal (Makefile.am): Add dependency to signal.h.
6467 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6468 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6469 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6470 * modules/string (Makefile.am): Add dependency to string.h.
6471 * modules/strings (Makefile.am): Add dependency to strings.h.
6472 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6473 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6474 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6475 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6476 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6477 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6478 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6479 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6480 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6482 2009-12-09 Bruno Haible <bruno@clisp.org>
6484 fchdir: Optimize away rpl_fstat when possible.
6485 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6486 REPLACE_OPEN_DIRECTORY.
6487 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6489 2009-12-09 Bruno Haible <bruno@clisp.org>
6491 * lib/fchdir.c: Update comment.
6493 2009-12-09 Bruno Haible <bruno@clisp.org>
6495 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6497 2009-12-08 Eric Blake <ebb9@byu.net>
6499 fchdir: avoid memory leak on re-registration.
6500 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6502 2009-12-08 Jim Meyering <meyering@redhat.com>
6504 init.sh: avoid Solaris 10 /bin/sh portability problem
6505 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6507 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6508 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6510 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6511 and two tests used that idiom.
6512 * tests/init.sh: Update suggested usage comments.
6513 (path_prepend_): New function, to be used in place
6514 of the --src-path=DIR option.
6515 (setup_): Move PATH-prepending code into path_prepend_.
6516 * tests/test-pread.sh: Adapt to new usage.
6517 * tests/test-xalloc-die.sh: Likewise.
6519 2009-12-08 Simon Josefsson <simon@josefsson.org>
6521 * doc/gnulib.texi (Glibc pty.h): Add.
6522 * doc/glibc-functions/forkpty.texi: Add.
6523 * doc/glibc-functions/openpty.texi: Add.
6524 Suggested by Bruno Haible.
6526 2009-12-08 Eric Blake <ebb9@byu.net>
6528 fchdir: fix logic bugs
6529 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6530 * tests/test-fchdir.c (main): Enhance test.
6531 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6534 dup2: fix logic bugs
6535 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6536 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6537 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6539 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6541 2009-12-07 Eric Blake <ebb9@byu.net>
6543 unlink: fix m4 detection
6544 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6546 unistd-safer: add unit test
6547 * modules/unistd-safer-tests: New file.
6548 * tests/test-dup-safer.c: Likewise.
6549 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6550 * tests/test-dup2.c (setmode): Likewise.
6551 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6553 cloexec: preserve text vs. binary across dup_cloexec
6554 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6556 * modules/dup2-tests (Depends-on): Add binary-io.
6557 * modules/cloexec-tests (Depends-on): Likewise.
6558 * tests/test-dup2.c (setmode, is_mode): New helpers.
6559 (main): Add tests that translation mode is preserved.
6560 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6561 Reported by Bruno Haible.
6563 mgetgroups: reduce duplicate listings
6564 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6566 * tests/test-chown.h (test_chown): Simplify client.
6567 * tests/test-lchown.h (test_lchown): Likewise.
6569 2009-12-06 Bruno Haible <bruno@clisp.org>
6571 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6574 2009-12-06 Bruno Haible <bruno@clisp.org>
6576 * lib/progname.c: Include stdio.h, stdlib.h.
6577 (set_program_name): Reject a NULL argument.
6579 2009-12-05 Eric Blake <ebb9@byu.net>
6581 pipe2-safer: new module
6582 * modules/pipe2-safer: New file.
6583 * lib/unistd-safer.h (pipe2_safer): New prototype.
6584 * lib/unistd--.h (pipe2): New wrapper.
6585 * lib/pipe-safer.c (pipe2_safer): New function.
6586 * modules/pipe (Depends-on): Add pipe2-safer.
6587 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6589 stdlib-safer: preserve cloexec flag for mkostemp[s]
6590 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6593 unistd-safer: allow preservation of cloexec status via flag
6594 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6596 * lib/dup-safer.c (dup_safer_flag): New function.
6597 * lib/fd-safer.c (fd_safer_flag): Likewise.
6598 * modules/cloexec (configure.ac): Set witness.
6600 test-dup2: enhance test
6601 * modules/dup2-tests (Depends-on): Add cloexec.
6602 * tests/test-dup2.c (main): Enhance test.
6604 cloexec: add dup_cloexec
6605 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6606 header and comments.
6607 * lib/cloexec.c (set_cloexec_flag): Add comments.
6608 (dup_cloexec): New function, with mingw implementation borrowed
6610 * lib/w32spawn.h (dup_noinherit): ...here.
6611 * modules/execute (Depends-on): Add cloexec.
6612 * modules/pipe (Depends-on): Likewise.
6613 * modules/cloexec (Depends-on): Add dup2.
6614 * modules/cloexec-tests (Files): New file.
6615 * tests/test-cloexec.c: Likewise.
6617 test-xalloc-die: fix test for mingw
6618 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6619 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6620 directory and .exe suffix off argv[0] output.
6622 test-fseeko: fix test for mingw
6623 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6624 than undefining fseek, so test will pass on mingw.
6626 2009-12-05 Bruno Haible <bruno@clisp.org>
6628 * lib/progname.h (set_program_name): Clarify specification.
6629 * lib/progname.c (set_program_name): Likewise.
6630 Reported by Jim Meyering.
6632 2009-12-05 Jim Meyering <meyering@redhat.com>
6634 maint.mk: backslash-escape parens in default regexp
6635 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6636 backslash-escape the literal parentheses.
6638 maint.mk: news-date-check: use grep -E
6639 * top/maint.mk (today): Define a Make variable, not a...
6640 (news-date-check): ...shell variable.
6641 (news-date-regexp): Use the Make variable.
6642 Use grep's -E option. Change the failing diagnostic to mention
6643 the variable, $(news-date-regexp).
6645 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6647 maintainer-makefile: allow customization of NEWS entry format
6648 * top/maint.mk (news-date-regexp): New overridable variable.
6649 (news-date-check): Use it.
6651 2009-12-04 Eric Blake <ebb9@byu.net>
6653 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6654 * lib/mgetgroups.h (xgetgroups): New prototype.
6655 * lib/mgetgroups.c (xgetgroups): New wrapper.
6656 (mgetgroups): Handle ENOSYS.
6657 * modules/mgetgroups (Depends-on): Add realloc.
6658 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6660 mgetgroups: avoid argument promotion issues with -1
6661 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6663 * tests/test-chown.h (getegid, test_chown): Likewise.
6664 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6666 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6668 exclude: Fix header file problems.
6669 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6671 2009-12-01 Jim Meyering <meyering@redhat.com>
6673 fts: fts_open: do not let an empty string cause immediate failure
6674 This is required in support of GNU rm, for which the command
6675 "rm A '' B" must process and remove both A and B, in spite of
6676 the empty string argument.
6677 * lib/fts.c (fts_open): Do not let the presence of an empty string
6678 cause fts_open to fail immediately. Most fts-using tools must be
6679 able to process all arguments, in order, and can be expected to
6680 diagnose such arguments themselves.
6682 2009-11-30 Eric Blake <ebb9@byu.net>
6684 utimens: fix compilation error
6685 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6686 Declare variable at right scope.
6688 2009-11-29 Jim Meyering <meyering@redhat.com>
6690 bootstrap: handle perl-5.11's changed --version output
6691 * build-aux/bootstrap (get_version): Handle perl separately,
6692 since perl-5.11's --version output is different.
6694 2009-11-28 Jim Meyering <meyering@redhat.com>
6696 userspec: depend on the inttostr module, too
6697 * modules/userspec (Depends-on): Add inttostr.
6699 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6700 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6701 number of MAXUID when it evaluates to (uid_t) -1.
6702 Likewise for group ID. Reported by Matt McCutchen in
6703 <http://savannah.gnu.org/bugs/?28113>
6705 userspec: reformat to use spaces, not TABs
6706 * lib/userspec.c: Expand TABs to spaces.
6707 Add Emacs' "indent-tabs-mode: nil" hint.
6709 2009-11-27 Eric Blake <ebb9@byu.net>
6711 getopt-gnu: flush out another BSD bug
6712 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6713 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6715 * tests/test-getopt.h (test_getopt): End lists with NULL.
6716 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6717 (test_getopt_long_posix): Enhance test.
6718 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6719 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6721 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6724 2009-11-27 Simon Josefsson <simon@josefsson.org>
6726 * modules/idpriv-droptemp-tests (Notice): Fix text.
6728 2009-11-27 Jim Meyering <meyering@redhat.com>
6730 test-xalloc-die: avoid spurious failure due to libtool argv difference
6731 In a libtool-enabled project, this test would fail due to a difference
6732 in the emitted program name, e.g.,
6733 -test-xalloc-die: memory exhausted
6734 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6735 Use program to avoid that.
6736 * modules/xalloc-die-tests (Depends-on): Add progname.
6737 * tests/test-xalloc-die.c: Include progname.h".
6738 (program_name): Remove decl.
6739 (main): Call set_program_name.
6740 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6742 2009-11-26 Richard Jones <rjones@redhat.com>
6744 w32sock: leave win32 error in place.
6745 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6747 2009-11-26 Eric Blake <ebb9@byu.net>
6749 init.sh: suggest to use skip_ and fail_ functions in comments
6750 * tests/init.sh: Add a sentence.
6752 2009-11-25 Bruno Haible <bruno@clisp.org>
6754 init.sh: add documentation in comments
6755 * tests/init.sh: Add some developer and user documentation.
6757 2009-11-26 Jim Meyering <meyering@redhat.com>
6759 init.sh: accommodate even those who specify bogus srcdir manually
6760 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6761 configure-time tests to be sanitized, so that there is no need to
6762 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6763 (with no double quotes) suffices. However, since tests may be
6764 invoked manually, and since you may explicitly set srcdir to the
6765 name of a directory containing spaces, do quote its uses here.
6766 * tests/test-pread.sh: Likewise.
6767 Suggested by Bruno Haible.
6769 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6770 * tests/test-pread.sh: Write no data into the pipe, because
6771 test-pread actually reads none. This avoids a diagnostic,
6772 "bash: echo: write error: Broken pipe", that arises in the unusual
6773 event something is ignoring SIGPIPE, and might be interpreted
6774 as some sort of failure. Reported by Bruno Haible.
6776 2009-11-25 Jim Meyering <meyering@redhat.com>
6778 test-pread: cover failure with ESPIPE and EINVAL
6779 * tests/test-pread.c (main): Test for failure, too.
6780 * tests/test-pread.sh: Invoke with stdin on a pipe.
6781 Suggested by Eric Blake.
6783 pread: improvement and fix
6784 * modules/pread (Depends-on): Depend on lseek, for portability to
6785 e.g., mingw. Suggested by Eric Blake.
6786 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6788 unistd.in.h: correct declaration of pread
6789 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6790 Reported by Richard W.M. Jones.
6792 test-pread.sh: distribute the test script
6793 * modules/pread-tests (Files): Include test-pread.sh.
6795 test-pread.sh: clean up
6796 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6797 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6798 That is unnecessary, since it's always ".".
6799 Suggestion from Eric Blake.
6801 test-pread.sh: make executable
6802 * tests/test-pread.sh: Set executable bit.
6803 Reported by Eric Blake.
6805 correct typo in test-pread.sh
6806 * tests/test-pread.sh: Add #! line.
6809 * tests/test-pread.c: New file.
6810 * tests/test-pread.sh: Likewise.
6811 * modules/pread-tests: Likewise.
6814 * modules/pread: New file.
6815 * lib/unistd.in.h (pread): Define/declare.
6816 * lib/pread.c (pread): New file.
6817 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6818 * modules/unistd (Makefile.am): Substitute witnesses.
6819 * doc/posix-functions/pread.texi (pread): Update.
6820 * MODULES.html.sh: Add pread.
6822 2009-11-25 Jim Meyering <meyering@redhat.com>
6824 tests/init.sh: new file to be used via most *.sh tests
6825 * tests/init.sh: New file.
6827 2009-11-25 Eric Blake <ebb9@byu.net>
6829 utimens: work around older Linux failure with symlinks
6830 * lib/utimens.c (lutimensat_works_really): New variable.
6831 (fdutimens, lutimens): Use it to manage kernels that support
6832 nanosecond times on files, but not on symlinks.
6833 Reported by Ondřej Vašík.
6835 utimes: fix configure grammar
6836 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6838 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6840 regex: Fix fastmap for multibyte character ranges.
6841 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6842 characters when a multibyte character range is included.
6844 2009-11-22 Andy Wingo <wingo@pobox.com>
6846 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6847 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6849 2009-11-24 Bruno Haible <bruno@clisp.org>
6851 doc: Most *_l functions exist in MacOS X 10.5.
6852 * doc/posix-functions/duplocale.texi: Update platforms list.
6853 * doc/posix-functions/freelocale.texi: Likewise.
6854 * doc/posix-functions/newlocale.texi: Likewise.
6855 * doc/posix-functions/uselocale.texi: Likewise.
6856 * doc/posix-functions/isalnum_l.texi: Likewise.
6857 * doc/posix-functions/isalpha_l.texi: Likewise.
6858 * doc/posix-functions/isblank_l.texi: Likewise.
6859 * doc/posix-functions/iscntrl_l.texi: Likewise.
6860 * doc/posix-functions/isdigit_l.texi: Likewise.
6861 * doc/posix-functions/isgraph_l.texi: Likewise.
6862 * doc/posix-functions/islower_l.texi: Likewise.
6863 * doc/posix-functions/isprint_l.texi: Likewise.
6864 * doc/posix-functions/ispunct_l.texi: Likewise.
6865 * doc/posix-functions/isspace_l.texi: Likewise.
6866 * doc/posix-functions/isupper_l.texi: Likewise.
6867 * doc/posix-functions/iswalnum_l.texi: Likewise.
6868 * doc/posix-functions/iswalpha_l.texi: Likewise.
6869 * doc/posix-functions/iswblank_l.texi: Likewise.
6870 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6871 * doc/posix-functions/iswctype_l.texi: Likewise.
6872 * doc/posix-functions/iswdigit_l.texi: Likewise.
6873 * doc/posix-functions/iswgraph_l.texi: Likewise.
6874 * doc/posix-functions/iswlower_l.texi: Likewise.
6875 * doc/posix-functions/iswprint_l.texi: Likewise.
6876 * doc/posix-functions/iswpunct_l.texi: Likewise.
6877 * doc/posix-functions/iswspace_l.texi: Likewise.
6878 * doc/posix-functions/iswupper_l.texi: Likewise.
6879 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6880 * doc/posix-functions/isxdigit_l.texi: Likewise.
6881 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6882 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6883 * doc/posix-functions/strcoll_l.texi: Likewise.
6884 * doc/posix-functions/strfmon_l.texi: Likewise.
6885 * doc/posix-functions/strftime_l.texi: Likewise.
6886 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6887 * doc/posix-functions/strxfrm_l.texi: Likewise.
6888 * doc/posix-functions/tolower_l.texi: Likewise.
6889 * doc/posix-functions/toupper_l.texi: Likewise.
6890 * doc/posix-functions/towctrans_l.texi: Likewise.
6891 * doc/posix-functions/towlower_l.texi: Likewise.
6892 * doc/posix-functions/towupper_l.texi: Likewise.
6893 * doc/posix-functions/wcscoll_l.texi: Likewise.
6894 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6895 * doc/posix-functions/wctrans_l.texi: Likewise.
6896 * doc/posix-functions/wctype_l.texi: Likewise.
6897 * doc/glibc-functions/strptime_l.texi: Likewise.
6898 * doc/glibc-functions/strtod_l.texi: Likewise.
6899 * doc/glibc-functions/strtof_l.texi: Likewise.
6900 * doc/glibc-functions/strtol_l.texi: Likewise.
6901 * doc/glibc-functions/strtold_l.texi: Likewise.
6902 * doc/glibc-functions/strtoll_l.texi: Likewise.
6903 * doc/glibc-functions/strtoul_l.texi: Likewise.
6904 * doc/glibc-functions/strtoull_l.texi: Likewise.
6905 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6906 * doc/glibc-functions/wcstod_l.texi: Likewise.
6907 * doc/glibc-functions/wcstof_l.texi: Likewise.
6908 * doc/glibc-functions/wcstol_l.texi: Likewise.
6909 * doc/glibc-functions/wcstold_l.texi: Likewise.
6910 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6911 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6912 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6914 2009-11-24 Bruno Haible <bruno@clisp.org>
6916 duplocale: Fix logic bug.
6917 * lib/duplocale.c: Don't include <langinfo.h>.
6918 (_NL_LOCALE_NAME): Remove macro.
6919 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6920 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6922 2009-11-23 Jim Meyering <meyering@redhat.com>
6924 test-update-copyright: don't hard-code /usr/bin/perl
6925 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6926 perl to print the current year. Gilles Espinasse reported that
6927 the replaced use of perl was hard-coded as /usr/bin/perl.
6929 2009-11-23 Bruno Haible <bruno@clisp.org>
6931 duplocale: Add support for glibc 2.3.x.
6932 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6934 2009-11-22 Bruno Haible <bruno@clisp.org>
6936 vasnprintf: Tiny optimization.
6937 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6940 2009-11-22 Bruno Haible <bruno@clisp.org>
6942 Tests for module 'duplocale'.
6943 * modules/duplocale-tests: New file.
6944 * tests/test-duplocale.c: New file.
6946 New module 'duplocale'.
6947 * m4/duplocale.m4: New file.
6948 * lib/locale.in.h (duplocale): New declaration.
6949 * lib/duplocale.c: New file.
6950 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6951 gl_LOCALE_H_DEFAULTS): New macros.
6952 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6953 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6954 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6956 * modules/duplocale: New file.
6957 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6959 2009-11-22 Bruno Haible <bruno@clisp.org>
6961 * modules/locale-tests (configure.ac): Test for newlocale function.
6962 * tests/test-locale.c: When the system has extended locale functions,
6963 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6965 locale: Make locale_t available when possible.
6966 * lib/locale.in.h: Include <xlocale.h> when it exists.
6967 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6968 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6969 * modules/locale (Depends-on): Add extensions.
6970 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6971 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6973 2009-11-22 Bruno Haible <bruno@clisp.org>
6976 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6978 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6979 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6980 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6982 2009-11-22 Bruno Haible <bruno@clisp.org>
6984 error: account for the possibility of freopen (stdout).
6985 * lib/error.c: Include <unistd.h>.
6986 (flush_stdout): New function, extracted from error and error_at_line.
6987 Determine stdout's fd dynamically.
6988 (error, error_at_line): Invoke flush_stdout.
6989 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6990 * modules/error (Depends-on): Add unistd.
6992 2009-11-22 Bruno Haible <bruno@clisp.org>
6994 diffseq: Add comment.
6995 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6997 2009-11-22 Jim Meyering <meyering@redhat.com>
6999 c-stack: avoid defining an unused static function
7000 * lib/c-stack.c (find_stack_direction): Do not define this function
7001 when it will not be used.
7003 diffseq: avoid spurious gcc warnings
7004 * lib/diffseq.h (IF_LINT2): Define.
7005 (compareseq): Use it to initialize two members of "part".
7006 This avoids two used-uninitialized warnings.
7008 2009-11-21 Jim Meyering <meyering@redhat.com>
7010 c-stack: avoid "ignoring return value of `write'" warning
7011 * lib/c-stack.c: Include "ignore-value.h".
7012 (die): Explicitly ignore each write return value.
7013 * modules/c-stack (Depends-on): Add ignore-value.
7015 2009-11-21 Bruno Haible <bruno@clisp.org>
7017 diffseq: reduce scope of variable 'best'.
7018 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7019 variable, earlier used for two different purposes.
7021 2009-11-21 Jim Meyering <meyering@redhat.com>
7023 diffseq: remove useless assignment to "best"
7024 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7025 assignment. At that point "best" is already guaranteed to be zero.
7027 2009-11-20 Eric Blake <ebb9@byu.net>
7029 build: mention ftp redirector in release announcements
7030 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7031 values that used to come from cfg.mk; mention FTP redirect URL.
7032 * build-aux/announce-gen: Mention the mirror list.
7033 Suggested by Karl Berry.
7035 nanosleep: improve port to mingw
7036 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7037 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7038 LIB_NANOSLEEP, but only when needed.
7039 * modules/select (Link): Document LIBSOCKET.
7040 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7043 nanosleep: work around cygwin bug
7044 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7045 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
7047 (getnow): Delete, not needed.
7048 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7050 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
7051 clock-time, gettime.
7052 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7054 * modules/nanosleep-tests: New test.
7055 * tests/test-nanosleep.c: New file.
7057 sleep: work around cygwin bug
7058 * lib/sleep.c (rpl_sleep): Work around the bug.
7059 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7060 (gl_PREREQ_SLEEP): Delete unused macro.
7061 * modules/sleep (Depends-on): Add verify.
7062 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7063 * modules/unistd (Makefile.am): Substitute witness.
7064 * lib/unistd.in.h (sleep): Update prototype.
7065 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7066 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7067 * modules/sleep-tests (Depends-on): Check for alarm.
7069 2009-11-20 Jim Meyering <meyering@redhat.com>
7071 maint.mk: improve sc_prohibit_magic_number_exit
7072 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7073 so it does not match uses like System.exit(1).
7074 Add comments showing how to correct all offenders.
7076 2009-11-19 Eric Blake <ebb9@byu.net>
7078 xalloc-die-tests: add missing library
7079 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7081 test-xvasprintf: silence compiler warnings
7082 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7083 empty string from gcc.
7085 2009-11-19 Jim Meyering <meyering@redhat.com>
7087 xfreopen: new module, from coreutils
7088 * modules/xfreopen: New module.
7089 * lib/xfreopen.c: New file.
7090 * lib/xfreopen.h: New file.
7091 * MODULES.html.sh (File stream based Input/Output"): Add it.
7093 2009-11-19 Eric Blake <ebb9@byu.net>
7095 manywarnings: depend on warnings
7096 * modules/manywarnings (Depends-on): Add warnings.
7098 build: avoid compiler warnings
7099 * lib/select.c (rpl_select): Delete unused variable.
7100 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7102 2009-11-18 Eric Blake <ebb9@byu.net>
7104 tests: avoid false negative with --with-packager
7105 * tests/test-version-etc.sh: Discard packager information.
7106 * tests/test-argp-version-etc-1.sh: Likewise.
7107 Reported by Mike Frysinger.
7109 utimens: fix regression on Solaris
7110 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7111 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7112 can only change fd timestamps via futimesat. Instead, use an
7113 additional witness macro to avoid BSD bug.
7114 Reported by Jim Meyering.
7116 2009-11-17 Eric Blake <ebb9@byu.net>
7118 usleep: use it to simplify tests
7119 * modules/stat-time-tests (Depends-on): Add usleep.
7120 (configure.ac): Drop usleep check.
7121 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7122 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7123 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7124 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7125 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7126 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7127 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7128 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7130 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7131 * tests/test-lchown.h (nap): Likewise.
7132 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7133 * tests/test-stat-time.c (nap): Likewise.
7134 * tests/test-utimens-common.h (nap): Update comments.
7137 * modules/usleep: New file.
7138 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7139 * lib/usleep.c (usleep): Likewise.
7140 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7141 * modules/unistd (Makefile.am): Substitute witnesses.
7142 * lib/unistd.in.h (usleep): Add declaration.
7143 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7144 * MODULES.html.sh (Date and time): Likewise.
7145 * modules/usleep-tests (Depends-on): New test.
7146 * tests/test-usleep.c: New file.
7148 chown: work around OpenBSD bug
7149 * lib/chown.c (rpl_chown): Work around the bug.
7150 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7151 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7152 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7153 * modules/chown (Depends-on): Add stdbool.
7154 * modules/lchown (Depends-on): Likewise.
7155 * doc/posix-functions/chown.texi (chown): Document the bug.
7156 * doc/posix-functions/lchown.texi (lchown): Likewise.
7157 * tests/test-lchown.h (test_chown): Relax test.
7159 mkstemp: avoid conflict with C++ keyword template
7160 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7161 * lib/mkostemp.c (mkostemp): Likewise.
7162 * lib/mkostemps.c (mkostemps): Likewise.
7163 * lib/mkstemp.c (mkstemp): Likewise.
7164 * lib/mkstemps.c (mkstemps): Likewise.
7166 xalloc-die-tests: optimize
7167 * tests/test-xalloc-die.sh: Reduce number of processes.
7169 2009-11-17 Simon Josefsson <simon@josefsson.org>
7171 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7172 patch from ludo@gnu.org (Ludovic Courtès).
7174 2009-11-17 Jim Meyering <meyering@redhat.com>
7176 version-etc: use proper license string
7177 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7178 * modules/version-etc-fsf: Likewise.
7180 2009-11-17 Simon Josefsson <simon@josefsson.org>
7182 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7183 printed to stdout. Deal with EOL differences.
7185 2009-11-17 Eric Blake <ebb9@byu.net>
7187 unsetenv: work around Solaris bug
7188 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7189 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7190 Reported by Jim Meyering.
7192 vasnprintf: avoid compiler warnings
7193 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7195 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7197 2009-11-17 Simon Josefsson <simon@josefsson.org>
7199 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7200 settings since xalloc-die is no longer the self test,
7203 2009-11-17 Jim Meyering <meyering@redhat.com>
7205 test-xalloc-die.sh: make the code agree with the commit log
7206 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7207 at the end, just in case you happen to have a test-xalloc-die
7208 program in some other PATH directory.
7210 test-xalloc-die.sh: fix a portability bug
7211 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7212 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7213 Otherwise, argv[0] (as often seen in diagnostics) would be too
7214 system-dependent, sometimes with, and sometimes without the leading "./".
7216 version-etc-fsf: relax license to LGPLv3+
7217 * modules/version-etc-fsf (License): Relax license.
7219 2009-11-16 Eric Blake <ebb9@byu.net>
7221 xalloc-die-tests: avoid printing null pointer
7222 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7224 * tests/test-xalloc-die.c (program_name): Declare.
7225 * tests/test-xalloc-die.sh (tmpfiles): New file.
7227 setenv, unsetenv: work around various bugs
7228 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7229 (setenv) [HAVE_SETENV]: Work around bugs.
7230 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7231 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7233 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7234 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7235 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7236 * modules/stdlib (Makefile.am): Update substitutions.
7237 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7238 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7239 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7240 * modules/setenv-tests: New test.
7241 * modules/unsetenv-tests: Likewise.
7242 * tests/test-setenv.c: New file.
7243 * tests/test-unsetenv.c: Likewise.
7245 2009-11-16 Jim Meyering <meyering@redhat.com>
7247 version-etc: relax license to LGPLv3+
7248 * modules/version-etc (License): Relax license.
7250 better AC_REQUIRE expanded-before-required-warning avoidance
7251 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7252 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7253 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7254 which is no longer needed.
7256 2009-11-16 Eric Blake <ebb9@byu.net>
7258 test-freading: clean up temporary file
7259 * tests/test-freading.c (main): Remove file on success, and use
7260 ASSERT more liberally.
7261 Reported by Jim Meyering.
7263 2009-11-16 Jim Meyering <meyering@redhat.com>
7265 avoid new AC_REQUIRE expanded-before-required warnings
7266 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7268 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7269 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7271 2009-11-15 Simon Josefsson <simon@josefsson.org>
7273 * tests/test-xalloc-die.c: New file.
7274 * modules/xalloc-die-tests: New file.
7275 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7276 XFAIL_TESTS so it can be appended by modules.
7278 2009-11-15 Simon Josefsson <simon@josefsson.org>
7280 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7281 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7283 2009-11-14 Eric Blake <ebb9@byu.net>
7285 fnmatch: avoid compiler warning
7286 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7287 to silence compiler warning about mismatch signedness in ?:.
7288 Reported by Robert Millan.
7290 intprops: add double-inclusion guard
7291 * lib/intprops.h: Allow idempotent includes.
7292 Suggested by Bruce Korb.
7294 openat: detect Solaris fchownat bug
7295 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7296 penalizing glibc chownat when only lchownat is broken.
7297 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7298 trailing slash bugs.
7299 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7300 * modules/openat-tests (Files): Include more files.
7301 (Depends-on): Add mgetgroups, sleep, stat-time.
7302 (configure.ac): Add additional checks.
7303 (Makefile.am): Build new test.
7304 * tests/test-fchownat.c: New file.
7306 lchown: detect Solaris and FreeBSD bug
7307 * lib/lchown.c (rpl_lchown): Work around bug.
7308 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7309 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7310 * modules/unistd (Makefile.am): Populate it.
7311 * lib/unistd.in.h (lchown): Update declaration.
7312 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7313 * modules/lchown-tests: New file.
7314 * tests/test-lchown.h (test_lchown): Likewise.
7315 * tests/test-lchown.c (main): Likewise.
7317 chown: detect Solaris and FreeBSD bug
7318 * lib/chown.c (rpl_chown): Work around bug.
7319 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7320 (gl_PREREQ_CHOWN): Delete.
7321 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7322 * modules/unistd (Makefile.am): Populate it.
7323 * lib/unistd.in.h (chown): Update declaration.
7324 * lib/lchown.c (chown): Update client.
7325 * modules/lchown (Depends-on): Add lstat.
7326 * doc/posix-functions/chown.texi (chown): Document the bug.
7327 * doc/posix-functions/getgroups.texi (getgroups): Document
7329 * modules/chown-tests: New file.
7330 * tests/test-chown.h (test_chown): Likewise.
7331 * tests/test-chown.c (main): Likewise.
7333 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7335 gnulib-tool: correctly detect absence of m4 directories
7336 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7338 2009-11-14 Jim Meyering <meyering@redhat.com>
7340 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7341 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7343 2009-11-14 John W. Eaton <jwe@gnu.org>
7345 strftime.h: wrap funtion declaration in extern "C" block
7346 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7348 2009-11-13 Eric Blake <ebb9@byu.net>
7350 getgroups: avoid compiler warning
7351 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7353 getgroups: work around FreeBSD bug
7354 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7355 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7356 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7357 * tests/test-getgroups.c (main): Fix buffer overrun.
7359 getgroups: avoid compilation failure
7360 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7361 * modules/getgroups (Depends-on): Add stdint.
7363 2009-11-13 Jim Meyering <meyering@redhat.com>
7365 test-getgroups: avoid compilation failure
7366 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7368 2009-11-13 Eric Blake <ebb9@byu.net>
7370 mgetgroups: new module, taken from coreutils
7371 * modules/mgetgroups: New file.
7372 * lib/mgetgroups.h: Likewise.
7373 * lib/mgetgroups.c (mgetgroups): Likewise.
7374 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7375 * MODULES.html.sh (Users and groups): Mention it.
7377 getgroups: don't expose GETGROUPS_T to user
7378 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7379 an element at a time if GETGROUPS_T is wrong size.
7380 * lib/getugroups.h (getugroups): Change signature.
7381 * lib/unistd.in.h (getgroups): Likewise.
7382 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7383 signature needs fixing.
7384 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7386 * modules/group-member (Depends-on): Add getgroups.
7387 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7388 (group_member): Rely on getgroups replacement.
7389 * lib/getugroups.c (getugroups): Use gid_t.
7390 * tests/test-getgroups.c (main): Likewise.
7391 * NEWS: Mention the signature change.
7392 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7393 problem with signature.
7394 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7395 GETGROUPS_T is still useful for setgroups.
7397 getgroups, getugroups: provide stubs for mingw
7398 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7399 * lib/getugroups.c (getugroups): Likewise.
7400 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7401 function. Modernize replacement scheme.
7402 (gl_PREREQ_GETGROUPS): Delete.
7403 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7404 * modules/getgroups (configure.ac): Declare witness.
7405 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7406 * modules/unistd (Depends-on): Substitute witness.
7407 * lib/unistd.in.h (getgroups): Declare replacement.
7409 getgroups: avoid calling exit
7410 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7412 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7414 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7415 exiting, in the rare case of malloc failure.
7417 getgroups: fix logic error
7418 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7419 has more than 20 groups.
7420 * modules/getgroups-tests: New test.
7421 * tests/test-getgroups.c: New file.
7423 2009-11-13 Simon Josefsson <simon@josefsson.org>
7425 * tests/test-base64.c: Improve.
7427 2009-11-13 Simon Josefsson <simon@josefsson.org>
7429 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7430 Blake <ebb9@byu.net>.
7432 2009-11-13 Simon Josefsson <simon@josefsson.org>
7434 * tests/test-xvasprintf.c: Add %s%s related checks.
7436 2009-11-12 Eric Blake <ebb9@byu.net>
7438 version-etc: match standards.texi style
7439 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7440 and use <> only for URLs.
7442 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7444 fts: do not fail on a submount during traversal
7445 * lib/fts.c (fts_build): Read the stat info again after opening
7446 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7447 Original report at http://bugzilla.redhat.com/501848.
7449 2009-11-12 Jim Meyering <meyering@redhat.com>
7451 bootstrap: sync from coreutils
7452 * build-aux/bootstrap (bootstrap_epilogue): New function.
7453 Use git_modules_config in one more place. This make bootstrap's
7454 --gnulib-srcdir option more useful for testing.
7456 bootstrap: generalize autoheader check
7457 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7460 2009-11-11 Eric Blake <ebb9@byu.net>
7462 mkfifoat: use new modules for Solaris and BSD bugs
7463 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7464 * lib/mkfifoat.c (mknodat): Split...
7465 * lib/mknodat.c (mknodat): ...into new file.
7466 * modules/mkfifoat (Files): Ship new file.
7467 (Depends-on): Add mkfifo, mknod.
7468 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7469 (Depends-on): Add symlink.
7470 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7471 redundant with test_mkfifo.h.
7472 (do_mkfifoat, do_mknodat): New helpers.
7475 * modules/mknod: New file.
7476 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7477 * lib/mknod.c (mknod): Likewise.
7478 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7480 * modules/sys_stat (Makefile.am): Substitute them.
7481 * lib/sys_stat.in.h (mknod): Declare replacement.
7482 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7484 * doc/posix-functions/mknod.texi (mknod): Likewise.
7485 * modules/mknod-tests: New test.
7486 * tests/test-mknod.c: Likewise.
7489 * modules/mkfifo: New file.
7490 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7491 * lib/mkfifo.c (mkfifo): Likewise.
7492 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7494 * modules/sys_stat (Makefile.am): Substitute them.
7495 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7496 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7498 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7499 * modules/mkfifo-tests: New test.
7500 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7501 from test-mkfifoat.c.
7502 * tests/test-mkfifo.c: New file.
7504 readlink: detect FreeBSD bug
7505 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7507 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7508 * tests/test-readlink.h (test_readlink): Enhance test.
7510 symlink: detect FreeBSD bug
7511 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7513 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7514 * tests/test-symlink.h (test_symlink): Enhance test.
7516 2009-11-10 Eric Blake <ebb9@byu.net>
7518 link: detect FreeBSD bug
7519 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7521 * doc/posix-functions/link.texi (link): Document the bug.
7522 * tests/test-link.h (test_link): Enhance test.
7523 * tests/test-linkat.c (main): Update caller.
7525 unlink, remove: detect FreeBSD bug
7526 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7528 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7529 * doc/posix-functions/remove.texi (remove): Likewise.
7530 * tests/test-unlink.h (test_unlink): Enhance test.
7531 * tests/test-remove.c (main): Likewise.
7533 2009-11-09 Eric Blake <ebb9@byu.net>
7535 rename: detect FreeBSD bug
7536 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7538 * modules/renameat-tests (Depends-on): Add filenamecat.
7539 * tests/test-rename.h (test_rename): Allow one more errno.
7540 * tests/test-renameat.c (main): Likewise.
7541 * doc/posix-functions/rename.texi (rename): Document the bug.
7543 open: detect FreeBSD bug
7544 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7546 * doc/posix-functions/open.texi (open): Document the bug.
7547 * doc/posix-functions/utimes.texi (utimes): Likewise.
7548 * tests/test-open.h (test_open): Add parameters, and test symlink
7550 * tests/test-open.c (main): Adjust caller.
7551 * tests/test-fcntl-safer.c (main): Likewise.
7552 * modules/open-tests (Depends-on): Add stdbool, symlink.
7553 * modules/fcntl-safer-tests (Depends-on): Likewise.
7554 * tests/test-openat.c (main): Add test-open tests.
7556 stat: detect FreeBSD bug
7557 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7559 * doc/posix-functions/stat.texi (stat): Document the bug.
7560 * tests/test-stat.h (test_stat_func): Add argument.
7561 * tests/test-stat.c (main): Adjust caller.
7562 * tests/test-fstatat.c (main): Likewise.
7563 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7564 Reported by Jim Meyering.
7566 2009-11-09 James Youngman <jay@gnu.org>
7568 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7569 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7571 2009-11-08 Jim Meyering <meyering@redhat.com>
7573 utimens: remove invalid futimesat call
7574 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7575 It used the file descriptor of the target file as the DIR_FD
7576 parameter and NULL as the file name. That caused failure with
7577 errno == EFAULT on FreeBSD-8.0-rc2
7579 2009-11-07 Eric Blake <ebb9@byu.net>
7581 fflush, freadseek: use fseeko, not fseek
7582 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7583 (clear_ungetc_buffer): Avoid potential problems on large files.
7584 * lib/freadseek.c (freadseek): Likewise.
7585 * modules/freadseek (Depends-on): Add fseeko.
7586 * modules/fseek (configure.ac): Set a witness.
7587 * tests/test-fflush.c (main): Use fseeko.
7588 * tests/test-fpurge.c (fseek): Disable link warning.
7589 * tests/test-freadable.c (fseek): Likewise.
7590 * tests/test-freading.c (fseek): Likewise.
7591 * tests/test-fseeko.c (fseek): Likewise.
7592 * tests/test-ftell.c (fseek): Likewise.
7593 * tests/test-ftello.c (fseek): Likewise.
7594 * tests/test-fwritable.c (fseek): Likewise.
7595 * tests/test-fwriting.c (fseek): Likewise.
7597 2009-11-06 Simon Josefsson <simon@josefsson.org>
7599 * modules/memchr (Depends-on): Drop getpagesize dependency.
7601 2009-11-06 Simon Josefsson <simon@josefsson.org>
7603 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7604 Reported by Ludovic Courtès.
7605 * build-aux/pmccabe2html: Improve example usage.
7606 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7608 2009-11-06 Jim Meyering <meyering@redhat.com>
7610 do-release-commit-and-tag: New module.
7611 Automate the release-commit and tag process.
7612 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7613 * modules/do-release-commit-and-tag: New file.
7614 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7616 2009-11-06 Simon Josefsson <simon@josefsson.org>
7618 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7619 because test-select.c uses inet_pton.
7621 2009-11-06 Simon Josefsson <simon@josefsson.org>
7623 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7624 GETADDRINFO_LIB. Bump serial number.
7625 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7626 Suggested by Eric Blake <ebb9@byu.net>.
7628 2009-11-05 Eric Blake <ebb9@byu.net>
7630 strtod: detect darwin bug
7631 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7632 Reported by Leo Davis.
7634 freopen-safer: new module
7635 * modules/freopen-safer: New module.
7636 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7637 * lib/freopen-safer.c (freopen_safer): New file.
7638 * lib/stdio-safer.h (freopen_safer): New declaration.
7639 * lib/stdio--.h (freopen): New override.
7640 * MODULES.html.sh (File stream based Input/Output): Mention it.
7641 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7642 freopen-safer module.
7643 * doc/posix-functions/stderr.texi (stderr): Likewise.
7644 * doc/posix-functions/stdin.texi (stdin): Likewise.
7645 * doc/posix-functions/stdout.texi (stdout): Likewise.
7646 * modules/freopen-safer-tests: New test.
7647 * tests/test-reopen-safer.c: New file.
7649 2009-11-05 Jim Meyering <meyering@redhat.com>
7651 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7652 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7654 2009-11-05 Simon Josefsson <simon@josefsson.org>
7656 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7658 2009-11-05 Simon Josefsson <simon@josefsson.org>
7660 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7662 2009-11-05 Simon Josefsson <simon@josefsson.org>
7665 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7666 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7668 2009-11-05 Simon Josefsson <simon@josefsson.org>
7670 * tests/test-func.c: Also test value of __func__.
7672 2009-11-05 Simon Josefsson <simon@josefsson.org>
7674 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7675 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7677 2009-11-05 Bruno Haible <bruno@clisp.org>
7680 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7681 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7682 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7684 2009-11-05 Bruno Haible <bruno@clisp.org>
7686 Tests for module 'inet_pton'.
7687 * modules/inet_pton-tests: New file.
7688 * tests/test-inet_pton.c: New file.
7690 2009-11-05 Bruno Haible <bruno@clisp.org>
7692 Tests for module 'inet_ntop'.
7693 * modules/inet_ntop-tests: New file.
7694 * tests/test-inet_ntop.c: New file.
7696 2009-11-04 Eric Blake <ebb9@byu.net>
7698 stdlib-safer: wrap all mkstemp variants
7699 * modules/mkostemp (configure.ac): Set witness.
7700 * modules/mkostemps (configure.ac): Likewise.
7701 * modules/mkstemps (configure.ac): Likewise.
7702 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7703 (mkstemps_safer): Wrap more functions.
7704 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7706 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7707 (mkstemps_safer): Implement the wrappers.
7709 mkstemps, mkostemps: new modules
7710 * modules/mkostemps: New module.
7711 * modules/mkstemps: Likewise.
7712 * lib/mkostemps.c (mkostemps): New file.
7713 * lib/mkstemps.c (mkstemps): Likewise.
7714 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7715 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7716 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7717 * modules/stdlib (Makefile.am): Substitute them.
7718 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7719 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7720 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7721 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7722 * MODULES.html.sh (File system functions): Mention them.
7724 tempname: resync from glibc
7725 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7726 same values for __GT_FILE as glibc. Abort even when assertions
7728 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7729 match its value otherwise. Allow idempotent inclusion.
7730 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7731 * lib/mkostemp.c (mkostemp): Likewise.
7732 * lib/mkstemp.c (mkstemp): Likewise.
7733 * lib/tmpfile.c (tmpfile): Likewise.
7734 * NEWS: Document this.
7736 utimens: fix use of futimens on older Linux
7737 * lib/utimens.c (fdutimens): Use updated, rather than original,
7738 timespec to avoid bug in older Linux kernel.
7739 Reported by Simon Josefsson.
7741 2009-11-04 Bruno Haible <bruno@clisp.org>
7743 Make num_processors more flexible and consistent.
7744 * lib/nproc.h (enum nproc_query): New type.
7745 (num_processors): Add a 'query' argument.
7746 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7747 (num_processors): Add a 'query' argument. Test the value of the
7748 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7749 mingw, count the number of CPUs available for the current process.
7750 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7751 Check for sched_getaffinity and sched_getaffinity_np.
7752 * modules/nproc (Depends-on): Add c-ctype, extensions.
7753 * NEWS: Mention the change.
7755 2009-11-03 Bruno Haible <bruno@clisp.org>
7757 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7759 2009-11-03 Jim Meyering <meyering@redhat.com>
7761 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7762 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7765 2009-11-02 Eric Blake <ebb9@byu.net>
7767 mktime, timegm: share common declaration
7768 * lib/mktime-internal.h: New file.
7769 * lib/mktime.c: Use it rather than open-coding a declaration.
7770 * lib/timegm.c: Likewise.
7771 * modules/mktime (Files): Ship it.
7772 * modules/timegm (Files): Likewise.
7773 Suggested by Bruno Haible.
7775 test-update-copyright: update test to match script changes
7776 * tests/test-update-copyright.sh: Avoid hard-coding perl
7777 location. Don't update *.bak created by earlier runs.
7779 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7780 Simon Josefsson <simon@josefsson.org>
7781 Bruno Haible <bruno@clisp.org>
7783 Fix link error on Solaris 8.
7784 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7785 also in libnsl. Define also INET_PTON_LIB.
7786 * modules/inet_pton (Link): New section.
7788 2009-11-02 Simon Josefsson <simon@josefsson.org>
7789 Bruno Haible <bruno@clisp.org>
7791 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7792 * modules/inet_ntop (Link): New section.
7793 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7795 2009-11-02 Eric Blake <ebb9@byu.net>
7797 maint: avoid compiler warnings in m4 macros
7798 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7799 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7801 2009-11-02 Simon Josefsson <simon@josefsson.org>
7803 * m4/pmccabe2html.m4: Remove file.
7804 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7805 function. Change maintainer.
7806 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7807 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7810 2009-10-31 Eric Blake <ebb9@byu.net>
7812 fseeko: fix m4 regression
7813 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7814 regression from 2009-10-27.
7815 Reported by Ralf Wildenhues.
7817 2009-10-31 Jim Meyering <meyering@redhat.com>
7819 inttostr: aesthetics and improved (compile-time) safety
7820 Define inttype_is_signed rather than inttype_is_unsigned,
7821 since the sole use is via "#if inttype_is_signed".
7822 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7823 inttype_is_unsigned.
7824 * lib/offtostr.c (inttype_is_signed): Likewise.
7825 * lib/uinttostr.c (inttype_is_signed): Likewise.
7826 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7827 * lib/inttostr.c (inttostr): Use verify to cross-check the
7828 inttype_is_signed value and the signedness of the actual type.
7829 * modules/inttostr (Depends-on): Add verify.
7831 2009-10-30 Eric Blake <ebb9@byu.net>
7833 build: avoid compiler warnings
7834 * lib/fchmodat.c (lchmod): Mark unused variables.
7835 * lib/getopt.c (_getopt_initialize): Likewise.
7836 * lib/mktime.c (__mktime_internal): Provide prototype.
7837 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7838 older gcc that do not understand #pragma GCC diagnostic.
7839 * lib/uinttostr.c (inttype_is_unsigned): Define.
7840 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7842 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7844 stat: fix compilation on AIX
7845 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7846 only see struct stat64.
7848 2009-10-30 Eric Blake <ebb9@byu.net>
7850 exclude: make more robust
7851 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7852 rather than masking a coding bug.
7853 Suggested by Bruno Haible.
7855 2009-10-30 Jim Meyering <meyering@redhat.com>
7857 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7858 Rather than putting #!/usr/bin/perl on the first line,
7859 start with a variant of what's recommended by "man perlrun" that
7860 invokes the first "perl" program from your shell's search path.
7861 * build-aux/gitlog-to-changelog: Replace #!... as above.
7862 Add a "Local Variables" perl mode setting.
7863 Prompted by a patch from Ludovic Courtès.
7864 Improved by Eric Blake.
7865 * build-aux/useless-if-before-free: Likewise.
7866 * build-aux/announce-gen: Likewise.
7867 * build-aux/update-copyright: Likewise.
7869 2009-10-29 Eric Blake <ebb9@byu.net>
7871 filenamecat-lgpl: adjust clients
7872 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7874 * modules/renameat (Depends-on): Likewise.
7876 filenamecat: split into filenamecat-lgpl
7877 * modules/filenamecat-lgpl: New module.
7878 * modules/filenamecat (Files): Move library-safe files into
7880 (Depends-on): Add filenamecat-lgpl.
7881 (configure.ac): Declare witness.
7882 * lib/filenamecat.h (file_name_concat): Only declare when using
7884 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7886 * lib/filenamecat-lgpl.c: ...into new file.
7887 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7888 (gl_FILE_NAME_CONCAT): Use it.
7889 * MODULES.html.sh (File system functions): Mention new module.
7891 argp: avoid memory leak
7892 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7893 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7894 base_name, since the latter malloc()s and can call exit().
7895 Leak introduced 2006-07-03.
7897 dirname-lgpl: adjust clients that don't need full dirname
7898 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7899 * modules/filenamecat (Depends-on): Likewise.
7900 * modules/linkat (Depends-on): Likewise.
7901 * modules/mkancesdirs (Depends-on): Likewise.
7902 * modules/mkdir (Depends-on): Likewise.
7903 * modules/openat (Depends-on): Likewise.
7904 * modules/savewd (Depends-on): Likewise.
7905 * modules/rename (Depends-on): Likewise.
7906 (License): Relax license.
7907 * modules/mkdir-tests (Depends-on): Drop progname.
7908 (Makefile.am): Delete unneeded LDADD.
7909 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7911 dirname: split into dirname-lgpl
7912 * modules/dirname-lgpl: New module.
7913 * modules/dirname (Files): Move library-safe files into
7915 (Depends-on): Add dirname-lgpl.
7916 (configure.ac): Declare witness.
7917 * modules/double-slash-root (License): Relax license.
7918 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7920 * lib/dirname.c (dir_len, mdir_name): Move...
7921 * lib/dirname-lgpl.c: ...into new file.
7922 * lib/basename.c (last_component, base_len): Move...
7923 * lib/basename-lgpl.c: ...into new file.
7924 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7925 (gl_DIRNAME): Use it.
7926 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7928 * modules/dirname-tests (Depends-on): Add progname.
7929 * tests/test-dirname.c (program_name): Delete.
7931 mkdir: make safe for libraries
7932 * modules/mkdir (Depends-on): Drop xalloc.
7933 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7936 tests: avoid some compiler warnings
7937 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7939 * tests/test-memchr.c (main): Avoid type mismatch.
7940 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7941 * tests/test-base64.c (main): Likewise.
7942 * tests/test-getdelim.c (main): Likewise.
7943 * tests/test-gethostname.c (main): Likewise.
7944 * tests/test-getline.c (main): Likewise.
7945 * tests/test-netinet_in.c (main): Likewise.
7946 * tests/test-select.c (open_server_socket, main): Likewise.
7947 * tests/test-select-stdin.c (main): Likewise.
7948 * tests/test-sockets.c (main): Likewise.
7949 * tests/test-strsignal.c (main): Likewise.
7950 * tests/test-sys_select.c (main): Likewise.
7951 * tests/test-sys_socket.c (main): Likewise.
7952 * tests/test-u64.c (main): Likewise.
7953 * tests/test-xfprintf-posix.c (main): Likewise.
7954 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7956 sockets: avoid compiler warning
7957 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7959 maint: detect usage(1) and other suspicious exits
7960 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7962 2009-10-29 Jim Meyering <meyering@redhat.com>
7964 timespec: long-to-int truncation could make timespec_cmp malfunction
7965 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7966 a multiple of 2^32 nanoseconds as no difference.
7968 2009-10-28 Jim Meyering <meyering@redhat.com>
7970 fprintftime: wrap macro code argument in "do {...} while(0)"
7971 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7972 cpy macro must be a statement that can be followed by a semicolon.
7973 Now that the else clause contains a comment and is hence longer
7974 than one line, I require curly braces. That in turn requires
7975 that we wrap this code block in the standard do...while(0).
7977 fprintftime: remove stray semicolon from previous change
7978 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7980 fprintftime: avoid a warning about ignored fwrite return value
7981 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7982 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7984 * modules/fprintftime (Depends-on): Add ignore-value.
7986 exclude: avoid an unwarranted warning
7987 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7989 2009-10-27 Eric Blake <ebb9@byu.net>
7991 fseek: avoid compilation failure when fflush is replaced
7992 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7993 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7995 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7996 module is not in use; since REPLACE_FSEEK worked otherwise.
7997 (GNULIB_FTELLO): Likewise for ftell.
7998 Reported by Ian Beckwith and others.
8000 2009-10-27 Bruno Haible <bruno@clisp.org>
8002 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8003 Reported by Jim Meyering.
8005 2009-10-27 Jim Meyering <jim@meyering.net>
8006 Bruno Haible <bruno@clisp.org>
8008 Avoid warning despite dropping the return value of fwrite.
8009 * lib/unicodeio.c: Include ignore-value.h.
8010 (fwrite_success_callback): Explicitly ignore fwrite's return value.
8011 * modules/unicodeio (Depends-on): Add ignore-value.
8013 2009-10-26 Eric Blake <ebb9@byu.net>
8015 areadlinkat: fix fallback path
8016 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8019 2009-10-22 Pádraig Brady <P@draigBrady.com>
8021 Use a better IO block size for modern systems
8022 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8023 * lib/md2.c: Likewise.
8024 * lib/md4.c: Likewise.
8025 * lib/md5.c: Likewise.
8026 * lib/sha1.c: Likewise.
8027 * lib/sha256.c: Likewise.
8028 * lib/sha512.c: Likewise.
8030 2009-10-22 Eric Blake <ebb9@byu.net>
8032 tests: avoid several compiler warnings
8033 * tests/test-getcwd.c (main): Avoid buffer underflow.
8034 * tests/test-getdate.c (main): String literals are not safe with
8035 putenv, so use setenv. Declare unused argument.
8036 * modules/getdate-tests (Depends-on): Add setenv.
8037 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
8038 problems with string literals in char *.
8039 * tests/test-hash.c (main): Avoid shadowing declaration.
8040 (insert_new): Treat string literals as char const *.
8041 * tests/test-getopt.h (test_getopt): Likewise.
8042 (getopt_loop): Alter types to minimize casting elsewhere.
8043 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8044 (test_getopt_long_posix): Likewise.
8045 (do_getopt_long): Add wrapper to minimize casting.
8046 * tests/test-atexit.c (clear_temp_file): Use void.
8047 * tests/test-areadlink-with-size.c (main): Declare unused
8049 * tests/test-areadlink.c (main): Likewise.
8050 * tests/test-areadlinkat-with-size.c (main): Likewise.
8051 * tests/test-areadlinkat.c (main): Likewise.
8052 * tests/test-canonicalize-lgpl.c (main): Likewise.
8053 * tests/test-canonicalize.c (main): Likewise.
8054 * tests/test-dirent-safer.c (main): Likewise.
8055 * tests/test-dirname.c (main): Likewise.
8056 * tests/test-dup2.c (main): Likewise.
8057 * tests/test-fchdir.c (main): Likewise.
8058 * tests/test-fcntl-h.c (main): Likewise.
8059 * tests/test-fcntl-safer.c (main): Likewise.
8060 * tests/test-fdopendir.c (main): Likewise.
8061 * tests/test-fdutimensat.c (main): Likewise.
8062 * tests/test-fflush.c (main): Likewise.
8063 * tests/test-filenamecat.c (main): Likewise.
8064 * tests/test-filevercmp.c (main): Likewise.
8065 * tests/test-fopen-safer.c (main): Likewise.
8066 * tests/test-fopen.c (main): Likewise.
8067 * tests/test-fpending.c (main): Likewise.
8068 * tests/test-fpurge.c (main): Likewise.
8069 * tests/test-freading.c (main): Likewise.
8070 * tests/test-fstatat.c (main): Likewise.
8071 * tests/test-fsync.c (main): Likewise.
8072 * tests/test-futimens.c (main): Likewise.
8073 * tests/test-getndelim2.c (main): Likewise.
8074 * tests/test-gettimeofday.c (main): Likewise.
8075 * tests/test-getopt.c (main): Likewise.
8076 * tests/test-i-ring.c (main): Likewise.
8077 * tests/test-inttypes.c (main): Likewise.
8078 * tests/test-link.c (main): Likewise.
8079 * tests/test-lstat.c (main): Likewise.
8080 * tests/test-math.c (main): Likewise.
8081 * tests/test-md5.c (main): Likewise.
8082 * tests/test-memchr2.c (main): Likewise.
8083 * tests/test-memrchr.c (main): Likewise.
8084 * tests/test-mkdir.c (main): Likewise.
8085 * tests/test-mkdirat.c (main): Likewise.
8086 * tests/test-mkfifoat.c (main): Likewise.
8087 * tests/test-open.c (main): Likewise.
8088 * tests/test-openat-safer.c (main): Likewise.
8089 * tests/test-openat.c (main): Likewise.
8090 * tests/test-quotearg.c (main): Likewise.
8091 * tests/test-rawmemchr.c (main): Likewise.
8092 * tests/test-readlink.c (main): Likewise.
8093 * tests/test-remove.c (main): Likewise.
8094 * tests/test-rename.c (main): Likewise.
8095 * tests/test-renameat.c (main): Likewise.
8096 * tests/test-rmdir.c (main): Likewise.
8097 * tests/test-sha1.c (main): Likewise.
8098 * tests/test-signal.c (main): Likewise.
8099 * tests/test-sigaction.c (main): Likewise.
8100 * tests/test-stat.c (main): Likewise.
8101 * tests/test-stat-time.c (main): Likewise.
8102 * tests/test-stddef.c (main): Likewise.
8103 * tests/test-stdint.c (main): Likewise.
8104 * tests/test-stdio.c (main): Likewise.
8105 * tests/test-stdlib.c (main): Likewise.
8106 * tests/test-strchrnul.c (main): Likewise.
8107 * tests/test-strerror.c (main): Likewise.
8108 * tests/test-string.c (main): Likewise.
8109 * tests/test-strtod.c (main): Likewise.
8110 * tests/test-strverscmp.c (main): Likewise.
8111 * tests/test-symlink.c (main): Likewise.
8112 * tests/test-symlinkat.c (main): Likewise.
8113 * tests/test-sys_stat.c (main): Likewise.
8114 * tests/test-sys_time.c (main): Likewise.
8115 * tests/test-time.c (main): Likewise.
8116 * tests/test-unistd.c (main): Likewise.
8117 * tests/test-unlink.c (main): Likewise.
8118 * tests/test-unlinkat.c (main): Likewise.
8119 * tests/test-utimens.c (main): Likewise.
8120 * tests/test-utimensat.c (main): Likewise.
8121 * tests/test-version-etc.c (main): Likewise.
8122 * tests/test-wchar.c (main): Likewise.
8123 * tests/test-wctype.c (main): Likewise.
8124 * tests/test-xprintf-posix.c (main): Likewise.
8125 * tests/test-posixtm.c (main): Likewise.
8126 (STREQ): Delete unused macro.
8127 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8129 * tests/test-memchr.c (main): Likewise.
8131 2009-10-21 Eric Blake <ebb9@byu.net>
8133 areadlinkat: avoid failure on older glibc
8134 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8135 rather than mis-comparing 0 against FUNC_RESULT of char*.
8137 2009-10-21 Bruno Haible <bruno@clisp.org>
8139 * modules/stpncpy (License): Relicense under LGPLv2+.
8140 Reported by David Lutterkort <lutter@redhat.com>.
8142 2009-10-20 Eric Blake <ebb9@byu.net>
8144 utimensat: work around Solaris 9 bug
8145 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8146 has trailing slash bugs.
8147 * tests/test-lutimens.h (test_lutimens): Enhance test.
8148 * tests/test-utimens.h (test_utimens): Likewise.
8149 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8150 * doc/posix-functions/utimes.texi (utimes): Likewise.
8151 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8152 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8153 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8154 * doc/posix-functions/futimens.texi (futimens): Likewise.
8156 fdutimensat: new module
8157 * modules/fdutimensat: New file.
8158 * lib/fdutimensat.c (fdutimensat): Likewise.
8159 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8160 * MODULES.html.sh (File system functions): Mention module.
8161 * modules/fdutimensat-tests: New test.
8162 * tests/test-fdutimensat.c: Likewise.
8164 doc: regenerate INSTALL
8165 * doc/INSTALL: Reflect recent autoconf update.
8166 * doc/INSTALL.ISO: Likewise.
8167 * doc/INSTALL.UTF-8: Likewise.
8169 2009-10-20 Pádraig Brady <P@draigBrady.com>
8171 acl: warn if ACL support is not detected
8172 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8174 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8176 * lib/nproc.h: Add extern "C" block for C++.
8178 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8179 Bruno Haible <bruno@clisp.org>
8181 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8182 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8183 * doc/posix-functions/isalpha.texi: Likewise.
8184 * doc/posix-functions/isblank.texi: Likewise.
8185 * doc/posix-functions/iscntrl.texi: Likewise.
8186 * doc/posix-functions/isdigit.texi: Likewise.
8187 * doc/posix-functions/isgraph.texi: Likewise.
8188 * doc/posix-functions/islower.texi: Likewise.
8189 * doc/posix-functions/isprint.texi: Likewise.
8190 * doc/posix-functions/ispunct.texi: Likewise.
8191 * doc/posix-functions/isspace.texi: Likewise.
8192 * doc/posix-functions/isupper.texi: Likewise.
8193 * doc/posix-functions/isxdigit.texi: Likewise.
8195 2009-10-18 Bruno Haible <bruno@clisp.org>
8197 Tests for module 'isblank'.
8198 * modules/isblank-tests: New file.
8199 * tests/test-isblank.c: New file.
8201 New module 'isblank'.
8202 * lib/isblank.c: New file.
8203 * m4/isblank.m4: New file.
8204 * modules/isblank: New file.
8205 * doc/posix-functions/isblank.texi: Mention the new module.
8207 2009-10-18 Bruno Haible <bruno@clisp.org>
8210 * lib/ctype.in.h: New file.
8211 * m4/ctype.m4: New file.
8212 * modules/ctype: New file.
8213 * doc/posix-headers/ctype.texi: Mention the new module.
8215 2009-10-18 Jim Meyering <meyering@redhat.com>
8217 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8218 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8219 right after its initialization, rather than farther down.
8220 Keeping these in close proximity makes it easier to ensure
8221 that each such variable is initialized. E.g.,
8224 AC_SUBST([LIB_CLOCK_GETTIME])
8226 This change also increments these serial numbers.
8227 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8228 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8229 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8231 2009-10-18 Bruno Haible <bruno@clisp.org>
8233 Don't let environment variables perturb build.
8234 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8235 (gl_PREREQ_GETHRXTIME): ... not here.
8237 2009-10-18 Bruno Haible <bruno@clisp.org>
8239 Avoid symlink attack in localcharset module.
8240 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8241 (O_NOFOLLOW): Define fallback.
8242 (get_charset_aliases): Don't open the file if it is a symbolic link.
8243 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8245 (gl_FCNTL_H): Require it.
8246 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8247 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8248 Reported by Fergal Glynn <fglynn@veracode.com>.
8250 2009-10-18 Bruno Haible <bruno@clisp.org>
8252 Implement nproc for mingw.
8253 * lib/nproc.c: Include <windows.h>
8254 (num_processors): On native Windows platforms, try GetSystemInfo.
8256 2009-10-18 Bruno Haible <bruno@clisp.org>
8258 Implement nproc for IRIX.
8259 * lib/nproc.c: Include <sys/sysmp.h>.
8260 (num_processors): On IRIX systems, try sysmp.
8261 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8263 2009-10-18 Bruno Haible <bruno@clisp.org>
8265 Implement nproc for HP-UX.
8266 * lib/nproc.c: Include <sys/pstat.h>
8267 (num_processors): On HP-UX systems, try pstat_getdynamic.
8268 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8271 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8272 Bruno Haible <bruno@clisp.org>
8274 Implement nproc for NetBSD, OpenBSD.
8275 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8276 (ARRAY_SIZE): New macro.
8277 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8278 * m4/nproc.m4: New file.
8279 * modules/nproc (Files): Add m4/nproc.m4.
8280 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8281 (Makefile.am): Instead, augment lib_SOURCES.
8283 2009-10-18 Bruno Haible <bruno@clisp.org>
8285 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8286 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8289 2009-10-16 Eric Blake <ebb9@byu.net>
8291 utimensat: new module
8292 * modules/utimensat: New file.
8293 * lib/utimensat.c (utimensat): Likewise.
8294 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8295 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8296 so we can work around Linux bugs.
8297 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8298 * modules/sys_stat (Makefile.am): Substitute them.
8299 * lib/sys_stat.in.h (utimensat): Declare it.
8300 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8301 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8302 * modules/utimensat-tests: New test.
8303 * tests/test-utimensat.c: Likewise.
8305 utimens: let lutimens work on non-symlinks
8306 * lib/utimens.c (lutimens): Fall back to utimens rather than
8307 failing with ENOSYS, when file is not a symlink.
8308 (utimens): Reduce redirection.
8309 * tests/test-lutimens.h (test_lutimens): Update test to cover
8311 * tests/test-utimens.h (test_utimens): Update test to cover
8313 * tests/test-utimens.c (main): Update caller.
8315 utimens: cache whether utimensat syscall works
8316 * lib/utimens.c (utimensat_works_really): New cache variable.
8317 (fdutimens, lutimens): Use it to avoid failing syscall.
8319 test-stat-time, test-utimens: improve portability
8320 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8321 ext4 on alpha, and for cygwin.
8322 * tests/test-utimens-common.h: New file.
8323 (nap): Factor delays into single function.
8324 * tests/test-lutimens.h (test_lutimens): Use new header.
8325 * tests/test-futimens.h (test_futimens): Likewise.
8326 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8327 timestamps to occur from same machine, as was done previously for
8329 * modules/utimens-tests (Files): Ship new file.
8330 * modules/futimens-tests (Files): Likewise.
8331 Reported in part by Jim Meyering.
8333 sys_stat: sort replacement declarations
8334 * lib/sys_stat.in.h: Sort declarations.
8335 * lib/futimens.c (futimens): Fix typo.
8337 2009-10-15 Jim Meyering <meyering@redhat.com>
8339 don't let environment settings perturb build
8340 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8341 could cause a configure-time and/or build-time malfunction.
8342 Typically, a configure-time function-in-library test is performed
8347 prefix_saved_LIBS=$LIBS
8348 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8349 [test "$ac_cv_search_FUNC" = "none required" ||
8350 LIB_VAR=$ac_cv_search_FUNC])
8351 LIBS=$prefix_saved_LIBS
8353 However, in each of the files affected by this change, the LIB_VAR=
8354 initialization was omitted. Thus, when set in the environment, its
8355 value would propagate into generated Makefiles when FUNC is not found
8357 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8358 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8359 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8361 2009-10-14 Eric Blake <ebb9@byu.net>
8363 fchdir: avoid infinite recursion in mingw
8364 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8367 test-stat-time: port to mingw
8368 * tests/test-stat-time.c (force_unlink): Return a value.
8369 (test_ctime) [W32]: Fix compilation error.
8370 (nap): Don't call usleep with too large an argument. Use
8372 * doc/pastposix-functions/usleep.texi (usleep): Document the
8375 2009-10-13 Jim Meyering <meyering@redhat.com>
8377 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8378 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8379 * modules/pipe-filter-ii: Likewise.
8380 * modules/sys_socket-tests: Likewise.
8381 * modules/tsearch-tests: Likewise.
8382 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8383 (check): Depend on it.
8385 2009-10-12 Eric Blake <ebb9@byu.net>
8387 utimens-tests: port to NFS file systems
8388 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8389 comparisons to avoid spurious failures from timestamp drift
8390 between NFS machines.
8392 2009-10-12 Eric Blake <ebb9@byu.net>
8394 stat-time-tests: minor cleanups
8395 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8396 * tests/test-stat-time.c (nap): Separate assignment from call.
8397 Suggested by Paolo Bonzini and Bruno Haible.
8399 sys_stat: guarantee struct timespec
8400 * lib/sys_stat.in.h (includes): Always include <time.h>
8401 * modules/sys_stat (Depends-on): Add time.
8402 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8403 mode_t permission values.
8404 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8405 get at subsecond timestamps.
8407 2009-10-10 Eric Blake <ebb9@byu.net>
8409 futimens: new module
8410 * modules/futimens: New file.
8411 * lib/futimens.c (futimens): Likewise.
8412 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8413 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8414 we can work around Linux bugs.
8415 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8416 * modules/sys_stat (Makefile.am): Substitute them.
8417 * lib/sys_stat.in.h (futimens): Declare it.
8418 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8419 * doc/posix-functions/futimens.texi (futimens): Likewise.
8420 * modules/futimens-tests: New test.
8421 * tests/test-futimens.c: Likewise.
8423 utimens: introduce fdutimens
8424 * lib/utimens.h (fdutimens): New prototype.
8425 * lib/utimens.c (gl_futimens): Move guts...
8426 (fdutimens): ...to new interface.
8427 * tests/test-utimens.c (do_fdutimens): Use it.
8429 utimens: add UTIME_NOW and UTIME_OMIT support
8430 * lib/utimens.c (validate_timespec, update_timespec): New helper
8432 (gl_futimens, lutimens): Use them.
8433 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8435 (Link): Mention resulting library dependency.
8436 * modules/utimecmp (Link): Likewise.
8437 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8438 (Makefile.am): Pick up library dependency.
8439 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8441 * tests/test-sys_stat.c: Test the definitions.
8442 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8443 * NEWS: Document library dependency.
8445 utimecmp: support symlink timestamps
8446 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8447 hashing when possible. Use pathconf when available.
8448 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8449 * modules/utimecmp (Depends-on): Add lstat.
8451 utimens: add lutimens interface
8452 * lib/utimens.c (lutimens): New function.
8453 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8454 * lib/utimens.h (lutimens): Declare new interface.
8455 * tests/test-utimens.c (main): Enhance test.
8456 * tests/test-lutimens.h (test_lutimens): New file.
8457 * modules/utimens-tests (Files): Distribute it.
8458 (Depends-on): Add symlink.
8459 (configure.ac): Check for usleep.
8461 utimens: validate futimens usage
8462 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8463 fewer syscalls on failure later on. Avoid compiler warning on
8465 * modules/utimens (Depends-on): Add dup2.
8468 * modules/utimens-tests: New test.
8469 * tests/test-utimens.h: New file.
8470 * tests/test-futimens.h: Likewise.
8471 * tests/test-utimens.c: Likewise.
8473 doc: mention timestamp portability issues
8474 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8476 * doc/posix-functions/utime.texi (utime): Likewise.
8477 * doc/posix-functions/utimes.texi (utimes): Likewise.
8478 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8480 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8482 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8483 Mention weakness with symlink timestamps.
8484 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8485 to utimensat/futimens instead.
8486 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8488 test-dup2: enhance test
8489 * tests/test-dup2.c (main): Also check AT_FDCWD.
8491 test-stat-time: avoid more spurious failures
8492 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8493 xfs; and avoid race if the two timestamps cross quantization edge.
8495 relocatable: prefer 'file system' over 'filesystem'
8496 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8497 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8498 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8499 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8500 * lib/relocatable.c (compute_curr_prefix): Likewise.
8502 2009-10-10 Jim Meyering <meyering@redhat.com>
8504 stat-time-tests: check for the usleep function
8505 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8507 2009-10-10 Bruno Haible <bruno@clisp.org>
8509 * modules/xnanosleep: Put the Link section after the Include section.
8511 2009-10-09 Eric Blake <ebb9@byu.net>
8513 dup2: work around FreeBSD 6.1 bug
8514 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8515 * doc/posix-functions/dup2.texi (dup2): Document it.
8516 Reported by Nelson H. F. Beebe and Jim Meyering.
8518 test-stat-time: port to buggy NFS clients
8519 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8520 (test_ctime): Also skip test if mtime and ctime are skewed.
8522 maint: prefer 'file system' over 'filesystem'
8523 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8524 * doc/posix-functions/lstat.texi (lstat): Likewise.
8525 * lib/file-has-acl.c (file_has_acl): Likewise.
8526 * lib/fwriteerror.c [TEST]: Likewise.
8527 * tests/test-areadlink.h (test_areadlink): Likewise.
8528 * tests/test-areadlinkat-with-size.c (main): Likewise.
8529 * tests/test-areadlinkat.c (main): Likewise.
8530 * tests/test-canonicalize-lgpl.c (main): Likewise.
8531 * tests/test-canonicalize.c (main): Likewise.
8532 * tests/test-fstatat.c (main): Likewise.
8533 * tests/test-linkat.c (main): Likewise.
8534 * tests/test-lstat.h (test_lstat_func): Likewise.
8535 * tests/test-mkdir.h (test_mkdir): Likewise.
8536 * tests/test-readlink.h (test_readlink): Likewise.
8537 * tests/test-remove.c (main): Likewise.
8538 * tests/test-rename.h (test_rename): Likewise.
8539 * tests/test-renameat.c (main): Likewise.
8540 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8541 * tests/test-symlink.h (test_symlink): Likewise.
8542 * tests/test-symlinkat.c (main): Likewise.
8543 * tests/test-unlink.h (test_unlink_func): Likewise.
8544 * tests/test-unlinkat.c (main): Likewise.
8546 maint: make realtime library usage explicit
8547 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8548 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8549 * modules/settime (Link): Likewise.
8550 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8552 test-stat-time: speed up execution
8553 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8555 (nap): New helper function.
8556 (prepare_test): Use it to reduce sleep time.
8557 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8559 * modules/stat-time-tests (configure.ac): Check for usleep.
8561 2009-10-09 Jim Meyering <meyering@redhat.com>
8563 selinux-h: always use getfilecon wrappers
8564 * lib/getfilecon.c: New file.
8565 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8566 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8567 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8568 (fgetfilecon): Provide a stub.
8569 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8570 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8571 file unconditionally.
8572 When <selinux/selinux.h> is found, arrange to use wrappers.
8573 * modules/selinux-h (Files): Add getfilecon.c.
8574 (Makefile.am): Substitute include-next-related bits
8575 into the now-always-generated selinux/selinux.h file.
8576 * doc/glibc-functions/lgetfilecon.texi: New file.
8577 * doc/glibc-functions/fgetfilecon.texi: New file.
8578 * doc/glibc-functions/getfilecon.texi: New file.
8579 * doc/glibc-functions/getfilecon-desc.texi: New file.
8580 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8581 which to pull in the new files.
8582 * MODULES.html.sh (Misc): Add selinux-h.
8584 2009-10-08 Jim Meyering <meyering@redhat.com>
8586 unistd: fix comment typo
8587 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8589 2009-10-08 Eric Blake <ebb9@byu.net>
8591 areadlink: use SIZE_MAX consistently
8592 * modules/areadlink (Depends-on): Add stdint.
8593 * modules/areadlink-with-size (Depends-on): Likewise.
8594 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8595 gives NULL; drop sys/types, since unistd gives size_t; and add
8596 stdint for SIZE_MAX.
8597 (SIZE_MAX): Rely on headers.
8598 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8600 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8601 (SIZE_MAX): Likewise.
8602 (INITIAL_BUF_SIZE): Turn into enum.
8603 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8605 2009-10-08 Jim Meyering <meyering@redhat.com>
8607 areadlinkat: avoid compilation failure
8608 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8609 Fix typo in comment.
8611 2009-10-07 Eric Blake <ebb9@byu.net>
8613 areadlinkat-with-size: new module
8614 * modules/areadlinkat-with-size: New module.
8615 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8616 * lib/areadlink.h (areadlinkat): Declare it.
8617 * MODULES.html.sh (File system functions): Mention it.
8618 * modules/areadlinkat-with-size-tests: New test.
8619 * tests/test-areadlinkat-with-size.c: New file.
8621 xreadlinkat: new module
8622 * modules/xreadlinkat: New module.
8623 * lib/xreadlinkat.c (xreadlinkat): New file.
8624 * lib/xreadlink.h (xreadlinkat): Declare it.
8625 * MODULES.html.sh (File system functions): Mention it.
8627 areadlinkat: new module
8628 * lib/at-func.c (FUNC_FAIL): New define.
8629 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8630 * modules/areadlinkat: New module.
8631 * lib/linkat.c (areadlinkat): Move...
8632 * lib/areadlinkat.c (areadlinkat): ...to new file.
8633 * lib/areadlink.h (areadlinkat): Declare it.
8634 * modules/linkat (Depends-on): Add areadlinkat.
8635 * MODULES.html.sh (File system functions): Mention it.
8636 * modules/areadlinkat-tests: New test.
8637 * tests/test-areadlinkat.c: New file.
8639 areadlink, areadlink-with-size: add tests
8640 * modules/areadlink-tests: New test.
8641 * modules/areadlink-with-size-tests: Likewise.
8642 * tests/test-areadlink.h: New file.
8643 * tests/test-areadlink.c: Likewise.
8644 * tests/test-areadlink-with-size.c: Likewise.
8646 maint: minor cleanups
8647 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8648 _UNUSED_PARAMETER_ instead.
8649 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8650 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8651 * modules/linkat-tests (Files): Distribute test-link.h.
8653 openat, utimens: whitespace cleanup
8654 * lib/openat.c: Prefer space throughout, rather than mix of 8
8656 * lib/at-func.c: Likewise.
8657 * lib/utimens.c: Likewise.
8659 openat: avoid using wrong fd
8660 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8661 working directory chooses same fd.
8662 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8664 mkdir, mkdirat: fix cygwin 1.5.x bug
8665 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8666 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8667 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8669 (gl_PREREQ_MKDIR): Delete unused macro.
8670 * modules/mkdir (Files): Track file rename.
8671 (configure.ac): Update macro name.
8672 * modules/openat (Depends-on): Add mkdir.
8673 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8675 mkdir, mkdirat: add tests
8676 * modules/mkdir-tests: New test.
8677 * tests/test-mkdir.h: New file.
8678 * tests/test-mkdir.c: Likewise.
8679 * tests/test-mkdirat.c: Likewise.
8680 * modules/openat-tests (Files): Add new files.
8681 (Makefile.am): Run new test.
8683 2009-10-06 Eric Blake <ebb9@byu.net>
8685 doc: tweak *at function documentation
8686 * doc/posix-functions/faccessat.texi (faccessat): Mention
8687 known issue with replacement.
8688 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8689 * doc/posix-functions/linkat.texi (linkat): Likewise.
8690 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8691 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8692 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8693 * doc/posix-functions/renameat.texi (renameat): Likewise.
8694 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8696 openat: fix GNU/Hurd bug in unlinkat
8697 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8699 * doc/posix-functions/unlink.texi (unlink): Document this.
8700 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8702 fdopendir: fix GNU/Hurd bug
8703 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8704 allowing non-directory fds.
8705 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8706 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8707 * modules/dirent (Makefile.am): Substitute it.
8708 * lib/dirent.in.h (fdopendir): Declare replacement.
8709 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8710 * tests/test-fdopendir.c (main): Test something other than
8711 /dev/null, since on Hurd that behaves like a directory.
8713 test-symlink: port to GNU/Hurd
8714 * tests/test-symlink.h (test_symlink): Relax expected errno.
8716 doc: tweak more cygwin information
8717 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8718 now compatible with glibc.
8719 * doc/posix-functions/getopt.texi (getopt): Likewise.
8721 getopt-gnu: add another test
8722 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8723 guarantee behavior relied on by m4.
8724 * tests/test-getopt.c (main): Use it.
8725 * modules/getopt-posix-tests (Depends-on): Add setenv.
8726 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8728 getopt: fix compilation on darwin
8729 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8731 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8732 Reported by Ludovic Courtès.
8734 2009-10-06 Bruno Haible <bruno@clisp.org>
8736 * modules/size_max (Description): Discourage its use.
8737 Reported by Simon Josefsson.
8739 2009-10-06 Jim Meyering <meyering@redhat.com>
8741 linkat: avoid compilation failure
8742 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8744 2009-10-05 Eric Blake <ebb9@byu.net>
8746 linkat: support Linux 2.6.17
8747 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8748 linkat on Linux, but allow cache variable override.
8749 * lib/linkat.c (rpl_linkat): Define override.
8750 * modules/linkat (Depends-on): Add symlinkat.
8751 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8752 * modules/unistd (Makefile.am): Substitute it.
8753 * lib/unistd.in.h (linkat): Declare replacement.
8754 Reported by Pádraig Brady.
8756 quotearg: port test to systems with C.UTF-8 locale
8757 * tests/test-quotearg.c (struct result_strings): Add another
8758 member, differentiating between C.ASCII and C.UTF-8 handling.
8759 (compare_strings): Add parameter.
8760 (main): Adjust all callers.
8762 getopt: avoid clash with FreeBSD _getopt_internal
8763 * lib/getopt.in.h (_getopt_internal): Override the name.
8764 * lib/getopt_int.h (includes): Pick up any overrides.
8765 Reported by Reuben Thomas.
8767 hash: allow C89 compilation
8768 * lib/hash.c (check_tuning): Move declaration before statement.
8769 Reported by Reuben Thomas.
8771 2009-10-05 Karl Berry <karl@gnu.org>
8773 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8775 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8776 Bruno Haible <bruno@clisp.org>
8778 * lib/uname.c (uname): Use a table-driven algorithm to compute
8779 Windows NT versions.
8781 2009-10-04 Bruno Haible <bruno@clisp.org>
8783 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8784 program_invocation_short_name.
8785 * modules/progname (configure.ac): Test for presence of
8786 program_invocation_short_name.
8787 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8789 2009-10-04 Bruno Haible <bruno@clisp.org>
8791 * lib/progname.c (set_program_name): Fix comment.
8792 Reported by Jim Meyering.
8794 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8795 Bruno Haible <bruno@clisp.org>
8797 * lib/uname.c: Include <string.h>.
8798 (uname): Do only one call to GetVersionEx in the common case.
8800 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8801 Bruno Haible <bruno@clisp.org>
8803 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8804 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8805 (uname): Add support for Windows CE and various non-x86 CPU types.
8807 2009-10-03 Bruno Haible <bruno@clisp.org>
8809 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8810 invocation to tests/configure.ac.
8811 Reported by Ian Beckwith <ianb@erislabs.net>.
8813 2009-10-02 Eric Blake <ebb9@byu.net>
8815 fchdir: avoid compiler warning
8816 * lib/fchdir.c (canonicalize_file_name)
8817 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8819 test-open: support mingw errno values
8820 * tests/test-open.h (test_open): Relax test.
8821 * tests/test-fopen.h (test_fopen): Likewise.
8822 * tests/test-openat-safer.c (main): Likewise.
8824 open: fix opening directory on mingw
8825 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8827 test-open: on GNU/Hurd, /dev/null is a directory
8828 * tests/test-fopen.h (main): Rename...
8829 (test_fopen): ...to this. Use a guaranteed non-directory when
8830 confirming open behavior on trailing slash.
8831 * tests/test-openat-safer.c (main): Likewise.
8832 * tests/test-open.h (main): Likewise....
8833 (test_open): ...to this.
8834 * tests/test-fopen.c (main): Adjust caller.
8835 * tests/test-fopen-safer.c (main): Likewise.
8836 * tests/test-open.c (main): Likewise.
8837 * tests/test-fcntl-safer.c (main): Likewise.
8838 Reported by Samuel Thibault.
8840 rename, fchdir: don't ignore chdir failure
8841 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8842 * lib/rename.c (rpl_rename) [W32]: Likewise.
8843 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8844 an empty destination directory if source cannot be renamed,
8845 although there is still possibility for failure.
8846 * doc/posix-functions/rename.texi (rename): Document the race.
8847 Reported by Jim Meyering.
8849 maint: cleanup whitespace in recent commits
8850 * lib/rename.c (rpl_rename): Remove tabs.
8851 * tests/test-link.h (test_link): Likewise.
8852 * lib/fchdir.c (get_name): Likewise.
8853 Reported by Jim Meyering.
8855 2009-10-02 Ben Pfaff <blp@gnu.org>
8857 relocatable-prog-wrapper: Add missing dependency on
8859 * modules/relocatable-prog-wrapper: Add dependency.
8860 Reported by Ian Beckwith <ianb@erislabs.net>.
8862 2009-10-02 Eric Blake <ebb9@byu.net>
8864 renameat: fix Solaris bugs
8865 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8867 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8868 * modules/stdio (Makefile.am): Substitute it.
8869 * lib/stdio.in.h (renameat): Declare replacement.
8870 * lib/renameat.c (rpl_renameat): Implement fix.
8872 renameat: new module
8873 * modules/renameat: New file.
8874 * lib/renameat.c (renameat): Likewise.
8875 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8876 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8877 * modules/stdio (Makefile.am): Substitute them.
8878 * lib/stdio.in.h (renameat): Declare it.
8879 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8880 * doc/posix-functions/renameat.texi (renameat): Likewise.
8881 * modules/renameat-tests: New test.
8882 * tests/test-renameat.c: Likewise.
8884 rename: fix mingw bugs
8885 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8886 directory overwrite bugs.
8888 rename: fix another cygwin 1.5 bug
8889 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8891 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8892 unnecessary cygwin workarounds. Also work around bug with moving
8893 full directory onto an empty one.
8894 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8896 rename-dest-slash: merge into rename module
8897 * modules/rename-dest-slash (Status): Mark obsolete.
8898 (Depends-on): Add rename.
8899 (Files): Let rename do it all.
8900 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8901 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8902 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8903 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8904 * lib/rename.c (rpl_rename): Update comments.
8906 rename: fix cygwin 1.5.x bugs
8907 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8908 * lib/rename.c (rpl_rename): Work around them.
8909 * modules/rename (Depends-on): Add same-inode.
8911 rename: fix Solaris 10 bug
8912 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8913 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8916 rename: fix Solaris 9 bug
8917 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8918 on non-directory. Avoid calling exit.
8919 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8921 * modules/rename-tests (Depends-on): Drop lstat.
8922 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8923 (gl_PREREQ_RENAME): Delete unused macro.
8925 rename-dest-slash: fix NetBSD bug
8926 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8928 * modules/rename-dest-slash (Depends-on): Add same-inode.
8930 rename-tests: new test, exposes several platform bugs
8931 * modules/rename-tests: New file.
8932 * tests/test-rename.h: Likewise.
8933 * tests/test-rename.c: Likewise.
8934 * doc/posix-functions/rename.texi (rename): Improve documentation,
8935 including bugs that will eventually be fixed in gnulib.
8937 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8939 * lib/uname.c: Include <stdlib.h>
8940 (uname): Assume version info is available.
8942 2009-10-02 Jim Meyering <meyering@redhat.com>
8944 gnu-web-doc-update: correct --help output
8945 * build-aux/gnu-web-doc-update: Make --help output relevant.
8947 gnu-web-doc-update: add standard options
8948 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8950 gnu-web-doc-update: New module.
8951 Use this script to automatically update the on-line web documentation
8952 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8953 * modules/gnu-web-doc-update: New file, from coreutils.
8954 * build-aux/gnu-web-doc-update: New script.
8956 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8958 link: LoadLibrary is not needed.
8959 * lib/link.c: Use GetModuleHandle.
8961 2009-10-01 Eric Blake <ebb9@byu.net>
8963 getopt: bump serial number
8964 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8967 tests: tighten link, rmdir, and remove tests
8968 * tests/test-link.h (includes): No need to use <config.h> here.
8969 Clean up if directory hard link was created, otherwise test for
8971 * tests/test-linkat.c (main): Simplify.
8972 * tests/test-remove.c (main): Enhance test for trailing '.'.
8973 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8975 2009-10-01 Jim Meyering <meyering@redhat.com>
8977 maint.mk: requiring "make major" was annoying, for a "minor" release.
8978 What is intended is "stable", to contrast with alpha and beta,
8979 so require "make stable", not "make major".
8980 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8981 (get_tool_versions): Likewise.
8982 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8984 2009-09-30 Ben Pfaff <blp@gnu.org>
8986 Fix broken build of replacement for Windows tmpfile().
8987 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8988 flags argument added along with the 'mkostemp' module.
8990 2009-09-28 Bruno Haible <bruno@clisp.org>
8992 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8993 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8995 (gl_list_remove): Update.
8996 * lib/gl_list.c (gl_list_remove): Update.
8997 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8999 (gl_oset_remove): Update.
9000 * lib/gl_list.c (gl_oset_remove): Update.
9001 Reported by Eric Blake.
9003 2009-09-28 Eric Blake <ebb9@byu.net>
9005 doc: mention yet more cygwin 1.7 status
9006 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9008 * doc/glibc-functions/execvpe.texi (execvpe): New file.
9009 * doc/gnulib.texi (Glibc unistd.h): Mention it.
9011 argp: fix test failure
9012 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9013 that are not upper-case. Pass correct range to tolower.
9015 2009-09-27 Jim Meyering <meyering@redhat.com>
9017 test-yesno: work around sparc-dash here-document infelicity
9018 Without this change, the literal \177 byte in a here document
9019 would make dash 0.5.5.1-3 access uninitialized memory.
9020 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9021 Instead, use a marker, "@", and filter through tr to create the desired
9022 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9024 2009-09-27 Bruno Haible <bruno@clisp.org>
9026 Disable untested support for new flavours of ACLs on AIX.
9027 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9029 * lib/set-mode-acl.c (qset_acl): Likewise.
9031 2008-12-07 Bruno Haible <bruno@clisp.org>
9033 Add support for new flavours of ACLs on AIX. (Untested.)
9034 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9035 (file_has_acl): Add support for newer AIX.
9036 * lib/set-mode-acl.c (qset_acl): Likewise.
9037 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9038 Rainer Tammer <tammer@tammer.net>.
9040 2009-09-26 Eric Blake <ebb9@byu.net>
9042 argp: fix compilation of getopt
9043 * lib/getopt.in.h (includes): Use different guard than glibc.
9044 Reported by Sergey Poznyakoff.
9046 doc: mention more cygwin 1.7 status
9047 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9049 * doc/posix-functions/execl.texi (execl): Likewise.
9050 * doc/posix-functions/execle.texi (execle): Likewise.
9051 * doc/posix-functions/execlp.texi (execlp): Likewise.
9052 * doc/posix-functions/execv.texi (execv): Likewise.
9053 * doc/posix-functions/execve.texi (execve): Likewise.
9054 * doc/posix-functions/execvp.texi (execvp): Likewise.
9055 * doc/glibc-functions/canonicalize_file_name.texi
9056 (canonicalize_file_name): Cygwin 1.7 now provides this.
9057 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9058 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9059 on AT_SYMLINK_NOFOLLOW.
9061 2009-09-24 Eric Blake <ebb9@byu.net>
9063 test-linkat: make test more robust
9064 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9066 getopt: fix inclusion guards for cygwin
9067 * modules/getopt-posix (Depends-on): Add include-next.
9068 (Makefile.am): Substitute more items in replacement header.
9069 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9071 * lib/getopt.in.h (includes): Use split inclusion guard, and
9072 prefer <getopt.h> over include <unistd.h> when one is present.
9073 (option): Also override name of 'struct option'.
9075 same-inode: revert prior change; it is not yet ready
9076 * NEWS: Undo mention of this change.
9077 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9078 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9079 * lib/cycle-check.c (cycle_check): Likewise.
9080 * lib/same.c (same_name): Likewise.
9081 * lib/at-func2.c (at_func2): Likewise.
9083 2009-09-23 Eric Blake <ebb9@byu.net>
9086 * modules/linkat: New file.
9087 * lib/at-func2.c (at_func2): Likewise.
9088 * lib/linkat.c (linkat): Likewise.
9089 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9090 * lib/openat-priv.h (at_func2): Add declaration.
9091 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9092 * modules/unistd (Makefile.am): Substitute them.
9093 * lib/unistd.in.h (linkat): Declare it.
9094 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9095 * doc/posix-functions/linkat.texi (linkat): Likewise.
9096 * doc/posix-functions/link.texi (link): Tweak wording.
9097 * tests/test-link.c (main): Move guts...
9098 * tests/test-link.h (test_link): ...into new file.
9099 * modules/linkat-tests: New test.
9100 * tests/test-linkat.c: Likewise.
9101 * modules/link-tests (Files): Ship new file.
9102 (Depends-on): Add stdbool.
9104 dirname: add library-safe mdir_name
9105 * lib/dirname.h (mdir_name): New prototype.
9106 * lib/dirname.c (dir_name): Move guts...
9107 (mdir_name): ...to new function that avoids xalloc_die.
9109 fchdir: another mingw fix
9110 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9111 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9112 on mingw (where it has not yet been ported), and make it optional
9114 (_gl_register_fd): Use it.
9116 same-inode: make SAME_INODE tri-state, to port to mingw
9117 * NEWS: Mention this change.
9118 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9119 st_ino always being 0.
9120 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9121 * lib/cycle-check.c (cycle_check): Likewise.
9122 * lib/same.c (same_name): Likewise.
9124 lstat: avoid mingw compilation error
9125 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9126 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9128 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9130 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9131 the checks for lstat.
9132 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9134 link: fix test failure on Solaris 9
9135 * lib/link.c (rpl_link): Don't assume link will catch bogus
9136 trailing slash on source.
9138 test-symlinkat: enhance test
9139 * tests/test-readlink.c (main): Move guts...
9140 * tests/test-readlink.h (test_readlink): ...into new file.
9141 * tests/test-symlink.c (main): Move guts...
9142 * tests/test-symlink.h (test_symlink): ...into new file.
9143 * tests/test-symlinkat.c (main): Use new files for further
9145 (do_symlink, do_readlink): New helper functions.
9146 * modules/symlink-tests (Files): Ship new file.
9147 (Depends-on): Add stdbool.
9148 * modules/readlink-tests (Files): Ship new file.
9149 (Depends-on): Add stdbool.
9150 * modules/symlinkat-tests (Files): Use new files.
9152 2009-09-23 Eric Blake <ebb9@byu.net>
9154 readlink: document portability issue with symlink length
9155 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9156 systems have bogus st_size on symlinks, and mention the
9157 areadlink-with-size module.
9158 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9159 * doc/posix-functions/readlink.texi (readlink): Mention the
9160 areadlink module, and ERANGE failure.
9161 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9162 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9164 readlink: fix Solaris 9 bug with trailing slash
9165 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9166 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9167 * doc/posix-functions/readlink.texi (readlink): Document this.
9168 * modules/readlink-tests: New test.
9169 * tests/test-readlink.c: Likewise.
9171 readlink: fix cygwin 1.5.x bug with return type
9172 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9173 * lib/unistd.in.h (readlink): Use ssize_t.
9174 * lib/readlink.c (readlink): Likewise.
9175 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9176 * modules/unistd (Makefile.am): Substitute it.
9177 * lib/unistd.in.h (readlink): Declare replacement.
9178 * doc/posix-functions/readlink.texi (readlink): Document this.
9180 symlink: use throughout gnulib
9181 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9182 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9183 symlink is not used.
9184 * modules/symlinkat (Depends-on): Add symlink.
9185 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9186 * modules/canonicalize-tests (Depends-on): Likewise.
9187 * modules/lstat-tests (Depends-on): Likewise.
9188 * modules/openat-tests (Depends-on): Likewise.
9189 * modules/remove-tests (Depends-on): Likewise.
9190 * modules/rmdir-tests (Depends-on): Likewise.
9191 * modules/unlink-tests (Depends-on): Likewise.
9192 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9193 * tests/test-canonicalize.c (symlink): Likewise.
9194 * tests/test-fstatat.c (symlink): Likewise.
9195 * tests/test-lstat.c (symlink): Likewise.
9196 * tests/test-remove.c (symlink): Likewise.
9197 * tests/test-rmdir.c (symlink): Likewise.
9198 * tests/test-unlink.c (symlink): Likewise.
9199 * tests/test-unlinkat.c (symlink): Likewise.
9201 symlink: new module, for Solaris 9 bug
9202 * modules/symlink: New file.
9203 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9204 * lib/symlink.c: Likewise.
9205 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9206 * modules/unistd (Makefile.am): Substitute them.
9207 * lib/unistd.in.h (symlink): Declare replacement.
9208 * MODULES.html.sh (File system functions): Mention it.
9209 * doc/posix-functions/symlink.texi (symlink): Likewise.
9210 * modules/symlink-tests: New test.
9211 * tests/test-symlink.c: Likewise.
9213 2009-09-23 Bruno Haible <bruno@clisp.org>
9215 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9217 Test case: gnulib-tool --import --with-tests atexit inttypes.
9218 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9220 2009-09-23 Bruno Haible <bruno@clisp.org>
9222 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9223 subcommand, not in a subshell.
9225 2009-09-22 Eric Blake <ebb9@byu.net>
9227 unistd: sort replacement declarations
9228 * lib/unistd.in.h: Sort declarations.
9230 open, openat: minor optimization
9231 * lib/open.c (open): If open succeeded, len is non-zero.
9232 * lib/openat.c (rpl_openat): Likewise.
9234 link-follow: ensure correct result
9235 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9236 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9237 distinguish between possible failures.
9239 2009-09-21 Eric Blake <ebb9@byu.net>
9241 fts: avoid compiler warning
9242 * lib/fts.c (dirent_inode_sort_may_be_useful)
9243 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9245 2009-09-19 Bruno Haible <bruno@clisp.org>
9247 * lib/progreloc.c (canonicalize_file_name): New declaration.
9249 2009-09-19 Eric Blake <ebb9@byu.net>
9252 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9254 openat: fix openat bugs on Solaris 9
9255 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9256 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9257 * modules/openat (Depends-on): Add open.
9258 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9259 * modules/fcntl-h (Makefile.am): Substitute it.
9260 * lib/fcntl.in.h (openat): Declare replacement.
9261 * doc/posix-functions/openat.texi (openat): Document this.
9263 openat: move fstatat and unlinkat into correct files
9264 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9266 * lib/openat.c (fstatat, unlinkat): Move...
9267 * lib/fstatat.c (fstatat): ...into correct files.
9268 * lib/unlinkat.c (unlinkat): Likewise.
9270 openat: fix unlinkat bugs on Solaris 9
9271 * lib/unlinkat.c (unlinkat): New file.
9272 * modules/openat (Depends-on): Add unlink.
9273 (Files): Distribute it.
9274 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9275 trailing slash behavior is broken.
9276 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9277 * modules/unistd (Makefile.am): Substitute it.
9278 * lib/unistd.in.h (unlinkat): Declare replacement.
9279 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9281 openat: fix fstatat bugs on Solaris 9
9282 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9284 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9286 test-unlinkat: enhance test, to expose Solaris 9 bug
9287 * tests/test-unlink.c (main): Factor guts...
9288 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9289 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9290 * tests/test-rmdir.c (main): Adjust caller.
9291 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9292 (unlinker): New helper function.
9293 (rmdirat): Enhance check.
9294 * modules/rmdir-tests (Depends-on): Add stdbool.
9295 * modules/unlink-tests (Depends-on): Likewise.
9296 (Files): Add test-unlink.h.
9297 * modules/openat-tests (Files): Likewise.
9298 (Depends-on): Add unlinkdir.
9300 test-fstatat: new test, to expose Solaris 9 bugs
9301 * tests/test-stat.c (main): Factor guts...
9302 * tests/test-stat.h (test_stat_func): ...into new file.
9303 * tests/test-lstat.c (main): Factor guts...
9304 * tests/test-lstat.h (test_lstat_func): ...into new file.
9305 * tests/test-fstatat.c: New file.
9306 * modules/stat-tests (Files): Add test-stat.h.
9307 * modules/lstat-tests (Files): Add test-lstat.h.
9308 (Depends-on): Add stdbool.
9309 * modules/openat-tests (Depends-on): Add pathmax.
9310 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9311 (Makefile.am): Run new test.
9313 remove: new module, for mingw and Solaris 9 bugs
9314 * modules/remove: New file.
9315 * lib/remove.c: Likewise.
9316 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9317 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9318 * modules/stdio (Makefile.am): Use them.
9319 * lib/stdio.in.h (remove): Declare replacement.
9320 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9321 * doc/posix-functions/remove.texi (remove): Likewise.
9322 * modules/remove-tests: New test.
9323 * tests/test-remove.c: Likewise.
9325 unlink: new module, for Solaris 9 bug
9326 * modules/unlink: New file.
9327 * lib/unlink.c: Likewise.
9328 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9329 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9330 * modules/unistd (Makefile.am): Use them.
9331 * lib/unistd.in.h (stat): Declare replacement.
9332 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9333 * doc/posix-functions/unlink.texi (unlink): Likewise.
9334 * modules/unlink-tests: New test.
9335 * tests/test-unlink.c: Likewise.
9337 lstat: fix Solaris 9 bug
9338 * lib/lstat.c (lstat): Also check for trailing slash on
9339 non-symlink, non-directories. Use stat module to simplify logic.
9340 * doc/posix-functions/lstat.texi (lstat): Document it.
9341 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9342 (configure.ac): Check for symlink.
9343 * tests/test-lstat.c (main): Add more tests.
9345 stat: add as dependency to other modules
9346 * modules/chown (Depends-on): Add stat.
9347 * modules/euidaccess (Depends-on): Likewise.
9348 * modules/fchdir (Depends-on): Likewise.
9349 * modules/isdir (Depends-on): Likewise.
9350 * modules/link (Depends-on): Likewise.
9351 * modules/lstat (Depends-on): Likewise.
9352 * modules/mkdir-p (Depends-on): Likewise.
9353 * modules/modechange (Depends-on): Likewise.
9354 * modules/open (Depends-on): Likewise.
9355 * modules/readlink (Depends-on): Likewise.
9356 * modules/same (Depends-on): Likewise.
9358 stat: fix Solaris 9 bug
9359 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9361 * lib/stat.c (rpl_stat): Work around it.
9362 * doc/posix-functions/stat.texi (stat): Update documentation.
9364 stat: new module, for mingw bug
9365 * modules/stat: New file.
9366 * lib/stat.c: Likewise.
9367 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9368 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9369 * modules/sys_stat (Makefile.am): Use them.
9370 * lib/sys_stat.in.h (stat): Declare replacement.
9371 * lib/openat.c (fstatat): Deal with lstat and stat being function
9373 * modules/openat (Depends-on): Add inline.
9374 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9375 * doc/posix-functions/stat.texi (stat): Likewise.
9376 * modules/stat-tests: New test.
9377 * tests/test-stat.c: Likewise.
9379 2009-09-19 Jim Meyering <meyering@redhat.com>
9381 syntax-check: detect unnecessary inclusion of canonicalize.h
9382 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9384 2009-09-19 Eric Blake <ebb9@byu.net>
9386 canonicalize-lgpl: adjust clients to use correct header
9387 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9388 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9389 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9390 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9391 * lib/progreloc.c (includes): Likewise.
9393 2009-09-19 Jim Meyering <meyering@redhat.com>
9395 test-posixtm.c: correct a comment
9396 * tests/test-posixtm.c: Correct first-line comment.
9397 Spotted by Eric Blake.
9399 2009-09-16 Jim Meyering <meyering@redhat.com>
9401 posixtm-tests: make T const-correct; add a test case
9402 * tests/test-posixtm.c (T): Declare const.
9403 Add a test for -(2^31+1).
9404 Remove useless can-succeed-only-in-2002 test.
9406 posixtm-tests: adjust the sole failing test
9407 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9408 expected output matches what mktime now produces. Cross-checked via
9409 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9411 posixtm: move #ifdef'd tests into a new module
9412 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9413 * tests/test-posixtm.c: ... this new file.
9414 * modules/posixtm-tests: New module.
9416 2009-09-19 Eric Blake <ebb9@byu.net>
9418 openat: simplify use of at-func.c
9419 * lib/at-func.c (includes): Include prerequisites here, to
9420 simplify requirements on client files.
9421 * lib/openat-priv.h: Add double-inclusion guard.
9422 * lib/faccessat.c (includes): Simplify.
9423 * lib/fchmodat.c (includes): Likewise.
9424 * lib/fchownat.c (includes): Likewise.
9425 * lib/mkdirat.c (includes): Likewise.
9426 * lib/mkfifoat.c (includes): Likewise.
9427 * lib/symlinkat.c (includes): Likewise.
9429 openat: allow return of fd 0
9430 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9431 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9433 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9434 <fcntl.h>; this module does not leak fds.
9435 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9436 must be allowed to return 0, leaving openat_safer to add the
9438 (openat_permissive): Avoid writing to just-opened fd 2 if
9439 restoring the current directory fails.
9440 * lib/openat-die.c (openat_restore_fail): Add comment.
9441 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9442 (save_cwd): Guarantee safe fd, but without use of open_safer.
9443 * tests/test-openat.c: New test.
9444 * modules/openat-tests (Files, Makefile.am): Distribute and build
9447 relocatable-prog-wrapper: fix build
9448 * modules/relocatable-prog-wrapper (Files): Update name of
9449 canonicalize m4 file, broken on 2009-09-17.
9450 Reported by emad hajjar <aleppos@hotmail.com>.
9452 2009-09-19 Bruno Haible <bruno@clisp.org>
9454 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9455 * lib/safe-alloc.c: Likewise.
9456 Reported by Ian Beckwith <ianb@erislabs.net>.
9458 2009-09-18 Bruno Haible <bruno@clisp.org>
9460 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9461 Reported by <erobles@sensacd.com.mx>.
9463 2009-09-17 Eric Blake <ebb9@byu.net>
9465 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9466 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9467 slashes when checking if last component is missing.
9468 * tests/test-canonicalize.c (main): Test this.
9470 canonicalize, canonicalize-lgpl: honor // if distinct from /
9471 * modules/canonicalize (Files): Add double-slash-root.m4.
9472 * modules/canonicalize-lgpl (Files): Likewise.
9473 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9474 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9475 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9476 fallback definition.
9477 (canonicalize_filename_mode): Use it to protect //.
9478 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9479 (__realpath): Likewise.
9480 * tests/test-canonicalize.c (main): Test this.
9481 * tests/test-canonicalize-lgpl.c (main): Likewise.
9482 * modules/canonicalize-tests (Depends-on): Add same-inode.
9483 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9485 canonicalize-lgpl: fix glibc bug with trailing slash
9486 * m4/canonicalize-lgpl.m4: Move contents...
9487 * m4/canonicalize.m4: ...here.
9488 (gl_CANONICALIZE_LGPL): Factor realpath check...
9489 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9490 glibc 2.3.5 bug, fixed 2005-04-27.
9491 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9492 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9493 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9494 * modules/canonicalize-lgpl (Files): Manage file rename.
9495 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9496 * modules/stdlib (Makefile.am): Substitute witness.
9497 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9499 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9500 replacement is required.
9501 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9502 * doc/glibc-functions/canonicalize_file_name.texi
9503 (canonicalize_file_name): Document this.
9504 * doc/posix-functions/realpath.texi (realpath): Likewise.
9506 canonicalize-lgpl: reject non-directory with trailing slash
9507 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9508 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9509 catches failures in glibc 2.3.5.
9510 * tests/test-canonicalize.c (main): Likewise.
9512 canonicalize-lgpl: use native realpath if it works
9513 * lib/canonicalize-lgpl.c (realpath): Guard with
9514 FUNC_REALPATH_WORKS.
9515 * lib/stdlib.in.h (realpath): Make declaration optional based on
9517 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9518 native realpath works.
9519 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9520 * modules/stdlib (Makefile.am): Substitute witness.
9522 canonicalize, canonicalize-lgpl: use <stdlib.h>
9523 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9524 (Include): Mention <stdlib.h>.
9525 (configure.ac): Mention functions we provide.
9526 * modules/canonicalize (configure.ac): Likewise.
9527 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9528 realpath if canonicalize_file_name is missing.
9529 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9530 * modules/stdlib (Makefile.am): Substitute witnesses.
9531 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9532 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9533 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9534 * NEWS: Document this.
9535 * doc/glibc-functions/canonicalize_file_name.texi
9536 (canonicalize_file_name): Likewise.
9537 * doc/posix-functions/realpath.texi (realpath): Likewise.
9538 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9540 test-canonicalize: consolidate into single C program
9541 * tests/test-canonicalize.sh: Delete; move setup into...
9542 * tests/test-canonicalize.c (main): ...the program, making it
9543 easier to run in debugger. Add some tests.
9544 * modules/canonicalize-tests (Files): Remove unused file.
9545 (Depends-on): Add progname.
9546 (configure.ac, Makefile.am): Simplify.
9548 test-canonicalize-lgpl: consolidate into single C program
9549 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9550 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9551 easier to run in debugger. Add some tests.
9552 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9553 (configure.ac, Makefile.am): Simplify.
9555 canonicalize: avoid resolvepath
9556 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9558 * lib/canonicalize.c (includes): Simplify.
9559 (canonicalize_file_name): Drop resolvepath implementation.
9560 * modules/canonicalize (Depends-on): Drop filenamecat.
9562 canonicalize: don't lose errno
9563 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9566 canonicalize: simplify errno handling
9567 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9570 canonicalize, canonicalize-lgpl: update module dependencies
9571 * modules/canonicalize (Depends-on): Add extensions, lstat,
9573 (Files): Drop pathmax.h.
9574 (configure.ac): Adjust macro name.
9575 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9576 lstat, stdlib, sys_stat.
9577 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9578 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9580 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9581 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9582 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9583 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9584 declaration, if available.
9585 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9586 we can rely on the readlink module.
9587 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9588 (includes): Use <unistd.h> unconditionally.
9590 2009-09-17 Eric Blake <ebb9@byu.net>
9592 maint: make Include sections of modules consistent
9593 * modules/alloca: Use only header name; no need to list #include.
9594 * modules/alloca-opt: Likewise.
9595 * modules/arpa_inet: Likewise.
9596 * modules/canon-host: Likewise.
9597 * modules/configmake: Likewise.
9598 * modules/dirent: Likewise.
9599 * modules/eealloc: Likewise.
9600 * modules/environ: Likewise.
9601 * modules/fchdir: Likewise.
9602 * modules/fcntl: Likewise.
9603 * modules/fcntl-h: Likewise.
9604 * modules/gethrxtime: Likewise.
9605 * modules/gettime: Likewise.
9606 * modules/ignore-value: Likewise.
9607 * modules/inet_ntop: Likewise.
9608 * modules/inet_pton: Likewise.
9609 * modules/inttypes: Likewise.
9610 * modules/isnand-nolibm: Likewise.
9611 * modules/isnanf-nolibm: Likewise.
9612 * modules/mbchar: Likewise.
9613 * modules/mbfile: Likewise.
9614 * modules/mbiter: Likewise.
9615 * modules/mbuiter: Likewise.
9616 * modules/netdb: Likewise.
9617 * modules/netinet_in: Likewise.
9618 * modules/nproc: Likewise.
9619 * modules/pagealign_alloc: Likewise.
9620 * modules/poll: Likewise.
9621 * modules/printf-frexp: Likewise.
9622 * modules/pthread: Likewise.
9623 * modules/putenv: Likewise.
9624 * modules/random_r: Likewise.
9625 * modules/relocatable-prog: Likewise.
9626 * modules/search: Likewise.
9627 * modules/select: Likewise.
9628 * modules/selinux-h: Likewise.
9629 * modules/settime: Likewise.
9630 * modules/signal: Likewise.
9631 * modules/size_max: Likewise.
9632 * modules/socklen: Likewise.
9633 * modules/ssize_t: Likewise.
9634 * modules/stdarg: Likewise.
9635 * modules/stdbool: Likewise.
9636 * modules/stddef: Likewise.
9637 * modules/stdint: Likewise.
9638 * modules/stdio: Likewise.
9639 * modules/stdlib: Likewise.
9640 * modules/string: Likewise.
9641 * modules/strings: Likewise.
9642 * modules/sys_file: Likewise.
9643 * modules/sys_ioctl: Likewise.
9644 * modules/sys_select: Likewise.
9645 * modules/sys_socket: Likewise.
9646 * modules/sys_stat: Likewise.
9647 * modules/sys_time: Likewise.
9648 * modules/sys_times: Likewise.
9649 * modules/sys_utsname: Likewise.
9650 * modules/sys_wait: Likewise.
9651 * modules/sysexits: Likewise.
9652 * modules/time: Likewise.
9653 * modules/times: Likewise.
9654 * modules/tmpfile: Likewise.
9655 * modules/trim: Likewise.
9656 * modules/unistd: Likewise.
9657 * modules/wchar: Likewise.
9658 * modules/wctype: Likewise.
9660 2009-09-17 Bruno Haible <bruno@clisp.org>
9662 Make getdate.y compile on QNX and NetBSD 5 / i386.
9663 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9664 TIME_T_FITS_IN_LONG_INT.
9665 * lib/getdate.y (long_time_t): New type.
9666 (relative_time): Change type of 'seconds' field to long_time_t.
9667 (get_date): Update types of local variables. Check against overflow
9668 during conversion from long_time_t to time_t.
9669 Reported by Matt Kraai <kraai@ftbfs.org>
9670 and Hasso Tepper <hasso@netbsd.org>.
9672 2009-09-17 Bruno Haible <bruno@clisp.org>
9674 * modules/COPYING: Update copyright years.
9675 * modules/README: Likeiwse.
9676 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9677 Reported by Ian Beckwith <ianb@erislabs.net>.
9679 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9681 * users.txt: Update references for gnuit package.
9683 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9685 * m4/getdelim.m4: Fix typo in copyright line.
9687 2009-09-17 Bruno Haible <bruno@clisp.org>
9689 * lib/atoll.c: Use the standard header with GPL copyright.
9690 * lib/argz.in.h: Likewise.
9691 * lib/glob.c: Likewise.
9692 * lib/glob-libc.h: Likewise.
9693 * lib/random_r.c: Likewise.
9694 * lib/siglist.h: Likewise.
9695 * lib/strsignal.c: Likewise.
9696 Reported by Ian Beckwith <ianb@erislabs.net>.
9698 2009-09-17 Eric Blake <ebb9@byu.net>
9700 rmdir: ensure correct dependency order
9701 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9703 2009-09-17 Bruno Haible <bruno@clisp.org>
9705 Disable assertion that fails on NetBSD 5 / i386.
9706 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9707 Reported by Sam Steingold <sds@gnu.org>
9708 and Hasso Tepper <hasso@netbsd.org>.
9710 2009-09-16 Eric Blake <ebb9@byu.net>
9712 unlinkdir: port to mingw
9713 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9714 on which no one can unlink a directory.
9716 stdlib: sort witness names
9717 * modules/stdlib (Makefile.am): Sort replacements.
9718 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9719 * lib/stdlib.in.h: Likewise.
9721 parse-duration-tests: avoid link failure
9722 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9724 Reported by Tom G. Christensen.
9726 openat-tests: ensure unlinkat behaves like rmdir
9727 * tests/test-rmdir.c (main): Factor guts...
9728 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9729 * modules/rmdir-tests (Files): Ship new file.
9730 * modules/openat-tests: New test.
9731 * tests/test-unlinkat.c: Likewise.
9733 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9734 * modules/rmdir-errno (Status, Notice): Now obsolete.
9736 rmdir: work around cygwin 1.5.x and mingw bugs
9737 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9738 * lib/rmdir.c (rmdir): Work around it.
9739 * modules/rmdir (Status, Notice): No longer obsolete.
9740 (Files): Add dos.m4.
9741 (Depends-on): Add unistd.
9742 (configure.ac): Set witnesses.
9743 (License): Relax to LGPLv2+.
9744 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9745 * modules/unistd (Makefile.am): Substitute witnesses.
9746 * lib/unistd.in.h (rmdir): Declare replacement.
9747 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9748 * modules/rmdir-tests: New tests.
9749 * tests/test-rmdir.c: Likewise.
9751 2009-09-15 Eric Blake <ebb9@byu.net>
9753 fchdir: improve use of replacement functions
9754 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9755 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9756 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9758 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9759 * modules/sys_stat (Makefile.am): Substitute correct witness.
9760 * modules/dirent (Makefile.am): Likewise.
9761 * modules/unistd (Makefile.am): Likewise.
9762 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9763 * lib/unistd.in.h (dup): Likewise.
9764 * lib/sys_stat.in.h (fstat): Likewise.
9766 maint: ignore gnulib-tool temp files
9767 * .gitignore: Ignore files created during gnulib-tool --test.
9769 2009-09-13 Jim Meyering <meyering@redhat.com>
9771 posixtm: don't reject a time that specify "60" as the number of seconds
9772 * lib/posixtm.c (posixtime): The code to reject invalid dates
9773 would also reject a time specified with the .60 suffix.
9774 But POSIX allows that, in order to accommodate leap seconds.
9776 (main): Adjust tests accordingly.
9777 * modules/posixtm (Depends-on): Add stpcpy.
9779 2009-09-11 Jim Meyering <meyering@redhat.com>
9781 announce-gen: include [$release_type] in emitted Subject:
9782 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9783 e.g., [stable] in the emitted Subject: line.
9785 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9787 Remove obsolete macros from several modules.
9788 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9789 obsolete Autoconf macros with their modern counterparts.
9790 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9791 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9792 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9793 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9794 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9795 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9796 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9797 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9798 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9799 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9800 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9801 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9802 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9803 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9804 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9805 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9806 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9807 * m4/time_r.m4 (gl_TIME_R): Likewise.
9808 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9809 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9810 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9812 Fix copyright header in build-aux scripts.
9813 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9815 * build-aux/ncftpput-ftp: Likewise.
9816 * build-aux/update-copyright: Likewise.
9818 2009-09-09 Eric Blake <ebb9@byu.net>
9820 test-link: allow Linux choice of errno
9821 * tests/test-link.c (main): Relax test for alternate error.
9823 strndup: fix improper m4 caching
9824 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9825 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9826 (gl_PREREQ_STRNDUP): Delete.
9827 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9828 * modules/string (Makefile.am): Substitute it.
9829 * lib/string.in.h (strndup): Modernize prototype.
9831 getcwd: port to mingw
9832 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9833 different from the POSIX assumptions made throughout the getcwd
9834 module; fortunately, the mingw getcwd does not need replacement.
9835 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9836 * modules/getcwd-tests: New test.
9837 * tests/test-getcwd.c: Likewise.
9839 link: fix platform bugs
9840 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9841 * lib/link.c (link): Work around them. Fix related mingw bug.
9842 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9843 * modules/unistd (Makefile.am): Substitute it.
9844 * lib/unistd.in.h (link): Declare replacement.
9845 * doc/posix-functions/link.texi (link): Document this.
9846 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9848 test-link: consolidate into single C program, test more cases
9849 * tests/test-link.sh: Delete.
9850 * tests/test-link.c: Test more error conditions. Exposes bugs on
9851 at least Cygwin and Solaris.
9852 * modules/link-tests (Files): Remove unused file.
9853 (Depends-on): Add errno, sys_stat.
9854 (Makefile.am): Simplify.
9856 2009-09-08 Bruno Haible <bruno@clisp.org>
9858 Work around towlower, towupper bug on mingw.
9859 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9860 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9861 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9862 * doc/posix-functions/towupper.texi: Likewise.
9863 Reported by Eric Blake.
9865 2009-09-08 Jim Meyering <meyering@redhat.com>
9867 build: don't try to run autoheader if we don't use it
9868 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9869 is not used in configure.ac.
9871 2009-09-08 Eric Blake <ebb9@byu.net>
9873 euidaccess: fix compilation error
9874 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9876 rawmemchr: relax license
9877 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9879 Reported by Jim Meyering.
9881 mkfifoat: new module
9882 * modules/mkfifoat: New file.
9883 * lib/mkfifoat.c: Likewise.
9884 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9885 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9886 * modules/sys_stat (Makefile.am): Use them.
9887 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9888 * MODULES.html.sh (File system functions): Mention module.
9889 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9890 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9891 * modules/mkfifoat-tests: New test.
9892 * tests/test-mkfifoat.c: Likewise.
9894 strchrnul: relax license
9895 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9897 Reported by Jim Meyering.
9899 2009-09-08 Eric Blake <ebb9@byu.net>
9901 fstatat: fix compilation on Solaris
9902 * lib/fstatat.c (includes): Add fcntl.h.
9903 Reported by Pádraig Brady.
9905 2009-09-07 Eric Blake <ebb9@byu.net>
9907 rename: modernize replacement
9908 * modules/rename (Depends-on): Add stdio.
9909 (configure.ac): Declare witness.
9910 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9911 stdio take care of replacement.
9912 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9913 * modules/stdio (Makefile.am): Substitute them.
9914 * lib/stdio.in.h (rename): Declare replacement.
9915 * lib/rename.c (includes): Allow cross-compilation to non-windows
9917 * doc/posix-functions/rename.texi (rename): Improve
9920 stdio: sort witness names
9921 * modules/stdio (Makefile.am): Sort replacements.
9922 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9923 * lib/stdio.in.h: Likewise.
9925 getcwd: minor cleanups
9926 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9927 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9929 openat: provide more convenience names
9930 * modules/faccessat (configure.ac): Add C witness.
9931 * lib/unistd.in.h (readlinkat): Fix typo.
9932 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9933 convenience wrappers.
9934 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9935 wrappers in syntax checks.
9937 2009-09-06 Eric Blake <ebb9@byu.net>
9939 doc: fix comments in recent patches
9940 * lib/faccessat.c: Mention correct function.
9941 * lib/fchmodat.c: Likewise.
9942 * lib/fchownat.c: Likewise.
9943 * lib/symlinkat.c: Likewise.
9944 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9947 faccessat, symlinkat: continue cleanup of previous patch
9948 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9949 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9950 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9951 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9952 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9953 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9956 2009-09-06 Bruno Haible <bruno@clisp.org>
9958 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9959 (fstatat): Declare if GNULIB_FSTATAT is set.
9960 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9961 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9962 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9963 * modules/fcntl-h (Files): Remove m4/openat.m4.
9964 * modules/sys_stat (Files): Remove m4/openat.m4.
9965 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9966 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9967 * modules/unistd (Files): Remove m4/openat.m4.
9968 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9970 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9971 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9972 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9973 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9974 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9976 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9977 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9978 Don't require gl_OPENAT_DEFAULTS.
9979 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9980 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9981 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9982 (gl_OPENAT_DEFAULTS): Remove macro.
9984 2009-09-06 Bruno Haible <bruno@clisp.org>
9986 * modules/openat (configure.ac): Remove unneeded witness.
9988 2009-09-06 Bruno Haible <bruno@clisp.org>
9990 Set errno to ENOSYS when a function is entirely unsupported.
9991 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9993 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9994 * modules/chown (Depends-on): Remove errno.
9996 2009-09-06 Bruno Haible <bruno@clisp.org>
9998 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10000 2009-09-06 Bruno Haible <bruno@clisp.org>
10002 * lib/sys_stat.in.h: Fix preprocessor command indentation.
10004 2009-09-06 Ben Pfaff <blp@gnu.org>
10005 Bruno Haible <bruno@clisp.org>
10007 Work around a glibc bug in strtok_r.
10008 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10009 Undefine if UNDEFINE_STRTOK_R is set.
10010 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10011 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10012 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10013 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10014 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10016 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10018 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
10021 * lib/exclude.c: Include wctype.h
10023 2009-09-06 Akim Demaille <demaille@gostai.com>
10025 bootstrap: improve error message
10026 * build-aux/bootstrap (find_tool): Upon failure, report the list
10028 Honor the initial value of the envvar.
10030 2009-09-05 Eric Blake <ebb9@byu.net>
10032 symlinkat: new module
10033 * modules/symlinkat: New file.
10034 * lib/symlinkat.c: Likewise.
10035 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10036 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10037 * modules/unistd (Makefile.am): Use them.
10038 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10039 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10040 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10041 * MODULES.html.sh (File system functions): Mention module.
10042 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10043 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10044 * modules/symlinkat-tests: New test.
10045 * tests/test-symlinkat.c: Likewise.
10047 test-openat-safer: add more checks
10048 * tests/test-openat-safer.c (main): Check more code paths.
10050 2009-09-05 Jim Meyering <meyering@redhat.com>
10052 syntax-check: detect unnecessary inclusion of openat.h
10053 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10055 2009-09-05 Bruno Haible <bruno@clisp.org>
10057 Support towlower, towupper.
10058 * doc/posix-functions/towlower.texi: Mention module wctype.
10059 * doc/posix-functions/towupper.texi: Likewise.
10060 * lib/wctype.in.h (towlower, towupper): New functions.
10061 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10062 (ASSERT): New macro.
10064 (main): Test also towlower, towupper. Test WEOF argument.
10065 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10067 2009-09-05 Bruno Haible <bruno@clisp.org>
10069 Fix conversion behaviour when the input is invalid.
10070 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10071 mark occurring in first pass of indirect conversion.
10072 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10074 Found by clang's static analyzer.
10076 2009-09-05 Bruno Haible <bruno@clisp.org>
10078 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10079 where direct conversion is possible.
10081 2009-09-04 Eric Blake <ebb9@byu.net>
10083 openat: fail with ENOENT on empty name
10084 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10087 link-follow: fix logic bug in prior patch
10088 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10089 reversed sense of yes and no in prior patch. Avoid confusing
10090 compilation failure with desired semantics.
10092 link-follow: accomodate mingw and cross-compilation
10093 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10094 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10095 cross-compilation results to -1, to make linkat easier to
10096 implement when cross-compiling. Trivially support mingw.
10097 * modules/link-follow (configure.ac): Call new name.
10098 * NEWS: Mention this.
10100 2009-09-03 Eric Blake <ebb9@byu.net>
10102 faccessat: compile replacement
10103 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10106 fts: fix compilation error
10107 * lib/fts.c (includes): Re-add "openat.h", for
10108 openat_needs_fchdir.
10110 faccessat: new module
10111 * modules/faccessat: New file.
10112 * lib/faccessat.c: Likewise.
10113 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10114 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10115 * modules/unistd (Makefile.am): Use it.
10116 * lib/unistd.in.h (faccessat): Declare it.
10117 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10118 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10119 * MODULES.html.sh (File system functions): Mention it.
10120 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10121 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10123 euidaccess: prefer POSIX over non-standard implementation
10124 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10125 * lib/euidaccess.c (euidaccess): Use it if available.
10127 openat: make template easier to use
10128 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10129 AT_FUNC_F2 to be undefined.
10130 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10131 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10132 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10133 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10134 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10136 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10137 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10138 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10141 openat: declare in POSIX headers
10142 * NEWS: Mention this.
10143 * modules/openat (configure.ac): Declare witnesses.
10144 (Depends-on): Add fcntl-h, sys_stat, unistd.
10145 (Include): Mention correct headers.
10146 * modules/fcntl-h (Depends-on): Add link-warning.
10147 (Files): Add openat.m4.
10148 (Makefile.am): Substitute witnesses.
10149 * modules/sys_stat (Files, Makefile.am): Likewise.
10150 * modules/unistd (Files, Makefile.am): Likewise.
10151 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10152 (gl_OPENAT_DEFAULTS): New macro.
10153 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10154 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10155 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10156 (SYS_STAT_H): Remove unused variable.
10157 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10158 * lib/fcntl--.h (includes): Remove unneeded header.
10159 * lib/openat-safer.c (includes): Likewise.
10160 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10161 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10162 appropriate headers.
10163 (__OPENAT_PREFIX): Delete.
10164 * lib/fcntl.in.h (openat): Provide declaration.
10165 (AT_FDCWD): Fix Solaris bug.
10166 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10167 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10168 * lib/fchmodat.c (includes): Adjust to find declaration.
10169 * lib/fchownat.c (includes): Likewise.
10170 * lib/mkdirat.c (includes): Likewise.
10171 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10174 2009-09-02 Eric Blake <ebb9@byu.net>
10176 errno: use consistently
10177 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10178 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10179 * lib/canonicalize.c (ELOOP): Likewise.
10180 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10181 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10182 * lib/lchown.c (EOPNOTSUPP): Likewise.
10183 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10184 * lib/savewd.c (ESTALE): Likewise.
10185 * lib/settime.c (ENOSYS): Likewise.
10186 * lib/utimens.c (ENOSYS): Likewise.
10187 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10188 * lib/chdir-safer.c (ELOOP): Likewise.
10189 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10190 * modules/c-stack (Depends-on): Add errno.
10191 * modules/canonicalize (Depends-on): Likewise.
10192 * modules/chdir-safer (Depends-on): Likewise.
10193 * modules/fdopendir (Depends-on): Likewise.
10194 * modules/inet_ntop (Depends-on): Likewise.
10195 * modules/inet_pton (Depends-on): Likewise.
10196 * modules/lchown (Depends-on): Likewise.
10197 * modules/openat (Depends-on): Likewise.
10198 * modules/savewd (Depends-on): Likewise.
10199 * modules/settime (Depends-on): Likewise.
10200 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10202 fts: avoid leaking fds
10203 * modules/fts (Depends-on): Add cloexec.
10204 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10207 fts: make directory fds more robust
10208 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10209 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10211 backupfile, chdir-long, fts, savedir: make safer
10212 * lib/backupfile.c (includes): Use "dirent--.h", since
10213 numbered_backup can write to stderr during readdir.
10214 * lib/savedir.c (includes): Likewise.
10215 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10216 emulation can write to stderr on failure.
10217 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10218 * lib/getcwd.c: Document why opendir_safer is unused.
10219 * lib/glob.c: Likewise.
10220 * lib/scandir.c: Likewise.
10221 * lib/openat-proc.c: Likewise, for open_safer.
10222 * modules/backupfile (Depends-on): Add dirent-safer.
10223 * modules/savedir (Depends-on): Likewise.
10224 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10225 * modules/chdir-long (Depends-on): Add openat-safer.
10227 openat-safer: new module
10228 * modules/openat-safer: New file.
10229 * lib/openat-safer.c: Likewise.
10230 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10231 * lib/fcntl-safer.h (openat_safer): Declare.
10232 * lib/fcntl--.h (openat): Override.
10233 * MODULES.html.sh (File descriptor based I/O): Mention it.
10234 * lib/openat.h: Add double-inclusion guards.
10235 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10236 "fcntl--.h", so we can implement openat.
10237 * modules/openat-safer-tests: New test.
10238 * tests/test-openat-safer.c: New file.
10240 dirent-safer: new module
10241 * modules/dirent-safer: New file.
10242 * lib/dirent--.h: Likewise.
10243 * lib/dirent-safer.h: Likewise.
10244 * lib/opendir-safer.c: Likewise.
10245 * m4/dirent-safer.m4: Likewise.
10246 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10247 * modules/dirent-safer-tests: New test.
10248 * tests/test-dirent-safer.c: New file.
10249 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10251 fdopendir: optimize on mingw
10252 * lib/unistd.in.h (_gl_directory_name): New prototype.
10253 * lib/fchdir.c (_gl_directory_name): Implement it.
10254 (fchdir): Use it to simplify implementation.
10255 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10256 fchdir, when available, to avoid calling [f]chdir().
10258 fdopendir: split into its own module
10259 * lib/openat.c (fdopendir): Move...
10260 * lib/fdopendir.c: ...into new file.
10261 * modules/fdopendir: New module.
10262 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10263 * modules/openat (Depends-on): Add fdopendir.
10264 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10266 * modules/savedir (Depends-on): Only need fdopendir, not full
10268 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10269 * lib/openat.h (fdopendir): Drop prototype.
10270 * lib/dirent.in.h (fdopendir): Provide prototype.
10271 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10272 * modules/dirent (Makefile.am): Substitute them.
10273 * MODULES.html.sh (File system functions): Mention it.
10274 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10275 * modules/fdopendir-tests: New file.
10276 * tests/test-fdopendir.c: Likewise.
10278 fchdir: use more consistent macro convention
10279 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10280 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10281 REPLACE_FCHDIR, rather than relying on config.h macros.
10282 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10283 inside a single make-time REPLACE_FCHDIR block, rather than using
10284 the config.h FCHDIR_REPLACEMENT.
10285 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10286 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10287 Manage fstat replacement.
10288 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10290 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10291 (Makefile.am): Substitute REPLACE_FCHDIR.
10292 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10293 FCHDIR_REPLACEMENT.
10294 * lib/dup-safer.c (dup_safer): Likewise.
10295 * lib/dup2.c (rpl_dup2): Likewise.
10296 * lib/dup3.c (rpl_dup3): Likewise.
10297 * lib/open.c (rpl_open): Likewise.
10299 fchdir: simplify error handling, and support dup3
10300 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10301 stdbool, malloc-posix, realloc-posix.
10302 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10303 (ensure_dirs_slot): Return false on allocation failure.
10304 (rpl_dup2): Delete.
10305 (_gl_register_dup): New function.
10306 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10307 (_gl_register_fd): Close fd on allocation failure.
10308 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10309 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10311 (rpl_dup2_fchdir): Delete prototype.
10312 * lib/open.c (open): Update caller.
10313 * lib/dup2.c (dup2): Track fchdir metadata.
10314 * lib/dup3.c (dup3): Likewise.
10315 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10316 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10318 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10320 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10321 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10322 don't pass arguments to AC_OUTPUT.
10324 2009-09-02 Bruno Haible <bruno@clisp.org>
10326 * modules/mkdtemp (License): Relicense under LGPLv2+.
10327 Reported by Paolo Bonzini.
10329 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10331 Replace uses of obsolete autoconf macros in Jim's modules.
10332 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10333 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10334 can evoke a warning from autoconf when run with -Wobsolete
10335 enabled. They were declared obsolete for good reasons (see
10336 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10337 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10338 should not continue using the deprecated macros.
10339 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10340 obsolete Autoconf macros with modern counterparts.
10341 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10342 * m4/dos.m4 (gl_AC_DOS): Likewise.
10343 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10344 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10345 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10346 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10347 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10348 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10349 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10350 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10351 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10353 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10354 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10355 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10356 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10357 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10358 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10360 2009-09-01 Eric Blake <ebb9@byu.net>
10362 fchdir: fix off-by-one bug in previous patch
10363 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10364 (_gl_unregister_fd): Delete useless if.
10366 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10368 maint.mk: sort the list of syntax-check rules
10369 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10370 easier to get a sense of progress when the rules are run sequentially
10371 and take a long time.
10373 2009-09-01 Simon Josefsson <simon@josefsson.org>
10375 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10376 * modules/netinet_in: Likewise.
10377 * modules/sys_file: Likewise.
10378 * modules/sys_ioctl: Likewise.
10379 * modules/sys_select: Likewise.
10380 * modules/sys_socket: Likewise.
10381 * modules/sys_stat: Likewise.
10382 * modules/sys_time: Likewise.
10383 * modules/sys_times: Likewise.
10384 * modules/sys_utsname: Likewise.
10385 * modules/sys_wait: Likewise.
10387 2009-09-01 Jim Meyering <meyering@redhat.com>
10389 fts: help ensure that return values are not ignored
10390 * lib/fts_.h (__GNUC_PREREQ): Define.
10391 (__attribute_warn_unused_result__): Define.
10392 (fts_children, fts_close, fts_open, fts_read): Declare with
10393 __attribute_warn_unused_result__.
10395 fts: fts_close now fails also when closing a dir file descriptor fails
10396 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10397 and propagate to caller, along with errno.
10399 announce-gen: correct formatting in --help output
10400 * build-aux/announce-gen (usage): Move the one-line description in
10401 --help output "up", to where it belongs, just after Usage:.
10403 2009-08-31 Eric Blake <ebb9@byu.net>
10405 fchdir: port to mingw
10406 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10407 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10408 opened, then use a substitute.
10409 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10411 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10412 (_gl_register_fd): No need to check stat if open already filters
10414 (fchdir): Fix error condition to match POSIX.
10415 * modules/fchdir (Depends-on): Add sys_stat.
10416 * doc/posix-functions/open.texi (open): Document the limitation.
10417 * modules/fchdir-tests: New file.
10418 * tests/test-fchdir.c: Likewise.
10420 canonicalize: allow cross-testing from cygwin to mingw
10421 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10422 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10423 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10425 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10426 target does not support symlinks.
10427 * tests/test-canonicalize-lgpl.sh: Likewise.
10429 chown: avoid compilation warning on mingw
10430 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10431 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10433 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10434 * modules/chown (Depends-on): Add errno.
10436 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10438 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10441 2009-08-31 Jim Meyering <meyering@redhat.com>
10443 canonicalize: remove useless initialization
10444 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10445 initialization of local, "end".
10447 2009-08-30 Bruno Haible <bruno@clisp.org>
10449 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10450 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10453 2009-08-30 Bruno Haible <bruno@clisp.org>
10455 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10456 /usr/xpg4/bin/tr when it exists.
10457 * tests/test-pipe-filter-gi1.sh: Likewise.
10459 2009-08-30 Bruno Haible <bruno@clisp.org>
10461 Work around deficient /usr/bin/id program on Solaris.
10462 * tests/test-file-has-acl.sh (ID): New variable.
10463 * tests/test-set-mode-acl.sh (ID): Likewise.
10464 * tests/test-copy-acl.sh (ID): Likewise.
10465 * tests/test-copy-file.sh (ID): Likewise.
10467 2009-08-30 Bruno Haible <bruno@clisp.org>
10469 New module 'xstriconveh'.
10470 * lib/xstriconveh.h: New file.
10471 * lib/xstriconveh.c: New file.
10472 * modules/xstriconveh: New file.
10474 2009-08-30 Bruno Haible <bruno@clisp.org>
10476 Make it easier to use mem_cd_iconveh.
10477 * lib/striconveh.h (iconveh_t): New type.
10478 (iconveh_open, iconveh_close): New declarations.
10479 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10480 with a single 'const iconveh_t *' argument.
10481 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10482 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10483 with a single 'const iconveh_t *' argument.
10484 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10485 * tests/test-striconveh.c (main): Update.
10486 * NEWS: Mention the change.
10488 2009-08-30 Bruno Haible <bruno@clisp.org>
10490 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10493 2009-08-30 Bruno Haible <bruno@clisp.org>
10495 Work around iconv_open problem on Solaris.
10496 * lib/iconv_open-solaris.gperf: New file.
10497 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10498 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10499 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10500 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10501 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10502 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10504 2009-08-29 Jim Meyering <meyering@redhat.com>
10506 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10507 * top/maint.mk (cvs-check): Remove target; it was just an alias
10508 to the better-named vc-diff-check.
10509 (maintainer-distcheck): Remove rule. It was used only from
10510 the (alpha/beta/major) target, and all of its commands but one
10511 were coreutils-specific.
10512 (vc-dist): Remove rule.
10513 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10514 Run vc-diff-check, not vc-dist.
10515 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10517 2009-08-27 Bruno Haible <bruno@clisp.org>
10519 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10522 2009-08-27 Bruno Haible <bruno@clisp.org>
10524 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10526 * doc/func.texi: Document the SunPRO C bug.
10528 2009-08-27 Bruno Haible <bruno@clisp.org>
10530 Fix link error on Solaris.
10531 * tests/test-parse-duration.c (xstrdup): Remove function.
10533 2009-08-26 Pádraig Brady <P@draigbrady.com>
10535 ignore-value: handle pointer types, too
10536 * lib/ignore-value.h (__attribute__): Remove definition.
10537 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10538 of a more concise and more-often effective "(void) i" statement.
10539 (ignore_ptr): New function to suppress warnings from functions that
10540 return pointers, and to make it explicit that one function doesn't
10543 2009-08-25 Bruno Haible <bruno@clisp.org>
10545 dup2: work around a Linux bug.
10546 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10547 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10548 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10549 Reported by Simon Josefsson.
10551 2009-08-25 Jim Meyering <meyering@redhat.com>
10553 libguestfs uses gnulib
10554 * users.txt: Add libguestfs.
10556 2009-08-24 Eric Blake <ebb9@byu.net>
10558 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10559 * lib/pipe2.c (includes): Add binary-io.h.
10560 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10562 2009-08-24 Bruno Haible <bruno@clisp.org>
10564 Tolerate declared but missing accept4 syscall.
10565 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10567 * lib/sys_socket.in.h (accept4): If the function is already present,
10569 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10570 * modules/accept4 (Makefile.am): Compile accept4.c always.
10571 Reported by Paolo Bonzini and Eric Blake.
10573 2009-08-23 Bruno Haible <bruno@clisp.org>
10575 New module 'accept4'.
10576 * lib/sys_socket.in.h (accept4): New declaration.
10577 * lib/accept4.c: New file.
10578 * m4/accept4.m4: New file.
10579 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10580 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10581 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10583 * modules/accept4: New file.
10584 * doc/glibc-functions/accept4.texi: Mention the new module.
10586 2009-08-24 Jim Meyering <meyering@redhat.com>
10588 progname: also set global program_invocation_name, when possible
10589 Before this change, a libtool-enabled program that calls glibc's
10590 error function would report the program name as
10591 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10592 * modules/progname (configure.ac): Check for a declaration of
10593 program_invocation_name.
10594 * lib/progname.c: Include <errno.h>.
10595 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10596 Set program_invocation_name.
10598 2009-08-23 Bruno Haible <bruno@clisp.org>
10600 * lib/dup3.c: Include <string.h>.
10602 2009-08-23 Bruno Haible <bruno@clisp.org>
10604 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10605 * lib/pipe2.c (pipe2): Likewise.
10606 Suggested by Eric Blake.
10608 2009-08-23 Bruno Haible <bruno@clisp.org>
10610 Tolerate declared but missing dup3 syscall.
10611 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10612 * lib/unistd.in.h (dup3): If the function is already present,
10614 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10615 * modules/dup3 (Makefile.am): Compile dup3.c always.
10616 Reported by Paolo Bonzini.
10618 2009-08-23 Bruno Haible <bruno@clisp.org>
10620 Tolerate declared but missing pipe2 syscall.
10621 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10623 * lib/unistd.in.h (pipe2): If the function is already present,
10625 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10626 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10627 Reported by Paolo Bonzini.
10629 2009-08-23 Bruno Haible <bruno@clisp.org>
10631 * lib/pipe2.c (pipe2): Move #ifs inside function.
10633 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10635 quotearg: document limitations of quote_these_too
10636 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10637 those limitations are created.
10638 * lib/quotearg.h (set_char_quoting): Document that digits and
10639 letters that are special after backslash are not permitted.
10640 (quotearg_char): Cross-reference set_char_quoting documentation.
10642 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10644 quotearg: implement custom_quoting_style
10645 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10646 right_quote fields.
10647 (set_custom_quoting): New public function.
10648 (quotearg_buffer_restyled): Add left_quote and right_quote
10649 arguments, handle them very much like locale quoting, and update
10651 (quotearg_n_custom): New public function.
10652 (quotearg_n_custom_mem): New public function.
10653 (quotearg_custom): New public function.
10654 (quotearg_custom_mem): New public function.
10655 * lib/quotearg.h: Prototype and document new public functions.
10656 (enum quoting_style): For escape_quoting_style and
10657 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10658 ignored even though they're otherwise like c_quoting_style.
10659 Add custom_quoting_style member and document with comparison to
10660 clocale_quoting_style.
10661 * tests/test-quotearg.c (custom_quotes): New array.
10662 (custom_results): New array.
10663 (main): Extend to test custom quoting.
10665 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10667 quotearg: fix right quote escaping when it's in quote_these_too
10668 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10669 quote, be sure to prepend only one backslash.
10670 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10673 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10675 quotearg-tests: test escaping of embedded locale quotes
10676 * tests/test-quotearg.c (struct result_strings): Add member for
10678 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10679 (inputs): Add new input.
10680 (results_g): Add expected results.
10681 (flag_results): Likewise.
10682 (locale_results): Likewise.
10683 (compare_strings): Check those.
10685 2009-08-23 Bruno Haible <bruno@clisp.org>
10687 Tests for module 'dup3'.
10688 * modules/dup3-tests: New file.
10689 * tests/test-dup3.c: New file.
10692 * lib/unistd.in.h (dup3): New declaration.
10693 * lib/dup3.c: New file.
10694 * m4/dup3.m4: New file.
10695 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10697 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10698 * modules/dup3: New file.
10699 * doc/glibc-functions/dup3.texi: Mention the new module.
10701 2009-08-23 Bruno Haible <bruno@clisp.org>
10703 Tweak the dup2 test.
10704 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10705 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10706 the test file is still empty. Fix argument order of lseek.
10708 2009-08-23 Bruno Haible <bruno@clisp.org>
10710 Avoid test link errors when the modules getopt-gnu, gettext are used.
10711 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10712 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10714 2009-08-23 Bruno Haible <bruno@clisp.org>
10716 Fix getdtablesize() on mingw.
10717 * lib/getdtablesize.c (getdtablesize): Implement differently.
10718 * lib/unistd.in.h (getdtablesize): Improve comment.
10720 2009-08-23 Bruno Haible <bruno@clisp.org>
10722 New module 'mkostemp'.
10723 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10724 * lib/stdlib.in.h (mksotemp): New declaration.
10725 * lib/mkostemp.c: New file, from glibc with modifications.
10726 * lib/tempname.h (GT_FILE): Remove outdated comment.
10727 (gen_tempname): Add flags argument.
10728 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10729 (__GT_FILE): Map to 1.
10730 (small_open, large_open): Remove macros.
10731 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10732 * lib/mkstemp.c (mkstemp): Update.
10733 * lib/mkdtemp.c (mkdtemp): Likewise.
10734 * m4/mkostemp.m4: New file.
10735 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10737 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10739 * modules/mkostemp: New file, based on modules/mkstemp.
10740 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10741 * NEWS: Mention the change.
10743 2009-08-23 Bruno Haible <bruno@clisp.org>
10745 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10746 Reported by Eric Blake.
10748 2009-08-23 Bruno Haible <bruno@clisp.org>
10750 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10751 Reported by Eric Blake.
10753 2009-08-23 Bruno Haible <bruno@clisp.org>
10755 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10756 * modules/pipe2 (Depends-on): Likewise.
10758 2009-08-23 Eric Blake <ebb9@byu.net>
10760 fcntl-h: add O_TTY_INIT support
10761 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10762 * tests/test-fcntl-h.c (o): Test it.
10763 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10765 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10766 * modules/fcntl: Move <fcntl.h> header replacement...
10767 * modules/fcntl-h: ...to new name, so as not to collide with
10768 like-named function.
10769 * tests/test-fcntl.c: Rename...
10770 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10771 * modules/fcntl-tests: Rename...
10772 * modules/fcntl-h-tests: ...to this. Update test file name.
10773 * modules/chdir-long (Depends-on): Update clients.
10774 * modules/chdir-safer (Depends-on): Likewise.
10775 * modules/fcntl-safer (Depends-on): Likewise.
10776 * modules/fts (Depends-on): Likewise.
10777 * modules/mkancesdirs (Depends-on): Likewise.
10778 * modules/mkdir-p (Depends-on): Likewise.
10779 * modules/open (Depends-on): Likewise.
10780 * modules/savewd (Depends-on): Likewise.
10781 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10782 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10784 2009-08-22 Bruno Haible <bruno@clisp.org>
10786 * modules/binary-io (License): Relicense under LGPL.
10787 * modules/pipe2 (License): Likewise.
10789 2009-08-22 Bruno Haible <bruno@clisp.org>
10791 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10793 * lib/pipe-filter-gi.c (filter_init): Likewise.
10794 Reported by Eric Blake.
10796 2009-08-22 Bruno Haible <bruno@clisp.org>
10798 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10799 * modules/pipe (Depends-on): Add pipe2.
10801 2009-08-22 Bruno Haible <bruno@clisp.org>
10803 Tests for module 'pipe2'.
10804 * modules/pipe2-tests: New file.
10805 * tests/test-pipe2.c: New file.
10807 New module 'pipe2'.
10808 * lib/unistd.in.h (pipe2): New declaration.
10809 * lib/pipe2.c: New file.
10810 * m4/pipe2.m4: New file.
10811 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10813 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10814 * modules/pipe2: New file.
10815 * doc/glibc-functions/pipe2.texi: Mention the new module.
10817 2009-08-22 Bruno Haible <bruno@clisp.org>
10819 Reference some new glibc functions.
10820 * doc/glibc-functions/accept4.texi: New file.
10821 * doc/glibc-functions/dup3.texi: New file.
10822 * doc/glibc-functions/mkostemp.texi: New file.
10823 * doc/glibc-functions/pipe2.texi: New file.
10824 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10825 (Glibc sys/socket.h): Refer to accept4.
10826 (Glibc unistd.h): Refer to dup3, pipe2.
10827 Reported by Eric Blake.
10829 2009-08-22 Jim Meyering <meyering@redhat.com>
10830 Bruno Haible <bruno@clisp.org>
10832 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10833 This makes it so packages using automake-1.11's silent-rules option
10834 can print e.g., a single "GEN configmake.h" line, rather than
10835 the 30+ statements that perform the job. If you want to see the
10836 actual commands, you can still run "make V=1".
10837 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10838 so that make output is abbreviated when those variables are defined
10840 * modules/argz: Likewise.
10841 * modules/arpa_inet: Likewise.
10842 * modules/byteswap: Likewise.
10843 * modules/configmake: Likewise.
10844 * modules/dirent: Likewise.
10845 * modules/errno: Likewise.
10846 * modules/fcntl: Likewise.
10847 * modules/float: Likewise.
10848 * modules/fnmatch: Likewise.
10849 * modules/getopt-posix: Likewise.
10850 * modules/glob: Likewise.
10851 * modules/iconv_open: Likewise.
10852 * modules/inttypes: Likewise.
10853 * modules/localcharset: Likewise.
10854 * modules/locale: Likewise.
10855 * modules/math: Likewise.
10856 * modules/netdb: Likewise.
10857 * modules/netinet_in: Likewise.
10858 * modules/poll: Likewise.
10859 * modules/posix_spawnp-tests: Likewise.
10860 * modules/sched: Likewise.
10861 * modules/search: Likewise.
10862 * modules/selinux-h: Likewise.
10863 * modules/signal: Likewise.
10864 * modules/spawn: Likewise.
10865 * modules/stdarg: Likewise.
10866 * modules/stdbool: Likewise.
10867 * modules/stddef: Likewise.
10868 * modules/stdint: Likewise.
10869 * modules/stdio: Likewise.
10870 * modules/stdlib: Likewise.
10871 * modules/string: Likewise.
10872 * modules/strings: Likewise.
10873 * modules/sys_file: Likewise.
10874 * modules/sys_ioctl: Likewise.
10875 * modules/sys_select: Likewise.
10876 * modules/sys_socket: Likewise.
10877 * modules/sys_stat: Likewise.
10878 * modules/sys_time: Likewise.
10879 * modules/sys_times: Likewise.
10880 * modules/sys_utsname: Likewise.
10881 * modules/sys_wait: Likewise.
10882 * modules/sysexits: Likewise.
10883 * modules/time: Likewise.
10884 * modules/unistd: Likewise.
10885 * modules/wchar: Likewise.
10886 * modules/wctype: Likewise.
10888 2009-08-22 Jim Meyering <meyering@redhat.com>
10890 announce-gen: detect write failure
10891 * build-aux/announce-gen: Add Coda at end.
10892 Remove equivalent-but-more-verbose block at top.
10894 2009-08-19 Akim Demaille <demaille@gostai.com>
10896 bootstrap: --help to stdout.
10897 * bootstrap (usage): Don't send --help to stderr.
10898 Use a here doc instead of a long string.
10900 2009-08-21 Eric Blake <ebb9@byu.net>
10902 test-popen-safer: split from test-popen
10903 * tests/test-popen.c (main): Move...
10904 * tests/test-popen.h: ...into new file.
10905 * tests/test-popen-safer2.c: New file.
10906 * modules/popen-tests (Files): Add test-popen.h.
10907 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10908 Suggested by Bruno Haible.
10910 test-fcntl-safer: split from test-open
10911 * tests/test-open.c (main): Move...
10912 * tests/test-open.h: ...into new file.
10913 * tests/test-fcntl-safer.c: New file.
10914 * modules/open-tests (Files): Add test-open.h.
10915 * modules/fcntl-safer-tests: New file.
10916 Suggested by Bruno Haible.
10918 test-fopen-safer: split from test-fopen
10919 * tests/test-fopen.c (main): Move...
10920 * tests/test-fopen.h: ...into new file.
10921 * tests/test-fopen-safer.c: New file.
10922 * modules/fopen-tests (Files): Add test-fopen.h.
10923 * modules/fopen-safer-tests: New file.
10924 Suggested by Bruno Haible.
10926 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10928 popen-safer: test O_CLOEXEC at run-time.
10929 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10931 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10933 fcntl: move more flags to the header
10934 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10935 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10936 * lib/fcntl.in.h: Do both things here.
10938 2009-08-21 Jim Meyering <meyering@redhat.com>
10940 consistently remove $@-t before redirecting to it
10941 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10942 * modules/alloca-opt: Likewise.
10943 * modules/byteswap: Likewise.
10944 * modules/fnmatch: Likewise.
10945 * modules/getopt-posix: Likewise.
10946 * modules/glob: Likewise.
10947 * modules/poll: Likewise.
10948 * modules/posix_spawnp-tests: Likewise.
10949 * modules/sys_socket: Likewise.
10950 * modules/sysexits: Likewise.
10952 2009-08-21 Eric Blake <ebb9@byu.net>
10954 popen: simplify access to original popen
10955 * lib/popen.c (rpl_popen): No need to worry about popen being a
10957 Reported by Bruno Haible.
10959 2009-08-20 Eric Blake <ebb9@byu.net>
10961 build: avoid some compiler warnings
10962 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10963 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10965 (new_exclude_segment, excluded_file_pattern_p)
10966 (excluded_file_name_p): Reduce scope.
10967 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10968 old-style declaration.
10970 2009-08-20 Simon Josefsson <simon@josefsson.org>
10972 * tests/test-exclude1.sh: Handle Windows EOL.
10973 * tests/test-exclude2.sh: Likewise.
10974 * tests/test-exclude3.sh: Likewise.
10975 * tests/test-exclude4.sh: Likewise.
10976 * tests/test-exclude5.sh: Likewise.
10977 * tests/test-exclude6.sh: Likewise.
10978 * tests/test-exclude7.sh: Likewise.
10980 2009-08-19 Akim Demaille <demaille@gostai.com>
10982 bootstrap: find sha1sum when named gsha1sum.
10983 * bootstrap (find_tool): New.
10987 2009-08-20 Jim Meyering <meyering@redhat.com>
10989 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10990 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10991 expression that converts "." in a file name to "\." in the resulting
10992 regexp. Start with a dummy statement, so that prior shell variable
10993 definitions are expanded portably. Reported by Simon Josefsson.
10995 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10997 Fix polling for writeability of a screen buffer.
10998 * lib/poll.c: Distinguish input and screen buffers for the
10999 Win32 implementation.
11000 * lib/select.c: Likewise.
11002 2009-08-19 Eric Blake <ebb9@byu.net>
11004 popen-safer: prevent popen from clobbering std descriptors
11005 * modules/popen-safer: New file.
11006 * lib/popen-safer.c: Likewise.
11007 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11008 * lib/stdio--.h (popen): Provide override.
11009 * lib/stdio-safer.h (popen_safer): Provide declaration.
11010 * tests/test-popen.c (includes): Partially test this.
11011 * modules/popen-safer-tests: New file, for more tests.
11012 * tests/test-popen-safer.c: Likewise.
11013 * MODULES.html.sh (file stream based Input/Output): Mention it.
11015 tests: test some of the *-safer modules
11016 * modules/fopen-safer (Depends-on): Add fopen.
11017 * modules/fcntl-safer (Depends-on): Add fcntl.
11018 * modules/stdlib-safer (Depends-on): Add stdlib.
11019 (configure.ac): Set indicator.
11020 * modules/unistd-safer (configure.ac): Likewise.
11021 * modules/tmpfile-safer (configure.ac): Likewise.
11022 (Depends-on): Add tmpfile.
11023 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11025 * tests/test-fopen.c (includes): Test safer versions when they are
11027 * tests/test-open.c (includes): Likewise.
11029 popen: fix cygwin 1.5 bug when stdin closed
11030 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11031 * modules/popen: New file.
11032 * modules/popen-tests: Likewise.
11033 * tests/test-popen.c: Likewise.
11034 * m4/popen.m4: Likewise.
11035 * lib/popen.c: Likewise.
11036 * lib/stdio.in.h (popen): New declaration.
11037 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11038 * modules/stdio (Makefile.am): Likewise.
11039 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11041 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
11043 maint.mk: give full control over update-copyright exclusions
11044 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11045 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11046 (update-copyright): Don't force inclusion of top-level
11047 ChangeLog. Don't force exclusion of all COPYING files, but make
11048 them the default exclusion instead.
11050 2009-08-16 Bruno Haible <bruno@clisp.org>
11052 Fix test failures on Solaris 10.
11053 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11054 tests when Solaris iconv() is used.
11055 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11056 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11057 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11058 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11059 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11061 2009-08-16 Bruno Haible <bruno@clisp.org>
11063 Fix test failures on Solaris 10.
11064 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11065 'tr' program and pass it as first argument.
11066 * tests/test-pipe-filter-gi1.sh: Likewise.
11067 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11068 program as first argument.
11069 * tests/test-pipe-filter-gi1.c (main): Likewise.
11071 2009-08-16 Eric Blake <ebb9@byu.net>
11073 fpurge: fix previous commits
11074 * modules/fpurge (Makefile.am): Make replacement conditional,
11075 partially reverting 2007-04-29 change; missed in previous
11077 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11080 2009-08-16 Bruno Haible <bruno@clisp.org>
11082 Clarify fpurge's effect on the file position.
11083 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11084 * tests/test-fpurge.c (main): Make a second pass for checking the file
11087 2009-08-16 Bruno Haible <bruno@clisp.org>
11089 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11090 declaration of fpurge is missing.
11091 * tests/test-fpurge.c (main): Check that the file has not more contents
11092 than expected. Close the file before removing it.
11094 2009-08-15 Eric Blake <ebb9@byu.net>
11096 fpurge: don't wrap working cygwin implementation
11097 * lib/fpurge.c (fpurge): Fix comment typo.
11098 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11099 1.7 to avoid replacement.
11100 * tests/test-fpurge.c (main): Enhance test.
11102 2009-08-15 Eric Blake <ebb9@byu.net>
11103 and Jim Meyering <meyering@redhat.com>
11105 test-update-copyright: skip if perl is insufficient
11106 * tests/test-update-copyright.sh: Failure to run maintainer tool
11107 should not cause testsuite failure on cygwin 1.5.
11109 2009-08-14 Eric Blake <ebb9@byu.net>
11111 doc: mention more functions added in cygwin 1.7.0
11112 * doc/posix-headers/limits.texi (limits.h): Update for recent
11114 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11115 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11116 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11117 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11118 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11120 2009-08-14 Eric Blake <ebb9@byu.net>
11122 maint.mk: simplify update-copyright rule
11123 * top/maint.mk (update-copyright-local): Delete, and document how
11124 to do it in cfg.mk instead.
11125 (update-copyright-exclude-regexp): Delete, and document how to do
11126 it in .x-update-copyright instead.
11127 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11130 2009-08-14 Bruno Haible <bruno@clisp.org>
11132 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11134 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11136 maint.mk: support update-copyright-env
11137 * top/maint.mk (update-copyright-env): Define place-holder.
11138 (update-copyright): Expand $(update-copyright-env) before
11139 invoking update-copyright.
11141 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11143 update-copyright: implement forced reformatting
11144 * build-aux/update-copyright: Implement and document
11145 UPDATE_COPYRIGHT_FORCE.
11146 * tests/test-update-copyright.sh: Test it.
11148 2009-08-14 Eric Blake <ebb9@byu.net>
11149 and Bruno Haible <bruno@clisp.org>
11151 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11152 * tests/test-locale.c: Revert previous patch related to NULL.
11153 * tests/test-stdio.c: Likewise.
11154 * tests/test-stdlib.c: Likewise.
11155 * tests/test-string.c: Likewise.
11156 * tests/test-unistd.c: Likewise.
11157 * modules/time-tests (Depends-on): Add verify.
11158 * modules/wchar-tests (Depends-on): Likewise.
11159 * tests/test-time.c: Test for NULL compliance.
11160 * tests/test-wchar.c: Likewise.
11161 * modules/locale (Depends-on): Add stddef.
11162 * modules/stdio (Depends-on): Likewise.
11163 * modules/stdlib (Depends-on): Likewise.
11164 * modules/string (Depends-on): Likewise.
11165 * modules/time (Depends-on): Likewise.
11166 * modules/unistd (Depends-on): Likewise.
11167 * modules/wchar (Depends-on): Likewise.
11168 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11169 * lib/stdlib.in.h (includes): Likewise.
11170 * lib/string.in.h (includes): Likewise.
11171 * lib/time.in.h (includes): Likewise.
11172 * lib/unistd.in.h (includes): Likewise.
11173 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11175 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11176 * m4/stddef_h.m4: New file.
11177 * modules/stddef: Likewise.
11178 * lib/stddef.in.h: Likewise.
11179 * modules/stddef-tests: Likewise.
11180 * tests/test-stddef.c: Likewise.
11181 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11182 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11183 * doc/posix-headers/locale.texi (locale.h): Likewise.
11184 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11185 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11186 * doc/posix-headers/string.texi (string.h): Likewise.
11187 * doc/posix-headers/time.texi (time.h): Likewise.
11188 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11189 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11191 2009-08-14 Eric Blake <ebb9@byu.net>
11193 doc: improve git diff of texinfo files
11194 * .gitattributes: Add rule for *.texi files, with hint on how to
11196 Copied from m4, and based on a report by Bruno Haible.
11198 2009-08-14 Bruno Haible <bruno@clisp.org>
11200 Disable multithread support by default on Cygwin 1.5.x for real.
11201 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11203 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11205 update-copyright: much ado about intervals
11206 * build-aux/update-copyright: Implement and document
11207 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11208 of copyright year intervals.
11209 Also, document UPDATE_COPYRIGHT_YEAR.
11210 * tests/test-update-copyright.sh: Test it.
11212 update-copyright: convert 2-digit to 4-digit years
11213 * build-aux/update-copyright: Implement and document.
11214 * tests/test-update-copyright.sh: Update.
11216 2009-08-14 Jim Meyering <meyering@redhat.com>
11218 test-exclude: avoid coreutils "make check" failure
11219 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11220 just as in test-argmatch.c.
11222 2009-08-13 Eric Blake <ebb9@byu.net>
11224 test-dup2: fix bad assumption
11225 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11226 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11228 test-version-etc: fix CRLF portability issue
11229 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11231 * tests/test-argp-version-etc-1.sh: Likewise.
11233 getopt: update client modules
11234 * modules/argp (Depends-on): Use getopt-gnu.
11235 * modules/git-merge-changelog (Depends-on): Likewise.
11236 * modules/long-options (Depends-on): Likewise.
11237 * modules/xstrtol (Depends-on): Likewise.
11239 2009-08-13 Simon Josefsson <simon@josefsson.org>
11241 * tests/test-version-etc.sh: Don't fail on different
11242 project/version. Don't fail on CRLF differences. Rewrite to use
11243 multiple -e instead of multiple sed forks, suggested by Eric Blake
11245 * tests/test-argp-version-etc-1.sh: Likewise.
11247 2009-08-13 Simon Josefsson <simon@josefsson.org>
11249 * tests/test-version-etc.sh: Don't fail on different
11252 2009-08-12 Bruno Haible <bruno@clisp.org>
11254 Tests for modules 'getopt-posix', 'getopt-gnu'.
11255 * modules/getopt-posix-tests: New file.
11256 * tests/test-getopt.c: New file.
11257 * tests/test-getopt.h: New file.
11258 * tests/test-getopt_long.h: New file.
11260 New modules 'getopt-posix', 'getopt-gnu'.
11261 * modules/getopt-gnu: New file, renamed from modules/getopt.
11262 * modules/getopt-posix: New file.
11263 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11264 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11265 (gl_GETOPT): Remove macro.
11266 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11267 Disable the test against BSD systems that declare optreset. Test
11268 against mingw bug. Test against lack of support of optional arguments
11270 * doc/glibc-headers/getopt.texi: Update module name and list of
11271 relevant platforms.
11272 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11273 'getopt-gnu' and more portability problems.
11274 * NEWS: Mention the changes.
11276 2009-08-12 Bruno Haible <bruno@clisp.org>
11278 Ensure that optarg etc. get declared by <unistd.h>.
11279 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11280 AC_USE_SYSTEM_EXTENSIONS.
11281 * modules/getopt (Depends-on): Add 'extensions'.
11283 2009-08-12 Bruno Haible <bruno@clisp.org>
11285 Avoid test link errors.
11286 * modules/pipe-filter-ii-tests (Makefile.am): Define
11287 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11288 * modules/pipe-filter-gi-tests (Makefile.am): Define
11289 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11290 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11292 2009-08-12 Bruno Haible <bruno@clisp.org>
11294 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11295 gl_GETOPT_SUBSTITUTE before.
11296 (gl_GETOPT): Use it.
11297 * m4/argp.m4 (gl_ARGP): Update.
11298 Reported by Sergey Poznyakoff.
11300 * m4/getopt.m4: Reorder macros.
11301 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11302 (gl_GETOPT_SUBSTITUTE): Remove macro.
11304 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11306 Minor improvement in gitlog-to-changelog
11308 * build-aux/gitlog-to-changelog: New option `--format' makes
11309 output format string configurable.
11311 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11313 Optimize exclude: use hash tables for non-wildcard patterns.
11315 * lib/exclude.c: Include hash.h and mbuiter.h
11316 (struct exclude_pattern, exclude_segment): New data types.
11317 (struct exclude): Rewrite.
11318 (fnmatch_pattern_has_wildcards): New function.
11319 (new_exclude_segment, free_exclude_segment): New functions.
11320 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11321 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11322 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11323 * modules/exclude: Depend on hash and mbuiter.
11325 * modules/exclude-tests: New file.
11326 * tests/test-exclude.c: New file.
11327 * tests/test-exclude1.sh: New file.
11328 * tests/test-exclude2.sh: New file.
11329 * tests/test-exclude3.sh: New file.
11330 * tests/test-exclude4.sh: New file.
11331 * tests/test-exclude5.sh: New file.
11332 * tests/test-exclude6.sh: New file.
11333 * tests/test-exclude7.sh: New file.
11335 2009-08-12 Bruno Haible <bruno@clisp.org>
11337 Ensure that getopt() gets declared by <unistd.h>.
11338 * lib/unistd.in.h: Conditionally include getopt.h.
11339 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11340 Set GNULIB_UNISTD_H_GETOPT.
11341 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11342 GNULIB_UNISTD_H_GETOPT.
11343 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11345 2009-08-12 Bruno Haible <bruno@clisp.org>
11348 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11349 gl_replace_getopt instead of GETOPT_H.
11351 2009-08-12 Bruno Haible <bruno@clisp.org>
11353 * m4/getopt.m4: Add comments.
11355 2009-08-12 Bruno Haible <bruno@clisp.org>
11357 Disable multithread support by default on Cygwin 1.5.x.
11358 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11359 set gl_use_threads=no if not specified otherwise.
11361 2009-08-11 Bruno Haible <bruno@clisp.org>
11363 Avoid compilation error on NetBSD 5.0.
11364 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11365 * tests/test-stdio.c: Likewise.
11366 * tests/test-stdlib.c: Likewise.
11367 * tests/test-string.c: Likewise.
11368 * tests/test-unistd.c: Likewise.
11369 Reported by Greg Troxel <gdt@ir.bbn.com>
11370 at <https://savannah.gnu.org/support/?106973>.
11372 2009-08-11 Bruno Haible <bruno@clisp.org>
11374 * modules/dup2-tests (Depends-on): Remove close.
11376 Undo 2009-07-19 commit.
11377 * modules/acl-tests (Depends-on): Remove close.
11378 * modules/binary-io-tests (Depends-on): Likewise.
11379 * modules/closein-tests (Depends-on): Likewise.
11380 * modules/flock-tests (Depends-on): Likewise.
11381 * modules/fsync-tests (Depends-on): Likewise.
11382 * modules/lseek-tests (Depends-on): Likewise.
11383 * modules/pipe-tests (Depends-on): Likewise.
11384 * modules/posix_spawn-tests (Depends-on): Likewise.
11385 * modules/posix_spawnp-tests (Depends-on): Likewise.
11386 * modules/stat-time-tests (Depends-on): Likewise.
11387 * modules/yesno-tests (Depends-on): Likewise.
11389 2009-08-10 Bruno Haible <bruno@clisp.org>
11391 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11393 2009-08-10 Bruno Haible <bruno@clisp.org>
11396 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11398 2009-08-10 Bruno Haible <bruno@clisp.org>
11400 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11401 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11402 not only the first time.
11403 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11404 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11405 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11406 is 1, not only the the first time.
11408 2009-08-10 Bruno Haible <bruno@clisp.org>
11410 Make it possible to use module 'gethostname' without module 'close'.
11411 * lib/unistd.in.h (close): Evoke a link error only if
11412 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11413 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11414 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11415 * modules/unistd (Makefile.am): Substitute
11416 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11417 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11418 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11419 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11420 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11421 * modules/sys_ioctl (Makefile.am): Substitute
11422 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11423 * modules/socket (configure.ac): On native Windows, set
11424 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11425 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11426 Reported by Sam Steingold <sds@gnu.org>.
11428 2009-08-10 Bruno Haible <bruno@clisp.org>
11430 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11431 * modules/ioctl (configure.ac): Likewise.
11433 2009-08-10 Bruno Haible <bruno@clisp.org>
11435 Avoid collision between gnulib wrapper and libintl wrapper.
11436 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11437 already defined in intl/printf.c.
11438 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11439 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11441 2009-08-09 Bruno Haible <bruno@clisp.org>
11443 Make <sys/select.h> really self-contained, also on Solaris 10.
11444 * lib/sys_select.in.h: Include <string.h>.
11445 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11446 Solaris 10 problem.
11447 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11448 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11449 Reported by Jim Meyering.
11451 2009-08-09 Bruno Haible <bruno@clisp.org>
11453 Avoid warnings from 'aclocal' that are due to a use of macro name
11454 AM_XGETTEXT_OPTION that is not defined in automake.
11455 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11457 * modules/error (configure.ac): Likewise.
11458 * modules/propername (configure.ac): Likewise.
11459 * modules/vasprintf (configure.ac): Likewise.
11460 * modules/verror (configure.ac): Likewise.
11461 * modules/xprintf (configure.ac): Likewise.
11462 * modules/xvasprintf (configure.ac): Likewise.
11464 2009-08-08 Bruno Haible <bruno@clisp.org>
11466 Avoid compilation error in C++ mode.
11467 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11468 Reported by Sam Steingold <sds@gnu.org>.
11470 2009-08-08 Bruno Haible <bruno@clisp.org>
11472 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11473 for the various Unix platforms.
11474 * doc/posix-headers/limits.texi: Update platforms list regarding
11476 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11478 2009-08-07 Jim Meyering <meyering@redhat.com>
11480 selinux-at: fix typo in a comment
11481 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11482 Spotted by Paolo Bonzini.
11484 selinux-at: remove redundant m4 code, add documentation
11485 * modules/selinux-at (configure.ac): Remove redundant code.
11486 LIB_SELINUX is already set via the dependent module, selinux-h.
11487 (Include): Add quotes around selinux-at.h.
11488 * lib/selinux-at.h: Add documentation.
11489 Reported by Bruno Haible in
11490 http://marc.info/?l=gnulib-bug&m=124958988300749
11492 2009-08-07 Bruno Haible <bruno@clisp.org>
11494 Avoid link error on MacOS X 10.3 and 10.4.
11495 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11496 on non-ELF systems.
11497 * lib/argp-pv.c (argp_program_version): Likewise.
11498 Reported by Simon Josefsson.
11500 2009-08-07 Simon Josefsson <simon@josefsson.org>
11502 * tests/test-version-etc.sh: Use $EXEEXT.
11504 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11506 update-copyright: update documentation to point to maint.mk
11507 * build-aux/update-copyright: Here.
11509 2009-08-06 Jim Meyering <meyering@redhat.com>
11511 maint.mk: support update-copyright-local
11512 * top/maint.mk (update-copyright-local): Define place-holder.
11513 (update-copyright): Depend on $(update-copyright-local).
11515 2009-08-06 Jim Meyering <meyering@redhat.com>
11517 selinux-at: new module
11518 Initially written for coreutils, this module will soon be
11519 used by findutils, too.
11520 * MODULES.html.sh [Misc]: Add selinux-at.
11521 * lib/selinux-at.h: New file, from coreutils.
11522 * lib/selinux-at.c: Likewise.
11523 * modules/selinux-at: Likewise.
11524 (License): Change from LGPL to GPL, since it depends
11525 on the GPL'd openat module.
11528 * README: Remove references to cogito.
11529 Remove cvs-repo-updating instructions from 2007.
11530 Don't imply that CVS is better if you have limited disk space.
11532 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11534 update-copyright: support C-style comments
11535 * build-aux/update-copyright: Implement and document.
11536 * tests/test-update-copyright.sh: Test.
11538 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11540 update-copyright: support omitted "(C)"
11541 * build-aux/update-copyright: Implement and document. Also,
11542 allow variable whitespace before "(C)".
11543 * tests/test-update-copyright.sh: Test.
11545 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11547 update-copyright: don't trip on non-FSF copyright statements
11548 * build-aux/update-copyright: Fix so that the first correctly
11549 formatted FSF copyright statement is recognized no matter what
11550 appears before it. Update documentation.
11551 * tests/test-update-copyright.sh: Test that.
11553 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11555 update-copyright: clean up code a little
11556 * build-aux/update-copyright: Append "_re" to the name of any
11557 variable holding a regular expression.
11558 Replace "old" and "new" with "stmt" in variable names.
11559 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11561 Format code more consistently.
11563 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11565 update-copyright-tests: improve portability
11566 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11567 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11569 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11571 update-copyright: support @copyright{} and ©
11572 * build-aux/update-copyright: Implement and document.
11573 * tests/test-update-copyright.sh: Test.
11575 2009-08-04 Jim Meyering <meyering@redhat.com>
11577 update-copyright-tests: correctly test EOL=\r\n handling
11578 * tests/test-update-copyright.sh: Put \r at the end of some lines
11579 for the dos-eol tests. Based on a patch by Joel E. Denny.
11581 maint.mk: make update-copyright exclusion list more configurable
11582 * top/maint.mk (update-copyright): Default to excluding COPYING,
11583 but allow an override, in case someone does want to update that file.
11585 maint.mk: don't update copyright date in COPYING
11586 * top/maint.mk (update-copyright): Exclude COPYING.
11588 maint.mk: add a copyright-updating rule
11589 * top/maint.mk (update-copyright): New rule.
11590 Derived from coreutils/Makefile.am.
11592 update-copyright: rename some variables
11593 * build-aux/update-copyright: Rename a few variables for clarity.
11594 Tweak syntax. List Joel E. Denny as coauthor.
11596 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11598 update-copyright: fix bug for 2-digit last year and add tests
11599 * build-aux/update-copyright: Fix bug.
11600 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11602 * modules/update-copyright-tests: New
11603 * tests/test-update-copyright.sh: New.
11605 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11607 update-copyright: handle leading tabs in line prefix
11608 * build-aux/update-copyright: Count leading tabs as 8 spaces
11609 when computing margin. This helps with the formatting of
11610 ChangeLogs, for example.
11611 Fix documentation a little.
11613 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11615 update-copyright: support EOL=\r\n
11616 * build-aux/update-copyright: Implement that.
11618 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11620 update-copyright: automatically format copyright statements
11621 * build-aux/update-copyright: Implement that.
11622 Also, be a little more predictable and safer by always failing
11623 when the full copyright format is not perfectly recognized as an
11624 unbroken whole. Discussed at
11625 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11626 Rewrite documentation.
11628 2009-08-03 Bruno Haible <bruno@clisp.org>
11630 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11632 2009-08-02 Bruno Haible <bruno@clisp.org>
11634 Tests for module 'uname'.
11635 * modules/uname-tests: New file.
11636 * tests/test-uname.c: New file.
11638 New module 'uname'.
11639 * lib/uname.c: New file.
11640 * m4/uname.m4: New file.
11641 * modules/uname: New file.
11642 * doc/posix-functions/uname.texi: Mention the new module.
11644 2009-08-02 Bruno Haible <bruno@clisp.org>
11646 Tests for module 'sys_utsname'.
11647 * modules/sys_utsname-tests: New file.
11648 * tests/test-sys_utsname.c: New file.
11650 New module 'sys_utsname'.
11651 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11652 * m4/sys_utsname_h.m4: New file.
11653 * modules/sys_utsname: New file.
11654 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11656 2009-08-02 Bruno Haible <bruno@clisp.org>
11658 Implicitly initialize the sockets library.
11659 * lib/gethostname.c: Include sockets.h.
11660 (rpl_gethostname): Invoke gl_sockets_startup.
11661 * lib/socket.c: Include sockets.h.
11662 (rpl_socket): Invoke gl_sockets_startup.
11663 * modules/gethostname (Depends-on): Add sockets.
11664 * modules/socket (Depends-on): Likewise.
11665 * tests/test-poll.c: Don't include sockets.h.
11666 (main): Don't invoke gl_sockets_startup.
11667 * tests/test-select.c: Don't include sockets.h.
11668 (main): Don't invoke gl_sockets_startup.
11670 2009-08-02 Bruno Haible <bruno@clisp.org>
11672 Allow multiple calls to gl_sockets_startup.
11673 * lib/sockets.c (initialized_sockets_version): New variable.
11674 (gl_sockets_startup): Do nothing if already called for this or a higher
11676 (gl_sockets_cleanup): Reset initialized_sockets_version.
11678 2009-08-03 Simon Josefsson <simon@josefsson.org>
11680 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11681 different project/version.
11683 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11684 Bruno Haible <bruno@clisp.org>
11686 Tests for module 'pipe-filter-gi'.
11687 * modules/pipe-filter-gi-tests: New file.
11688 * tests/test-pipe-filter-gi1.sh: New file.
11689 * tests/test-pipe-filter-gi1.c: New file.
11690 * tests/test-pipe-filter-gi2.sh: New file.
11691 * tests/test-pipe-filter-gi2-main.c: New file.
11692 * tests/test-pipe-filter-gi2-child.c: New file.
11694 New module 'pipe-filter-gi'.
11695 * lib/pipe-filter-gi.c: New file.
11696 * modules/pipe-filter-gi: New file.
11698 2009-08-02 Bruno Haible <bruno@clisp.org>
11699 Paolo Bonzini <bonzini@gnu.org>
11701 Tests for module 'pipe-filter-ii'.
11702 * modules/pipe-filter-ii-tests: New file.
11703 * tests/test-pipe-filter-ii1.sh: New file.
11704 * tests/test-pipe-filter-ii1.c: New file.
11705 * tests/test-pipe-filter-ii2.sh: New file.
11706 * tests/test-pipe-filter-ii2-main.c: New file.
11707 * tests/test-pipe-filter-ii2-child.c: New file.
11709 New module 'pipe-filter-ii'.
11710 * lib/pipe-filter.h: New file.
11711 * lib/pipe-filter-ii.c: New file.
11712 * lib/pipe-filter-aux.h: New file.
11713 * modules/pipe-filter-ii: New file.
11715 2009-08-02 Simon Josefsson <simon@josefsson.org>
11717 * lib/gc-libgcrypt.c: Change copyright to FSF.
11718 * lib/gc-gnulib.c: Likewise.
11720 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11722 * lib/gethostname.c: Include limits.h.
11724 2009-08-02 Simon Josefsson <simon@josefsson.org>
11725 Bruno Haible <bruno@clisp.org>
11727 Ensure HOST_NAME_MAX as part of the gethostname module.
11728 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11729 define also HOST_NAME_MAX.
11730 * tests/test-gethostname.c: Include <limits.h>.
11731 (main): Check also HOST_NAME_MAX.
11732 * doc/posix-headers/limits.texi: Document the mingw problem.
11734 2009-08-02 Bruno Haible <bruno@clisp.org>
11736 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11739 2009-03-31 Simon Josefsson <simon@josefsson.org>
11741 * lib/gethostname.c: Add Windows wrapper.
11742 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11743 * modules/gethostname: Depend on sys_socket & errno, for also
11744 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11745 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11747 2009-07-31 Jim Meyering <meyering@redhat.com>
11749 getloadavg: fix symbol name in comment
11750 * lib/getloadavg.c: Correct a typo I introduced when adding
11751 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11752 Matt Kraai spotted the problem.
11754 2009-07-29 Matt Kraai <mkraai@beckman.com>
11756 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11757 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11758 code also if ! defined N_NAME_POINTER.
11759 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11760 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11761 but the n_name member is a 12-byte array.
11763 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11765 update-copyright: generalize comment handling
11766 * build-aux/update-copyright: Handle copyright statements
11767 within more comment styles.
11769 Report any file with an external copyright holder or parse failure.
11771 2009-07-29 Jim Meyering <meyering@redhat.com>
11773 mktime: correct setting of REPLACE_MKTIME
11774 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11776 update-copyright: new module
11777 * modules/update-copyright: New file.
11778 * build-aux/update-copyright: New file.
11779 * MODULES.html.sh (maint+release support): Add update-copyright.
11781 2009-07-27 Bruno Haible <bruno@clisp.org>
11783 Fix compilation error when <ctime> is used and mktime is replaced.
11784 * lib/time.in.h (mktime): New declaration.
11785 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11786 REPLACE_MKTIME instead of defining mktime in config.h.
11787 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11788 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11789 Reported by Ross McFarland <rwmcfa1@neces.com>.
11791 2009-07-27 Bruno Haible <bruno@clisp.org>
11793 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11794 Reported by Matt Kraai <mkraai@beckman.com>.
11796 2009-07-25 Jim Meyering <meyering@redhat.com>
11798 maint.mk: avoid warnings about missing files
11799 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11800 diagnostic when .prev-version does not exist.
11801 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11802 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11803 nonexistent cfg.mk.
11804 Suggestions from Simon Josefsson.
11806 2009-07-25 Bruno Haible <bruno@clisp.org>
11808 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11809 defined as macros. Needed on QNX 6.4.1.
11810 Reported by Matt Kraai <mkraai@beckman.com>.
11812 2009-07-23 Jim Meyering <meyering@redhat.com>
11814 maint.mk: invoke "make dist" with a working value of XZ_OPT
11815 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11817 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11819 Make fseeko.c compile on QNX.
11820 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11822 2009-07-22 Peter Simons <simons@cryp.to>
11824 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11825 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11826 * lib/md4.h: Likewise.
11827 * lib/md5.h: Likewise.
11828 * lib/sha1.h: Likewise.
11829 * lib/sha256.h: Likewise.
11830 * lib/sha512.h: Likewise.
11832 tests-sha1: don't assign literal string to 'char *' variable
11833 * tests/test-sha1.c (main): Declare locals with "const" to match
11834 attributes of the right hand side.
11836 2009-07-21 Eric Blake <ebb9@byu.net>
11838 dup2: fix more mingw problems
11839 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11841 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11842 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11843 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11844 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11845 care of mingw bugs.
11847 2009-07-21 Jim Meyering <meyering@redhat.com>
11849 vc-list-files: avoid failure when /bin/sh is dash
11850 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11851 On some Debian based systems, /bin/sh is a symlink to dash, and running
11852 this command would omit the "/" following each 'tests' prefix:
11853 dash -x build-aux/vc-list-files -C . tests
11854 That is because bash and dash work differently:
11855 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11859 2009-07-21 Eric Blake <ebb9@byu.net>
11861 dup2-tests: test previous patch
11862 * modules/dup2-tests: New file.
11863 * tests/test-dup2.c: Likewise.
11864 * tests/test-open.c (main): Avoid unspecified behavior.
11865 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11868 dup2: work around mingw and cygwin 1.5 bug
11869 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11870 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11871 * modules/unistd (Makefile.am): Substitute it.
11872 * lib/unistd.in.h (dup2): Declare the replacement.
11873 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11874 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11875 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11876 * modules/execute (Depends-on): Add dup2.
11877 * modules/fseterr (Depends-on): Likewise.
11878 * modules/pipe (Depends-on): Likewise.
11879 * modules/posix_spawn-internal (Depends-on): Likewise.
11881 2009-07-21 Bruno Haible <bruno@clisp.org>
11883 * modules/.gitattributes: New file.
11885 2009-07-20 Bruno Haible <bruno@clisp.org>
11887 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11890 2009-07-20 Eric Blake <ebb9@byu.net>
11892 test-pipe: make a bit more robust.
11893 * tests/test-pipe.c (myerr): Allow error messages regardless of
11894 what we do to stderr.
11895 (test_pipe): Rearrange to avoid deadlock.
11896 (child_main): Try a larger read, to ensure we avoided deadlock.
11897 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11898 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11901 2009-07-19 Jim Meyering <meyering@redhat.com>
11903 fts: avoid false-positive cycle-detection
11904 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11905 for each new command line argument.
11907 2009-07-19 Bruno Haible <bruno@clisp.org>
11909 Fix build error on mingw with the modules sys_select and unistd.
11910 * modules/acl-tests (Depends-on): Add close.
11911 * modules/binary-io-tests (Depends-on): Likewise.
11912 * modules/closein-tests (Depends-on): Likewise.
11913 * modules/flock-tests (Depends-on): Likewise.
11914 * modules/fsync-tests (Depends-on): Likewise.
11915 * modules/lseek-tests (Depends-on): Likewise.
11916 * modules/pipe-tests (Depends-on): Likewise.
11917 * modules/posix_spawn-tests (Depends-on): Likewise.
11918 * modules/posix_spawnp-tests (Depends-on): Likewise.
11919 * modules/stat-time-tests (Depends-on): Likewise.
11920 * modules/yesno-tests (Depends-on): Likewise.
11922 2009-07-19 Bruno Haible <bruno@clisp.org>
11924 Unify conditionals.
11925 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11926 macros, not at the compiler macros.
11927 * lib/pipe.c: Likewise.
11928 * lib/execute.c: Likewise.
11929 * lib/spawni.c: Likewise.
11931 2009-07-19 Bruno Haible <bruno@clisp.org>
11933 Fix handling of closed stdin/stdout/stderr on mingw.
11934 * lib/w32spawn.h: Include unistd.h.
11935 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11936 file descriptor with O_NOINHERIT flag.
11937 (fd_safer_noinherit): New function, based on fd-safer.c.
11938 (dup_safer_noinherit): New function, based on dup-safer.c.
11939 (undup_safer_noinherit): New function.
11940 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11941 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11942 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11943 instead of fd_safer.
11944 * tests/test-pipe.c: Include <windows.h>.
11945 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11947 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11949 (test_pipe): Pass an extra argument for disambiguation.
11950 (main): Invoke parent_main or child_main.
11952 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11955 2009-07-18 Eric Blake <ebb9@byu.net>
11957 test-pipe: fix mingw build
11958 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11960 2009-07-18 Bruno Haible <bruno@clisp.org>
11962 * modules/pipe-tests (Makefile.am): Fix typo.
11964 2009-07-18 Eric Blake <ebb9@byu.net>
11966 error: fix mingw build
11967 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11968 Reported by Bruno Haible.
11970 error: avoid undefined use of stdout
11971 * lib/error.c (error, error_at_line): Check that fd 1 is open
11972 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11973 is handling faults and the close_stdout module wants to report the
11974 detection of closed stdout as an error.
11976 2009-07-17 Eric Blake <ebb9@byu.net>
11978 pipe: be robust in face of closed fds
11979 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11980 should cause child to misbehave.
11981 * modules/pipe-tests: New module.
11982 * tests/test-pipe.c: New file.
11983 * tests/test-pipe.sh: New file.
11984 Reported by Akim Demaille.
11986 2009-07-14 Bruno Haible <bruno@clisp.org>
11988 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11989 Reported by anonymous kc.
11991 2009-07-07 Jim Meyering <meyering@redhat.com>
11993 maint.mk: don't look for translatable strings in *.m4 or *.mk
11994 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11995 when searching for translatable strings.
11997 2009-07-05 Jim Meyering <meyering@redhat.com>
11999 remove superfluous parentheses in STREQ definition
12000 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12001 * lib/getugroups.c (STREQ): Likewise.
12002 * lib/fnmatch.c (STREQ): Likewise.
12003 Spotted by Bruno Haible.
12005 2009-07-04 Jim Meyering <meyering@redhat.com>
12007 argv-iter: new module
12008 * MODULES.html.sh: Add argv-iter.
12009 * lib/argv-iter.c, lib/argv-iter.h: New files.
12010 * modules/argv-iter: New file.
12011 * modules/argv-iter-tests: New file.
12012 * tests/test-argv-iter.c: Test it.
12014 2009-07-04 Bruno Haible <bruno@clisp.org>
12017 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12018 contains more exact copies of a given entry than file2, leave the extra
12019 copies unpaired rather than aborting.
12020 Reported by Eric Blake.
12022 2009-07-02 Bruno Haible <bruno@clisp.org>
12024 Speedup git-merge-changelog for git cherry-pick.
12025 * lib/git-merge-changelog.c (struct entries_mapping): New type.
12026 (entries_mapping_get): New function, extracted from compute_mapping.
12027 (entries_mapping_reverse_get): New function.
12028 (compute_mapping): Add a 'full' argument. Return the result in a
12029 'struct entries_mapping'.
12030 (main): Update. Access the mappings through entries_mapping_get.
12031 Reported by Eric Blake.
12033 2009-07-02 Bruno Haible <bruno@clisp.org>
12035 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12038 2009-07-02 Bruno Haible <bruno@clisp.org>
12040 Speed up approximate search for matching ChangeLog entries.
12041 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12042 argument. Call fstrcmp_bounded instead of fstrcmp.
12043 (compute_mapping, try_split_merged_entry, main): Update callers.
12045 2009-07-02 Bruno Haible <bruno@clisp.org>
12047 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12049 2009-06-30 Bruno Haible <bruno@clisp.org>
12051 Reduce the number of uc_is_cased calls.
12052 * lib/unicase.h (casing_suffix_context_t): Add
12053 'first_char_except_ignorable' field.
12054 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12055 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12056 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12057 Update initializer.
12058 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12059 case-ignorable characters.
12060 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12061 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12062 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12063 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12064 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12066 2009-06-30 Bruno Haible <bruno@clisp.org>
12068 Tests for module 'unicase/ignorable'.
12069 * modules/unicase/ignorable-tests: New file.
12070 * tests/unicase/test-ignorable.c: New file, generated by
12073 Tests for module 'unicase/cased'.
12074 * modules/unicase/cased-tests: New file.
12075 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12076 * tests/unicase/test-predicate-part1.h: New file, derived from
12077 tests/unictype/test-predicate-part1.h.
12078 * tests/unicase/test-predicate-part2.h: New file, same as
12079 tests/unictype/test-predicate-part2.h.
12081 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12082 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12083 (output_casing_properties): New function.
12085 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12086 * lib/unicase/cased.c: Include unictype/bitmap.h.
12087 (uc_is_cased): Define through a bitmap lookup.
12088 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12089 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12090 (uc_is_case_ignorable): Define through a bitmap lookup.
12091 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12092 lib/unictype/bitmap.h.
12093 (Depends-on): Add inline. Clean up.
12094 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12095 lib/unictype/bitmap.h.
12096 (Depends-on): Add inline. Clean up.
12097 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12099 * tests/unicase/test-u16-tolower.c (main): Likewise.
12100 * tests/unicase/test-u32-tolower.c (main): Likewise.
12102 2009-06-30 Bruno Haible <bruno@clisp.org>
12104 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12105 * lib/unicase/u16-casemap.c: Likewise.
12106 * lib/unicase/u32-casemap.c: Likewise.
12108 2009-06-29 Bruno Haible <bruno@clisp.org>
12110 Define u32_casefold as a wrapper around u32_ct_casefold.
12111 * lib/unicase/u32-casefold.c: Update.
12112 * modules/unicase/u32-casefold (Depends-on): Add
12113 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12114 unicase/empty-suffix-context. Clean up.
12116 Define u16_casefold as a wrapper around u16_ct_casefold.
12117 * lib/unicase/u16-casefold.c: Update.
12118 * modules/unicase/u16-casefold (Depends-on): Add
12119 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12120 unicase/empty-suffix-context. Clean up.
12122 Define u8_casefold as a wrapper around u8_ct_casefold.
12123 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12124 * lib/unicase/u8-casefold.c: Update.
12125 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12126 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12128 Define u32_totitle as a wrapper around u32_ct_totitle.
12129 * lib/unicase/u32-totitle.c: Update.
12130 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12131 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12133 Define u16_totitle as a wrapper around u16_ct_totitle.
12134 * lib/unicase/u16-totitle.c: Update.
12135 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12136 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12138 Define u8_totitle as a wrapper around u8_ct_totitle.
12139 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12141 (FUNC): Delegate to U_CT_TOTITLE.
12142 * lib/unicase/u8-totitle.c: Update.
12143 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12144 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12146 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12148 * modules/unicase/u32-tolower (Depends-on): Add
12149 unicase/empty-prefix-context, unicase/empty-suffix-context.
12151 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12153 * modules/unicase/u16-tolower (Depends-on): Add
12154 unicase/empty-prefix-context, unicase/empty-suffix-context.
12156 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12157 * modules/unicase/u8-tolower (Depends-on): Add
12158 unicase/empty-prefix-context, unicase/empty-suffix-context.
12160 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12162 * modules/unicase/u32-toupper (Depends-on): Add
12163 unicase/empty-prefix-context, unicase/empty-suffix-context.
12165 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12167 * modules/unicase/u16-toupper (Depends-on): Add
12168 unicase/empty-prefix-context, unicase/empty-suffix-context.
12170 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12171 * modules/unicase/u8-toupper (Depends-on): Add
12172 unicase/empty-prefix-context, unicase/empty-suffix-context.
12174 New module 'unicase/u32-ct-casefold'.
12175 * lib/unicase/u32-ct-casefold.c: New file.
12176 * modules/unicase/u32-ct-casefold: New file.
12178 New module 'unicase/u16-ct-casefold'.
12179 * lib/unicase/u16-ct-casefold.c: New file.
12180 * modules/unicase/u16-ct-casefold: New file.
12182 New module 'unicase/u8-ct-casefold'.
12183 * lib/unicase/u8-ct-casefold.c: New file.
12184 * lib/unicase/u-ct-casefold.h: New file, derived from
12185 lib/unicase/u-casefold.h.
12186 * modules/unicase/u8-ct-casefold: New file.
12188 New module 'unicase/u32-ct-totitle'.
12189 * lib/unicase/u32-ct-totitle.c: New file.
12190 * modules/unicase/u32-ct-totitle: New file.
12192 New module 'unicase/u16-ct-totitle'.
12193 * lib/unicase/u16-ct-totitle.c: New file.
12194 * modules/unicase/u16-ct-totitle: New file.
12196 New module 'unicase/u8-ct-totitle'.
12197 * lib/unicase/u8-ct-totitle.c: New file.
12198 * lib/unicase/u-ct-totitle.h: New file, derived from
12199 lib/unicase/u-totitle.h.
12200 * modules/unicase/u8-ct-totitle: New file.
12202 New module 'unicase/u32-ct-tolower'.
12203 * lib/unicase/u32-ct-tolower.c: New file.
12204 * modules/unicase/u32-ct-tolower: New file.
12206 New module 'unicase/u16-ct-tolower'.
12207 * lib/unicase/u16-ct-tolower.c: New file.
12208 * modules/unicase/u16-ct-tolower: New file.
12210 New module 'unicase/u8-ct-tolower'.
12211 * lib/unicase/u8-ct-tolower.c: New file.
12212 * modules/unicase/u8-ct-tolower: New file.
12214 New module 'unicase/u32-ct-toupper'.
12215 * lib/unicase/u32-ct-toupper.c: New file.
12216 * modules/unicase/u32-ct-toupper: New file.
12218 New module 'unicase/u16-ct-toupper'.
12219 * lib/unicase/u16-ct-toupper.c: New file.
12220 * modules/unicase/u16-ct-toupper: New file.
12222 New module 'unicase/u8-ct-toupper'.
12223 * lib/unicase/u8-ct-toupper.c: New file.
12224 * modules/unicase/u8-ct-toupper: New file.
12226 Add context arguments to u*_casemap functions.
12227 * lib/unicase/unicasemap.h: Include unicase.h.
12228 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12229 suffix_context arguments.
12230 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12232 (FUNC): Add prefix_context and suffix_context arguments. Use
12233 uc_is_cased and uc_is_case_ignorable.
12234 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12235 * lib/unicase/u16-casemap.c: Likewise.
12236 * lib/unicase/u32-casemap.c: Likewise.
12237 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12238 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12239 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12240 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12241 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12242 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12244 New module 'unicase/u32-suffix-context'.
12245 * lib/unicase/u32-suffix-context.c: New file.
12246 * modules/unicase/u32-suffix-context: New file.
12248 New module 'unicase/u16-suffix-context'.
12249 * lib/unicase/u16-suffix-context.c: New file.
12250 * modules/unicase/u16-suffix-context: New file.
12252 New module 'unicase/u8-suffix-context'.
12253 * lib/unicase/u8-suffix-context.c: New file.
12254 * lib/unicase/u-suffix-context.h: New file.
12255 * modules/unicase/u8-suffix-context: New file.
12257 New module 'unicase/empty-suffix-context'.
12258 * lib/unicase/empty-suffix-context.c: New file.
12259 * modules/unicase/empty-suffix-context: New file.
12261 New module 'unicase/u32-prefix-context'.
12262 * lib/unicase/u32-prefix-context.c: New file.
12263 * modules/unicase/u32-prefix-context: New file.
12265 New module 'unicase/u16-prefix-context'.
12266 * lib/unicase/u16-prefix-context.c: New file.
12267 * modules/unicase/u16-prefix-context: New file.
12269 New module 'unicase/u8-prefix-context'.
12270 * lib/unicase/u8-prefix-context.c: New file.
12271 * lib/unicase/u-prefix-context.h: New file.
12272 * lib/unicase/context.h: New file.
12273 * modules/unicase/u8-prefix-context: New file.
12275 New module 'unicase/empty-prefix-context'.
12276 * lib/unicase/empty-prefix-context.c: New file.
12277 * modules/unicase/empty-prefix-context: New file.
12279 New module 'unicase/ignorable'.
12280 * lib/unicase/ignorable.c: New file.
12281 * modules/unicase/ignorable: New file.
12283 New module 'unicase/cased'.
12284 * lib/unicase/caseprop.h: New file.
12285 * lib/unicase/cased.c: New file.
12286 * modules/unicase/cased: New file.
12288 New functions for case mapping of substrings.
12289 * lib/unicase.h (casing_prefix_context_t): New type.
12290 (unicase_empty_prefix_context): New variable.
12291 (u8_casing_prefix_context, u16_casing_prefix_context,
12292 u32_casing_prefix_context, u8_casing_prefixes_context,
12293 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12295 (casing_suffix_context_t): New type.
12296 (unicase_empty_suffix_context): New variable.
12297 (u8_casing_suffix_context, u16_casing_suffix_context,
12298 u32_casing_suffix_context, u8_casing_suffixes_context,
12299 u16_casing_suffixes_context, u32_casing_suffixes_context,
12300 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12301 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12302 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12305 2009-06-28 Jim Meyering <meyering@redhat.com>
12307 boostrap: indent only with spaces
12308 * build-aux/bootstrap: Indent only with spaces, never TABs.
12310 bootstrap: split long lines
12311 * build-aux/bootstrap: Keep line length < 80.
12313 bootstrap: sync from coreutils
12314 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12315 just as autoreconf does. Verify a list of prerequisite
12316 package-name,version-number pairs if defined in bootstrap.conf.
12317 Refer to README-prereq, if prerequisites are not satisfied.
12319 2009-06-27 Eric Blake <ebb9@byu.net>
12321 tests: add test for bogus NULL definition
12322 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12323 * tests/test-stdlib.c: Likewise.
12324 * tests/test-string.c: Likewise.
12325 * tests/test-locale.c: Likewise.
12326 * tests/test-unistd.c: Likewise.
12327 * modules/stdio-tests (Depends-on): Add verify.
12328 * modules/stdlib-tests (Depends-on): Likewise.
12329 * modules/string-tests (Depends-on): Likewise.
12330 * modules/locale-tests (Depends-on): Likewise.
12331 * modules/unistd-tests (Depends-on): Likewise.
12333 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12335 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12336 self-explaining comment.
12337 * m4/selinux-selinux-h: Update serial.
12338 (gl_LIBSELINUX): New macro, adding a warning for missing development
12339 packages to code extracted from...
12340 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12341 Add warning for missing development packages here, too.
12343 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12345 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12347 2009-06-25 Eric Blake <ebb9@byu.net>
12349 version-etc: fix regression
12350 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12352 (version_etc): Use it, to catch bugs with trailing NULL.
12353 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12354 (version_etc_va): Fix logic bug.
12355 * modules/version-etc-tests: Add test.
12356 * tests/test-version-etc.c: New file.
12357 * tests/test-version-etc.sh: Likewise.
12359 2009-06-25 Sam Steingold <sds@gnu.org>
12361 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12362 mbtowc declaration.
12364 2009-06-25 Eric Blake <ebb9@byu.net>
12366 fpurge: migrate into <stdio.h>
12367 * lib/fpurge.h: Delete...
12368 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12369 * lib/fpurge.c (fpurge): Change declaring header.
12370 * modules/fpurge (Files): Drop deleted file.
12371 (Depends-on): Add stdio.
12372 (configure.ac): Set witness.
12373 * modules/stdio (Makefile.am): Support fpurge macros.
12374 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12375 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12376 * lib/fflush.c: Update client.
12377 * tests/test-fpurge.c: Likewise.
12378 * NEWS: Mention the change.
12380 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12382 * lib/argp-version-etc.c (program_authors): Add const
12384 * lib/version-etc.c: Fix typos in the comments.
12385 * modules/argp-version-etc: Depends on version-etc.
12387 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12389 argp-version-etc: new module.
12391 * lib/argp-version-etc.c: New file.
12392 * lib/argp-version-etc.h: New file.
12393 * modules/argp-version-etc: New file.
12394 * modules/argp-version-etc-tests: New file.
12395 * tests/test-argp-version-etc.c: New test.
12396 * tests/test-argp-version-etc-1.sh: New test.
12398 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12400 Provide additional interfaces and documentation for version-etc
12403 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12405 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12408 2009-06-24 Bruno Haible <bruno@clisp.org>
12410 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12411 HAVE_LIB${NAME} macro.
12412 Reported by Sam Steingold <sds@gnu.org>.
12414 2009-06-23 Simon Josefsson <simon@josefsson.org>
12416 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12419 2009-06-21 Bruno Haible <bruno@clisp.org>
12421 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12423 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12424 together with LIB${NAME}, LTLIB${NAME}.
12425 Reported by Sam Steingold <sds@gnu.org>.
12427 2009-06-20 Jim Meyering <meyering@redhat.com>
12429 tests: make sc_require_test_exit_idiom more generic
12430 * top/maint.mk (Exit_witness_file): New overridable variable.
12431 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12432 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12434 2009-06-19 Jim Meyering <meyering@redhat.com>
12436 hash: reverse order of src/dst parameters in an internal interface
12437 * lib/hash.c (transfer_entries): Reverse order of parameters to
12438 put DST before SRC. Adjust callers.
12440 tests: test-hash: avoid wholesale duplication
12441 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12442 Instead, use a loop and add a single conditional.
12444 tests: test-hash: allow seed selection via a command line argument
12445 * tests/test-hash.c (get_seed): New function.
12448 2009-06-19 Eric Blake <ebb9@byu.net>
12450 hash: avoid memory leak on allocation failure
12451 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12452 failure. Factor repeated algorithm...
12453 (transfer_entries): ...into new helper routine.
12454 (hash_delete): React to hash_rehash return value.
12456 hash: reduce memory pressure in hash_rehash no-op case
12457 * lib/hash.c (next_prime): Avoid overflow.
12458 (hash_initialize): Factor bucket size computation...
12459 (compute_bucket_size): ...into new helper function.
12460 (hash_rehash): Use new function and open coding to reduce memory
12461 pressure, and avoid a memory leak in USE_OBSTACK code.
12462 Reported by Jim Meyering.
12464 2009-06-18 Eric Blake <ebb9@byu.net>
12466 hash: make rotation more obvious
12467 * modules/hash (Depends-on): Add bitrotate and stdint.
12468 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12469 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12470 (SIZE_MAX): Rely on headers for definition.
12471 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12472 (raw_hasher): Use rotr_sz.
12473 Suggested by Jim Meyering.
12475 hash: fix memory leak in last patch
12476 * lib/hash.c (hash_rehash): Avoid memory leak.
12478 hash: avoid no-op rehashing
12479 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12481 hash: provide default callback functions
12482 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12483 (hash_initialize): Use them as defaults.
12484 * tests/test-hash.c (main): Test this.
12486 hash: minor optimization
12487 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12489 (hash_initialize): Document this promise.
12490 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12491 * tests/test-hash.c (hash_compare_strings): Test this.
12493 2009-06-18 Bruno Haible <bruno@clisp.org>
12495 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12496 going to be replaced anyway.
12498 2009-06-18 Bruno Haible <bruno@clisp.org>
12500 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12502 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12503 be replaced anyway.
12505 2009-06-18 Eric Blake <ebb9@byu.net>
12507 hash: check for resize before insertion
12508 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12509 threshold before insertion, so that a pathological hash_rehash
12510 that fills every bucket can still trigger another rehash.
12512 2009-06-18 Jim Meyering <meyering@redhat.com>
12514 hash-tests: add a loop around the small tests
12515 * tests/test-hash.c (main): Repeat small tests with selected
12516 small initial table sizes.
12518 2009-06-17 Eric Blake <ebb9@byu.net>
12520 hash: minor cleanups
12521 * lib/hash.h (hash_entry): Make opaque, by moving...
12522 * lib/hash.c (hash_entry): ...here.
12523 (hash_insert): Clarify restrictions on what can be inserted.
12524 (hash_get_next): Clarify when it is safe to remove an element
12526 (check_tuning): Skip verification when tuning is known safe.
12527 (hash_initialize): Clarify restrictions on tuning.
12529 2009-06-17 Jim Meyering <jim@meyering.net>
12530 and Eric Blake <ebb9@byu.net>
12532 hash-tests: new module
12533 * modules/hash-tests: New file.
12534 * tests/test-hash.c: New file.
12536 2009-06-17 Eric Blake <ebb9@byu.net>
12538 strstr-simple: document new module
12539 * MODULES.html.sh: Document new module.
12541 strstr, strcasestr: replace on platforms with broken memchr
12542 * modules/strstr: Split into...
12543 * modules/strstr-simple: ...new module that does not care about
12544 performance, but does care about glibc bug.
12545 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12546 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12547 if platform memchr is broken, per Debian bug 521737.
12548 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12550 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12551 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12552 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12553 * modules/mountlist (Depends-on): Add strstr-simple.
12554 * modules/gen-uni-tables (Depends-on): Likewise.
12555 * modules/argz (Depends-on): Add strstr.
12557 2009-06-17 Bruno Haible <bruno@clisp.org>
12559 * modules/posix_spawn-internal (Depends-on): Add errno.
12561 2009-06-17 Bruno Haible <bruno@clisp.org>
12563 Define missing ESTALE on Interix 3.5.
12564 * lib/errno.in.h (ESTALE): Assign a value if missing.
12565 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12566 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12568 * doc/posix-headers/errno.texi: Mention the Interix bug.
12569 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12571 2009-06-15 Eric Blake <ebb9@byu.net>
12573 memchr, memchr2: add valgrind exception
12574 * lib/memchr.valgrind: New file.
12575 * lib/memchr2.valgrind: New file.
12576 * modules/memchr (Files): Distribute valgrind file.
12577 * modules/memchr2 (Files): Likewise.
12579 docs: memchr is no longer obsolete
12580 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12581 * lib/string.in.h (memchr): Simplify logic.
12583 2009-06-14 Jim Meyering <meyering@redhat.com>
12585 link-follow: fix the "checking..." message to not mention trailing slash
12586 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12587 never considered trailing slashes.
12589 2009-06-14 Bruno Haible <bruno@clisp.org>
12591 * m4/memchr.m4: Mention also the bug on IA-64.
12592 * doc/posix-functions/memchr.texi: Likewise.
12594 2009-06-12 Eric Blake <ebb9@byu.net>
12596 memchr: detect broken x86_64 and alpha implementations
12597 * modules/memchr-tests (Depends-on): Move mmap detection...
12598 * modules/memchr (Depends-on): ...here.
12599 (configure.ac): Set indicator.
12600 * lib/string.in.h (memchr): Declare replacement.
12601 * modules/string (Makefile.am): Trigger replacement.
12602 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12603 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12605 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12606 * modules/getpagesize (License): Relax license.
12608 2009-06-11 Bruno Haible <bruno@clisp.org>
12610 * lib/idpriv.h: Add more references.
12612 2009-06-08 Bruno Haible <bruno@clisp.org>
12614 Tests for module 'idpriv-droptemp'.
12615 * modules/idpriv-droptemp-tests: New file.
12616 * tests/test-idpriv-droptemp.sh: New file.
12617 * tests/test-idpriv-droptemp.su.sh: New file.
12618 * tests/test-idpriv-droptemp.c: New file.
12620 New module 'idpriv-droptemp'.
12621 * lib/idpriv-droptemp.c: New file.
12622 * modules/idpriv-droptemp: New file.
12624 2009-06-08 Bruno Haible <bruno@clisp.org>
12626 Tests for module 'idpriv-drop'.
12627 * modules/idpriv-drop-tests: New file.
12628 * tests/test-idpriv-drop.sh: New file.
12629 * tests/test-idpriv-drop.su.sh: New file.
12630 * tests/test-idpriv-drop.c: New file.
12632 New module 'idpriv-drop'.
12633 * lib/idpriv.h: New file.
12634 * lib-idpriv-drop.c: New file.
12635 * m4/idpriv.m4: New file.
12636 * modules/idpriv-drop: New file.
12638 2009-06-08 Bruno Haible <bruno@clisp.org>
12640 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12641 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12642 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12643 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12644 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12645 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12646 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12648 2009-06-08 Eric Blake <ebb9@byu.net>
12650 test-strstr: use memory fence, when possible
12651 * tests/test-strstr.c (main): Use memory fence, in order to be
12652 more likely to trigger Debian bug 521737.
12653 * modules/strstr-tests (Files): Pull in additional files.
12655 memchr: no longer obsolete, for wider field testing
12656 * modules/memchr (Status, Notice): Delete, this module is no
12658 * modules/vasnprintf (Depends-on): Add memchr.
12660 2009-06-07 Jim Meyering <meyering@redhat.com>
12662 hash: declare some functions with the warn_unused_result attribute
12663 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12665 2009-06-07 Bruno Haible <bruno@clisp.org>
12667 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12668 Reported by Eric Blake.
12670 2009-06-06 Eric Blake <ebb9@byu.net>
12672 test-alignof: fix typo with long double
12673 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12676 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12678 Escape non-texinfo { and }s.
12679 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12682 2009-06-04 Jim Meyering <meyering@redhat.com>
12684 gitlog-to-changelog: don't infloop on an empty commit log
12685 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12686 Reported by Boris Petersen <transacid@centerim.org>.
12688 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12690 version-etc: extend for packagers
12691 Add three new configure options, intended for packagers:
12692 --with-packager="packager name"
12693 --with-packager-version="packager-specific version"
12694 --with-packager-bug-reports="packager bug reporting"
12695 An example with coreutils:
12697 --with-packager=Gentoo \
12698 --with-packager-bug-report=http://bugs.gentoo.org/ \
12699 --with-packager-version="patchset 1.6"
12700 $ ./src/ls --version | head -n2
12701 ls (GNU coreutils) 7.1-dirty
12702 Packaged by Gentoo (patchset 1.6)
12703 Note that the bug reporting info via --help doesn't show up because
12704 coreutils uses its own custom emit_bug_reporting_address() implementation
12705 in src/system.h. If it didn't, it'd look like:
12706 $ ./src/ls --help | tail -n4
12707 Report bugs to <bug-coreutils@gnu.org>.
12708 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12709 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12710 General help using GNU software: <http://www.gnu.org/gethelp/>.
12711 * lib/version-etc.c: Print new information, if provided.
12712 * m4/version-etc.m4: New file.
12713 * modules/version-etc (Files): Add m4/version-etc.m4.
12714 (configure.ac): Add gl_VERSION_ETC.
12716 2009-05-31 Bruno Haible <bruno@clisp.org>
12718 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12720 * modules/alignof-tests (Dependencies): Add stdint.
12721 Reported by Eric Blake.
12723 2009-05-31 Bruno Haible <bruno@clisp.org>
12725 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12726 restriction due to compiler bugs.
12727 Reported by Eric Blake.
12729 2009-05-31 Simon Josefsson <simon@josefsson.org>
12730 Bruno Haible <bruno@clisp.org>
12732 Fix test-alignof failure.
12733 * lib/alignof.h (alignof_slot): New macro.
12734 (alignof_type): New macro, with the same semantics as the previous
12736 (alignof): Alias to alignof_slot.
12737 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12738 check that the results are usable as constant expressions.
12740 2009-05-31 Bruno Haible <bruno@clisp.org>
12742 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12743 * tests/test-memchr.c (main): Check that memchr does not read past the
12744 first occurrence of the byte.
12745 * tests/test-strstr.c (main): Update comment.
12746 Suggested by Eric Blake.
12748 2009-05-30 Bruno Haible <bruno@clisp.org>
12750 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12751 detail how to use dumpbin.
12752 Reported by David Byron <dbyron@dbyron.com>.
12754 2009-06-02 Simon Josefsson <simon@josefsson.org>
12756 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12758 2009-06-02 Simon Josefsson <simon@josefsson.org>
12760 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12762 2009-05-28 Bruno Haible <bruno@clisp.org>
12764 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12767 2009-05-28 Simon Josefsson <simon@josefsson.org>
12769 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12771 2009-05-27 Simon Josefsson <simon@josefsson.org>
12773 * gnulib-tool (sed_transform_main_lib_file)
12774 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12777 2009-05-26 Simon Josefsson <simon@josefsson.org>
12779 * tests/test-strstr.c: Add another self-test.
12780 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12781 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12783 2009-05-23 Bruno Haible <bruno@clisp.org>
12785 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12788 2009-05-21 Bruno Haible <bruno@clisp.org>
12790 Simplify use of mode_t varargs.
12791 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12792 uses 'mode_t' or 'int'.
12793 * lib/openat.c (openat): Likewise.
12794 * lib/open-safer.c (open_safer): Likewise.
12795 * m4/mode_t.m4: New file.
12796 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12797 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12798 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12799 * modules/open (Files): Add m4/mode_t.m4.
12800 * modules/openat (Files): Likewise.
12801 * modules/fcntl-safer (Files): Likewise.
12802 Suggested by Eric Blake.
12804 2009-05-21 Pádraig Brady <P@draigbrady.com>
12806 * doc/glibc-functions/fallocate.texi: New file.
12807 * doc/gnulib.texi: Include it.
12809 2009-05-21 Eric Blake <ebb9@byu.net>
12810 Bruno Haible <bruno@clisp.org>
12812 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12814 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12816 2009-05-21 Eric Blake <ebb9@byu.net>
12817 Bruno Haible <bruno@clisp.org>
12819 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12820 include_next. Fix of 2008-11-20 commit.
12821 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12822 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12823 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12825 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12826 instead of NEXT_MATH_H.
12828 2009-05-21 Bruno Haible <bruno@clisp.org>
12830 Avoid redefinition warnings for SIZE_MAX.
12831 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12832 Reported by Simon Josefsson.
12834 2009-05-21 Bruno Haible <bruno@clisp.org>
12836 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12839 2009-05-20 Bruno Haible <bruno@clisp.org>
12841 Make zeroptr.h work on mingw.
12842 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12844 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12845 * modules/memchr2-tests (configure.ac): Likewise.
12846 * modules/memcmp-tests (configure.ac): Likewise.
12847 * modules/memmem-tests (configure.ac): Likewise.
12848 * modules/memrchr-tests (configure.ac): Likewise.
12849 Reported by Simon Josefsson.
12851 2009-05-20 Simon Josefsson <simon@josefsson.org>
12853 * tests/test-glob.c: Include string.h for strcmp prototype.
12855 2009-05-20 Simon Josefsson <simon@josefsson.org>
12857 * modules/getdelim (Depends-on): Add explicit stdint, although it
12858 was implicitly already pulled in via realloc-posix.
12859 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12861 2009-05-20 Simon Josefsson <simon@josefsson.org>
12863 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12864 G. Christensen" <tgc@jupiterrise.com>.
12865 * m4/sys_socket_h.m4: Check for sa_family_t.
12866 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12867 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12868 * tests/test-sys_socket.c: Check that sa_family_t works.
12870 2009-05-18 Eric Blake <ebb9@byu.net>
12872 maint.mk: allow gnulib_dir in VPATH build
12873 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12875 2009-05-15 Jim Meyering <meyering@redhat.com>
12877 maint.mk: Give gnulib_dir a default definition.
12878 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12879 Thus, most packages no longer need to specify this variable in cfg.mk
12881 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12883 rename.m4: fix typos that would make non-mingw cross-configure fail
12884 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12886 2009-05-13 Eric Blake <ebb9@byu.net>
12888 mmap-anon: avoid out-of-order autoconf expansion
12889 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12890 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12891 * modules/memchr-tests (Depends-on): Add extensions.
12892 * modules/memchr2-tests (Depends-on): Add extensions.
12893 * modules/memcmp-tests (Depends-on): Add extensions.
12894 * modules/memmem-tests (Depends-on): Add extensions.
12895 * modules/memrchr-tests (Depends-on): Add extensions.
12897 2009-05-13 Bruno Haible <bruno@clisp.org>
12899 Make some tests ISO C 99 compliant.
12900 * tests/zerosize-ptr.h: New file.
12901 * tests/test-memchr.c: Include zerosize-ptr.h.
12902 (main): Use a zero-size object pointer instead of NULL.
12903 * tests/test-memchr2.c: Include zerosize-ptr.h.
12904 (main): Use a zero-size object pointer instead of NULL.
12905 * tests/test-memcmp.c: Include zerosize-ptr.h.
12906 (main): Use a zero-size object pointer instead of NULL.
12907 * tests/test-memmem.c: Include zerosize-ptr.h.
12908 (main): Use a zero-size object pointer instead of NULL.
12909 * tests/test-memrchr.c: Include zerosize-ptr.h.
12910 (main): Use a zero-size object pointer instead of NULL.
12911 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12913 (Depends-on): Add getpagesize.
12914 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12915 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12917 (Depends-on): Add getpagesize.
12918 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12919 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12921 (Depends-on): Add getpagesize.
12922 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12923 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12925 (Depends-on): Add getpagesize.
12926 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12927 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12929 (Depends-on): Add getpagesize.
12930 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12932 2009-05-12 Bruno Haible <bruno@clisp.org>
12934 Tests for module 'alignof'.
12935 * modules/alignof-tests: New file.
12936 * tests/test-alignof.c: New file.
12938 2009-05-12 Bruno Haible <bruno@clisp.org>
12941 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12942 vendor compilers that are always correct.
12944 2009-05-12 Bruno Haible <bruno@clisp.org>
12946 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12947 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12948 not whether its fully works.
12950 2009-05-12 Bruno Haible <bruno@clisp.org>
12952 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12954 2009-05-12 Jim Meyering <meyering@redhat.com>
12956 * top/maint.mk: Adjust backslash alignment.
12958 2009-05-11 Simon Josefsson <simon@josefsson.org>
12960 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12962 2009-05-11 Eric Blake <ebb9@byu.net>
12964 argp: avoid undefined behavior
12965 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12968 2009-05-08 Simon Josefsson <simon@josefsson.org>
12970 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12971 user.name to prevent git commit from complaining.
12973 2009-05-10 Bruno Haible <bruno@clisp.org>
12975 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12976 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12977 it rewrites every file name only once.
12978 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12980 2009-05-08 Bruno Haible <bruno@clisp.org>
12982 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12985 2009-05-08 Simon Josefsson <simon@josefsson.org>
12987 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12988 sockaddr_storage test.
12990 2009-05-07 Simon Josefsson <simon@josefsson.org>
12992 * modules/sys_socket (Makefile.am): Substitute
12993 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12994 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12995 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12996 * tests/test-sys_socket.c: Check sockaddr_storage.
12998 2009-05-08 Bruno Haible <bruno@clisp.org>
13000 New module 'alignof'.
13001 * lib/alignof.h: New file.
13002 * modules/alignof: New file.
13004 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13005 Bruno Haible <bruno@clisp.org>
13007 Fix test-file-has-acl on FreeBSD.
13008 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13009 mask is implicitly added.
13010 * tests/test-file-has-acl.c: Include <signal.h>.
13011 (main): Terminate the test after 5 seconds.
13012 * modules/acl-tests (configure.ac): Check for alarm function.
13014 2009-05-04 Bruno Haible <bruno@clisp.org>
13016 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13017 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13018 * modules/errno (configure.ac): Drop AC_REQUIRE.
13019 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13020 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13022 2009-05-04 Simon Josefsson <simon@josefsson.org>
13024 * modules/glob-tests: New module.
13025 * tests/test-glob.c: Add.
13027 2009-05-04 Simon Josefsson <simon@josefsson.org>
13029 * modules/fnmatch-tests: New module.
13030 * tests/test-fnmatch.c: Add.
13032 2009-05-04 Eric Blake <ebb9@byu.net>
13034 maint: make the new no-submodule-changes rule VPATH-safe
13035 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13037 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13038 Bruno Haible <bruno@clisp.org>
13040 acl: Fix infinite loop on FreeBSD.
13041 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13042 of return value from acl_get_entry.
13043 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13046 2009-05-03 Bruno Haible <bruno@clisp.org>
13048 * lib/acl-internal.h (acl_entries): Clarify return value.
13049 * lib/acl_entries.c (acl_entries): Likewise.
13051 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13053 Bug fix in acl module.
13054 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13056 2009-05-03 Bruno Haible <bruno@clisp.org>
13058 Create gperf-generated file in the source dir, not in the build dir.
13059 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13060 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13061 * modules/unicase/locale-language (unicase/locale-languages.h):
13063 * modules/unicase/special-casing (unicase/special-casing-table.h):
13065 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13066 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13067 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13068 Reported by Ralf Wildenhues.
13070 2009-05-03 Bruno Haible <bruno@clisp.org>
13072 * modules/fnmatch (Description, configure.ac): Taken from
13074 * modules/fnmatch-posix: Turn into a symbolic reference to the
13075 'fnmatch' module, and deprecate.
13076 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13078 2009-05-03 Bruno Haible <bruno@clisp.org>
13080 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13081 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13082 Reported by Ralf Wildenhues.
13084 2009-05-04 Simon Josefsson <simon@josefsson.org>
13086 * m4/fnmatch.m4: Fix fnmatch re-define.
13088 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13090 priv-set: new module and tests; adapt write-any-file
13091 * lib/priv-set.c: New file.
13092 * lib/priv-set.h: New file.
13093 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13094 * lib/write-any-file.c: Simplify by using priv-set module.
13095 * m4/priv-set.m4: New file.
13096 * modules/priv-set: New file.
13097 * modules/unlinkdir: Add dependency on priv-set module.
13098 * modules/write-any-file: Likewise.
13100 Tests for module 'priv-set'.
13101 * modules/priv-set-tests: New file.
13102 * tests/test-priv-set.c: New file.
13104 2009-05-03 Jim Meyering <meyering@redhat.com>
13105 Bruno Haible <bruno@clisp.org>
13107 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13108 use the converted UTF-8 variant of the name instead.
13110 2009-05-03 Jim Meyering <meyering@redhat.com>
13112 tests: tighten some getdate tests
13113 * tests/test-getdate.c (main): Tighten tests: require equality,
13114 not just greater than. Set TZ envvar to UTC0.
13116 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13118 getdate: correctly interpret "next monday" when run on a Monday
13119 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13120 that e.g., "next tues" (when run on a tuesday) results in a date
13121 that is one week in the future, and not today's date.
13122 I.e., add a week when the wday is the same as the current one.
13123 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13124 and earlier by Martin Bernreuther and Jan Minář.
13125 * tests/test-getdate.c (main): Check that "next DAY" is always in
13126 the future and that "last DAY" is always in the past.
13128 2009-05-02 Jim Meyering <meyering@redhat.com>
13130 build: ensure that a release build fails when a submodule is unclean
13131 * top/maint.mk (no-submodule-changes): New rule.
13132 (alpha beta major): Depend on it.
13134 2009-05-02 Bruno Haible <bruno@clisp.org>
13136 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13137 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13138 shell variable gl_fnmatch_required to detect which variant is
13140 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13141 gl_FUNC_FNMATCH_POSIX.
13142 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13143 exclude fnmatch-posix.
13145 2009-05-02 Bruno Haible <bruno@clisp.org>
13147 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13148 * modules/mbsrtowcs (License): Change to LGPLv2+.
13149 * modules/strnlen1 (License): Likewise.
13150 Reported by Simon Josefsson.
13152 2009-05-02 Bruno Haible <bruno@clisp.org>
13154 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13156 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13157 gnulib-tool was called with option --source-base=lib.
13159 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13161 Use automake *-local hooks without commands, for extensibility.
13162 * modules/localcharset (Makefile.am): Rename install-exec-local
13163 rule to install-exec-localcharset, and make it a prerequisite of
13164 install-exec-local. Likewise, rename the uninstall-local rule to
13165 uninstall-localcharset, and make it a prerequisite of the former.
13167 2009-05-01 Bruno Haible <bruno@clisp.org>
13169 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13170 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13171 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13172 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13173 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13174 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13175 m4/locale-zh.m4, m4/codeset.m4.
13177 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13178 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13179 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13182 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13183 REPLACE_WCRTOMB if mbstate_t must be replaced.
13184 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13185 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13187 2009-05-01 Bruno Haible <bruno@clisp.org>
13189 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13190 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13191 dngettext, dcngettext, textdomain, bindtextdomain,
13192 bind_textdomain_codeset): Undefine before redefining.
13194 2009-04-30 Bruno Haible <bruno@clisp.org>
13196 Fix bug introduced on 2009-04-25.
13197 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13198 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13199 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13201 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13203 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13205 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13207 2009-04-28 Bruno Haible <bruno@clisp.org>
13210 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13211 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13212 * lib/unicase.h (u*_casexfrm): Likewise.
13213 Reported by Paolo Bonzini.
13215 2009-04-28 Bruno Haible <bruno@clisp.org>
13217 Fix a compilation error.
13218 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13219 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13220 Reported by Jim Meyering.
13222 2009-04-27 Bruno Haible <bruno@clisp.org>
13224 New module 'libunistring'.
13225 * modules/libunistring: New file.
13226 * m4/libunistring.m4: New file.
13227 * MODULES.html.sh (Unicode string functions): Add it.
13229 2009-04-27 Eric Blake <ebb9@byu.net>
13231 maint.mk: allow package-specific header to provide <config.h>
13232 * top/maint.mk (sc_require_config_h): New variable.
13233 (sc_require_config_h, sc_require_config_h_first): Use it.
13235 2009-04-27 Simon Josefsson <simon@josefsson.org>
13237 * top/maint.mk (sc_avoid_if_before_free): Except
13238 useless-if-before-free script.
13240 2009-04-27 Eric Blake <ebb9@byu.net>
13242 maintainer-makefile: depend on all required helper scripts
13243 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13244 useless-if-before-free.
13245 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13246 version, rather than assuming gnulib checkout is available.
13247 Reported by Simen Josefsson.
13249 2009-04-26 Bruno Haible <bruno@clisp.org>
13251 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13252 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13255 2009-04-26 Bruno Haible <bruno@clisp.org>
13257 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13258 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13259 AC_LIB_HAVE_LINKFLAGS.
13261 2009-04-26 Bruno Haible <bruno@clisp.org>
13263 Simplify calling convention of u*_conv_from_encoding.
13264 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13265 u32_conv_from_encoding): Expect a resultbuf argument and return the
13266 result directly as a pointer.
13267 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13268 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13269 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13270 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13271 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13272 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13274 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13275 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13276 * lib/vasnprintf.c (VASNPRINTF): Update.
13277 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13278 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13279 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13280 * NEWS: Mention the change.
13282 2009-04-26 Bruno Haible <bruno@clisp.org>
13284 Simplify calling convention of u*_conv_to_encoding.
13285 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13286 u32_conv_to_encoding): Expect a resultbuf argument and return the
13287 result directly as a pointer.
13288 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13289 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13290 freeing scaled_offsets if mem_iconveha failed.
13291 * lib/unicase/u-casexfrm.h (FUNC): Update.
13292 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13293 * lib/vasnprintf.c (VASNPRINTF): Update.
13294 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13295 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13296 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13297 * NEWS: Mention the change.
13299 2009-04-26 Bruno Haible <bruno@clisp.org>
13301 Avoid test failures on AIX and OSF/1.
13302 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13304 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13305 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13307 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13308 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13309 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13310 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13311 * doc/posix-functions/malloc.texi: Document the portability problem
13312 related to malloc(0).
13314 2009-04-26 Bruno Haible <bruno@clisp.org>
13316 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13317 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13318 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13320 2009-04-25 Bruno Haible <bruno@clisp.org>
13322 Avoid link error when creating a namespace clean library.
13323 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13324 as macro with arguments if already defined as an alias.
13325 * lib/signbitf.c (gl_signbitf): Don't undefine.
13326 * lib/signbitd.c (gl_signbitd): Don't undefine.
13327 * lib/signbitl.c (gl_signbitl): Don't undefine.
13329 2009-04-25 Jim Meyering <meyering@redhat.com>
13331 vc-list-files: fix another quoting bug
13332 * build-aux/vc-list-files: Avoid sed backslash expansion
13333 of pathological directory names.
13335 2009-04-25 Eric Blake <ebb9@byu.net>
13337 vc-list-files: fix shell quoting error
13338 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13341 2009-04-25 Jim Meyering <meyering@redhat.com>
13343 vc-list-files: restore lost functionality with subdir argument
13344 * build-aux/vc-list-files: When given a non-"." sub-directory
13345 argument, substitute the $dir/ prefix back onto each resulting name.
13346 Otherwise, coreutils' root_tests check would fail.
13348 2009-04-24 Eric Blake <ebb9@byu.net>
13350 vc-list-files: ignore git symlinks
13351 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13352 than ls-files, to ignore git symlinks.
13354 maint.mk: import improvements from m4
13355 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13356 (move_if_change): Delete unused macro.
13357 (news-date-check, vc-diff-check): Support VPATH builds.
13358 (announcement): Likewise. Split --bootstrap-tools list...
13359 (boostrap-tools): ...into separate list, which can be overridden
13361 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13362 requiring dependency on useless-if-before-free module.
13363 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13364 Support VPATH builds.
13366 2009-04-24 Jim Meyering <meyering@redhat.com>
13368 maint.mk: remove coreutils-specific rules and variables
13369 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13370 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13371 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13373 maint.mk: remove obsolete rule
13374 * top/maint.mk (rel-check): Remove rule.
13375 (WGET, WGETFLAGS): Remove now-unused variables.
13377 2009-04-24 Simon Josefsson <simon@josefsson.org>
13379 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13382 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13383 '$(PATH_SEPARATOR)' instead of ':'.
13385 2009-04-24 Simon Josefsson <simon@josefsson.org>
13387 * lib/getopt1.c (main): Use 'const' for static array.
13389 2009-04-24 Simon Josefsson <simon@josefsson.org>
13391 * top/maint.mk: Sync with coreutils.
13392 * NEWS: Explain incompatibilities.
13394 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13395 Bruno Haible <bruno@clisp.org>
13397 Fix cross-compilation results.
13398 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13399 statement, as third argument of AC_TRY_RUN.
13400 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13401 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13403 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13404 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13406 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13407 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13408 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13410 2009-04-20 Bruno Haible <bruno@clisp.org>
13412 Avoid test failure on mingw.
13413 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13415 2009-04-20 Bruno Haible <bruno@clisp.org>
13417 Avoid compilation error on mingw.
13418 * modules/localename-tests (Depends-on): Add locale.
13420 2009-04-19 Bruno Haible <bruno@clisp.org>
13422 Support for building a shared library on Windows platforms.
13423 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13424 (main): Test the presence of UNINORM_NFC here.
13425 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13426 (main): Test the presence of UNINORM_NFD here.
13427 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13428 (main): Test the presence of UNINORM_NFKC here.
13429 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13430 (main): Test the presence of UNINORM_NFKD here.
13432 2009-04-19 Bruno Haible <bruno@clisp.org>
13434 Avoid a compiler warning.
13435 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13436 Change type of variable 'sequence'.
13438 2009-04-19 Bruno Haible <bruno@clisp.org>
13440 * modules/configmake (Makefile.am): When the contents of configmake.h
13441 does not change, arrange to preserve its modification time.
13443 2009-04-17 Simon Josefsson <simon@josefsson.org>
13445 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13448 2009-04-16 Jim Meyering <meyering@redhat.com>
13450 useless-if-before-free: improve conversion code
13451 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13452 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13454 2009-04-14 Bruno Haible <bruno@clisp.org>
13456 * modules/fcntl (Depends-on): Add extensions.
13457 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13459 2009-04-12 Ben Pfaff <blp@gnu.org>
13461 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13462 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13464 2009-03-20 Ben Pfaff <blp@gnu.org>
13466 Make rename replace existing destinations on Windows.
13467 * m4/rename.m4: Add test for Mingw.
13468 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13469 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13470 * doc/posix-functions/rename.texi: Document.
13472 2009-04-10 Bruno Haible <bruno@clisp.org>
13474 New include file "iconveh.h".
13475 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13476 * lib/striconveh.h: Include it.
13477 (enum iconv_ilseq_handler): Remove definition.
13478 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13480 * lib/striconveha.c: Include striconveh.h.
13481 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13482 * modules/striconveh (Files): Add lib/iconveh.h.
13483 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13486 2009-04-10 Bruno Haible <bruno@clisp.org>
13488 * lib/uniconv.h: Update comment.
13490 2009-04-10 Bruno Haible <bruno@clisp.org>
13492 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13494 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13495 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13496 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13497 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13498 "unistring-notinline.h", so that the function gets defined always.
13499 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13500 * lib/unistr/u8-uctomb.c: Likewise.
13501 * lib/unistr/u16-mbtouc.c: Likewise.
13502 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13503 * lib/unistr/u16-uctomb.c: Likewise.
13504 * lib/unistr/u32-mbtouc.c: Likewise.
13505 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13506 * lib/unistr/u32-uctomb.c: Likewise.
13508 2009-04-10 Bruno Haible <bruno@clisp.org>
13510 Mark 'utime' obsolete.
13511 * modules/utime (Status, Notice): New sections.
13512 Suggested by Jim Meyering.
13514 Fix cross-compile guess for utime test.
13515 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13517 * doc/posix-functions/utime.texi: Give more precisions.
13518 Reported by Jan <ipif@ymail.com>.
13520 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13522 filevercmp: correct today's change
13523 * lib/filevercmp.c: Also handle coreutils' test inputs.
13524 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13526 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13528 * lib/filevercmp.c: Special handle for "", "." and "..".
13529 * tests/test-filevercmp.c: Enlarge the set suite.
13531 2009-04-07 Jim Meyering <meyering@redhat.com>
13533 useless-if-before-free: show how to remove braced useless free, too
13534 * build-aux/useless-if-before-free: still only in a comment, though.
13536 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13538 maint.mk: import changes to syntax-check macros from coreutils
13539 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13540 Use them in the relevant macros.
13542 2009-04-06 Bruno Haible <bruno@clisp.org>
13544 Fix unportable use of bit-fields.
13545 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13546 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13547 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13549 2009-04-06 Bruno Haible <bruno@clisp.org>
13551 Avoid test failures on AIX and OSF/1.
13552 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13553 that malloc(0) = NULL.
13554 * tests/unicase/test-u8-tolower.c (check): Likewise.
13555 * tests/unicase/test-u8-totitle.c (check): Likewise.
13556 * tests/unicase/test-u8-toupper.c (check): Likewise.
13557 * tests/unicase/test-u16-casefold.c (check): Likewise.
13558 * tests/unicase/test-u16-tolower.c (check): Likewise.
13559 * tests/unicase/test-u16-totitle.c (check): Likewise.
13560 * tests/unicase/test-u16-toupper.c (check): Likewise.
13561 * tests/unicase/test-u32-casefold.c (check): Likewise.
13562 * tests/unicase/test-u32-tolower.c (check): Likewise.
13563 * tests/unicase/test-u32-totitle.c (check): Likewise.
13564 * tests/unicase/test-u32-toupper.c (check): Likewise.
13565 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13566 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13567 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13568 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13569 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13570 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13571 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13572 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13573 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13574 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13575 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13576 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13578 2009-04-05 Bruno Haible <bruno@clisp.org>
13580 Work around an autoconf limitation.
13581 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13582 comment line if it would be longer than 3 KB.
13584 2009-04-05 Bruno Haible <bruno@clisp.org>
13586 Avoid test failure with libiconv-1.13.
13587 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13588 of the expected test results.
13590 2009-04-05 Bruno Haible <bruno@clisp.org>
13592 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13593 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13594 that it should be installed.
13596 2009-04-05 Bruno Haible <bruno@clisp.org>
13598 * gnulib-tool: New option --copy-file.
13599 (func_usage): Document it.
13600 (func_dest_tmpfilename): Moved out of func_import.
13601 (func_add_file, func_update_file): New functions, extracted from
13603 (func_import): Update.
13605 2009-04-05 Karl Berry <karl@gnu.org>
13607 * README: prominently mention gnulib-tool.
13608 Rearrange sections so getting the code is near the top.
13610 2009-04-05 Bruno Haible <bruno@clisp.org>
13612 * lib/unicase.h: Mention u*_cmp2.
13613 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13614 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13615 * lib/unicase/ulc-casecmp.c: Likewise.
13616 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13617 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13618 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13620 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13621 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13623 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13626 * lib/uninorm.h: Mention u*_cmp2.
13627 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13628 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13629 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13630 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13631 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13633 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13635 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13638 New module 'unistr/u32-cmp2'.
13639 * lib/unistr/u32-cmp2.c: New file.
13640 * modules/unistr/u32-cmp2: New file.
13642 New module 'unistr/u16-cmp2'.
13643 * lib/unistr/u16-cmp2.c: New file.
13644 * modules/unistr/u16-cmp2: New file.
13646 New module 'unistr/u8-cmp2'.
13647 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13648 * lib/unistr/u8-cmp2.c: New file.
13649 * lib/unistr/u-cmp2.h: New file.
13650 * modules/unistr/u8-cmp2: New file.
13652 2009-04-05 Bruno Haible <bruno@clisp.org>
13654 * lib/unictype.h (uc_property_is_valid): New macro.
13655 * tests/unictype/test-pr_byname.c (main): Use it.
13657 * lib/unistr.h: Doc fixes.
13658 * lib/uniconv.h: Doc fixes.
13659 * lib/unictype.h: Doc fixes.
13661 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13663 Port coreutils 7.2 to Solaris 8.
13665 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13666 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13667 for Solaris 8. This is a bit of a hack, as it means it's the
13668 caller's responsibility to add -lnsl if needed, but most likely it
13669 won't be needed since only getaddrinfo uses this and getaddrinfo
13670 isn't needed on Solaris 8.
13672 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13673 problem to Solaris 8 encountered with coreutils 7.2, which
13674 resulted in a message "fnmatch.c:292: warning: passing argument 4
13675 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13676 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13678 2009-04-03 Simon Josefsson <simon@josefsson.org>
13680 * m4/ld-version-script.m4: Add FIXME comment.
13682 2009-04-02 Simon Josefsson <simon@josefsson.org>
13684 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13685 SOVERSION variable.
13687 2009-04-02 Bruno Haible <bruno@clisp.org>
13689 * Makefile (info, html, dvi, pdf): Combine the rules.
13690 Suggested by Jim Meyering.
13692 2009-04-01 Bruno Haible <bruno@clisp.org>
13694 * Makefile (info, html, dvi, pdf): New targets.
13695 Reported by Reuben Thomas <rrt@sc3d.org>.
13697 2009-04-01 Bruno Haible <bruno@clisp.org>
13699 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13700 can be put into PATH.
13701 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13703 2009-04-01 Bruno Haible <bruno@clisp.org>
13705 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13707 2009-04-01 Bruno Haible <bruno@clisp.org>
13709 Rename module 'visibility'.
13710 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13711 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13712 * doc/gnulib.texi: Update.
13713 * MODULES.html.sh (Misc): Update.
13714 * NEWS: Mention the change.
13716 2009-04-01 Simon Josefsson <simon@josefsson.org>
13718 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13719 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13720 Eric Blake <ebb9@byu.net> for review.
13721 * MODULES.html.sh: Add lib-msvc-compat.
13722 * doc/gnulib.texi: Link to new section.
13723 * m4/ld-output-def.m4: New file.
13724 * doc/ld-output-def.texi: New file.
13726 2009-04-01 Simon Josefsson <simon@josefsson.org>
13728 Rename ld-version-script to lib-symbol-versions. Suggested by
13729 Bruno Haible <bruno@clisp.org>.
13730 * modules/ld-version-script: Renamed to lib-symbol-versions.
13731 * doc/ld-version-script.texi: Fix module name.
13732 * MODULES.html.sh: Add lib-symbol-versions.
13734 2009-03-31 Simon Josefsson <simon@josefsson.org>
13736 * modules/u64-tests: New file.
13737 * tests/test-u64.c: New file.
13739 2009-03-04 Simon Josefsson <simon@josefsson.org>
13741 * MODULES.html.sh: Mention u64.
13742 * modules/u64: New module.
13743 * modules/crypto/sha512: Depend on u64 module instead of providing
13746 2009-03-27 Eric Blake <ebb9@byu.net>
13748 test-strerror: make debugging EAI_SYSTEM easier
13749 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13750 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13751 failure was EAI_SYSTEM.
13753 2009-03-25 Bruno Haible <bruno@clisp.org>
13755 Fix a problem with --enable-relocatable on Solaris 7.
13756 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13759 2009-03-25 Eric Blake <ebb9@byu.net>
13761 test-sockets: avoid gcc warning
13762 * tests/test-sockets.c (main): Silence compiler warning.
13764 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13766 New modules nproc, pthread, contributed by Glen Lenker.
13768 * MODULES.html.sh: Add pthread, nproc.
13769 * lib/nproc.c: New file.
13770 * lib/nproc.h: New file.
13771 * lib/pthread.in.h: New file.
13772 * m4/pthread.m4: New file.
13773 * modules/nproc: New file.
13774 * modules/pthread: New file.
13776 2009-03-24 Simon Josefsson <simon@josefsson.org>
13778 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13781 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13783 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13784 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13785 * tests/test-filevercmp.c: Add tests for backup suffixes.
13787 2009-03-24 Simon Josefsson <simon@josefsson.org>
13789 * modules/stdlib (Depends-on): Add stdint, needed when defining
13790 struct random_data on, for example, HP-UX 10.20. Reported by
13791 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13793 2009-03-24 Simon Josefsson <simon@josefsson.org>
13795 * lib/readline.c (readline): Call fflush on stdout after printing
13798 2009-03-20 Bruno Haible <bruno@clisp.org>
13800 Remove dependency from 'close' module to -lws2_32 on native Windows.
13801 * lib/close-hook.h: New file.
13802 * lib/close-hook.c: New file.
13803 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13805 (_gl_close_fd_maybe_socket): Remove function.
13806 (rpl_close): Invoke execute_all_close_hooks instead of
13807 _gl_close_fd_maybe_socket.
13808 * lib/sockets.c: Include close-hook.h, w32sock.h.
13809 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13810 (close_sockets_hook): New variable.
13811 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13812 (gl_sockets_cleanup): Unregister it.
13813 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13814 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13815 * modules/close-hook: New file.
13816 * modules/close (Files): Remove lib/w32sock.h.
13817 (Depends-on): Add close-hook.
13818 (Link): Remove section.
13819 * modules/sockets (Files): Add lib/w32sock.h.
13820 (Depends-on): Add close-hook.
13821 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13823 * NEWS: Mention that LIB_CLOSE is gone.
13825 2009-03-23 Eric Blake <ebb9@byu.net>
13827 signal-tests: test previous patch
13828 * tests/test-signal.c: New file.
13829 * modules/signal-tests: Likewise.
13831 signal.h: always support 'volatile sig_atomic_t'
13832 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13833 (gl_SIGNAL_H_DEFAULTS): Add a default.
13834 * modules/signal (Makefile.am): Substitute if needed.
13835 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13836 users can blindly add volatile.
13837 * doc/posix-headers/signal.texi (signal.h): Document it.
13838 Reported by Matthew Woehlke.
13840 2009-03-23 Jim Meyering <meyering@redhat.com>
13842 pathmax: PATH_MAX: use pathconf only when available
13843 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13844 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13845 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13846 This avoids a link failure in a PSP cross-compilation environment
13847 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13849 * lib/vasnprintf.c (divide): Fix typo in comment.
13851 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13853 * gnulib-tool (func_filter_filelist): Fix comment.
13855 2009-03-20 Bruno Haible <bruno@clisp.org>
13857 Make sockets.h self-contained.
13858 * lib/sockets.c: Include sockets.h first.
13859 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13861 2009-03-19 Eric Blake <ebb9@byu.net>
13863 doc: mention more functions added in cygwin 1.7.0
13864 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13866 * doc/posix-functions/log2f.texi: Likewise.
13868 2009-03-19 Jim Meyering <meyering@redhat.com>
13870 fsusage: avoid syntax error due to statement-before-declaration
13871 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13872 after all declarations. Reported by Matthew Woehlke in
13873 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13875 2009-03-18 Eric Blake <ebb9@byu.net>
13877 build-aux/compile: sync from automake
13878 * build-aux/compile: New file, from automake.
13879 * config/srclist.txt: Mention build-aux/compile.
13881 2009-03-17 Bruno Haible <bruno@clisp.org>
13883 * lib/git-merge-changelog.c: Fix typo in comment.
13884 Reported by Reuben Thomas <rrt@sc3d.org>.
13886 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13888 * m4/regex.m4: update and improve help for
13889 --without-included-regex.
13891 2009-03-17 Simon Josefsson <simon@josefsson.org>
13893 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13894 failure on missing include files.
13896 2009-03-17 Eric Blake <ebb9@byu.net>
13898 doc: mention more functions added in cygwin 1.7.0
13899 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13901 * doc/posix-functions/fwscanf.texi: Likewise.
13902 * doc/posix-functions/swprintf.texi: Likewise.
13903 * doc/posix-functions/swscanf.texi: Likewise.
13904 * doc/posix-functions/vfwprintf.texi: Likewise.
13905 * doc/posix-functions/vfwscanf.texi: Likewise.
13906 * doc/posix-functions/vswprintf.texi: Likewise.
13907 * doc/posix-functions/vswscanf.texi: Likewise.
13908 * doc/posix-functions/vwprintf.texi: Likewise.
13909 * doc/posix-functions/vwscanf.texi: Likewise.
13910 * doc/posix-functions/wcscasecmp.texi: Likewise.
13911 * doc/posix-functions/wcsdup.texi: Likewise.
13912 * doc/posix-functions/wcsftime.texi: Likewise.
13913 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13914 * doc/posix-functions/wprintf.texi: Likewise.
13915 * doc/posix-functions/wscanf.texi: Likewise.
13916 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13918 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13920 maint.mk: really add $(AM_MAKEFLAGS)
13921 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13922 was inadvertently omitted in the last commit.
13923 Spotted by Bruno Haible.
13925 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13926 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13927 $(AM_MAKEFLAGS)' rather than plain `make'.
13929 gnulib-tool: execute $MAKE not make
13930 * gnulib-tool: Default $MAKE to 'make'.
13931 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13932 than make. Initialize $MAKE in the do-autobuild script.
13934 gnulib-tool: use $MAKE not make in generated files
13935 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13936 make, in generated files. Initialize $MAKE in the do-autobuild
13939 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13941 GNUmakefile: disable parallelism only for multiple, recursive targets
13942 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13943 additions in the Makefile.
13944 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13946 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13947 are listed on the command line and at least one of them is
13948 listed in $(ALL_RECURSIVE_TARGETS).
13950 2009-03-14 Bruno Haible <bruno@clisp.org>
13952 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13953 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13954 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13955 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13956 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13957 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13958 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13960 * modules/unistr/u8-strchr (Depends-on): Likewise.
13961 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13962 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13964 * modules/unistr/u16-strchr (Depends-on): Likewise.
13965 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13967 2009-03-12 Bruno Haible <bruno@clisp.org>
13969 Work around select() bug on Interix 3.5.
13970 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13971 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13972 * m4/select.m4: New file.
13973 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13974 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13975 * modules/select (Files): Add m4/select.m4.
13976 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13977 * modules/nanosleep (Depends-on): Add select.
13978 * modules/poll (Depends-on): Likewise.
13979 * doc/posix-functions/select.texi: Mention the Interix bug.
13980 Reported by Markus Duft <mduft@gentoo.org>.
13982 * lib/select.c: Renamed from lib/winsock-select.c.
13983 * modules/select (Files): Add lib/select.c, remove
13984 lib/winsock-select.c.
13985 (configure.ac): Update.
13987 2009-03-12 Jim Meyering <meyering@redhat.com>
13989 avoid gcc warnings about unused macro definitions
13990 * lib/readtokens.c (STREQ): Remove unused definition.
13991 * lib/xmalloc.c (SIZE_MAX): Likewise.
13992 * lib/openat-die.c (N_): Likewise.
13993 * lib/mountlist.c (SIZE_MAX): Remove definition.
13994 Instead, include <stdint.h>.
13995 * lib/readutmp.c: Likewise.
13996 * modules/readutmp (Depends-on): Add stdint.
13997 * modules/mountlist (Depends-on): Add stdint.
13998 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14000 2009-03-10 Bruno Haible <bruno@clisp.org>
14002 Tests for module 'mbmemcasecoll'.
14003 * modules/mbmemcasecoll-tests: New file.
14004 * tests/test-mbmemcasecoll1.sh: New file.
14005 * tests/test-mbmemcasecoll2.sh: New file.
14006 * tests/test-mbmemcasecoll3.sh: New file.
14007 * tests/test-mbmemcasecoll.c: New file.
14009 New module 'mbmemcasecoll'.
14010 * lib/mbmemcasecoll.h: New file.
14011 * lib/mbmemcasecoll.c: New file.
14012 * modules/mbmemcasecoll: New file.
14014 * tests/test-mbmemcasecmp.h: New file, extracted from
14015 tests/test-mbmemcasecmp.c.
14016 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14017 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14019 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14021 2009-03-09 Bruno Haible <bruno@clisp.org>
14023 Tests for module 'mbmemcasecmp'.
14024 * modules/mbmemcasecmp-tests: New file.
14025 * tests/test-mbmemcasecmp1.sh: New file.
14026 * tests/test-mbmemcasecmp2.sh: New file.
14027 * tests/test-mbmemcasecmp3.sh: New file.
14028 * tests/test-mbmemcasecmp.c: New file.
14030 New module 'mbmemcasecmp'.
14031 * lib/mbmemcasecmp.h: New file.
14032 * lib/mbmemcasecmp.c: New file.
14033 * modules/mbmemcasecmp: New file.
14035 2009-03-09 Bruno Haible <bruno@clisp.org>
14037 Tests for module 'unicase/ulc-casecoll'.
14038 * modules/unicase/ulc-casecoll-tests: New file.
14039 * tests/unicase/test-ulc-casecoll1.sh: New file.
14040 * tests/unicase/test-ulc-casecoll2.sh: New file.
14041 * tests/unicase/test-ulc-casecoll.c: New file.
14043 New module 'unicase/ulc-casecoll'.
14044 * lib/unicase.h (ulc_casecoll): New declaration.
14045 * lib/unicase/ulc-casecoll.c: New file.
14046 * modules/unicase/ulc-casecoll: New file.
14048 New module 'unicase/ulc-casexfrm'.
14049 * lib/unicase.h (ulc_casexfrm): New declaration.
14050 * lib/unicase/ulc-casexfrm.c: New file.
14051 * modules/unicase/ulc-casexfrm: New file.
14053 2009-03-09 Bruno Haible <bruno@clisp.org>
14055 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14058 * m4/mbscasecmp.m4: Remove file.
14059 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14060 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14062 * m4/mbscasestr.m4: Remove file.
14063 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14064 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14066 * m4/mbschr.m4: Remove file.
14067 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14068 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14070 * m4/mbscspn.m4: Remove file.
14071 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14072 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14074 * m4/mbslen.m4: Remove file.
14075 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14076 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14078 * m4/mbsncasecmp.m4: Remove file.
14079 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14080 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14082 * m4/mbsnlen.m4: Remove file.
14083 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14084 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14086 * m4/mbspbrk.m4: Remove file.
14087 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14088 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14090 * m4/mbspcasecmp.m4: Remove file.
14091 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14092 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14094 * m4/mbsrchr.m4: Remove file.
14095 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14096 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14098 * m4/mbssep.m4: Remove file.
14099 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14100 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14102 * m4/mbsspn.m4: Remove file.
14103 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14104 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14106 * m4/mbsstr.m4: Remove file.
14107 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14108 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14110 * m4/mbstok_r.m4: Remove file.
14111 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14112 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14114 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14116 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14117 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14119 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14121 2009-03-08 Bruno Haible <bruno@clisp.org>
14123 Tests for module 'unicase/ulc-casecmp'.
14124 * modules/unicase/ulc-casecmp-tests: New file.
14125 * tests/unicase/test-ulc-casecmp1.sh: New file.
14126 * tests/unicase/test-ulc-casecmp2.sh: New file.
14127 * tests/unicase/test-ulc-casecmp.c: New file.
14129 New module 'unicase/ulc-casecmp'.
14130 * lib/unicase.h (ulc_casecmp): New declaration.
14131 * lib/unicase/ulc-casecmp.c: New file.
14132 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14133 'const SRC_UNIT *'.
14134 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14135 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14136 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14137 * modules/unicase/ulc-casecmp: New file.
14139 Tests for module 'unicase/u32-is-cased'.
14140 * modules/unicase/u32-is-cased-tests: New file.
14141 * tests/unicase/test-u32-is-cased.c: New file.
14143 Tests for module 'unicase/u16-is-cased'.
14144 * modules/unicase/u16-is-cased-tests: New file.
14145 * tests/unicase/test-u16-is-cased.c: New file.
14147 Tests for module 'unicase/u8-is-cased'.
14148 * modules/unicase/u8-is-cased-tests: New file.
14149 * tests/unicase/test-u8-is-cased.c: New file.
14150 * tests/unicase/test-is-cased.h: New file.
14152 New module 'unicase/u32-is-cased'.
14153 * lib/unicase/u32-is-cased.c: New file.
14154 * modules/unicase/u32-is-cased: New file.
14156 New module 'unicase/u16-is-cased'.
14157 * lib/unicase/u16-is-cased.c: New file.
14158 * modules/unicase/u16-is-cased: New file.
14160 New module 'unicase/u8-is-cased'.
14161 * lib/unicase/u8-is-cased.c: New file.
14162 * lib/unicase/u-is-cased.h: New file.
14163 * modules/unicase/u8-is-cased: New file.
14165 Tests for module 'unicase/u32-is-casefolded'.
14166 * modules/unicase/u32-is-casefolded-tests: New file.
14167 * tests/unicase/test-u32-is-casefolded.c: New file.
14169 Tests for module 'unicase/u16-is-casefolded'.
14170 * modules/unicase/u16-is-casefolded-tests: New file.
14171 * tests/unicase/test-u16-is-casefolded.c: New file.
14173 Tests for module 'unicase/u8-is-casefolded'.
14174 * modules/unicase/u8-is-casefolded-tests: New file.
14175 * tests/unicase/test-u8-is-casefolded.c: New file.
14176 * tests/unicase/test-is-casefolded.h: New file.
14178 New module 'unicase/u32-is-casefolded'.
14179 * lib/unicase/u32-is-casefolded.c: New file.
14180 * modules/unicase/u32-is-casefolded: New file.
14182 New module 'unicase/u16-is-casefolded'.
14183 * lib/unicase/u16-is-casefolded.c: New file.
14184 * modules/unicase/u16-is-casefolded: New file.
14186 New module 'unicase/u8-is-casefolded'.
14187 * lib/unicase/u8-is-casefolded.c: New file.
14188 * modules/unicase/u8-is-casefolded: New file.
14190 Tests for module 'unicase/u32-is-titlecase'.
14191 * modules/unicase/u32-is-titlecase-tests: New file.
14192 * tests/unicase/test-u32-is-titlecase.c: New file.
14194 Tests for module 'unicase/u16-is-titlecase'.
14195 * modules/unicase/u16-is-titlecase-tests: New file.
14196 * tests/unicase/test-u16-is-titlecase.c: New file.
14198 Tests for module 'unicase/u8-is-titlecase'.
14199 * modules/unicase/u8-is-titlecase-tests: New file.
14200 * tests/unicase/test-u8-is-titlecase.c: New file.
14201 * tests/unicase/test-is-titlecase.h: New file.
14203 New module 'unicase/u32-is-titlecase'.
14204 * lib/unicase/u32-is-titlecase.c: New file.
14205 * modules/unicase/u32-is-titlecase: New file.
14207 New module 'unicase/u16-is-titlecase'.
14208 * lib/unicase/u16-is-titlecase.c: New file.
14209 * modules/unicase/u16-is-titlecase: New file.
14211 New module 'unicase/u8-is-titlecase'.
14212 * lib/unicase/u8-is-titlecase.c: New file.
14213 * modules/unicase/u8-is-titlecase: New file.
14215 Tests for module 'unicase/u32-is-lowercase'.
14216 * modules/unicase/u32-is-lowercase-tests: New file.
14217 * tests/unicase/test-u32-is-lowercase.c: New file.
14219 Tests for module 'unicase/u16-is-lowercase'.
14220 * modules/unicase/u16-is-lowercase-tests: New file.
14221 * tests/unicase/test-u16-is-lowercase.c: New file.
14223 Tests for module 'unicase/u8-is-lowercase'.
14224 * modules/unicase/u8-is-lowercase-tests: New file.
14225 * tests/unicase/test-u8-is-lowercase.c: New file.
14226 * tests/unicase/test-is-lowercase.h: New file.
14228 New module 'unicase/u32-is-lowercase'.
14229 * lib/unicase/u32-is-lowercase.c: New file.
14230 * modules/unicase/u32-is-lowercase: New file.
14232 New module 'unicase/u16-is-lowercase'.
14233 * lib/unicase/u16-is-lowercase.c: New file.
14234 * modules/unicase/u16-is-lowercase: New file.
14236 New module 'unicase/u8-is-lowercase'.
14237 * lib/unicase/u8-is-lowercase.c: New file.
14238 * modules/unicase/u8-is-lowercase: New file.
14240 Tests for module 'unicase/u32-is-uppercase'.
14241 * modules/unicase/u32-is-uppercase-tests: New file.
14242 * tests/unicase/test-u32-is-uppercase.c: New file.
14244 Tests for module 'unicase/u16-is-uppercase'.
14245 * modules/unicase/u16-is-uppercase-tests: New file.
14246 * tests/unicase/test-u16-is-uppercase.c: New file.
14248 Tests for module 'unicase/u8-is-uppercase'.
14249 * modules/unicase/u8-is-uppercase-tests: New file.
14250 * tests/unicase/test-u8-is-uppercase.c: New file.
14251 * tests/unicase/test-is-uppercase.h: New file.
14253 New module 'unicase/u32-is-uppercase'.
14254 * lib/unicase/u32-is-uppercase.c: New file.
14255 * modules/unicase/u32-is-uppercase: New file.
14257 New module 'unicase/u16-is-uppercase'.
14258 * lib/unicase/u16-is-uppercase.c: New file.
14259 * modules/unicase/u16-is-uppercase: New file.
14261 New module 'unicase/u8-is-uppercase'.
14262 * lib/unicase/u8-is-uppercase.c: New file.
14263 * modules/unicase/u8-is-uppercase: New file.
14265 New module 'unicase/u32-is-invariant'.
14266 * lib/unicase/u32-is-invariant.c: New file.
14267 * modules/unicase/u32-is-invariant: New file.
14269 New module 'unicase/u16-is-invariant'.
14270 * lib/unicase/u16-is-invariant.c: New file.
14271 * modules/unicase/u16-is-invariant: New file.
14273 New module 'unicase/u8-is-invariant'.
14274 * lib/unicase/u8-is-invariant.c: New file.
14275 * lib/unicase/invariant.h: New file.
14276 * lib/unicase/u-is-invariant.h: New file.
14277 * modules/unicase/u8-is-invariant: New file.
14279 Tests for module 'unicase/u32-casecoll'.
14280 * modules/unicase/u32-casecoll-tests: New file.
14281 * tests/unicase/test-u32-casecoll.c: New file.
14283 Tests for module 'unicase/u16-casecoll'.
14284 * modules/unicase/u16-casecoll-tests: New file.
14285 * tests/unicase/test-u16-casecoll.c: New file.
14287 Tests for module 'unicase/u8-casecoll'.
14288 * modules/unicase/u8-casecoll-tests: New file.
14289 * tests/unicase/test-u8-casecoll.c: New file.
14291 New module 'unicase/u32-casecoll'.
14292 * lib/unicase/u32-casecoll.c: New file.
14293 * modules/unicase/u32-casecoll: New file.
14295 New module 'unicase/u16-casecoll'.
14296 * lib/unicase/u16-casecoll.c: New file.
14297 * modules/unicase/u16-casecoll: New file.
14299 New module 'unicase/u8-casecoll'.
14300 * lib/unicase/u8-casecoll.c: New file.
14301 * lib/unicase/u-casecoll.h: New file.
14302 * modules/unicase/u8-casecoll: New file.
14304 New module 'unicase/u32-casexfrm'.
14305 * lib/unicase/u32-casexfrm.c: New file.
14306 * modules/unicase/u32-casexfrm: New file.
14308 New module 'unicase/u16-casexfrm'.
14309 * lib/unicase/u16-casexfrm.c: New file.
14310 * modules/unicase/u16-casexfrm: New file.
14312 New module 'unicase/u8-casexfrm'.
14313 * lib/unicase/u8-casexfrm.c: New file.
14314 * lib/unicase/u-casexfrm.h: New file.
14315 * modules/unicase/u8-casexfrm: New file.
14317 Tests for module 'unicase/u32-casecmp'.
14318 * modules/unicase/u32-casecmp-tests: New file.
14319 * tests/unicase/test-u32-casecmp.c: New file.
14321 Tests for module 'unicase/u16-casecmp'.
14322 * modules/unicase/u16-casecmp-tests: New file.
14323 * tests/unicase/test-u16-casecmp.c: New file.
14325 Tests for module 'unicase/u8-casecmp'.
14326 * modules/unicase/u8-casecmp-tests: New file.
14327 * tests/unicase/test-u8-casecmp.c: New file.
14328 * tests/unicase/test-casecmp.h: New file.
14330 New module 'unicase/u32-casecmp'.
14331 * lib/unicase/u32-casecmp.c: New file.
14332 * modules/unicase/u32-casecmp: New file.
14334 New module 'unicase/u16-casecmp'.
14335 * lib/unicase/u16-casecmp.c: New file.
14336 * modules/unicase/u16-casecmp: New file.
14338 New module 'unicase/u8-casecmp'.
14339 * lib/unicase/u8-casecmp.c: New file.
14340 * lib/unicase/u-casecmp.h: New file.
14341 * modules/unicase/u8-casecmp: New file.
14343 Tests for module 'unicase/u32-casefold'.
14344 * modules/unicase/u32-casefold-tests: New file.
14345 * tests/unicase/test-u32-casefold.c: New file.
14347 Tests for module 'unicase/u16-casefold'.
14348 * modules/unicase/u16-casefold-tests: New file.
14349 * tests/unicase/test-u16-casefold.c: New file.
14351 Tests for module 'unicase/u8-casefold'.
14352 * modules/unicase/u8-casefold-tests: New file.
14353 * tests/unicase/test-u8-casefold.c: New file.
14355 New module 'unicase/u32-casefold'.
14356 * lib/unicase/u32-casefold.c: New file.
14357 * modules/unicase/u32-casefold: New file.
14359 New module 'unicase/u16-casefold'.
14360 * lib/unicase/u16-casefold.c: New file.
14361 * modules/unicase/u16-casefold: New file.
14363 New module 'unicase/u8-casefold'.
14364 * lib/unicase/u8-casefold.c: New file.
14365 * lib/unicase/u-casefold.h: New file.
14366 * modules/unicase/u8-casefold: New file.
14368 New module 'unicase/tocasefold'.
14369 * lib/unicase/casefold.h: New file.
14370 * lib/unicase/tocasefold.c: New file.
14371 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14372 * modules/unicase/tocasefold: New file.
14374 Tests for module 'unicase/u32-totitle'.
14375 * modules/unicase/u32-totitle-tests: New file.
14376 * tests/unicase/test-u32-totitle.c: New file.
14378 Tests for module 'unicase/u16-totitle'.
14379 * modules/unicase/u16-totitle-tests: New file.
14380 * tests/unicase/test-u16-totitle.c: New file.
14382 Tests for module 'unicase/u8-totitle'.
14383 * modules/unicase/u8-totitle-tests: New file.
14384 * tests/unicase/test-u8-totitle.c: New file.
14386 New module 'unicase/u32-totitle'.
14387 * lib/unicase/u32-totitle.c: New file.
14388 * modules/unicase/u32-totitle: New file.
14390 New module 'unicase/u16-totitle'.
14391 * lib/unicase/u16-totitle.c: New file.
14392 * modules/unicase/u16-totitle: New file.
14394 New module 'unicase/u8-totitle'.
14395 * lib/unicase/u8-totitle.c: New file.
14396 * lib/unicase/u-totitle.h: New file.
14397 * modules/unicase/u8-totitle: New file.
14399 Tests for module 'unicase/u32-tolower'.
14400 * modules/unicase/u32-tolower-tests: New file.
14401 * tests/unicase/test-u32-tolower.c: New file.
14403 Tests for module 'unicase/u16-tolower'.
14404 * modules/unicase/u16-tolower-tests: New file.
14405 * tests/unicase/test-u16-tolower.c: New file.
14407 Tests for module 'unicase/u8-tolower'.
14408 * modules/unicase/u8-tolower-tests: New file.
14409 * tests/unicase/test-u8-tolower.c: New file.
14411 New module 'unicase/u32-tolower'.
14412 * lib/unicase/u32-tolower.c: New file.
14413 * modules/unicase/u32-tolower: New file.
14415 New module 'unicase/u16-tolower'.
14416 * lib/unicase/u16-tolower.c: New file.
14417 * modules/unicase/u16-tolower: New file.
14419 New module 'unicase/u8-tolower'.
14420 * lib/unicase/u8-tolower.c: New file.
14421 * modules/unicase/u8-tolower: New file.
14423 Tests for module 'unicase/u32-toupper'.
14424 * modules/unicase/u32-toupper-tests: New file.
14425 * tests/unicase/test-u32-toupper.c: New file.
14427 Tests for module 'unicase/u16-toupper'.
14428 * modules/unicase/u16-toupper-tests: New file.
14429 * tests/unicase/test-u16-toupper.c: New file.
14431 Tests for module 'unicase/u8-toupper'.
14432 * modules/unicase/u8-toupper-tests: New file.
14433 * tests/unicase/test-u8-toupper.c: New file.
14435 New module 'unicase/u32-toupper'.
14436 * lib/unicase/u32-toupper.c: New file.
14437 * modules/unicase/u32-toupper: New file.
14439 New module 'unicase/u16-toupper'.
14440 * lib/unicase/u16-toupper.c: New file.
14441 * modules/unicase/u16-toupper: New file.
14443 New module 'unicase/u8-toupper'.
14444 * lib/unicase/u8-toupper.c: New file.
14445 * modules/unicase/u8-toupper: New file.
14447 New module 'unicase/u32-casemap'.
14448 * lib/unicase/u32-casemap.c: New file.
14449 * modules/unicase/u32-casemap: New file.
14451 New module 'unicase/u16-casemap'.
14452 * lib/unicase/u16-casemap.c: New file.
14453 * modules/unicase/u16-casemap: New file.
14455 New module 'unicase/u8-casemap'.
14456 * lib/unicase/unicasemap.h: New file.
14457 * lib/unicase/u8-casemap.c: New file.
14458 * lib/unicase/u-casemap.h: New file.
14459 * modules/unicase/u8-casemap: New file.
14461 New module 'unicase/special-casing'.
14462 * lib/unicase/special-casing.h: New file.
14463 * lib/unicase/special-casing.c: New file.
14464 * lib/unicase/special-casing-table.gperf: New file, generated by
14466 * modules/unicase/special-casing: New file.
14468 Tests for module 'unicase/locale-language'.
14469 * modules/unicase/locale-language-tests: New file.
14470 * tests/unicase/test-locale-language.sh: New file.
14471 * tests/unicase/test-locale-language.c: New file.
14473 New module 'unicase/locale-language'.
14474 * lib/unicase/locale-language.c: New file.
14475 * lib/unicase/locale-languages.gperf: New file.
14476 * modules/unicase/locale-language: New file.
14478 Generate more tables for case conversion and case folding.
14479 * lib/gen-uni-tables.c (SCC_*): New enum items.
14480 (struct special_casing_rule): New type.
14481 (casing_rules, num_casing_rules, allocated_casing_rules): New
14483 (add_casing_rule, fill_casing_rules): New functions.
14484 (struct casefold_rule): New type.
14485 (casefolding_rules, num_casefolding_rules,
14486 allocated_casefolding_rules): New variables.
14487 (fill_casefolding_rules): New function.
14488 (unicode_casefold): New variable.
14489 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14490 sort_casing_rules, output_casing_rules): New functions.
14491 (main): Accept to more arguments: SpecialCasing.txt and
14492 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14493 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14494 Output mapping for casefolding.
14496 * lib/unicase.h: Include stdbool.h, uninorm.h.
14497 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14498 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14499 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14501 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14503 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14504 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14506 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14507 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14508 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14509 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14511 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14513 2009-03-08 Bruno Haible <bruno@clisp.org>
14515 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14516 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14517 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14518 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14520 2009-03-07 Bruno Haible <bruno@clisp.org>
14522 Adjust u*_normcmp, u*_normcoll API.
14523 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14524 u16_normcoll, u32_normcoll): Change failure conventions.
14525 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14526 errno and return -1.
14527 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14529 2009-03-07 Bruno Haible <bruno@clisp.org>
14531 Tests for module 'uninorm/u32-normcoll'.
14532 * modules/uninorm/u32-normcoll-tests: New file.
14533 * tests/uninorm/test-u32-normcoll.c: New file.
14535 Tests for module 'uninorm/u16-normcoll'.
14536 * modules/uninorm/u16-normcoll-tests: New file.
14537 * tests/uninorm/test-u16-normcoll.c: New file.
14539 Tests for module 'uninorm/u8-normcoll'.
14540 * modules/uninorm/u8-normcoll-tests: New file.
14541 * tests/uninorm/test-u8-normcoll.c: New file.
14543 2009-03-07 Bruno Haible <bruno@clisp.org>
14545 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14546 tests/uninorm/test-u32-normcmp.c.
14547 * tests/uninorm/test-u32-normcmp.c: Include it.
14548 (test_nonascii): New function, extracted from main. Add some more
14550 (main): Invoke test_ascii and test_nonascii.
14551 * modules/uninorm/u32-normcmp-tests (Files): Add
14552 tests/uninorm/test-u32-normcmp.h.
14553 (Depends-on): Remove uninorm/u32-normcmp.
14555 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14556 tests/uninorm/test-u16-normcmp.c.
14557 * tests/uninorm/test-u16-normcmp.c: Include it.
14558 (test_nonascii): New function, extracted from main. Add some more
14560 (main): Invoke test_ascii and test_nonascii.
14561 * modules/uninorm/u16-normcmp-tests (Files): Add
14562 tests/uninorm/test-u16-normcmp.h.
14563 (Depends-on): Remove uninorm/u16-normcmp.
14565 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14566 tests/uninorm/test-u8-normcmp.c.
14567 * tests/uninorm/test-u8-normcmp.c: Include it.
14568 (test_nonascii): New function, extracted from main. Add some more
14570 (main): Invoke test_ascii and test_nonascii.
14571 * modules/uninorm/u8-normcmp-tests (Files): Add
14572 tests/uninorm/test-u8-normcmp.h.
14573 (Depends-on): Remove uninorm/u8-normcmp.
14575 2009-03-07 Bruno Haible <bruno@clisp.org>
14577 New module 'uninorm/u32-normcoll'.
14578 * lib/uninorm/u32-normcoll.c: New file.
14579 * modules/uninorm/u32-normcoll: New file.
14581 New module 'uninorm/u16-normcoll'.
14582 * lib/uninorm/u16-normcoll.c: New file.
14583 * modules/uninorm/u16-normcoll: New file.
14585 New module 'uninorm/u8-normcoll'.
14586 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14588 * lib/uninorm/u8-normcoll.c: New file.
14589 * lib/uninorm/u-normcoll.h: New file.
14590 * modules/uninorm/u8-normcoll: New file.
14592 New module 'uninorm/u32-normxfrm'.
14593 * lib/uninorm/u32-normxfrm.c: New file.
14594 * modules/uninorm/u32-normxfrm: New file.
14596 New module 'uninorm/u16-normxfrm'.
14597 * lib/uninorm/u16-normxfrm.c: New file.
14598 * modules/uninorm/u16-normxfrm: New file.
14600 New module 'uninorm/u8-normxfrm'.
14601 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14603 * lib/uninorm/u8-normxfrm.c: New file.
14604 * lib/uninorm/u-normxfrm.h: New file.
14605 * modules/uninorm/u8-normxfrm: New file.
14607 2009-03-07 Bruno Haible <bruno@clisp.org>
14609 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14610 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14611 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14613 2009-03-07 Bruno Haible <bruno@clisp.org>
14615 New module 'memxfrm'.
14616 * lib/memxfrm.h: New file.
14617 * lib/memxfrm.c: New file.
14618 * modules/memxfrm: New file.
14620 2009-03-07 Bruno Haible <bruno@clisp.org>
14622 New module 'memcmp2'.
14623 * lib/memcmp2.h: New file.
14624 * lib/memcmp2.c: New file.
14625 * modules/memcmp2: New file.
14627 2009-03-07 Bruno Haible <bruno@clisp.org>
14629 Tests for module 'uninorm/decomposing-form'.
14630 * modules/uninorm/decomposing-form-tests: New file.
14631 * tests/uninorm/test-decomposing-form.c: New file.
14633 New module 'uninorm/decomposing-form'.
14634 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14635 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14636 Add 'decomposing_variant' field.
14637 * lib/uninorm/decomposing-form.c: New file.
14638 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14639 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14640 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14641 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14642 * modules/uninorm/decomposing-form: New file.
14643 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14644 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14646 2009-03-07 Bruno Haible <bruno@clisp.org>
14648 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14651 2009-03-06 Bruno Haible <bruno@clisp.org>
14653 Tests for module 'uninorm/u32-normcmp'.
14654 * tests/uninorm/test-u32-normcmp.c: New file.
14655 * modules/uninorm/u32-normcmp-tests: New file.
14657 Tests for module 'uninorm/u16-normcmp'.
14658 * tests/uninorm/test-u16-normcmp.c: New file.
14659 * modules/uninorm/u16-normcmp-tests: New file.
14661 Tests for module 'uninorm/u8-normcmp'.
14662 * tests/uninorm/test-u8-normcmp.c: New file.
14663 * modules/uninorm/u8-normcmp-tests: New file.
14665 New module 'uninorm/u32-normcmp'.
14666 * lib/uninorm/u32-normcmp.c: New file.
14667 * modules/uninorm/u32-normcmp: New file.
14669 New module 'uninorm/u16-normcmp'.
14670 * lib/uninorm/u16-normcmp.c: New file.
14671 * modules/uninorm/u16-normcmp: New file.
14673 New module 'uninorm/u8-normcmp'.
14674 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14676 * lib/uninorm/u8-normcmp.c: New file.
14677 * lib/uninorm/u-normcmp.h: New file.
14678 * modules/uninorm/u8-normcmp: New file.
14680 2009-03-06 Bruno Haible <bruno@clisp.org>
14682 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14683 Reported by Eric Blake.
14685 2009-03-06 Eric Blake <ebb9@byu.net>
14686 Bruno Haible <bruno@clisp.org>
14688 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14689 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14691 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14692 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14694 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14696 2009-03-06 Eric Blake <ebb9@byu.net>
14698 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14699 to avoid compiler warnings.
14700 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14702 2009-03-05 Bruno Haible <bruno@clisp.org>
14704 * tests/test-ftell.c (main): Disable test beyond end of file on
14706 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14708 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14710 * lib/filevercmp.c: Move hidden files up in ordering.
14711 * tests/test-filevercmp.c: Add tests for hidden files.
14713 2009-03-04 Bruno Haible <bruno@clisp.org>
14715 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14716 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14718 Reported by Simon Josefsson.
14720 2009-03-03 Bruno Haible <bruno@clisp.org>
14722 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14723 Reported by Simon Josefsson.
14725 * doc/ld-version-script.texi: Update node reference.
14727 2009-03-03 Bruno Haible <bruno@clisp.org>
14729 * modules/visibility (License): Change to 'unlimited'.
14730 Suggested by Simon Josefsson.
14732 2009-03-03 Jim Meyering <meyering@redhat.com>
14734 unlinkdir: cannot_unlink_dir may modify process state
14735 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14736 it's neither thread-safe nor appropriate for use in a library.
14738 2009-03-03 Eric Blake <ebb9@byu.net>
14740 test-closein: silence test under Darwin
14741 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14742 care if it dies from EPIPE or EBADF.
14744 2009-03-03 Bruno Haible <bruno@clisp.org>
14746 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14748 * doc/visibility.texi: Fix @node and @section.
14750 2009-03-03 Simon Josefsson <simon@josefsson.org>
14752 * doc/gnulib.texi: Link to sections for ld version script and
14754 * doc/visibility.texi: Add @node and @section.
14755 * modules/ld-version-script: New module.
14756 * m4/ld-version-script.m4: New file.
14757 * doc/ld-version-script.texi: New file.
14759 2009-03-02 David Lutterkort <lutter@redhat.com>
14761 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14762 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14764 2009-03-02 Bruno Haible <bruno@clisp.org>
14766 * doc/visibility.texi: Mention libtool's -export-symbols option.
14768 2009-03-02 Jim Meyering <meyering@redhat.com>
14770 announce-gen: new option: --no-print-checksums
14771 * build-aux/announce-gen (usage): Describe it.
14772 (print_checksums): Print a newline here, not in the [*] footnote.
14775 2009-03-01 Bruno Haible <bruno@clisp.org>
14777 Use socklen_t in the native Windows replacements prototypes.
14778 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14780 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14781 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14782 * modules/getsockopt (Depends-on): Add socklen.
14783 * modules/setsockopt (Depends-on): Add socklen.
14785 2009-03-01 Bruno Haible <bruno@clisp.org>
14787 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14790 2009-03-01 Eric Blake <ebb9@byu.net>
14791 Bruno Haible <bruno@clisp.org>
14793 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14795 * lib/wait-process.c (wait_subprocess): Omit error message about
14796 deadly signal sent to the child of termsigp != NULL.
14798 2009-03-01 Eric Blake <ebb9@byu.net>
14800 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14802 2009-03-01 Bruno Haible <bruno@clisp.org>
14804 Avoid a gcc warning.
14805 * tests/test-sched.c (b): Make global.
14806 Reported by Eric Blake.
14808 2009-01-19 Martin Lambers <marlam@marlam.de>
14810 Provide POSIX semantics for socket timeout options on W32.
14811 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14812 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14813 * modules/setsockopt: Depend on sys_time module for struct timeval.
14814 * modules/getsockopt: Depend on sys_time module for struct timeval.
14816 2009-03-01 Simon Josefsson <simon@josefsson.org>
14818 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14819 __USE_GNU, for consistency with netdb.in.h.
14820 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14822 2009-03-01 Bruno Haible <bruno@clisp.org>
14824 More support for FreeMiNT.
14825 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14826 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14828 2009-03-01 Bruno Haible <bruno@clisp.org>
14830 More support for FreeMiNT.
14831 * lib/fpurge.c (fpurge): Correct last commit.
14832 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14834 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14836 Fix unportable awk script in vc-list-files.
14837 * build-aux/vc-list-files: In the replacement awk script, use
14838 substr with a second argument of 1, not zero.
14839 Report by Simon Josefsson.
14841 2009-02-28 Bruno Haible <bruno@clisp.org>
14843 More support for FreeMiNT.
14844 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14846 * lib/fwriting.c (fwriting): Likewise.
14847 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14849 2009-02-28 Bruno Haible <bruno@clisp.org>
14851 * tests/test-freadseek.c (main): Disable test beyond end of file on
14853 * tests/test-ftello.c (main): Likewise.
14854 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14856 2009-02-28 Bruno Haible <bruno@clisp.org>
14858 Add tentative support for FreeMiNT.
14859 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14860 * lib/fpurge.c (fpurge): Likewise.
14861 * lib/freadable.c (freadable): Likewise.
14862 * lib/freading.c (freading): Likewise.
14863 * lib/freadptr.c (freadptr): Likewise.
14864 * lib/freadseek.c (freadptrinc): Likewise.
14865 * lib/fseeko.c (rpl_fseeko): Likewise.
14866 * lib/fseterr.c (fseterr): Likewise.
14867 * lib/fwritable.c (fwritable): Likewise.
14868 * lib/fwriting.c (fwriting): Likewise.
14869 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14871 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14873 2009-02-28 Bruno Haible <bruno@clisp.org>
14875 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14877 Reported by Jim Meyering.
14879 2009-02-28 Bruno Haible <bruno@clisp.org>
14881 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14882 Mention the results of these tests on various platforms.
14883 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14885 * doc/posix-functions/printf.texi: Likewise.
14886 * doc/posix-functions/snprintf.texi: Likewise.
14887 * doc/posix-functions/sprintf.texi: Likewise.
14888 * doc/posix-functions/vfprintf.texi: Likewise.
14889 * doc/posix-functions/vprintf.texi: Likewise.
14890 * doc/posix-functions/vsnprintf.texi: Likewise.
14891 * doc/posix-functions/vsprintf.texi: Likewise.
14892 * doc/glibc-functions/obstack_printf.texi: Likewise.
14893 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14895 2009-02-28 Bruno Haible <bruno@clisp.org>
14897 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14898 Reported by Loïc Minier <lool@dooz.org>.
14900 2009-02-27 Bruno Haible <bruno@clisp.org>
14902 * gnulib-tool (func_import): Make the sed expression used to create the
14903 sed script for updating the .gitignore file POSIX compliant.
14904 Reported by Eric Blake.
14906 2009-02-27 Bruno Haible <bruno@clisp.org>
14908 * gnulib-tool (sed): Don't alias as "sed --posix".
14909 Reported by Eric Blake.
14911 2009-02-27 Bruno Haible <bruno@clisp.org>
14913 Avoid test link errors.
14914 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14915 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14916 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14917 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14918 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14920 2009-02-27 Bruno Haible <bruno@clisp.org>
14922 Avoid spurious "(cached)" in configure output.
14923 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14924 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14925 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14926 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14927 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14928 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14929 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14930 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14931 Reported by Eric Blake.
14933 2009-02-27 Eric Blake <ebb9@byu.net>
14935 printf: fix regression in previous patch
14936 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14938 2009-02-27 Bruno Haible <bruno@clisp.org>
14940 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14942 * lib/stdint.in.h: Likewise.
14943 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14945 2009-02-27 Eric Blake <ebb9@byu.net>
14947 doc: mention more functions added in cygwin 1.7.0
14948 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14950 * doc/posix-functions/open_wmemstream.texi: Likewise.
14951 * doc/posix-functions/wcsnlen.texi: Likewise.
14952 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14953 * doc/posix-functions/wcstod.texi: Likewise.
14954 * doc/posix-functions/wcstof.texi: Likewise.
14955 * doc/posix-functions/wcstoimax.texi: Likewise.
14956 * doc/posix-functions/wcstok.texi: Likewise.
14957 * doc/posix-functions/wcstoumax.texi: Likewise.
14959 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14960 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14961 * doc/posix-functions/fprintf.texi: Update.
14962 * doc/posix-functions/printf.texi: Update.
14963 * doc/posix-functions/snprintf.texi: Update.
14964 * doc/posix-functions/sprintf.texi: Update.
14965 * doc/posix-functions/vfprintf.texi: Update.
14966 * doc/posix-functions/vprintf.texi: Update.
14967 * doc/posix-functions/vsnprintf.texi: Update.
14968 * doc/posix-functions/vsprintf.texi: Update.
14969 * doc/glibc-functions/obstack_printf.texi: Update.
14970 * doc/glibc-functions/obstack_vprintf.texi: Update.
14972 2009-02-26 Eric Blake <ebb9@byu.net>
14974 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14975 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14976 compilation bug by using runtime conversion.
14977 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14978 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14979 * modules/ceill-tests (Files): Use nan.h.
14980 * modules/floorl-tests (Files): Likewise.
14981 * modules/frexpl-tests (Files): Likewise.
14982 * modules/isnanl-tests (Files): Likewise.
14983 * modules/ldexpl-tests (Files): Likewise.
14984 * modules/roundl-tests (Files): Likewise.
14985 * modules/truncl-tests (Files): Likewise.
14986 * tests/test-ceill.c (main): Use a working NaN.
14987 * tests/test-floorl.c (main): Likewise.
14988 * tests/test-frexpl.c (main): Likewise.
14989 * tests/test-isnan.c (test_long_double): Likewise.
14990 * tests/test-isnanl.h (main): Likewise.
14991 * tests/test-ldexpl.h (main): Likewise.
14992 * tests/test-roundl.h (main): Likewise.
14993 * tests/test-truncl.h (main): Likewise.
14994 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14996 2009-02-26 Eric Blake <ebb9@byu.net>
14997 Bruno Haible <bruno@clisp.org>
14999 Work around a *printf bug with %ls on Solaris.
15000 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15001 precision is specified, sprintf stops converting the wide string
15002 argument when the number of bytes that have been produced by this
15003 conversion equals or exceeds the precision.
15004 * doc/posix-functions/fprintf.texi: Update.
15005 * doc/posix-functions/printf.texi: Update.
15006 * doc/posix-functions/snprintf.texi: Update.
15007 * doc/posix-functions/sprintf.texi: Update.
15008 * doc/posix-functions/vfprintf.texi: Update.
15009 * doc/posix-functions/vprintf.texi: Update.
15010 * doc/posix-functions/vsnprintf.texi: Update.
15011 * doc/posix-functions/vsprintf.texi: Update.
15012 * doc/glibc-functions/obstack_printf.texi: Update.
15013 * doc/glibc-functions/obstack_vprintf.texi: Update.
15015 2009-02-26 Eric Blake <ebb9@byu.net>
15017 stdlib: favor compiler check of random.h
15018 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
15019 to avoid an ObjC random.h installed by Swarm.
15021 2009-02-26 Bruno Haible <bruno@clisp.org>
15023 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15024 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15025 Reported by Gary V. Vaughan <gary@gnu.org>.
15027 2009-02-26 Bruno Haible <bruno@clisp.org>
15029 Fix *printf behaviour regarding the %ls directive.
15030 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15031 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15032 NEED_PRINTF_DIRECTIVE_LS.
15033 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15034 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15035 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15036 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15037 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15038 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15039 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15040 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15041 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15042 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15043 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15044 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15045 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15046 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15047 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15048 * doc/posix-functions/fprintf.texi: Update.
15049 * doc/posix-functions/printf.texi: Update.
15050 * doc/posix-functions/snprintf.texi: Update.
15051 * doc/posix-functions/sprintf.texi: Update.
15052 * doc/posix-functions/vfprintf.texi: Update.
15053 * doc/posix-functions/vprintf.texi: Update.
15054 * doc/posix-functions/vsnprintf.texi: Update.
15055 * doc/posix-functions/vsprintf.texi: Update.
15056 * doc/glibc-functions/obstack_printf.texi: Update.
15057 * doc/glibc-functions/obstack_vprintf.texi: Update.
15058 Reported by Eric Blake.
15060 2009-02-25 Bruno Haible <bruno@clisp.org>
15062 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15064 Reported by Gary V. Vaughan <gary@gnu.org>.
15066 2009-02-25 Bruno Haible <bruno@clisp.org>
15068 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15069 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15070 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15071 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15072 Reported by Gary V. Vaughan <gary@gnu.org>.
15074 2009-02-25 Bruno Haible <bruno@clisp.org>
15076 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15077 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15078 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15079 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15080 Reported by Gary V. Vaughan <gary@gnu.org>.
15082 2009-02-25 Eric Blake <ebb9@byu.net>
15084 tests: skip fseek/ftell tests if ungetc is broken
15085 * m4/ungetc.m4: New file.
15086 * modules/fseek-tests: Split test, so ungetc dependency is
15087 separate from rest of test.
15088 * modules/fseeko-tests: Likewise.
15089 * modules/ftell-tests: Likewise.
15090 * modules/ftello-tests: Likewise.
15091 * tests/test-fseek.c (main): Isolate ungetc dependency.
15092 * tests/test-fseeko.c (main): Likewise.
15093 * tests/test-ftell.c (main): Likewise.
15094 * tests/test-ftello.c (main): Likewise.
15095 * tests/test-fseek2.sh: New file.
15096 * tests/test-fseeko2.sh: Likewise.
15097 * tests/test-ftell2.sh: Likewise.
15098 * tests/test-ftello2.sh: Likewise.
15100 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
15102 test-getaddrinfo: fix usage of skip return code 77
15103 * tests/test-gettaddrinfo.c: Return skip code 77 only
15104 for first occurance of skip (4x77 is not 77)
15106 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15108 strtod: avoid C99 decl-after-statement
15109 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15111 2009-02-24 Eric Blake <ebb9@byu.net>
15113 strtod: detect HP-UX 11.31 bug
15114 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15115 Reported by Gary V. Vaughan.
15117 2009-02-23 Bruno Haible <bruno@clisp.org>
15119 Fix invalid read past end of memory block.
15120 * lib/vasnprintf.c (DCHAR_SET): Define.
15121 (local_wcslen): Define only when needed.
15122 (local_strnlen, local_wcsnlen): New functions.
15123 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15124 directives that involve a conversion ourselves.
15125 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15126 wcsnlen, mbrtowc, wcrtomb.
15127 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15128 * tests/test-vasprintf-posix.c (test_function): Likewise.
15129 * tests/test-snprintf-posix.h (test_function): Likewise.
15130 * tests/test-sprintf-posix.h (test_function): Likewise.
15131 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15133 2009-02-22 Bruno Haible <bruno@clisp.org>
15135 Implement new clarified decomposition of Hangul syllables.
15136 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15137 of type LTV, return only a pairwise decomposition.
15138 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15140 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15141 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15142 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15144 2009-02-22 Bruno Haible <bruno@clisp.org>
15146 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15147 zero-length results and shrink excess allocated memory.
15148 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15149 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15150 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15151 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15152 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15153 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15154 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15155 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15156 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15157 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15158 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15159 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15161 2009-02-21 Bruno Haible <bruno@clisp.org>
15163 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15164 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15165 spaces after a period. Put a space between a macro name and its
15166 argument list. Trivial rewordings.
15167 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15168 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15169 (main): Return 0 explicitly.
15171 2009-02-21 Bruno Haible <bruno@clisp.org>
15173 Tests for module 'uninorm/filter'.
15174 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15175 * modules/uninorm/filter-tests: New file.
15177 New module 'uninorm/filter'.
15178 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15179 uninorm_filter_flush, uninorm_filter_free): New declarations.
15180 * lib/uninorm/uninorm-filter.c: New file.
15181 * modules/uninorm/filter: New file.
15183 2009-02-21 Bruno Haible <bruno@clisp.org>
15185 Tests for module 'uninorm/nfkc'.
15186 * tests/uninorm/test-nfkc.c: New file.
15187 * tests/uninorm/test-u8-nfkc.c: New file.
15188 * tests/uninorm/test-u16-nfkc.c: New file.
15189 * tests/uninorm/test-u32-nfkc.c: New file.
15190 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15191 * tests/uninorm/test-u32-nfkc-big.c: New file.
15192 * modules/uninorm/nfkc-tests: New file.
15194 New module 'uninorm/nfkc'.
15195 * lib/uninorm/nfkc.c: New file.
15196 * modules/uninorm/nfkc: New file.
15198 Tests for module 'uninorm/nfkd'.
15199 * tests/uninorm/test-nfkd.c: New file.
15200 * tests/uninorm/test-u8-nfkd.c: New file.
15201 * tests/uninorm/test-u16-nfkd.c: New file.
15202 * tests/uninorm/test-u32-nfkd.c: New file.
15203 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15204 * tests/uninorm/test-u32-nfkd-big.c: New file.
15205 * modules/uninorm/nfkd-tests: New file.
15207 New module 'uninorm/nfkd'.
15208 * lib/uninorm/nfkd.c: New file.
15209 * modules/uninorm/nfkd: New file.
15211 Tests for module 'uninorm/nfc'.
15212 * tests/uninorm/test-nfc.c: New file.
15213 * tests/uninorm/test-u8-nfc.c: New file.
15214 * tests/uninorm/test-u16-nfc.c: New file.
15215 * tests/uninorm/test-u32-nfc.c: New file.
15216 * tests/uninorm/test-u32-nfc-big.sh: New file.
15217 * tests/uninorm/test-u32-nfc-big.c: New file.
15218 * modules/uninorm/nfc-tests: New file.
15220 New module 'uninorm/nfc'.
15221 * lib/uninorm/nfc.c: New file.
15222 * modules/uninorm/nfc: New file.
15224 Tests for module 'uninorm/nfd'.
15225 * tests/uninorm/test-nfd.c: New file.
15226 * tests/uninorm/test-u8-nfd.c: New file.
15227 * tests/uninorm/test-u16-nfd.c: New file.
15228 * tests/uninorm/test-u32-nfd.c: New file.
15229 * tests/uninorm/test-u32-nfd-big.sh: New file.
15230 * tests/uninorm/test-u32-nfd-big.c: New file.
15231 * tests/uninorm/test-u32-normalize-big.h: New file.
15232 * tests/uninorm/test-u32-normalize-big.c: New file.
15233 * tests/uninorm/NormalizationTest.txt: New file, created from
15234 Unicode 5.1.0 NormalizationTest.txt.
15235 * modules/uninorm/nfd-tests: New file.
15237 New module 'uninorm/nfd'.
15238 * lib/uninorm/nfd.c: New file.
15239 * modules/uninorm/nfd: New file.
15241 New module 'uninorm/u32-normalize'.
15242 * lib/uninorm/u32-normalize.c: New file.
15243 * modules/uninorm/u32-normalize: New file.
15245 New module 'uninorm/u16-normalize'.
15246 * lib/uninorm/u16-normalize.c: New file.
15247 * modules/uninorm/u16-normalize: New file.
15249 New module 'uninorm/u8-normalize'.
15250 * lib/uninorm/u8-normalize.c: New file.
15251 * lib/uninorm/normalize-internal.h: New file.
15252 * lib/uninorm/u-normalize-internal.h: New file.
15253 * modules/uninorm/u8-normalize: New file.
15255 New module 'uninorm/decompose-internal'.
15256 * lib/uninorm/decompose-internal.c: New file.
15257 * modules/uninorm/decompose-internal: New file.
15259 Tests for module 'uninorm/composition'.
15260 * tests/uninorm/test-composition.c: New file.
15261 * modules/uninorm/composition-tests: New file.
15263 New module 'uninorm/composition'.
15264 * lib/uninorm/composition.c: New file.
15265 * lib/uninorm/composition-table.gperf: New file, generated by
15267 * modules/uninorm/composition: New file.
15269 Tests for module 'uninorm/compat-decomposition'.
15270 * tests/uninorm/test-compat-decomposition.c: New file.
15271 * modules/uninorm/compat-decomposition-tests: New file.
15273 New module 'uninorm/compat-decomposition'.
15274 * lib/uninorm/decompose-internal.h: New file.
15275 * lib/uninorm/compat-decomposition.c: New file.
15276 * modules/uninorm/compat-decomposition: New file.
15278 Tests for module 'uninorm/canonical-decomposition'.
15279 * tests/uninorm/test-canonical-decomposition.c: New file.
15280 * modules/uninorm/canonical-decomposition-tests: New file.
15282 New module 'uninorm/canonical-decomposition'.
15283 * lib/uninorm/canonical-decomposition.c: New file.
15284 * modules/uninorm/canonical-decomposition: New file.
15286 Tests for module 'uninorm/decomposition'.
15287 * tests/uninorm/test-decomposition.c: New file.
15288 * modules/uninorm/decomposition-tests: New file.
15290 New module 'uninorm/decomposition'.
15291 * lib/uninorm/decomposition.c: New file.
15292 * modules/uninorm/decomposition: New file.
15294 New module 'uninorm/decomposition-table'.
15295 * lib/uninorm/decomposition-table.h: New file.
15296 * lib/uninorm/decomposition-table.c: New file.
15297 * lib/uninorm/decomposition-table1.h: New file, generated by
15299 * lib/uninorm/decomposition-table2.h: New file, generated by
15301 * modules/uninorm/decomposition-table: New file.
15303 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15304 (UC_DECOMP_*): New enumeration items.
15305 (get_decomposition): New function.
15306 (struct decomp_table): New type.
15307 (output_decomposition, output_decomposition_tables): New functions.
15308 (unicode_composition_exclusions): New variable.
15309 (fill_composition_exclusions, debug_output_composition_tables): New
15311 (main): Accept one more argument. Invoke fill_composition_exclusions.
15312 Output decomposition and composition tables.
15314 New module 'uninorm/base'.
15315 * lib/uninorm.h: New file.
15316 * lib/unictype.h: Update comment.
15317 * modules/uninorm/base: New file.
15319 2009-02-21 David Lutterkort <lutter@redhat.com>
15321 Tests for module 'safe-alloc'.
15322 * tests/test-safe-alloc.c: New file.
15323 * modules/safe-alloc-tests: New file.
15325 New module 'safe-alloc'.
15326 * lib/safe-alloc.h: New file.
15327 * lib/safe-alloc.c: New file.
15328 * m4/safe-alloc.m4: New file.
15329 * modules/safe-alloc: New file.
15330 * doc/safe-alloc.texi: New file.
15331 * doc/gnulib.texi: Include it.
15332 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15335 2009-02-18 Bruno Haible <bruno@clisp.org>
15337 Fix link error on non-glibc systems.
15338 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15340 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15342 2009-02-18 Jim Meyering <meyering@redhat.com>
15344 fts: avoid used-uninitialized error due to recent change
15345 * lib/fts.c (fts_read): Guard uses of the new member,
15346 parent->fts_n_dirs_remaining, since it's not relevant for
15347 the parent of a directory specified on the command-line.
15349 2009-02-17 James Youngman <jay@gnu.org>
15350 Bruno Haible <bruno@clisp.org>
15352 * m4/include_next.m4: Reformulate comment.
15354 2009-02-16 Jim Meyering <meyering@redhat.com>
15356 fts: add #if guards so that the fts_lgpl module still builds
15357 * lib/fts.c: Guard just-added hash-table-using parts with
15358 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15359 Reported by Simon Josefsson.
15361 2009-02-15 Bruno Haible <bruno@clisp.org>
15363 * modules/array-mergesort-tests: New file.
15364 * tests/test-array-mergesort.c: New file.
15366 New module 'array-mergesort'.
15367 * modules/array-mergesort: New file.
15368 * lib/array-mergesort.h: New file.
15370 2009-02-15 Bruno Haible <bruno@clisp.org>
15372 Fix 2009-02-07 commit.
15373 * lib/gen-uni-tables.c (output_predicate, output_category,
15374 output_combclass, output_bidi_category, output_decimal_digit,
15375 output_digit, output_numeric, output_mirror, output_scripts,
15376 output_ident_category, output_simple_mapping): Fix format directives.
15377 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15379 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15381 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15382 fixes are available from IBM.
15384 2009-02-13 Jim Meyering <meyering@redhat.com>
15386 fts: arrange not to stat non-directories in more cases
15387 This makes GNU find (when it doesn't need to stat each file)
15388 *much* more efficient at traversing reiserfs file systems.
15389 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15390 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15391 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15392 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15393 (leaf_optimization_applies): New function.
15394 (LCO_hash, LCO_compare): New helper functions.
15395 (link_count_optimize_ok): New function.
15396 (fts_stat): Initialize new member (if dir).
15397 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15398 we've just stat'ed a directory. Skip the stat call when possible.
15400 Note this AFS-related exchange:
15401 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15402 and note find's pioctl call in find/fstype.c.
15403 But that is necessary only if you want to enable the
15404 optimization for AFS, and for now, I don't.
15406 fts: move a function definition "up" (no semantic change)
15407 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15408 "up" to precede upcoming use of a related function.
15410 2009-02-11 Jim Meyering <meyering@redhat.com>
15412 fts: correct internal computation of nlinks (optimization-related)
15413 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15414 whether the current entry is a directory, so don't test it.
15416 2009-02-10 Bruno Haible <bruno@clisp.org>
15418 Tests for module 'uniwbrk/ulc-wordbreaks'.
15419 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15420 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15421 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15423 Tests for module 'uniwbrk/u32-wordbreaks'.
15424 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15425 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15427 Tests for module 'uniwbrk/u16-wordbreaks'.
15428 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15429 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15431 Tests for module 'uniwbrk/u8-wordbreaks'.
15432 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15433 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15435 2009-02-10 Bruno Haible <bruno@clisp.org>
15437 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15439 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15440 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15441 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15443 2009-02-10 Simon Josefsson <simon@josefsson.org>
15445 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15446 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15448 2009-02-10 Bruno Haible <bruno@clisp.org>
15450 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15451 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15452 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15453 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15454 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15455 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15457 2009-02-09 Simon Josefsson <simon@josefsson.org>
15459 * lib/sockets.h (gl_fd_to_handle): New function.
15461 * tests/test-sockets.c: Call gl_fd_to_handle.
15463 2009-02-09 Bruno Haible <bruno@clisp.org>
15465 * doc/havelib.texi: Document the conventions on bi-arch systems.
15467 2009-02-08 Bruno Haible <bruno@clisp.org>
15469 Document the AC_LIB_LINKFLAGS macro.
15470 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15471 * doc/gnulib.texi: Include it.
15473 2009-02-08 Bruno Haible <bruno@clisp.org>
15475 Fix wrong order of sections, compared to TOC.
15476 * doc/gnulib.texi: Include relocatable-maint.texi after the
15477 "Regular expressions" node, not before.
15479 2009-02-08 Bruno Haible <bruno@clisp.org>
15481 Tests for module 'unicase/totitle'.
15482 * modules/unicase/totitle-tests: New file.
15484 Tests for module 'unicase/tolower'.
15485 * modules/unicase/tolower-tests: New file.
15487 Tests for module 'unicase/toupper'.
15488 * modules/unicase/toupper-tests: New file.
15489 * tests/unicase/test-mapping-part1.h: New file.
15490 * tests/unicase/test-mapping-part2.h: New file.
15492 New module 'unicase/totitle'.
15493 * modules/unicase/totitle: New file.
15494 * lib/unicase/totitle.c: New file.
15496 New module 'unicase/tolower'.
15497 * modules/unicase/tolower: New file.
15498 * lib/unicase/tolower.c: New file.
15500 New module 'unicase/toupper'.
15501 * modules/unicase/toupper: New file.
15502 * lib/unicase/toupper.c: New file.
15503 * lib/unicase/simple-mapping.h: New file.
15505 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15506 (mapping_table): New structure.
15507 (output_simple_mapping): New function.
15508 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15509 * modules/gen-uni-tables (Description): Update.
15510 * lib/unicase/toupper.h: New file, automatically generated by
15512 * lib/unicase/tolower.h: New file, automatically generated by
15514 * lib/unicase/totitle.h: New file, automatically generated by
15516 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15518 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15520 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15523 New module 'unicase/base'.
15524 * modules/unicase/base: New file.
15525 * lib/unicase.h: New file.
15527 2009-02-08 Bruno Haible <bruno@clisp.org>
15529 New module 'uniwbrk/ulc-wordbreaks'.
15530 * modules/uniwbrk/ulc-wordbreaks: New file.
15531 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15533 New module 'uniwbrk/u32-wordbreaks'.
15534 * modules/uniwbrk/u32-wordbreaks: New file.
15535 * lib/uniwbrk/u32-wordbreaks.c: New file.
15537 New module 'uniwbrk/u16-wordbreaks'.
15538 * modules/uniwbrk/u16-wordbreaks: New file.
15539 * lib/uniwbrk/u16-wordbreaks.c: New file.
15541 New module 'uniwbrk/u8-wordbreaks'.
15542 * modules/uniwbrk/u8-wordbreaks: New file.
15543 * lib/uniwbrk/u8-wordbreaks.c: New file.
15544 * lib/uniwbrk/u-wordbreaks.h: New file.
15546 New module 'uniwbrk/table'.
15547 * modules/uniwbrk/table: New file.
15548 * lib/uniwbrk/wbrktable.h: New file.
15549 * lib/uniwbrk/wbrktable.c: New file.
15551 New module 'uniwbrk/wordbreak-property'.
15552 * modules/uniwbrk/wordbreak-property: New file.
15553 * lib/uniwbrk/wordbreak-property.c: New file.
15555 * lib/gen-uni-tables.c (WBP_*): New enum items.
15556 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15557 (unicode_org_wbp): New variable.
15558 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15560 (wbp_table): New structure.
15561 (output_wbp, output_wbrk_tables): New functions.
15562 (main): Accept additional argument. Invoke fill_org_wbp,
15563 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15564 output_wbrk_tables.
15565 * modules/gen-uni-tables (Description): Update.
15566 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15569 New module 'uniwbrk/base'.
15570 * modules/uniwbrk/base: New file.
15571 * lib/uniwbrk.h: New file.
15573 2009-02-08 Bruno Haible <bruno@clisp.org>
15575 Update to Unicode 5.1.0.
15576 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15578 (is_property_default_ignorable_code_point): Don't include characters
15579 of category Cc or Cs and not-a-characters.
15580 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15581 U+0D79, U+109E, U+109F, U+A60C.
15582 * lib/unictype/bidi_of.h: Regenerated.
15583 * lib/unictype/blocks.h: Regenerated.
15584 * lib/unictype/categ_C.h: Regenerated.
15585 * lib/unictype/categ_Cf.h: Regenerated.
15586 * lib/unictype/categ_Cn.h: Regenerated.
15587 * lib/unictype/categ_L.h: Regenerated.
15588 * lib/unictype/categ_Ll.h: Regenerated.
15589 * lib/unictype/categ_Lm.h: Regenerated.
15590 * lib/unictype/categ_Lo.h: Regenerated.
15591 * lib/unictype/categ_Lu.h: Regenerated.
15592 * lib/unictype/categ_M.h: Regenerated.
15593 * lib/unictype/categ_Mc.h: Regenerated.
15594 * lib/unictype/categ_Me.h: Regenerated.
15595 * lib/unictype/categ_Mn.h: Regenerated.
15596 * lib/unictype/categ_N.h: Regenerated.
15597 * lib/unictype/categ_Nd.h: Regenerated.
15598 * lib/unictype/categ_Nl.h: Regenerated.
15599 * lib/unictype/categ_No.h: Regenerated.
15600 * lib/unictype/categ_P.h: Regenerated.
15601 * lib/unictype/categ_Pd.h: Regenerated.
15602 * lib/unictype/categ_Pe.h: Regenerated.
15603 * lib/unictype/categ_Pf.h: Regenerated.
15604 * lib/unictype/categ_Pi.h: Regenerated.
15605 * lib/unictype/categ_Po.h: Regenerated.
15606 * lib/unictype/categ_Ps.h: Regenerated.
15607 * lib/unictype/categ_S.h: Regenerated.
15608 * lib/unictype/categ_Sk.h: Regenerated.
15609 * lib/unictype/categ_Sm.h: Regenerated.
15610 * lib/unictype/categ_So.h: Regenerated.
15611 * lib/unictype/categ_of.h: Regenerated.
15612 * lib/unictype/combining.h: Regenerated.
15613 * lib/unictype/ctype_alnum.h: Regenerated.
15614 * lib/unictype/ctype_alpha.h: Regenerated.
15615 * lib/unictype/ctype_graph.h: Regenerated.
15616 * lib/unictype/ctype_lower.h: Regenerated.
15617 * lib/unictype/ctype_print.h: Regenerated.
15618 * lib/unictype/ctype_punct.h: Regenerated.
15619 * lib/unictype/ctype_upper.h: Regenerated.
15620 * lib/unictype/decdigit.h: Regenerated.
15621 * lib/unictype/digit.h: Regenerated.
15622 * lib/unictype/mirror.h: Regenerated.
15623 * lib/unictype/numeric.h: Regenerated.
15624 * lib/unictype/pr_alphabetic.h: Regenerated.
15625 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15626 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15627 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15628 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15629 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15630 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15631 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15632 * lib/unictype/pr_combining.h: Regenerated.
15633 * lib/unictype/pr_dash.h: Regenerated.
15634 * lib/unictype/pr_decimal_digit.h: Regenerated.
15635 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15636 * lib/unictype/pr_deprecated.h: Regenerated.
15637 * lib/unictype/pr_diacritic.h: Regenerated.
15638 * lib/unictype/pr_extender.h: Regenerated.
15639 * lib/unictype/pr_format_control.h: Regenerated.
15640 * lib/unictype/pr_grapheme_base.h: Regenerated.
15641 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15642 * lib/unictype/pr_grapheme_link.h: Regenerated.
15643 * lib/unictype/pr_id_continue.h: Regenerated.
15644 * lib/unictype/pr_id_start.h: Regenerated.
15645 * lib/unictype/pr_ideographic.h: Regenerated.
15646 * lib/unictype/pr_ignorable_control.h: Regenerated.
15647 * lib/unictype/pr_lowercase.h: Regenerated.
15648 * lib/unictype/pr_math.h: Regenerated.
15649 * lib/unictype/pr_numeric.h: Regenerated.
15650 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15651 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15652 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15653 * lib/unictype/pr_other_id_continue.h: Regenerated.
15654 * lib/unictype/pr_other_lowercase.h: Regenerated.
15655 * lib/unictype/pr_other_math.h: Regenerated.
15656 * lib/unictype/pr_punctuation.h: Regenerated.
15657 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15658 * lib/unictype/pr_soft_dotted.h: Regenerated.
15659 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15660 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15661 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15662 * lib/unictype/pr_uppercase.h: Regenerated.
15663 * lib/unictype/pr_xid_continue.h: Regenerated.
15664 * lib/unictype/pr_xid_start.h: Regenerated.
15665 * lib/unictype/pr_zero_width.h: Regenerated.
15666 * lib/unictype/scripts.h: Regenerated.
15667 * lib/unictype/scripts_byname.gperf: Regenerated.
15668 * lib/unictype/sy_java_ident.h: Regenerated.
15669 * lib/unilbrk/lbrkprop1.h: Regenerated.
15670 * lib/unilbrk/lbrkprop2.h: Regenerated.
15671 * tests/unictype/test-categ_C.c: Regenerated.
15672 * tests/unictype/test-categ_Cf.c: Regenerated.
15673 * tests/unictype/test-categ_Cn.c: Regenerated.
15674 * tests/unictype/test-categ_L.c: Regenerated.
15675 * tests/unictype/test-categ_Ll.c: Regenerated.
15676 * tests/unictype/test-categ_Lm.c: Regenerated.
15677 * tests/unictype/test-categ_Lo.c: Regenerated.
15678 * tests/unictype/test-categ_Lu.c: Regenerated.
15679 * tests/unictype/test-categ_M.c: Regenerated.
15680 * tests/unictype/test-categ_Mc.c: Regenerated.
15681 * tests/unictype/test-categ_Me.c: Regenerated.
15682 * tests/unictype/test-categ_Mn.c: Regenerated.
15683 * tests/unictype/test-categ_N.c: Regenerated.
15684 * tests/unictype/test-categ_Nd.c: Regenerated.
15685 * tests/unictype/test-categ_Nl.c: Regenerated.
15686 * tests/unictype/test-categ_No.c: Regenerated.
15687 * tests/unictype/test-categ_P.c: Regenerated.
15688 * tests/unictype/test-categ_Pd.c: Regenerated.
15689 * tests/unictype/test-categ_Pe.c: Regenerated.
15690 * tests/unictype/test-categ_Pf.c: Regenerated.
15691 * tests/unictype/test-categ_Pi.c: Regenerated.
15692 * tests/unictype/test-categ_Po.c: Regenerated.
15693 * tests/unictype/test-categ_Ps.c: Regenerated.
15694 * tests/unictype/test-categ_S.c: Regenerated.
15695 * tests/unictype/test-categ_Sk.c: Regenerated.
15696 * tests/unictype/test-categ_Sm.c: Regenerated.
15697 * tests/unictype/test-categ_So.c: Regenerated.
15698 * tests/unictype/test-ctype_alnum.c: Regenerated.
15699 * tests/unictype/test-ctype_alpha.c: Regenerated.
15700 * tests/unictype/test-ctype_graph.c: Regenerated.
15701 * tests/unictype/test-ctype_lower.c: Regenerated.
15702 * tests/unictype/test-ctype_print.c: Regenerated.
15703 * tests/unictype/test-ctype_punct.c: Regenerated.
15704 * tests/unictype/test-ctype_upper.c: Regenerated.
15705 * tests/unictype/test-decdigit.h: Regenerated.
15706 * tests/unictype/test-digit.h: Regenerated.
15707 * tests/unictype/test-numeric.h: Regenerated.
15708 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15709 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15710 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15711 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15712 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15713 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15714 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15715 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15716 * tests/unictype/test-pr_combining.c: Regenerated.
15717 * tests/unictype/test-pr_dash.c: Regenerated.
15718 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15719 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15720 * tests/unictype/test-pr_deprecated.c: Regenerated.
15721 * tests/unictype/test-pr_diacritic.c: Regenerated.
15722 * tests/unictype/test-pr_extender.c: Regenerated.
15723 * tests/unictype/test-pr_format_control.c: Regenerated.
15724 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15725 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15726 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15727 * tests/unictype/test-pr_id_continue.c: Regenerated.
15728 * tests/unictype/test-pr_id_start.c: Regenerated.
15729 * tests/unictype/test-pr_ideographic.c: Regenerated.
15730 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15731 * tests/unictype/test-pr_lowercase.c: Regenerated.
15732 * tests/unictype/test-pr_math.c: Regenerated.
15733 * tests/unictype/test-pr_numeric.c: Regenerated.
15734 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15735 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15737 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15738 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15739 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15740 * tests/unictype/test-pr_other_math.c: Regenerated.
15741 * tests/unictype/test-pr_punctuation.c: Regenerated.
15742 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15743 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15744 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15745 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15746 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15747 * tests/unictype/test-pr_uppercase.c: Regenerated.
15748 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15749 * tests/unictype/test-pr_xid_start.c: Regenerated.
15750 * tests/unictype/test-pr_zero_width.c: Regenerated.
15752 Update to Unicode 5.1.0.
15753 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15754 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15755 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15756 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15757 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15758 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15759 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15760 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15761 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15762 (nonspacing_table_ind): Update.
15763 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15765 Update to Unicode 5.1.0.
15766 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15768 * lib/uniname/uniname.c (unicode_character_name,
15769 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15770 * lib/uniname/uninames.h: Regenerated.
15771 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15773 2009-02-07 Bruno Haible <bruno@clisp.org>
15775 Merge gen-ctype and gen-lbrk into a single program.
15776 * lib/gen-uni-tables.c: New file, incorporating
15777 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15778 Add directory prefixes to the names of the generated files.
15779 * lib/unictype/gen-ctype.c: Remove file.
15780 * lib/unilbrk/gen-lbrk.c: Remove file.
15781 * modules/gen-uni-tables: New file.
15782 * modules/unictype/gen-ctype: Remove file.
15783 * modules/unilbrk/gen-lbrk: Remove file.
15785 2009-02-07 Bruno Haible <bruno@clisp.org>
15787 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15789 New module 'unistr/u32-strcoll'.
15790 * modules/unistr/u32-strcoll: New file.
15791 * lib/unistr/u32-strcoll.c: New file.
15793 New module 'unistr/u16-strcoll'.
15794 * modules/unistr/u16-strcoll: New file.
15795 * lib/unistr/u16-strcoll.c: New file.
15797 New module 'unistr/u8-strcoll'.
15798 * modules/unistr/u8-strcoll: New file.
15799 * lib/unistr/u8-strcoll.c: New file.
15800 * lib/unistr/u-strcoll.h: New file.
15802 2009-02-07 Bruno Haible <bruno@clisp.org>
15804 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15805 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15806 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15807 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15808 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15809 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15811 2009-02-07 Bruno Haible <bruno@clisp.org>
15814 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15815 output_combclass, output_bidi_category, output_decimal_digit,
15816 output_digit, output_numeric, output_mirror, output_scripts,
15817 output_ident_category): Use proper width specifier in format strings.
15819 2009-02-07 Bruno Haible <bruno@clisp.org>
15821 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15824 2009-02-07 Jim Meyering <meyering@redhat.com>
15826 regex: avoid compilation failure with upcoming gcc-4.4
15827 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15828 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15829 "... error: integer overflow in preprocessor expression".
15831 2009-02-05 Ben Pfaff <blp@gnu.org>
15833 Fix link errors on Windows when close module is used.
15834 * modules/close: Add $(LIB_CLOSE) to Link section.
15835 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15836 $(LIB_CLOSE) on Windows.
15838 2009-02-05 Jim Meyering <meyering@redhat.com>
15840 still avoid unused-parameter warnings, but do it cleanly
15841 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15842 (get_fs_usage): Cast to void instead.
15843 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15844 (dev_from_mount_options, read_file_system_list): Cast to void.
15845 Prompted by Bruno Haible.
15847 2009-02-04 Jim Meyering <meyering@redhat.com>
15849 fsusage.c: correct copyright year
15850 * lib/fsusage.c: Reflect year in which the change is pushed into
15852 avoid misc. warnings
15853 * lib/fsusage.c (UNUSED_PARAM): Define.
15854 (get_fs_usage): Mark parameter "disk" as unused.
15855 * lib/getugroups.c (getgrent): Use "void" in prototype.
15856 * lib/mountlist.c: Mark unused parameters.
15857 (read_file_system_list): Declare a local with "const".
15858 * lib/nanosleep.c (getnow): Declare static.
15859 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15861 dirfd: set errno upon failure
15862 * lib/dirfd.c: Include <errno.h>.
15863 Set errno to ENOTSUP when returning -1.
15864 * modules/dirfd (Depends-on): Add errno.
15865 Suggested by John Kodis <kodis@comcast.net>.
15867 2009-02-01 Bruno Haible <bruno@clisp.org>
15869 Don't assume sizeof (long) >= sizeof (void *).
15870 * lib/memcmp.c: Include stdint.h.
15871 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15872 srcp2 to 'const byte *'.
15873 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15874 types to uintptr_t.
15875 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15876 * modules/memcmp (Depends-on): Add stdint.
15877 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15879 2009-01-30 Eric Blake <ebb9@byu.net>
15881 fix more require-before-expand issues
15882 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15883 expand, AC_PROG_AWK.
15884 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15886 2009-01-28 Eric Blake <ebb9@byu.net>
15888 version-etc: use consistent URL formatting
15889 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15890 Improve formatting. Use fputs for string without %.
15892 2009-01-28 Jim Meyering <meyering@redhat.com>
15894 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15895 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15896 "underquoted definition of NAME" from autoconf-2.59.
15898 2009-01-28 Bruno Haible <bruno@clisp.org>
15900 * doc/gnulib.texi: Add "Obsolete modules" to index.
15902 2009-01-28 Jim Meyering <meyering@redhat.com>
15904 useless-if-before-free: recognize more variants
15905 * build-aux/useless-if-before-free: Also recognize e.g.,
15906 if (NULL != p) free (p);
15908 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15910 test-getaddrinfo: skip (don't fail) this test when there's no network
15911 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15912 on the presumption that it means you lack network access.
15914 2009-01-26 Jim Meyering <meyering@redhat.com>
15916 fflush: avoid warnings on modern systems
15917 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15918 pos and result, into scopes where they're used.
15920 2009-01-26 Eric Blake <ebb9@byu.net>
15922 Silence warning reintroduced by recent extensions patch.
15923 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15924 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15927 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15928 * m4/00gnulib.m4: New file.
15929 * gnulib-tool (func_get_filelist): Always use it.
15930 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15931 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15933 2009-01-25 Bruno Haible <bruno@clisp.org>
15935 Make test-quotearg work on MacOS X and AIX.
15936 * tests/test-quotearg.sh: New file.
15937 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15938 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15939 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15940 include <libintl.h>.
15941 (fake_locale): Remove variable.
15942 (gettext, dgettext, dcgettext): Remove functions.
15943 (main): Instead of setting a fake locale, set a real locale. Call
15944 textdomain and bindtextdomain.
15945 * modules/quotearg-tests (Files): Add the new files.
15946 (Depends-on): Add gettext, setenv, unsetenv.
15947 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15948 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15949 Augment TESTS_ENVIRONMENT.
15951 2009-01-25 Bruno Haible <bruno@clisp.org>
15953 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15954 fr_FR.ISO8859-1 locale on MacOS X.
15955 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15956 ja_JP.eucJP locale on MacOS X.
15957 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15958 zh_CN.GB18030 locale on MacOS X.
15960 2009-01-25 Bruno Haible <bruno@clisp.org>
15962 Avoid link errors on MacOS X 10.3.
15963 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15964 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15966 2009-01-25 Bruno Haible <bruno@clisp.org>
15968 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15969 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15970 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15971 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15972 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15973 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15974 posix_spawnattr_init, posix_spawnattr_setsigmask,
15975 posix_spawnattr_setflags, posix_spawnattr_destroy.
15977 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15978 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15979 * modules/execute (Files): Remove m4/posix_spawn.m4.
15980 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15981 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15982 posix_spawnattr_init, posix_spawnattr_setsigmask,
15983 posix_spawnattr_setflags, posix_spawnattr_destroy.
15985 2009-01-25 Bruno Haible <bruno@clisp.org>
15987 * lib/glthread/threadlib.c: Include <stdlib.h>.
15989 2009-01-25 Bruno Haible <bruno@clisp.org>
15991 * lib/glthread/threadlib.c (dummy): New declaration.
15993 2009-01-25 Bruno Haible <bruno@clisp.org>
15995 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15996 multibyte characters also for the GB18030 encoding. Don't crash when
15997 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15999 2009-01-25 Bruno Haible <bruno@clisp.org>
16001 Avoid redefining 'struct random_data' on OSF/1 5.1.
16002 * lib/stdlib.in.h: Include <random.h> if it exists.
16003 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16004 HAVE_RANDOM_H. Include <random.h> when testing whether
16005 'struct random_data' exists.
16006 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16008 2009-01-25 Bruno Haible <bruno@clisp.org>
16010 Don't install charset.alias on MacOS X >= 10.3.
16011 * lib/localcharset.c (DARWIN7): New macro.
16012 (get_charset_aliases): Hardcode the result for Darwin7.
16013 * modules/localcharset (install-exec-local): Don't install
16014 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16016 2009-01-25 Bruno Haible <bruno@clisp.org>
16018 Don't install charset.alias on mingw and Cygwin.
16019 * modules/localcharset (install-exec-local): Don't install
16020 charset.alias on mingw and Cygwin, if the file does not yet exist.
16021 The result for these platforms is hardcoded in localcharset.c.
16023 2009-01-25 Bruno Haible <bruno@clisp.org>
16025 Make it possible again to use AC_GNU_SOURCE together with gnulib.
16026 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16027 before requiring AC_USE_SYSTEM_EXTENSIONS.
16029 2009-01-25 Jim Meyering <meyering@redhat.com>
16031 c-strtod: avoid warnings
16032 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16033 "assignment discards qualifiers from pointer target type" warnings.
16035 2009-01-24 Bruno Haible <bruno@clisp.org>
16037 Add support for non-UTF-8 locales on MacOS X.
16038 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16039 canonical encodings. For Darwin 7 and newer, don't map traditional
16040 encodings to UTF-8.
16041 Reported by Vincent Lefevre <vincent@vinc17.org>
16042 at <http://savannah.gnu.org/bugs/?25235>.
16044 2009-01-24 Bruno Haible <bruno@clisp.org>
16046 * doc/gnulib.texi (Obsolete modules): New section.
16047 Reported by Mike Frysinger <vapier@gentoo.org>.
16049 2009-01-24 Bruno Haible <bruno@clisp.org>
16051 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16054 2009-01-24 Bruno Haible <bruno@clisp.org>
16056 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16057 Reported by Eric Blake.
16059 2009-01-24 Bruno Haible <bruno@clisp.org>
16061 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16062 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16063 Reported by Gary V. Vaughan <gary@gnu.org>.
16065 2009-01-24 Bruno Haible <bruno@clisp.org>
16067 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16069 2009-01-23 Bruno Haible <bruno@clisp.org>
16071 Make c-strtod, c-strtold usable in libraries.
16072 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16073 (C_STRTOD): Call strdup instead of xstrdup.
16074 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16075 * modules/c-strtold (Depends-on): Likewise.
16076 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16077 * NEWS: Mention the change.
16078 Reported by Michael Gold <mgold@ncf.ca>.
16080 2009-01-23 Jim Meyering <meyering@redhat.com>
16082 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16083 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16084 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16086 2009-01-23 Simon Josefsson <simon@josefsson.org>
16088 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16090 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16091 * modules/version-etc (Description): Update.
16093 2009-01-22 Bruno Haible <bruno@clisp.org>
16095 Cache the C locale object.
16096 * lib/c-strtod.c (c_locale_cache): New variable.
16097 (c_locale): New function.
16098 (C_STRTOD): Use it, and don't call freelocale.
16099 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16100 Suggested by Paolo Bonzini.
16102 2009-01-21 Bruno Haible <bruno@clisp.org>
16104 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16105 conditions other than overflow.
16107 2009-01-21 Bruno Haible <bruno@clisp.org>
16109 * lib/c-strtod.c: Include errno.h.
16110 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16111 value from STRTOD_L and STRTOD.
16113 2009-01-21 Bruno Haible <bruno@clisp.org>
16114 and Jim Meyering <meyering@redhat.com>
16116 nanosleep: skip configure test (fail it) for apple universal builds
16117 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16118 universal builds, assume that nanosleep does not work.
16119 * modules/nanosleep (Depends-on): Add multiarch.
16121 mktime: skip configure test (fail it) for apple universal builds
16122 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16123 universal builds, assume that mktime does not work.
16124 * modules/mktime (Depends-on): Add multiarch.
16126 2009-01-21 Eric Blake <ebb9@byu.net>
16128 multiarch: avoid expand-before-require warning
16129 * modules/multiarch (configure.ac): Require, rather than expand,
16131 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16132 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16133 enforce that all clients require it. Partial reversion of
16136 error: avoid expand-before-require warning
16137 * modules/errno (configure.ac): Require, rather than expand,
16139 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16140 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16141 enforce that all clients require it.
16143 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16144 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16145 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16146 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16148 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16151 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16153 regex: do not depend on obsolete modules.
16154 * modules/regex: Remove memcmp and memmove.
16156 2009-01-20 Bruno Haible <bruno@clisp.org>
16158 Make the 'link' module link on Windows NT 4.
16159 * lib/link.c (_WIN32_WINNT): Don't define.
16160 (CreateHardLinkFuncType): New type.
16161 (CreateHardLinkFunc, initialized): New variables.
16162 (initialize): New function.
16163 (link): Invoke CreateHardLink indirectly through the function pointer.
16165 2009-01-20 Bruno Haible <bruno@clisp.org>
16167 Fix compilation failure on mingw.
16168 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16170 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16172 * doc/c-strtod.texi: Mention a couple of restrictions.
16174 2009-01-20 Jim Meyering <meyering@redhat.com>
16176 gettimeofday: move more declarations out of functions
16177 * lib/gettimeofday.c: Move extern declarations of tzset and
16178 gmtime out of containing functions. Prompted by Bruno Haible.
16180 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16182 regex: do not depend on obsolete modules.
16183 * modules/regex: Remove memcmp and memmove.
16185 2009-01-19 Bruno Haible <bruno@clisp.org>
16187 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16188 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16189 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16190 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16191 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16193 2009-01-19 Bruno Haible <bruno@clisp.org>
16195 * tests/test-link.c: Include <errno.h>.
16196 (main): Exit with code 77 when a hard link cannot be created due to
16198 * tests/test-link.sh: Skip test when a hard link cannot be created due
16199 to the file system.
16200 Suggested by Eric Blake.
16202 2009-01-19 Martin Lambers <marlam@marlam.de>
16204 * modules/link-tests: New file.
16205 * tests/test-link.sh: New file.
16206 * tests/test-link.c: New file.
16208 2009-01-19 Eric Blake <ebb9@byu.net>
16210 doc: mention another function added in cygwin 1.7.0
16211 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16212 Another new function in cygwin 1.7.
16214 2009-01-19 Bruno Haible <bruno@clisp.org>
16216 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16217 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16218 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16219 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16220 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16221 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16222 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16223 * m4/md4.m4 (gl_MD4): Likewise.
16224 * m4/md5.m4 (gl_MD5): Likewise.
16225 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16226 * m4/sha1.m4 (gl_SHA1): Likewise.
16227 * m4/sha256.m4 (gl_SHA256): Likewise.
16228 * m4/sha512.m4 (gl_SHA512): Likewise.
16230 2009-01-19 Bruno Haible <bruno@clisp.org>
16232 * modules/uniname/uniname-tests (Depends-on): Add progname.
16233 * tests/uniname/test-uninames.c: Include progname.h.
16234 (main): Call set_program_name.
16236 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16237 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16238 (main): Call set_program_name.
16240 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16241 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16242 (main): Call set_program_name.
16244 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16245 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16246 (main): Call set_program_name.
16248 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16249 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16250 (main): Call set_program_name.
16252 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16253 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16254 (main): Call set_program_name.
16256 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16257 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16258 (main): Call set_program_name.
16260 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16261 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16262 (main): Call set_program_name.
16264 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16265 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16266 (main): Call set_program_name.
16268 2009-01-19 Eric Blake <ebb9@byu.net>
16270 test-unistd: test previous patch
16271 * tests/test-unistd.c: Test *_FILENO macros.
16273 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16274 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16275 Guarantee a definition.
16276 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16277 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16278 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16279 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16280 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16282 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16283 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16284 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16286 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16287 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16288 (STDERR_FILENO): Likewise.
16289 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16290 (STDERR_FILENO): Likewise.
16291 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16292 (STDERR_FILENO): Likewise.
16293 Reported by Elbert Pol.
16295 2009-01-19 Eric Blake <ebb9@byu.net>
16297 doc: mention more functions added in cygwin 1.7.0
16298 * doc/posix-functions/abort.texi (abort): Update wording related
16300 * doc/posix-functions/daylight.texi (daylight): Likewise.
16301 * doc/posix-functions/optarg.texi (optarg): Likewise.
16302 * doc/posix-functions/optarg.texi (opterr): Likewise.
16303 * doc/posix-functions/optarg.texi (optind): Likewise.
16304 * doc/posix-functions/optarg.texi (optopt): Likewise.
16305 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16306 worked in 1.5.x, and was withdrawn in 1.7.
16307 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16308 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16310 * doc/posix-functions/perror.texi (perror): Likewise.
16311 * doc/posix-functions/printf.texi (printf): Likewise.
16312 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16313 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16314 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16315 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16316 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16317 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16318 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16320 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16322 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16324 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16325 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16327 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16328 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16329 * doc/posix-functions/confstr.texi (confstr): Likewise.
16330 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16331 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16332 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16333 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16334 * doc/posix-functions/fputws.texi (fputws): Likewise.
16335 * doc/posix-functions/fwide.texi (fwide): Likewise.
16336 * doc/posix-functions/getwc.texi (getwc): Likewise.
16337 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16338 * doc/posix-functions/putwc.texi (putwc): Likewise.
16339 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16340 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16341 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16342 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16343 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16344 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16345 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16346 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16347 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16348 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16349 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16351 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16353 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16354 * lib/ioctl.c: Include <sys/ioctl.h>.
16356 2009-01-19 Simon Josefsson <simon@josefsson.org>
16358 * modules/getdate-tests (Depends-on): Add progname.
16359 * tests/test-getdate.c: Use progname module, to avoid link errors
16360 on non-glibc systems.
16362 2009-01-18 Simon Josefsson <simon@josefsson.org>
16364 * modules/filenamecat-tests (Depends-on): Add progname.
16365 * modules/fstrcmp-tests (Depends-on): Likewise.
16367 * tests/test-filenamecat.c: Use progname module, to avoid link
16368 errors on non-glibc systems.
16369 * tests/test-fstrcmp.c: Likewise.
16371 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16373 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16374 * lib/gettimeofday.c: Move extern declaration out of function.
16376 2009-01-18 Bruno Haible <bruno@clisp.org>
16378 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16379 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16380 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16382 2009-01-18 Bruno Haible <bruno@clisp.org>
16384 * lib/strftime.c (MEMPCPY): Remove unused macro.
16385 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16387 2009-01-18 Martin Lambers <marlam@marlam.de>
16390 * lib/unistd.in.h (link): New declaration.
16391 * lib/link.c: New file.
16392 * m4/link.m4: New file.
16393 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16395 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16396 * modules/link: New file.
16397 * doc/posix-functions/link.texi: Mention the new module.
16399 2009-01-18 Bruno Haible <bruno@clisp.org>
16401 * tests/test-avltree_list.c (main): Call set_program_name.
16402 * tests/test-avltree_oset.c (main): Likewise.
16403 * tests/test-obstack-printf.c: Include progname.h.
16404 (main): Call set_program_name.
16405 * tests/test-quotearg.c: Include progname.h.
16406 (main): Call set_program_name.
16407 * tests/test-xmemdup0.c: Include progname.h.
16408 (main): Call set_program_name.
16410 2009-01-18 Bruno Haible <bruno@clisp.org>
16412 New module 'alphasort'.
16413 * lib/dirent.in.h (alphasort): New declaration.
16414 * lib/alphasort.c: New file, from glibc with modifications.
16415 * m4/alphasort.m4: New file.
16416 * modules/alphasort: New file.
16417 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16419 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16421 * doc/posix-functions/alphasort.texi: Mention the new module and the
16422 portability problems.
16424 2009-01-18 Bruno Haible <bruno@clisp.org>
16426 New module 'scandir'.
16427 * lib/dirent.in.h (scandir): New declaration.
16428 * lib/scandir.c: New file, from glibc with modifications.
16429 * m4/scandir.m4: New file.
16430 * modules/scandir: New file.
16431 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16433 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16435 * doc/posix-functions/scandir.texi: Mention the new module and the
16436 portability problems.
16438 2009-01-17 Bruno Haible <bruno@clisp.org>
16440 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16441 Update documentation.
16442 (func_remove_suffix): Escape all dots in the suffix. Update
16444 (func_filter_filelist): Update documentation.
16445 Reported by Ralf Wildenhues.
16447 2009-01-17 Bruno Haible <bruno@clisp.org>
16449 * modules/dprintf-posix-tests: New file.
16450 * tests/test-dprintf-posix.sh: New file.
16451 * tests/test-dprintf-posix.c: New file.
16453 New modules 'dprintf', 'dprintf-posix'.
16454 * lib/stdio.in.h (dprintf): New declaration.
16455 * lib/dprintf.c: New file.
16456 * m4/dprintf.m4: New file.
16457 * m4/dprintf-posix.m4: New file.
16458 * modules/dprintf: New file.
16459 * modules/dprintf-posix: New file.
16460 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16461 HAVE_DPRINTF, REPLACE_DPRINTF.
16462 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16463 HAVE_DPRINTF, REPLACE_DPRINTF.
16464 * doc/posix-functions/dprintf.texi: Mention the new modules.
16466 2009-01-17 Bruno Haible <bruno@clisp.org>
16468 * modules/vdprintf-posix-tests: New file.
16469 * tests/test-vdprintf-posix.sh: New file.
16470 * tests/test-vdprintf-posix.c: New file.
16472 New modules 'vdprintf', 'vdprintf-posix'.
16473 * lib/stdio.in.h (vdprintf): New declaration.
16474 * lib/vdprintf.c: New file.
16475 * m4/vdprintf.m4: New file.
16476 * m4/vdprintf-posix.m4: New file.
16477 * modules/vdprintf: New file.
16478 * modules/vdprintf-posix: New file.
16479 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16480 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16481 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16482 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16483 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16485 2009-01-17 Bruno Haible <bruno@clisp.org>
16487 Fix replacement of fopen on mingw.
16488 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16491 2009-01-17 Bruno Haible <bruno@clisp.org>
16493 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16494 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16496 2009-01-17 Bruno Haible <bruno@clisp.org>
16498 Avoid test-fflush2.sh failure on mingw.
16499 * tests/test-fflush2.c: Include binary-io.h.
16500 (main): Put standard input into binary mode.
16501 * modules/fflush-tests (Depends-on): Add binary-io.
16503 2009-01-17 Bruno Haible <bruno@clisp.org>
16505 * lib/wchar.in.h: In another particular situation, include only the
16506 system's <wchar.h> file.
16507 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16508 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16509 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16511 2009-01-17 Bruno Haible <bruno@clisp.org>
16513 Support for stripping executables in --enable-relocatable.
16514 * build-aux/install-reloc: Expect one more argument, or an environment
16515 variable RELOC_STRIP_PROG. If set, strip the destination program and
16517 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16519 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16520 to set RELOCATABLE_STRIP.
16521 * NEWS: Mention the new Makefile requirement.
16523 2009-01-17 Bruno Haible <bruno@clisp.org>
16525 * build-aux/install-reloc: Remove debugging information left over by
16526 C compiler on MacOS X.
16528 2009-01-17 Bruno Haible <bruno@clisp.org>
16530 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16531 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16532 _NSGetExecutablePath.
16534 2009-01-16 Jim Meyering <meyering@redhat.com>
16536 strerror: avoid warnings about discarding "const"
16537 * lib/strerror.c (rpl_strerror): Instead of returning a const
16538 string from each and every "case", use a variable, and add a single
16539 cast after the switch.
16541 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16543 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16545 2009-01-16 Bruno Haible <bruno@clisp.org>
16547 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16548 array initializer syntax that also works in C++ mode.
16549 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16551 2009-01-16 Jim Meyering <meyering@redhat.com>
16553 poll: suppress a warning
16554 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16555 to ignore "...unsigned expression < 0 is always false" warnings.
16557 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16559 poll: remove declarations of unused variables
16560 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16561 sockbuf and optlen.
16563 2009-01-15 Bruno Haible <bruno@clisp.org>
16565 Make fflush-after-ungetc POSIX compliant on BSD systems.
16566 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16567 (clear_ungetc_buffer): Implement also for other systems.
16568 (rpl_fflush): On glibc systems, invoke
16569 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16570 clear_ungetc_buffer after fetching the stream's position, not before.
16572 2009-01-15 Bruno Haible <bruno@clisp.org>
16574 Make fflush-after-ungetc POSIX compliant on glibc systems.
16575 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16577 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16578 (rpl_fflush): On glibc systems, simply call the system's fflush
16579 function after clearing the ungetc buffer.
16580 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16581 Instead, lseek only to the end of file, then use the system's fseeko
16582 for the rest. On glibc systems, reset the EOF indicator bit.
16584 2009-01-15 Jim Meyering <meyering@redhat.com>
16586 openmp.m4: revert quote-adding change, for portability to older autoconf
16587 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16588 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16589 Simon Josefsson noticed the problem when using autoconf-2.61.
16591 2009-01-15 Bruno Haible <bruno@clisp.org>
16593 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16594 * tests/test-fflush2.c (ASSERT): Always fail.
16595 (main): Add two tests for fflush() after ungetc(), taking into account
16596 the Austin Group's clarification.
16597 Suggested by Eric Blake.
16599 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16601 mktime.m4: remove K&R-style function prototypes
16602 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16603 for the Sun C++ compiler.
16605 2009-01-14 Bruno Haible <bruno@clisp.org>
16607 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16608 while including <wchar.h>.
16609 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16610 the system's <wchar.h> file.
16611 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16613 2009-01-14 Bruno Haible <bruno@clisp.org>
16615 * m4/csharp.m4: Don't mention gettext on the serial number line.
16616 * m4/csharpexec.m4: Likewise.
16617 * m4/eaccess.m4: Likewise.
16618 * m4/javaexec.m4: Likewise.
16619 * m4/sig_atomic_t.m4: Likewise.
16620 * m4/tmpdir.m4: Likewise.
16621 * m4/intldir.m4: Bump gettext version.
16622 * m4/lib-ld.m4: Likewise.
16624 2009-01-14 Bruno Haible <bruno@clisp.org>
16626 * lib/progname.c (set_program_name): Add more comments.
16627 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16629 2009-01-14 Simon Josefsson <simon@josefsson.org>
16631 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16632 were sys/stat.h does not define it.
16634 2009-01-14 Jim Meyering <meyering@redhat.com>
16636 many *.m4 files: improve m4 quoting
16637 99% of this change was performed by running the following commands:
16638 git ls-files | grep '\.m4$' | xargs perl -pi \
16639 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16640 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16641 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16642 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16643 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16644 The remainder were to add Copyright dates, increment serial numbers,
16645 undo some changes in comments, exclude m4/intl.m4, and add quotes
16646 around the "1" in ",1" where the unusual spacing prohibited the
16647 above regexps from doing the job. For more details, see
16648 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16649 * m4/acl.m4: Modified.
16650 * m4/afs.m4: Likewise.
16651 * m4/alloca.m4: Likewise.
16652 * m4/argp.m4: Likewise.
16653 * m4/argz.m4: Likewise.
16654 * m4/atexit.m4: Likewise.
16655 * m4/bison-i18n.m4: Likewise.
16656 * m4/bison.m4: Likewise.
16657 * m4/byteswap.m4: Likewise.
16658 * m4/c-stack.m4: Likewise.
16659 * m4/c-strtod.m4: Likewise.
16660 * m4/calloc.m4: Likewise.
16661 * m4/canonicalize-lgpl.m4: Likewise.
16662 * m4/chown.m4: Likewise.
16663 * m4/clock_time.m4: Likewise.
16664 * m4/codeset.m4: Likewise.
16665 * m4/copy-file.m4: Likewise.
16666 * m4/csharp.m4: Likewise.
16667 * m4/csharpcomp.m4: Likewise.
16668 * m4/csharpexec.m4: Likewise.
16669 * m4/d-ino.m4: Likewise.
16670 * m4/d-type.m4: Likewise.
16671 * m4/dirfd.m4: Likewise.
16672 * m4/double-slash-root.m4: Likewise.
16673 * m4/eaccess.m4: Likewise.
16674 * m4/eealloc.m4: Likewise.
16675 * m4/environ.m4: Likewise.
16676 * m4/errno_h.m4: Likewise.
16677 * m4/euidaccess.m4: Likewise.
16678 * m4/execute.m4: Likewise.
16679 * m4/fatal-signal.m4: Likewise.
16680 * m4/fchdir.m4: Likewise.
16681 * m4/fcntl_h.m4: Likewise.
16682 * m4/fileblocks.m4: Likewise.
16683 * m4/filenamecat.m4: Likewise.
16684 * m4/findprog.m4: Likewise.
16685 * m4/flexmember.m4: Likewise.
16686 * m4/fnmatch.m4: Likewise.
16687 * m4/fopen.m4: Likewise.
16688 * m4/fpending.m4: Likewise.
16689 * m4/fprintf-posix.m4: Likewise.
16690 * m4/free.m4: Likewise.
16691 * m4/frexp.m4: Likewise.
16692 * m4/frexpl.m4: Likewise.
16693 * m4/fsusage.m4: Likewise.
16694 * m4/ftruncate.m4: Likewise.
16695 * m4/gc-camellia.m4: Likewise.
16696 * m4/gc-random.m4: Likewise.
16697 * m4/gc.m4: Likewise.
16698 * m4/getaddrinfo.m4: Likewise.
16699 * m4/getcwd-abort-bug.m4: Likewise.
16700 * m4/getcwd-path-max.m4: Likewise.
16701 * m4/getdate.m4: Likewise.
16702 * m4/getdomainname.m4: Likewise.
16703 * m4/getgroups.m4: Likewise.
16704 * m4/gethostname.m4: Likewise.
16705 * m4/gethrxtime.m4: Likewise.
16706 * m4/getline.m4: Likewise.
16707 * m4/getloadavg.m4: Likewise.
16708 * m4/getndelim2.m4: Likewise.
16709 * m4/getpass.m4: Likewise.
16710 * m4/gettext.m4: Likewise.
16711 * m4/gettime.m4: Likewise.
16712 * m4/gettimeofday.m4: Likewise.
16713 * m4/gnulib-common.m4: Likewise.
16714 * m4/group-member.m4: Likewise.
16715 * m4/host-os.m4: Likewise.
16716 * m4/iconv.m4: Likewise.
16717 * m4/iconv_open.m4: Likewise.
16718 * m4/inet_ntop.m4: Likewise.
16719 * m4/inet_pton.m4: Likewise.
16720 * m4/inline.m4: Likewise.
16721 * m4/intldir.m4: Likewise.
16722 * m4/intlmacosx.m4: Likewise.
16723 * m4/intmax.m4: Likewise.
16724 * m4/intmax_t.m4: Likewise.
16725 * m4/inttypes.m4: Likewise.
16726 * m4/inttypes_h.m4: Likewise.
16727 * m4/inttypes-pri.m4: Likewise.
16728 * m4/isapipe.m4: Likewise.
16729 * m4/isnand.m4: Likewise.
16730 * m4/isnanf.m4: Likewise.
16731 * m4/isnanl.m4: Likewise.
16732 * m4/javacomp.m4: Likewise.
16733 * m4/javaexec.m4: Likewise.
16734 * m4/jm-winsz1.m4: Likewise.
16735 * m4/jm-winsz2.m4: Likewise.
16736 * m4/lchown.m4: Likewise.
16737 * m4/lcmessage.m4: Likewise.
16738 * m4/ldexpl.m4: Likewise.
16739 * m4/lib-ld.m4: Likewise.
16740 * m4/lib-link.m4: Likewise.
16741 * m4/libsigsegv.m4: Likewise.
16742 * m4/link-follow.m4: Likewise.
16743 * m4/localcharset.m4: Likewise.
16744 * m4/locale-fr.m4: Likewise.
16745 * m4/locale-ja.m4: Likewise.
16746 * m4/locale-tr.m4: Likewise.
16747 * m4/locale-zh.m4: Likewise.
16748 * m4/lock.m4: Likewise.
16749 * m4/longlong.m4: Likewise.
16750 * m4/ls-mntd-fs.m4: Likewise.
16751 * m4/lstat.m4: Likewise.
16752 * m4/malloc.m4: Likewise.
16753 * m4/mathl.m4: Likewise.
16754 * m4/mbrtowc.m4: Likewise.
16755 * m4/mbstate_t.m4: Likewise.
16756 * m4/mbswidth.m4: Likewise.
16757 * m4/memchr.m4: Likewise.
16758 * m4/memcmp.m4: Likewise.
16759 * m4/memcpy.m4: Likewise.
16760 * m4/memmem.m4: Likewise.
16761 * m4/memmove.m4: Likewise.
16762 * m4/mempcpy.m4: Likewise.
16763 * m4/memrchr.m4: Likewise.
16764 * m4/memset.m4: Likewise.
16765 * m4/minmax.m4: Likewise.
16766 * m4/mkdir-slash.m4: Likewise.
16767 * m4/mkdtemp.m4: Likewise.
16768 * m4/mktime.m4: Likewise.
16769 * m4/mmap-anon.m4: Likewise.
16770 * m4/mountlist.m4: Likewise.
16771 * m4/nanosleep.m4: Likewise.
16772 * m4/nls.m4: Likewise.
16773 * m4/nocrash.m4: Likewise.
16774 * m4/open.m4: Likewise.
16775 * m4/openat.m4: Likewise.
16776 * m4/openmp.m4: Likewise.
16777 * m4/pathmax.m4: Likewise.
16778 * m4/perl.m4: Likewise.
16779 * m4/physmem.m4: Likewise.
16780 * m4/pipe.m4: Likewise.
16781 * m4/po.m4: Likewise.
16782 * m4/poll.m4: Likewise.
16783 * m4/posixtm.m4: Likewise.
16784 * m4/posixver.m4: Likewise.
16785 * m4/printf-frexp.m4: Likewise.
16786 * m4/printf-frexpl.m4: Likewise.
16787 * m4/printf-posix.m4: Likewise.
16788 * m4/printf-posix-rpl.m4: Likewise.
16789 * m4/printf.m4: Likewise.
16790 * m4/progtest.m4: Likewise.
16791 * m4/putenv.m4: Likewise.
16792 * m4/readline.m4: Likewise.
16793 * m4/readlink.m4: Likewise.
16794 * m4/readutmp.m4: Likewise.
16795 * m4/realloc.m4: Likewise.
16796 * m4/regex.m4: Likewise.
16797 * m4/relocatable.m4: Likewise.
16798 * m4/relocatable-lib.m4: Likewise.
16799 * m4/rename-dest-slash.m4: Likewise.
16800 * m4/rename.m4: Likewise.
16801 * m4/rmdir-errno.m4: Likewise.
16802 * m4/rmdir.m4: Likewise.
16803 * m4/roundf.m4: Likewise.
16804 * m4/roundl.m4: Likewise.
16805 * m4/rpmatch.m4: Likewise.
16806 * m4/save-cwd.m4: Likewise.
16807 * m4/selinux-selinux-h.m4: Likewise.
16808 * m4/setenv.m4: Likewise.
16809 * m4/settime.m4: Likewise.
16810 * m4/sig2str.m4: Likewise.
16811 * m4/sig_atomic_t.m4: Likewise.
16812 * m4/signalblocking.m4: Likewise.
16813 * m4/signbit.m4: Likewise.
16814 * m4/sigpipe.m4: Likewise.
16815 * m4/sockets.m4: Likewise.
16816 * m4/sockpfaf.m4: Likewise.
16817 * m4/st_dm_mode.m4: Likewise.
16818 * m4/stat-time.m4: Likewise.
16819 * m4/stdbool.m4: Likewise.
16820 * m4/stdint.m4: Likewise.
16821 * m4/stdint_h.m4: Likewise.
16822 * m4/stpcpy.m4: Likewise.
16823 * m4/stpncpy.m4: Likewise.
16824 * m4/strcase.m4: Likewise.
16825 * m4/strchrnul.m4: Likewise.
16826 * m4/strcspn.m4: Likewise.
16827 * m4/strdup.m4: Likewise.
16828 * m4/strftime.m4: Likewise.
16829 * m4/strndup.m4: Likewise.
16830 * m4/strnlen.m4: Likewise.
16831 * m4/strpbrk.m4: Likewise.
16832 * m4/strptime.m4: Likewise.
16833 * m4/strsep.m4: Likewise.
16834 * m4/strtod.m4: Likewise.
16835 * m4/strtoimax.m4: Likewise.
16836 * m4/strtok_r.m4: Likewise.
16837 * m4/strtol.m4: Likewise.
16838 * m4/strtoll.m4: Likewise.
16839 * m4/strtoul.m4: Likewise.
16840 * m4/strtoull.m4: Likewise.
16841 * m4/strtoumax.m4: Likewise.
16842 * m4/strverscmp.m4: Likewise.
16843 * m4/threadlib.m4: Likewise.
16844 * m4/timegm.m4: Likewise.
16845 * m4/tm_gmtoff.m4: Likewise.
16846 * m4/tmpdir.m4: Likewise.
16847 * m4/tmpfile.m4: Likewise.
16848 * m4/tzset.m4: Likewise.
16849 * m4/uintmax_t.m4: Likewise.
16850 * m4/unlinkdir.m4: Likewise.
16851 * m4/unlocked-io.m4: Likewise.
16852 * m4/uptime.m4: Likewise.
16853 * m4/userspec.m4: Likewise.
16854 * m4/utimbuf.m4: Likewise.
16855 * m4/utime.m4: Likewise.
16856 * m4/utimes-null.m4: Likewise.
16857 * m4/utimes.m4: Likewise.
16858 * m4/vararrays.m4: Likewise.
16859 * m4/vasnprintf.m4: Likewise.
16860 * m4/vfprintf-posix.m4: Likewise.
16861 * m4/vprintf-posix.m4: Likewise.
16862 * m4/wait-process.m4: Likewise.
16863 * m4/wchar_t.m4: Likewise.
16864 * m4/wint_t.m4: Likewise.
16865 * m4/write-any-file.m4: Likewise.
16866 * m4/yield.m4: Likewise.
16868 2009-01-13 Bruno Haible <bruno@clisp.org>
16870 Avoid test-copy-file.sh failures when ACL support insufficient.
16871 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16873 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16874 Reported by Jim Meyering.
16876 2009-01-13 Bruno Haible <bruno@clisp.org>
16878 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16879 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16880 * modules/unistdio/u8-printf-parse (Files): Likewise.
16881 * modules/unistdio/u32-printf-parse (Files): Likewise.
16882 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16884 2009-01-13 Simon Josefsson <simon@josefsson.org>
16886 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16887 and m4/inttypes_h.m4 too.
16889 2009-01-12 Eric Blake <ebb9@byu.net>
16891 tests: IRIX 6.2 cc can't compile -0.0 into .data
16892 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16893 rather than at compile-time.
16894 * tests/test-floorl.c (minus_zero): Likewise.
16895 * tests/test-frexpl.c (minus_zero): Likewise.
16896 * tests/test-isnan.c (minus_zerol): Likewise.
16897 * tests/test-isnanl.h (minus_zero): Likewise.
16898 * tests/test-ldexpl.c (minus_zero): Likewise.
16899 * tests/test-roundl.c (minus_zero): Likewise.
16900 * tests/test-signbit.c (minus_zerol): Likewise.
16901 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16902 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16903 * tests/test-truncl.c (minus_zero): Likewise.
16904 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16905 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16906 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16908 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16910 regex: fix glibc bug 9697
16911 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16914 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16916 regex: fix glibc bug 697
16917 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16918 being NULL also if there are no backreferences.
16920 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16922 regex: merge glibc changes
16923 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16924 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16925 re_string_skip_chars, re_string_reconstruct): Likewise.
16926 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16928 2009-01-07 Jim Meyering <meyering@redhat.com>
16930 poll: filter through cppi
16931 * lib/poll.c: Indent cpp directives to reflect nesting.
16933 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16935 poll: don't return uninitialized
16936 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16938 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16940 avoid compile failure on AIX 6.1
16941 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16942 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16944 2009-01-04 Jim Meyering <meyering@redhat.com>
16946 remove duplicate inclusion of <stdio.h>
16947 * tests/test-fprintf-posix.c: Likewise.
16948 * tests/test-printf-posix.c: Likewise.
16949 * tests/test-snprintf-posix.c: Likewise.
16950 * tests/test-sprintf-posix.c: Likewise.
16951 * tests/test-vasprintf-posix.c: Likewise.
16952 * tests/test-vfprintf-posix.c: Likewise.
16953 * tests/test-vprintf-posix.c: Likewise.
16954 * tests/test-vsnprintf-posix.c: Likewise.
16955 * tests/test-vsprintf-posix.c: Likewise.
16957 2009-01-03 Jim Meyering <meyering@redhat.com>
16959 gnulib-tool: fix sed-based filtering
16960 * gnulib-tool (func_filter_filelist): Remove extra backslash
16961 in sed_fff_filter definition.
16963 2009-01-02 Jim Meyering <meyering@redhat.com>
16965 strftime: avoid compilation failure on Solaris 2.6
16966 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16967 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16968 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16969 be available. Reported by Tom G. Christensen. Details in
16970 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16972 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16973 Bruno Haible <bruno@clisp.org>
16975 Speed up gnulib-tool by doing more string processing through shell
16977 * gnulib-tool (fast_func_append): New variable.
16978 (func_remove_prefix, func_remove_suffix): New functions.
16979 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16980 (func_filter_filelist): New function.
16981 (func_get_dependencies): Use func_remove_suffix instead of sed.
16982 (func_get_automake_snippet): Use func_filter_filelist instead of a
16983 subshell and sed invocation.
16985 2009-01-01 Bruno Haible <bruno@clisp.org>
16987 Fix a security bug.
16988 * gnulib-tool (func_import, import, update): Don't allow the characters
16989 '"', '$', '`', '\' in macro arguments that become part of commands that
16992 2009-01-01 Bruno Haible <bruno@clisp.org>
16994 * gnulib-tool (func_reset_sigpipe): Add more comments.
16996 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16998 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16999 func_emit_tests_Makefile_am, func_import): Abort loops early if we
17000 already know the answer.
17002 2009-01-01 Jim Meyering <meyering@redhat.com>
17004 * lib/version-etc.c (version_etc_va): Update copyright year.
17006 2008-12-30 Bruno Haible <bruno@clisp.org>
17008 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17009 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17010 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17012 2008-12-29 Eric Blake <ebb9@byu.net>
17014 multiarch: avoid autoconf AC_REQUIRE bug
17015 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17016 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17018 Reported by Bruno Haible, and analyzed in
17019 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17021 2008-12-29 Bruno Haible <bruno@clisp.org>
17023 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17024 files in subdirectories correctly.
17025 Reported by Ralf Wildenhues.
17027 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17029 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17030 rather than 'join FILE -', for Solaris join.
17032 2008-12-29 Bruno Haible <bruno@clisp.org>
17034 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17036 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17037 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17038 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17039 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17040 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17041 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17042 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17043 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17044 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17045 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17046 * m4/nls.m4 (AM_NLS): Likewise.
17047 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17048 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17049 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17050 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17051 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17052 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17053 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17054 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17055 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17056 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17057 * m4/xsize.m4 (gl_XSIZE): Likewise.
17058 Suggested by Jim Meyering.
17060 2008-11-17 Bruce Korb <bkorb@gnu.org>
17062 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17063 * lib/parse-duration.c: use a switch instead of cascading if's.
17065 2008-12-29 Eric Blake <ebb9@byu.net>
17067 wchar.h: supply WEOF on Irix 5.3
17068 * lib/wchar.in.h (wint_t): Also supply WEOF.
17069 * lib/wctype.in.h (wint_t): Likewise.
17070 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17071 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17072 Reported by Tom G. Christensen.
17074 2008-12-26 Bruno Haible <bruno@clisp.org>
17076 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17079 2008-12-26 Bruno Haible <bruno@clisp.org>
17081 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17083 2008-12-26 Bruno Haible <bruno@clisp.org>
17085 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17086 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17087 not __STDC_CONSTANT_MACROS.
17088 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17090 2008-12-25 Bruno Haible <bruno@clisp.org>
17092 Add support for universal builds to vasnprintf.
17093 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17094 universal builds, guess no.
17095 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17096 * modules/vasprintf-posix (Depends-on): Likewise.
17097 * modules/fprintf-posix (Depends-on): Likewise.
17098 * modules/vfprintf-posix (Depends-on): Likewise.
17099 * modules/snprintf-posix (Depends-on): Likewise.
17100 * modules/vsnprintf-posix (Depends-on): Likewise.
17101 * modules/sprintf-posix (Depends-on): Likewise.
17102 * modules/vsprintf-posix (Depends-on): Likewise.
17103 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17104 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17105 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17106 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17107 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17108 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17109 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17111 Add support for universal builds to <inttypes.h>.
17112 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17113 _SCNu64_PREFIX): In Apple
17114 universal builds, define directly, using _LP64.
17115 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17116 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17117 * modules/inttypes (Depends-on): Add multiarch.
17118 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17120 Add support for universal builds to <stdint.h>.
17121 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17122 universal builds, define directly, using _LP64.
17123 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17124 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17126 * modules/stdint (Depends-on): Add multiarch.
17127 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17129 New module 'multiarch'.
17130 * modules/multiarch: New file.
17131 * m4/multiarch.m4: New file.
17133 2008-12-25 Bruno Haible <bruno@clisp.org>
17135 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17137 2008-12-25 Bruno Haible <bruno@clisp.org>
17139 * modules/btowc (License): Relicense under LGPLv2+.
17140 * modules/mbsinit (License): Likewise.
17141 * modules/mbrtowc (License): Likewise.
17142 * modules/wcrtomb (License): Likewise.
17143 * modules/streq (License): Likewise.
17144 Reported by David Lutterkort <lutter@redhat.com>.
17146 2008-12-23 Bruno Haible <bruno@clisp.org>
17148 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17150 2008-12-23 Bruno Haible <bruno@clisp.org>
17152 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17153 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17154 GETADDRINFO_LIB, not in LIBS.
17155 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17156 * modules/canon-host (Link): Likewise.
17157 * NEWS: Mention the change.
17158 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17161 2008-12-22 Bruno Haible <bruno@clisp.org>
17163 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17164 * doc/posix-functions/iswalpha_l.texi: Likewise.
17165 * doc/posix-functions/iswblank_l.texi: Likewise.
17166 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17167 * doc/posix-functions/iswctype_l.texi: Likewise.
17168 * doc/posix-functions/iswdigit_l.texi: Likewise.
17169 * doc/posix-functions/iswgraph_l.texi: Likewise.
17170 * doc/posix-functions/iswlower_l.texi: Likewise.
17171 * doc/posix-functions/iswprint_l.texi: Likewise.
17172 * doc/posix-functions/iswpunct_l.texi: Likewise.
17173 * doc/posix-functions/iswspace_l.texi: Likewise.
17174 * doc/posix-functions/iswupper_l.texi: Likewise.
17175 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17176 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17177 * doc/posix-functions/open_wmemstream.texi: Likewise.
17178 * doc/posix-functions/swscanf.texi: Likewise.
17179 * doc/posix-functions/towctrans_l.texi: Likewise.
17180 * doc/posix-functions/towlower.texi: Likewise.
17181 * doc/posix-functions/towlower_l.texi: Likewise.
17182 * doc/posix-functions/towupper.texi: Likewise.
17183 * doc/posix-functions/towupper_l.texi: Likewise.
17184 * doc/posix-functions/vfwprintf.texi: Likewise.
17185 * doc/posix-functions/vfwscanf.texi: Likewise.
17186 * doc/posix-functions/vswscanf.texi: Likewise.
17187 * doc/posix-functions/vwprintf.texi: Likewise.
17188 * doc/posix-functions/vwscanf.texi: Likewise.
17189 * doc/posix-functions/wcpcpy.texi: Likewise.
17190 * doc/posix-functions/wcpncpy.texi: Likewise.
17191 * doc/posix-functions/wcscasecmp.texi: Likewise.
17192 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17193 * doc/posix-functions/wcscoll_l.texi: Likewise.
17194 * doc/posix-functions/wcsdup.texi: Likewise.
17195 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17196 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17197 * doc/posix-functions/wcsnlen.texi: Likewise.
17198 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17199 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17200 * doc/posix-functions/wctrans_l.texi: Likewise.
17201 * doc/posix-functions/wctype_l.texi: Likewise.
17202 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17203 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17204 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17205 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17206 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17207 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17208 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17209 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17210 * doc/glibc-functions/wcschrnul.texi: Likewise.
17211 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17212 * doc/glibc-functions/wcstod_l.texi: Likewise.
17213 * doc/glibc-functions/wcstof_l.texi: Likewise.
17214 * doc/glibc-functions/wcstol_l.texi: Likewise.
17215 * doc/glibc-functions/wcstold_l.texi: Likewise.
17216 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17217 * doc/glibc-functions/wcstoq.texi: Likewise.
17218 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17219 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17220 * doc/glibc-functions/wcstouq.texi: Likewise.
17221 * doc/glibc-functions/wmempcpy.texi: Likewise.
17223 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17224 Eric Blake <ebb9@byu.net>
17225 Paolo Bonzini <bonzini@gnu.org>
17226 Bruno Haible <bruno@clisp.org>
17228 Make c-stack work on Haiku.
17229 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17230 (c_stack_action): Use SA_ONSTACK flag.
17232 2008-12-22 Bruno Haible <bruno@clisp.org>
17234 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17236 2008-12-22 Bruno Haible <bruno@clisp.org>
17238 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17239 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17241 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17243 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17244 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17245 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17246 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17248 2008-12-22 Bruno Haible <bruno@clisp.org>
17250 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17253 2008-12-22 Eric Blake <ebb9@byu.net>
17255 Avoid gcc warnings on cygwin.
17256 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17257 Avoid unused variable.
17258 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17261 2008-12-22 Bruno Haible <bruno@clisp.org>
17263 Remove HAVE_MBRTOWC conditionals.
17264 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17265 (mbscasecmp): Assume mbrtowc function.
17266 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17267 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17268 * lib/mbschr.c: Include mbuiter.h unconditionally.
17269 (mbschr): Assume mbrtowc function.
17270 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17271 (mbscspn): Assume mbrtowc function.
17272 * lib/mbslen.c: Include mbuiter.h unconditionally.
17273 (mbslen): Assume mbrtowc function.
17274 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17275 (mbsncasecmp): Assume mbrtowc function.
17276 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17277 (mbsnlen): Assume mbrtowc function.
17278 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17279 (mbspbrk): Assume mbrtowc function.
17280 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17281 (mbspcasecmp): Assume mbrtowc function.
17282 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17283 (mbsrchr): Assume mbrtowc function.
17284 * lib/mbssep.c: Include mbuiter.h unconditionally.
17285 (mbssep): Assume mbrtowc function.
17286 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17287 (mbsspn): Assume mbrtowc function.
17288 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17289 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17290 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17291 (mbstok_r): Assume mbrtowc function.
17292 * lib/propername.c: Include mbuiter.h unconditionally.
17293 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17294 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17295 (trim2): Assume mbrtowc function.
17296 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17297 (mbsnwidth): Assume mbrtowc function.
17298 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17299 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17300 fallback definitions.
17301 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17303 2008-12-22 Bruno Haible <bruno@clisp.org>
17305 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17307 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17309 * modules/regex: Request emulations for the mb*/wc* functions we need.
17310 * m4/regex.m4: Don't look for those functions here.
17311 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17313 2008-12-22 Bruno Haible <bruno@clisp.org>
17315 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17317 2008-12-21 Bruno Haible <bruno@clisp.org>
17319 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17320 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17321 (Include): Remove conditionalization.
17322 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17323 (Include): Remove conditionalization.
17324 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17325 (Include): Remove conditionalization.
17326 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17327 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17328 * NEWS: Mention the change.
17329 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17330 via Sergey Poznyakoff <gray@gnu.org.ua>.
17332 2008-12-21 Bruno Haible <bruno@clisp.org>
17334 * MODULES.html.sh (Extended multibyte and wide character utilities
17335 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17336 wcrtomb, wcsrtombs.
17337 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17338 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17339 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17340 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17342 2008-12-21 Bruno Haible <bruno@clisp.org>
17344 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17346 2008-12-21 Bruno Haible <bruno@clisp.org>
17348 * modules/wcsnrtombs-tests: New file.
17349 * tests/test-wcsnrtombs1.sh: New file.
17350 * tests/test-wcsnrtombs2.sh: New file.
17351 * tests/test-wcsnrtombs3.sh: New file.
17352 * tests/test-wcsnrtombs4.sh: New file.
17353 * tests/test-wcsnrtombs.c: New file.
17355 New module 'wcsnrtombs'.
17356 * lib/wchar.in.h (wcsnrtombs): New declaration.
17357 * lib/wcsnrtombs.c: New file.
17358 * lib/wcsrtombs-state.c: New file.
17359 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17360 (internal_state): Remove variable.
17361 * m4/wcsnrtombs.m4: New file.
17362 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17364 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17366 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17368 * modules/wcsnrtombs: New file.
17369 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17370 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17372 2008-12-21 Bruno Haible <bruno@clisp.org>
17374 * modules/wcsrtombs-tests: New file.
17375 * tests/test-wcsrtombs1.sh: New file.
17376 * tests/test-wcsrtombs2.sh: New file.
17377 * tests/test-wcsrtombs3.sh: New file.
17378 * tests/test-wcsrtombs4.sh: New file.
17379 * tests/test-wcsrtombs.c: New file.
17381 New module 'wcsrtombs'.
17382 * lib/wchar.in.h (wcsrtombs): New declaration.
17383 * lib/wcsrtombs.c: New file.
17384 * m4/wcsrtombs.m4: New file.
17385 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17386 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17387 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17388 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17389 * modules/wcsrtombs: New file.
17390 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17393 2008-12-21 Bruno Haible <bruno@clisp.org>
17395 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17396 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17397 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17398 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17400 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17401 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17402 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17403 m4/locale-zh.m4, m4/codeset.m4.
17404 * doc/posix-functions/wcrtomb.texi: Document the bug.
17406 2008-12-21 Bruno Haible <bruno@clisp.org>
17408 Work around a btowc() bug on IRIX 6.5.
17409 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17410 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17411 REPLACE_WTOBC if not.
17412 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17413 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17414 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17416 2008-12-21 Bruno Haible <bruno@clisp.org>
17418 * modules/wcrtomb-tests: New file.
17419 * tests/test-wcrtomb.sh: New file.
17420 * tests/test-wcrtomb.c: New file.
17422 New module 'wcrtomb'.
17423 * lib/wchar.in.h (wcrtomb): New declaration.
17424 * lib/wcrtomb.c: New file.
17425 * m4/wcrtomb.m4: New file.
17426 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17428 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17430 * modules/wcrtomb: New file.
17431 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17433 2008-12-21 Bruno Haible <bruno@clisp.org>
17435 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17436 * modules/mbsrtowcs (Files): Likewise.
17437 * modules/wctob (Files): Likewise.
17438 * modules/c-strcase-tests (Files): Likewise.
17439 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17440 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17441 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17442 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17443 * modules/vasnprintf-posix-tests (Files): Likewise.
17445 2008-12-21 William Pursell <bill.pursell@gmail.com>
17447 gitlog-to-changelog: pass all command-line arguments to git-log
17448 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17449 it is sometimes convenient to filter the commits in various ways.
17450 gitlog-to-changelog only allows --since to specify a start date,
17451 but git-log itself supports many other filtering mechanisms.
17452 At the moment, I want to filter by branch name. Rather than
17453 adding a --branch option to gitlog-to-changelog, it seems more
17454 flexible to simply pass all options directly to git-log and let
17455 git do the work. Notice that this effectively makes --since a
17456 redundant option for gitlog-to-changelog, but removing it would
17457 require current usage to change since calls would then require
17458 an additional '--'.
17460 2008-12-21 Bruno Haible <bruno@clisp.org>
17462 * modules/mbsnrtowcs-tests: New file.
17463 * tests/test-mbsnrtowcs1.sh: New file.
17464 * tests/test-mbsnrtowcs2.sh: New file.
17465 * tests/test-mbsnrtowcs3.sh: New file.
17466 * tests/test-mbsnrtowcs4.sh: New file.
17467 * tests/test-mbsnrtowcs.c: New file.
17469 New module 'mbsnrtowcs'.
17470 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17471 * lib/mbsnrtowcs.c: New file.
17472 * lib/mbsrtowcs-state.c: New file.
17473 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17474 (internal_state): Remove variable.
17475 * m4/mbsnrtowcs.m4: New file.
17476 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17478 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17479 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17480 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17481 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17482 * modules/mbsnrtowcs: New file.
17483 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17484 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17485 portability problem.
17487 2008-12-21 Bruno Haible <bruno@clisp.org>
17489 Work around mbsrtowcs bug.
17490 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17491 (gl_FUNC_MBSRTOWCS): Invoke it.
17492 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17494 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17496 2008-12-21 Bruno Haible <bruno@clisp.org>
17498 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17500 2008-12-21 Bruno Haible <bruno@clisp.org>
17502 Update doc for AIX.
17503 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17504 16-bit wchar_t type.
17505 * doc/posix-functions/btowc.texi: Likewise.
17506 * doc/posix-functions/fgetwc.texi: Likewise.
17507 * doc/posix-functions/fgetws.texi: Likewise.
17508 * doc/posix-functions/fputwc.texi: Likewise.
17509 * doc/posix-functions/fputws.texi: Likewise.
17510 * doc/posix-functions/fwide.texi: Likewise.
17511 * doc/posix-functions/fwprintf.texi: Likewise.
17512 * doc/posix-functions/fwscanf.texi: Likewise.
17513 * doc/posix-functions/getwchar.texi: Likewise.
17514 * doc/posix-functions/getwc.texi: Likewise.
17515 * doc/posix-functions/iswalnum.texi: Likewise.
17516 * doc/posix-functions/iswalpha.texi: Likewise.
17517 * doc/posix-functions/iswblank.texi: Likewise.
17518 * doc/posix-functions/iswcntrl.texi: Likewise.
17519 * doc/posix-functions/iswctype.texi: Likewise.
17520 * doc/posix-functions/iswdigit.texi: Likewise.
17521 * doc/posix-functions/iswgraph.texi: Likewise.
17522 * doc/posix-functions/iswlower.texi: Likewise.
17523 * doc/posix-functions/iswprint.texi: Likewise.
17524 * doc/posix-functions/iswpunct.texi: Likewise.
17525 * doc/posix-functions/iswspace.texi: Likewise.
17526 * doc/posix-functions/iswupper.texi: Likewise.
17527 * doc/posix-functions/iswxdigit.texi: Likewise.
17528 * doc/posix-functions/mbrtowc.texi: Likewise.
17529 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17530 * doc/posix-functions/mbstowcs.texi: Likewise.
17531 * doc/posix-functions/mbtowc.texi: Likewise.
17532 * doc/posix-functions/putwchar.texi: Likewise.
17533 * doc/posix-functions/putwc.texi: Likewise.
17534 * doc/posix-functions/swprintf.texi: Likewise.
17535 * doc/posix-functions/tolower.texi: Likewise.
17536 * doc/posix-functions/toupper.texi: Likewise.
17537 * doc/posix-functions/towctrans.texi: Likewise.
17538 * doc/posix-functions/ungetwc.texi: Likewise.
17539 * doc/posix-functions/vswprintf.texi: Likewise.
17540 * doc/posix-functions/wcrtomb.texi: Likewise.
17541 * doc/posix-functions/wcscat.texi: Likewise.
17542 * doc/posix-functions/wcschr.texi: Likewise.
17543 * doc/posix-functions/wcscmp.texi: Likewise.
17544 * doc/posix-functions/wcscoll.texi: Likewise.
17545 * doc/posix-functions/wcscpy.texi: Likewise.
17546 * doc/posix-functions/wcscspn.texi: Likewise.
17547 * doc/posix-functions/wcsftime.texi: Likewise.
17548 * doc/posix-functions/wcslen.texi: Likewise.
17549 * doc/posix-functions/wcsncat.texi: Likewise.
17550 * doc/posix-functions/wcsncmp.texi: Likewise.
17551 * doc/posix-functions/wcsncpy.texi: Likewise.
17552 * doc/posix-functions/wcspbrk.texi: Likewise.
17553 * doc/posix-functions/wcsrchr.texi: Likewise.
17554 * doc/posix-functions/wcsrtombs.texi: Likewise.
17555 * doc/posix-functions/wcsspn.texi: Likewise.
17556 * doc/posix-functions/wcsstr.texi: Likewise.
17557 * doc/posix-functions/wcstod.texi: Likewise.
17558 * doc/posix-functions/wcstof.texi: Likewise.
17559 * doc/posix-functions/wcstoimax.texi: Likewise.
17560 * doc/posix-functions/wcstok.texi: Likewise.
17561 * doc/posix-functions/wcstold.texi: Likewise.
17562 * doc/posix-functions/wcstoll.texi: Likewise.
17563 * doc/posix-functions/wcstol.texi: Likewise.
17564 * doc/posix-functions/wcstombs.texi: Likewise.
17565 * doc/posix-functions/wcstoull.texi: Likewise.
17566 * doc/posix-functions/wcstoul.texi: Likewise.
17567 * doc/posix-functions/wcstoumax.texi: Likewise.
17568 * doc/posix-functions/wcswidth.texi: Likewise.
17569 * doc/posix-functions/wcsxfrm.texi: Likewise.
17570 * doc/posix-functions/wctob.texi: Likewise.
17571 * doc/posix-functions/wctomb.texi: Likewise.
17572 * doc/posix-functions/wctrans.texi: Likewise.
17573 * doc/posix-functions/wctype.texi: Likewise.
17574 * doc/posix-functions/wcwidth.texi: Likewise.
17575 * doc/posix-functions/wmemchr.texi: Likewise.
17576 * doc/posix-functions/wmemcmp.texi: Likewise.
17577 * doc/posix-functions/wmemcpy.texi: Likewise.
17578 * doc/posix-functions/wmemmove.texi: Likewise.
17579 * doc/posix-functions/wmemset.texi: Likewise.
17580 * doc/posix-functions/wprintf.texi: Likewise.
17581 * doc/posix-functions/wscanf.texi: Likewise.
17583 2008-12-21 Bruno Haible <bruno@clisp.org>
17585 Update doc for HP-UX 11.11.
17586 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17587 in HP-UX version 11.00, not in all versions of HP-UX 11.
17588 * doc/posix-functions/fwide.texi: Likewise.
17589 * doc/posix-functions/fwprintf.texi: Likewise.
17590 * doc/posix-functions/fwscanf.texi: Likewise.
17591 * doc/posix-functions/inet_ntop.texi: Likewise.
17592 * doc/posix-functions/inet_pton.texi: Likewise.
17593 * doc/posix-functions/mbrlen.texi: Likewise.
17594 * doc/posix-functions/mbrtowc.texi: Likewise.
17595 * doc/posix-functions/mbsinit.texi: Likewise.
17596 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17597 * doc/posix-functions/swprintf.texi: Likewise.
17598 * doc/posix-functions/swscanf.texi: Likewise.
17599 * doc/posix-functions/towctrans.texi: Likewise.
17600 * doc/posix-functions/vfwprintf.texi: Likewise.
17601 * doc/posix-functions/vswprintf.texi: Likewise.
17602 * doc/posix-functions/vwprintf.texi: Likewise.
17603 * doc/posix-functions/wcrtomb.texi: Likewise.
17604 * doc/posix-functions/wcsrtombs.texi: Likewise.
17605 * doc/posix-functions/wcsstr.texi: Likewise.
17606 * doc/posix-functions/wctob.texi: Likewise.
17607 * doc/posix-functions/wctrans.texi: Likewise.
17608 * doc/posix-functions/wmemchr.texi: Likewise.
17609 * doc/posix-functions/wmemcmp.texi: Likewise.
17610 * doc/posix-functions/wmemcpy.texi: Likewise.
17611 * doc/posix-functions/wmemmove.texi: Likewise.
17612 * doc/posix-functions/wmemset.texi: Likewise.
17613 * doc/posix-functions/wprintf.texi: Likewise.
17614 * doc/posix-functions/wscanf.texi: Likewise.
17616 2008-12-21 Bruno Haible <bruno@clisp.org>
17618 Work around a portability problem.
17619 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17620 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17622 2008-12-20 Bruno Haible <bruno@clisp.org>
17624 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17625 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17626 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17627 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17628 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17630 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17631 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17633 (GNULIB_defined_mbstate_t): New macro.
17634 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17635 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17636 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17637 reuses the system's mbrtowc function but works around the bugs.
17638 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17639 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17641 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17642 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17643 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17644 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17645 REPLACE_MBSINIT if mbsinit needs to be overridden.
17646 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17647 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17648 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17649 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17650 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17652 (Depends): Add mbsinit.
17653 * modules/mbsinit (Depends): Add mbrtowc.
17654 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17656 2008-12-20 Bruno Haible <bruno@clisp.org>
17658 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17659 so that there are no conversion errors on AIX.
17660 * tests/test-mbsrtowcs.c (main): LIkewise.
17662 2008-12-20 Bruno Haible <bruno@clisp.org>
17664 Work around wctob bug on Solaris <= 9.
17665 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17666 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17667 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17668 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17669 * modules/wctob (Files): Add m4/locale-fr.m4.
17670 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17672 2008-12-20 Bruno Haible <bruno@clisp.org>
17674 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17676 * tests/test-select-in.sh: Likewise.
17677 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17679 2008-12-20 Bruno Haible <bruno@clisp.org>
17681 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17682 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17685 2008-12-20 Bruno Haible <bruno@clisp.org>
17687 Ensure mbstate_t is defined on HP-UX 11.11.
17688 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17689 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17690 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17691 AC_USE_SYSTEM_EXTENSIONS.
17692 * modules/fnmatch (Depends-on): Add extensions.
17693 * modules/mbrlen (Depends-on): Likewise.
17694 * modules/mbrtowc (Depends-on): Likewise.
17695 * modules/mbsinit (Depends-on): Likewise.
17696 * modules/mbsrtowcs (Depends-on): Likewise.
17697 * modules/mbswidth (Depends-on): Likewise.
17698 * modules/quotearg (Depends-on): Likewise.
17699 * modules/strftime (Depends-on): Likewise.
17701 2008-12-20 Bruno Haible <bruno@clisp.org>
17703 Ensure wctob is declared on IRIX 6.5.
17704 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17705 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17706 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17707 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17709 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17711 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17713 2008-12-19 Bruno Haible <bruno@clisp.org>
17715 * modules/mbsrtowcs-tests: New file.
17716 * tests/test-mbsrtowcs1.sh: New file.
17717 * tests/test-mbsrtowcs2.sh: New file.
17718 * tests/test-mbsrtowcs3.sh: New file.
17719 * tests/test-mbsrtowcs4.sh: New file.
17720 * tests/test-mbsrtowcs.c: New file.
17722 New module 'mbsrtowcs'.
17723 * lib/wchar.in.h (mbsrtowcs): New declaration.
17724 * lib/mbsrtowcs.c: New file.
17725 * m4/mbsrtowcs.m4: New file.
17726 * modules/mbsrtowcs: New file.
17727 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17729 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17731 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17733 2008-12-19 Bruno Haible <bruno@clisp.org>
17735 New module 'mbrlen'.
17736 * lib/wchar.in.h (mbrlen): New declaration.
17737 * lib/mbrlen.c: New file.
17738 * m4/mbrlen.m4: New file.
17739 * modules/mbrlen: New file.
17740 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17742 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17744 * doc/posix-functions/mbrlen.texi: Document the new module.
17746 2008-12-19 Bruno Haible <bruno@clisp.org>
17748 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17749 * modules/mbrtowc (Depends-on): Add verify.
17750 Suggested by Paul Eggert.
17752 2008-12-18 Bruno Haible <bruno@clisp.org>
17754 * modules/mbsinit-tests: New file.
17755 * tests/test-mbsinit.sh: New file.
17756 * tests/test-mbsinit.c: New file.
17758 2008-12-18 Bruno Haible <bruno@clisp.org>
17760 * modules/mbrtowc-tests: New file.
17761 * tests/test-mbrtowc1.sh: New file.
17762 * tests/test-mbrtowc2.sh: New file.
17763 * tests/test-mbrtowc3.sh: New file.
17764 * tests/test-mbrtowc4.sh: New file.
17765 * tests/test-mbrtowc.c: New file.
17767 New module 'mbrtowc'.
17768 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17769 mbsinit and mbrtowc.
17770 (mbrtowc): New declaration.
17771 * lib/mbrtowc.c: New file.
17772 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17773 * modules/mbrtowc: New file.
17774 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17776 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17778 * doc/posix-functions/mbrtowc.texi: Document the new module.
17780 2008-12-18 Bruno Haible <bruno@clisp.org>
17782 New module 'wctob'.
17783 * lib/wchar.in.h (wctob): New declaration.
17784 * lib/wctob.c: New file.
17785 * m4/wctob.m4: New file.
17786 * modules/wctob: New file.
17787 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17789 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17790 * doc/posix-functions/wctob.texi: Document the new module.
17792 2008-12-18 Bruno Haible <bruno@clisp.org>
17794 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17795 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17797 2008-12-18 Simon Josefsson <simon@josefsson.org>
17799 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17800 G. Christensen" <tgc@jupiterrise.com>.
17802 * lib/flock.c: Need to include errno.h. Reported by "Tom
17803 G. Christensen" <tgc@jupiterrise.com>.
17805 * lib/flock.c: Need to include string.h. Reported by "Tom
17806 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17809 2008-12-18 Bruno Haible <bruno@clisp.org>
17811 * m4/locale-ja.m4: New file, from GNU gettext.
17813 2008-12-17 Bruno Haible <bruno@clisp.org>
17815 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17816 Suggested by Eric Blake.
17818 2008-12-17 Bruno Haible <bruno@clisp.org>
17820 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17822 2008-12-17 Bruno Haible <bruno@clisp.org>
17824 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17825 * modules/mbsinit (Depends-on): Add verify.
17826 Suggested by Paul Eggert.
17828 2008-12-17 Bruno Haible <bruno@clisp.org>
17830 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17831 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17833 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17834 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17835 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17836 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17837 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17838 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17839 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17840 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17841 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17842 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17843 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17844 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17845 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17846 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17847 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17848 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17849 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17850 * modules/trim (configure.ac): Likewise.
17852 2008-12-17 Bruno Haible <bruno@clisp.org>
17854 * modules/btowc-tests: New file.
17855 * tests/test-btowc1.sh: New file.
17856 * tests/test-btowc2.sh: New file.
17857 * tests/test-btowc.c: New file.
17859 New module 'btowc'.
17860 * lib/wchar.in.h (btowc): New declaration.
17861 * lib/btowc.c: New file.
17862 * m4/btowc.m4: New file.
17863 * modules/btowc: New file.
17864 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17866 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17867 * doc/posix-functions/btowc.texi: Document the new module.
17869 2008-12-17 Bruno Haible <bruno@clisp.org>
17871 New module 'mbsinit'.
17872 * lib/wchar.in.h (mbsinit): New declaration.
17873 * lib/mbsinit.c: New file.
17874 * m4/mbsinit.m4: New file.
17875 * modules/mbsinit: New file.
17876 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17878 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17880 * doc/posix-functions/mbsinit.texi: Document the new module.
17882 2008-12-16 Bruno Haible <bruno@clisp.org>
17884 * lib/unistd.in.h: Add comment.
17885 * tests/test-environ.c: Don't include <stdlib.h>.
17887 2008-12-16 Bruno Haible <bruno@clisp.org>
17889 * lib/parse-duration.h (parse_duration): Document return value
17891 * lib/parse-duration.c: Include specification header first. Add
17894 (parse_year_month_day, parse_hour_minute_second): Move side effects
17895 outside of strchr call.
17896 (parse_non_iso8601): Move side effects outside of isspace call.
17897 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17900 2008-12-16 Bruno Haible <bruno@clisp.org>
17902 * tests/test-parse-duration.sh: Produce no output when the test
17905 2008-12-16 Bruno Haible <bruno@clisp.org>
17907 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17910 2008-12-15 Bruno Haible <bruno@clisp.org>
17912 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17913 * doc/glibc-functions/flistxattr.texi: Likewise.
17914 * doc/glibc-functions/fopencookie.texi: Likewise.
17915 * doc/glibc-functions/fremovexattr.texi: Likewise.
17916 * doc/glibc-functions/fsetxattr.texi: Likewise.
17917 * doc/glibc-functions/getxattr.texi: Likewise.
17918 * doc/glibc-functions/lgetxattr.texi: Likewise.
17919 * doc/glibc-functions/listxattr.texi: Likewise.
17920 * doc/glibc-functions/llistxattr.texi: Likewise.
17921 * doc/glibc-functions/lremovexattr.texi: Likewise.
17922 * doc/glibc-functions/lsetxattr.texi: Likewise.
17923 * doc/glibc-functions/removexattr.texi: Likewise.
17924 * doc/glibc-functions/setxattr.texi: Likewise.
17925 * doc/posix-functions/open_memstream.texi: Likewise.
17927 2008-12-15 Eric Blake <ebb9@byu.net>
17929 Update doc for cygwin 1.7.
17930 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17932 * doc/posix-functions/fchmodat.texi: Likewise.
17933 * doc/posix-functions/fchownat.texi: Likewise.
17934 * doc/posix-functions/fdopendir.texi: Likewise.
17935 * doc/posix-functions/fmemopen.texi: Likewise.
17936 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17937 * doc/posix-functions/fstatat.texi: Likewise.
17938 * doc/posix-functions/futimens.texi: Likewise.
17939 * doc/posix-functions/gai_strerror.texi: Likewise.
17940 * doc/posix-functions/getaddrinfo.texi: Likewise.
17941 * doc/posix-functions/getnameinfo.texi: Likewise.
17942 * doc/posix-functions/if_freenameindex.texi: Likewise.
17943 * doc/posix-functions/if_indextoname.texi: Likewise.
17944 * doc/posix-functions/if_nameindex.texi: Likewise.
17945 * doc/posix-functions/if_nametoindex.texi: Likewise.
17946 * doc/posix-functions/insque.texi: Likewise.
17947 * doc/posix-functions/linkat.texi: Likewise.
17948 * doc/posix-functions/llrint.texi: Likewise.
17949 * doc/posix-functions/llrintf.texi: Likewise.
17950 * doc/posix-functions/llrintl.texi: Likewise.
17951 * doc/posix-functions/lockf.texi: Likewise.
17952 * doc/posix-functions/lrintl.texi: Likewise.
17953 * doc/posix-functions/mkdirat.texi: Likewise.
17954 * doc/posix-functions/mkfifoat.texi: Likewise.
17955 * doc/posix-functions/mknodat.texi: Likewise.
17956 * doc/posix-functions/mq_close.texi: Likewise.
17957 * doc/posix-functions/mq_getattr.texi: Likewise.
17958 * doc/posix-functions/mq_notify.texi: Likewise.
17959 * doc/posix-functions/mq_open.texi: Likewise.
17960 * doc/posix-functions/mq_receive.texi: Likewise.
17961 * doc/posix-functions/mq_send.texi: Likewise.
17962 * doc/posix-functions/mq_setattr.texi: Likewise.
17963 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17964 * doc/posix-functions/mq_timedsend.texi: Likewise.
17965 * doc/posix-functions/mq_unlink.texi: Likewise.
17966 * doc/posix-functions/open_memstream.texi: Likewise.
17967 * doc/posix-functions/openat.texi: Likewise.
17968 * doc/posix-functions/posix_fadvise.texi: Likewise.
17969 * doc/posix-functions/posix_fallocate.texi: Likewise.
17970 * doc/posix-functions/posix_madvise.texi: Likewise.
17971 * doc/posix-functions/posix_memalign.texi: Likewise.
17972 * doc/posix-functions/posix_openpt.texi: Likewise.
17973 * doc/posix-functions/readlinkat.texi: Likewise.
17974 * doc/posix-functions/remque.texi: Likewise.
17975 * doc/posix-functions/renameat.texi: Likewise.
17976 * doc/posix-functions/rintl.texi: Likewise.
17977 * doc/posix-functions/sem_unlink.texi: Likewise.
17978 * doc/posix-functions/shm_open.texi: Likewise.
17979 * doc/posix-functions/shm_unlink.texi: Likewise.
17980 * doc/posix-functions/signgam.texi: Likewise.
17981 * doc/posix-functions/sigset.texi: Likewise.
17982 * doc/posix-functions/stpcpy.texi: Likewise.
17983 * doc/posix-functions/stpncpy.texi: Likewise.
17984 * doc/posix-functions/strerror.texi: Likewise.
17985 * doc/posix-functions/strtod.texi: Likewise.
17986 * doc/posix-functions/symlinkat.texi: Likewise.
17987 * doc/posix-functions/unlinkat.texi: Likewise.
17988 * doc/posix-functions/utimensat.texi: Likewise.
17989 * doc/glibc-functions/bindresvport.texi: Likewise.
17990 * doc/glibc-functions/dn_expand.texi: Likewise.
17991 * doc/glibc-functions/exp10.texi: Likewise.
17992 * doc/glibc-functions/exp10f.texi: Likewise.
17993 * doc/glibc-functions/fgetxattr.texi: Likewise.
17994 * doc/glibc-functions/flistxattr.texi: Likewise.
17995 * doc/glibc-functions/fopencookie.texi: Likewise.
17996 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17997 * doc/glibc-functions/fremovexattr.texi: Likewise.
17998 * doc/glibc-functions/fsetxattr.texi: Likewise.
17999 * doc/glibc-functions/getifaddrs.texi: Likewise.
18000 * doc/glibc-functions/getxattr.texi: Likewise.
18001 * doc/glibc-functions/lgetxattr.texi: Likewise.
18002 * doc/glibc-functions/listxattr.texi: Likewise.
18003 * doc/glibc-functions/llistxattr.texi: Likewise.
18004 * doc/glibc-functions/lremovexattr.texi: Likewise.
18005 * doc/glibc-functions/lsetxattr.texi: Likewise.
18006 * doc/glibc-functions/pow10.texi: Likewise.
18007 * doc/glibc-functions/pow10f.texi: Likewise.
18008 * doc/glibc-functions/rcmd_af.texi: Likewise.
18009 * doc/glibc-functions/removexattr.texi: Likewise.
18010 * doc/glibc-functions/res_init.texi: Likewise.
18011 * doc/glibc-functions/res_mkquery.texi: Likewise.
18012 * doc/glibc-functions/res_query.texi: Likewise.
18013 * doc/glibc-functions/res_querydomain.texi: Likewise.
18014 * doc/glibc-functions/res_send.texi: Likewise.
18015 * doc/glibc-functions/rresvport_af.texi: Likewise.
18016 * doc/glibc-functions/setxattr.texi: Likewise.
18017 * doc/glibc-functions/strcasestr.texi: Likewise.
18019 2008-12-15 Bruno Haible <bruno@clisp.org>
18021 Fix compilation error on OSF/1 4.0.
18022 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18023 <sys/time.h>, simply delegate to the system header.
18024 Reported by Daniel Richard G. <oss@teragram.com>.
18026 2008-12-15 Bruno Haible <bruno@clisp.org>
18028 * doc/posix-functions/openat.texi: Mention the 'openat' module.
18029 * doc/posix-functions/fchmodat.texi: Likewise.
18030 * doc/posix-functions/fchownat.texi: Likewise.
18031 * doc/posix-functions/fdopendir.texi: Likewise.
18032 * doc/posix-functions/fstatat.texi: Likewise.
18033 * doc/posix-functions/mkdirat.texi: Likewise.
18034 * doc/posix-functions/unlinkat.texi: Likewise.
18036 2008-12-14 Bruno Haible <bruno@clisp.org>
18038 Update doc for POSIX:2008.
18039 * doc/posix-functions/faccessat.texi: New file.
18040 * doc/posix-functions/fchmodat.texi: New file.
18041 * doc/posix-functions/fchownat.texi: New file.
18042 * doc/posix-functions/fdopendir.texi: New file.
18043 * doc/posix-functions/fstatat.texi: New file.
18044 * doc/posix-functions/futimens.texi: New file.
18045 * doc/posix-functions/linkat.texi: New file.
18046 * doc/posix-functions/mkdirat.texi: New file.
18047 * doc/posix-functions/mkfifoat.texi: New file.
18048 * doc/posix-functions/mknodat.texi: New file.
18049 * doc/posix-functions/open_wmemstream.texi: New file.
18050 * doc/posix-functions/openat.texi: New file.
18051 * doc/posix-functions/psiginfo.texi: New file.
18052 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18053 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18054 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18055 * doc/posix-functions/readlinkat.texi: New file.
18056 * doc/posix-functions/renameat.texi: New file.
18057 * doc/posix-functions/strerror_l.texi: New file.
18058 * doc/posix-functions/symlinkat.texi: New file.
18059 * doc/posix-functions/unlinkat.texi: New file.
18060 * doc/posix-functions/utimensat.texi: New file.
18061 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18063 2008-12-14 Bruno Haible <bruno@clisp.org>
18065 Update doc for POSIX:2008.
18066 * doc/posix-functions/alphasort.texi: Renamed from
18067 doc/glibc-functions/alphasort.texi.
18068 * doc/posix-functions/dirfd.texi: Renamed from
18069 doc/glibc-functions/dirfd.texi.
18070 * doc/posix-functions/dprintf.texi: Renamed from
18071 doc/glibc-functions/dprintf.texi.
18072 * doc/posix-functions/duplocale.texi: Renamed from
18073 doc/glibc-functions/duplocale.texi.
18074 * doc/posix-functions/fexecve.texi: Renamed from
18075 doc/glibc-functions/fexecve.texi.
18076 * doc/posix-functions/fmemopen.texi: Renamed from
18077 doc/glibc-functions/fmemopen.texi.
18078 * doc/posix-functions/freelocale.texi: Renamed from
18079 doc/glibc-functions/freelocale.texi.
18080 * doc/posix-functions/getdate_err.texi: Renamed from
18081 doc/glibc-functions/getdate_err.texi.
18082 * doc/posix-functions/isalnum_l.texi: Renamed from
18083 doc/glibc-functions/isalnum_l.texi.
18084 * doc/posix-functions/isalpha_l.texi: Renamed from
18085 doc/glibc-functions/isalpha_l.texi.
18086 * doc/posix-functions/isblank_l.texi: Renamed from
18087 doc/glibc-functions/isblank_l.texi.
18088 * doc/posix-functions/iscntrl_l.texi: Renamed from
18089 doc/glibc-functions/iscntrl_l.texi.
18090 * doc/posix-functions/isdigit_l.texi: Renamed from
18091 doc/glibc-functions/isdigit_l.texi.
18092 * doc/posix-functions/isgraph_l.texi: Renamed from
18093 doc/glibc-functions/isgraph_l.texi.
18094 * doc/posix-functions/islower_l.texi: Renamed from
18095 doc/glibc-functions/islower_l.texi.
18096 * doc/posix-functions/isprint_l.texi: Renamed from
18097 doc/glibc-functions/isprint_l.texi.
18098 * doc/posix-functions/ispunct_l.texi: Renamed from
18099 doc/glibc-functions/ispunct_l.texi.
18100 * doc/posix-functions/isspace_l.texi: Renamed from
18101 doc/glibc-functions/isspace_l.texi.
18102 * doc/posix-functions/isupper_l.texi: Renamed from
18103 doc/glibc-functions/isupper_l.texi.
18104 * doc/posix-functions/iswalnum_l.texi: Renamed from
18105 doc/glibc-functions/iswalnum_l.texi.
18106 * doc/posix-functions/iswalpha_l.texi: Renamed from
18107 doc/glibc-functions/iswalpha_l.texi.
18108 * doc/posix-functions/iswblank_l.texi: Renamed from
18109 doc/glibc-functions/iswblank_l.texi.
18110 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18111 doc/glibc-functions/iswcntrl_l.texi.
18112 * doc/posix-functions/iswctype_l.texi: Renamed from
18113 doc/glibc-functions/iswctype_l.texi.
18114 * doc/posix-functions/iswdigit_l.texi: Renamed from
18115 doc/glibc-functions/iswdigit_l.texi.
18116 * doc/posix-functions/iswgraph_l.texi: Renamed from
18117 doc/glibc-functions/iswgraph_l.texi.
18118 * doc/posix-functions/iswlower_l.texi: Renamed from
18119 doc/glibc-functions/iswlower_l.texi.
18120 * doc/posix-functions/iswprint_l.texi: Renamed from
18121 doc/glibc-functions/iswprint_l.texi.
18122 * doc/posix-functions/iswpunct_l.texi: Renamed from
18123 doc/glibc-functions/iswpunct_l.texi.
18124 * doc/posix-functions/iswspace_l.texi: Renamed from
18125 doc/glibc-functions/iswspace_l.texi.
18126 * doc/posix-functions/iswupper_l.texi: Renamed from
18127 doc/glibc-functions/iswupper_l.texi.
18128 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18129 doc/glibc-functions/iswxdigit_l.texi.
18130 * doc/posix-functions/isxdigit_l.texi: Renamed from
18131 doc/glibc-functions/isxdigit_l.texi.
18132 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18133 doc/glibc-functions/mbsnrtowcs.texi.
18134 * doc/posix-functions/mkdtemp.texi: Renamed from
18135 doc/glibc-functions/mkdtemp.texi.
18136 * doc/posix-functions/newlocale.texi: Renamed from
18137 doc/glibc-functions/newlocale.texi.
18138 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18139 doc/glibc-functions/nl_langinfo_l.texi.
18140 * doc/posix-functions/open_memstream.texi: Renamed from
18141 doc/glibc-functions/open_memstream.texi.
18142 * doc/posix-functions/opterr.texi: Renamed from
18143 doc/glibc-functions/opterr.texi.
18144 * doc/posix-functions/optind.texi: Renamed from
18145 doc/glibc-functions/optind.texi.
18146 * doc/posix-functions/optopt.texi: Renamed from
18147 doc/glibc-functions/optopt.texi.
18148 * doc/posix-functions/psignal.texi: Renamed from
18149 doc/glibc-functions/psignal.texi.
18150 * doc/posix-functions/scandir.texi: Renamed from
18151 doc/glibc-functions/scandir.texi.
18152 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18153 doc/glibc-functions/sched_get_priority_min.texi.
18154 * doc/posix-functions/signgam.texi: Renamed from
18155 doc/glibc-functions/signgam.texi.
18156 * doc/posix-functions/stpcpy.texi: Renamed from
18157 doc/glibc-functions/stpcpy.texi.
18158 * doc/posix-functions/stpncpy.texi: Renamed from
18159 doc/glibc-functions/stpncpy.texi.
18160 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18161 doc/glibc-functions/strcasecmp_l.texi.
18162 * doc/posix-functions/strcoll_l.texi: Renamed from
18163 doc/glibc-functions/strcoll_l.texi.
18164 * doc/posix-functions/strfmon_l.texi: Renamed from
18165 doc/glibc-functions/strfmon_l.texi.
18166 * doc/posix-functions/strftime_l.texi: Renamed from
18167 doc/glibc-functions/strftime_l.texi.
18168 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18169 doc/glibc-functions/strncasecmp_l.texi.
18170 * doc/posix-functions/strndup.texi: Renamed from
18171 doc/glibc-functions/strndup.texi.
18172 * doc/posix-functions/strnlen.texi: Renamed from
18173 doc/glibc-functions/strnlen.texi.
18174 * doc/posix-functions/strsignal.texi: Renamed from
18175 doc/glibc-functions/strsignal.texi.
18176 * doc/posix-functions/strxfrm_l.texi: Renamed from
18177 doc/glibc-functions/strxfrm_l.texi.
18178 * doc/posix-functions/timer_gettime.texi: Renamed from
18179 doc/glibc-functions/timer_gettime.texi.
18180 * doc/posix-functions/tolower_l.texi: Renamed from
18181 doc/glibc-functions/tolower_l.texi.
18182 * doc/posix-functions/toupper_l.texi: Renamed from
18183 doc/glibc-functions/toupper_l.texi.
18184 * doc/posix-functions/towctrans_l.texi: Renamed from
18185 doc/glibc-functions/towctrans_l.texi.
18186 * doc/posix-functions/towlower_l.texi: Renamed from
18187 doc/glibc-functions/towlower_l.texi.
18188 * doc/posix-functions/towupper_l.texi: Renamed from
18189 doc/glibc-functions/towupper_l.texi.
18190 * doc/posix-functions/uselocale.texi: Renamed from
18191 doc/glibc-functions/uselocale.texi.
18192 * doc/posix-functions/vdprintf.texi: Renamed from
18193 doc/glibc-functions/vdprintf.texi.
18194 * doc/posix-functions/wcpcpy.texi:
18195 Renamed from doc/glibc-functions/wcpcpy.texi.
18196 * doc/posix-functions/wcpncpy.texi: Renamed from
18197 doc/glibc-functions/wcpncpy.texi.
18198 * doc/posix-functions/wcscasecmp.texi: Renamed from
18199 doc/glibc-functions/wcscasecmp.texi.
18200 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18201 doc/glibc-functions/wcscasecmp_l.texi.
18202 * doc/posix-functions/wcscoll_l.texi: Renamed from
18203 doc/glibc-functions/wcscoll_l.texi.
18204 * doc/posix-functions/wcsdup.texi: Renamed from
18205 doc/glibc-functions/wcsdup.texi.
18206 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18207 doc/glibc-functions/wcsncasecmp.texi.
18208 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18209 doc/glibc-functions/wcsncasecmp_l.texi.
18210 * doc/posix-functions/wcsnlen.texi: Renamed from
18211 doc/glibc-functions/wcsnlen.texi.
18212 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18213 doc/glibc-functions/wcsnrtombs.texi.
18214 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18215 doc/glibc-functions/wcsxfrm_l.texi.
18216 * doc/posix-functions/wctrans_l.texi: Renamed from
18217 doc/glibc-functions/wctrans_l.texi.
18218 * doc/posix-functions/wctype_l.texi: Renamed from
18219 doc/glibc-functions/wctype_l.texi.
18220 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18221 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18222 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18223 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18225 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18228 2008-12-14 Bruno Haible <bruno@clisp.org>
18230 Update doc for POSIX:2008.
18231 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18233 2008-12-14 Bruno Haible <bruno@clisp.org>
18235 Update doc for POSIX:2008.
18236 * doc/pastposix-functions/bcmp.texi: Renamed from
18237 doc/posix-functions/bcmp.texi.
18238 * doc/pastposix-functions/bcopy.texi: Renamed from
18239 doc/posix-functions/bcopy.texi.
18240 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18241 doc/posix-functions/bsd_signal.texi.
18242 * doc/pastposix-functions/bzero.texi: Renamed from
18243 doc/posix-functions/bzero.texi.
18244 * doc/pastposix-functions/ecvt.texi: Renamed from
18245 doc/posix-functions/ecvt.texi.
18246 * doc/pastposix-functions/fcvt.texi: Renamed from
18247 doc/posix-functions/fcvt.texi.
18248 * doc/pastposix-functions/ftime.texi: Renamed from
18249 doc/posix-functions/ftime.texi.
18250 * doc/pastposix-functions/gcvt.texi: Renamed from
18251 doc/posix-functions/gcvt.texi.
18252 * doc/pastposix-functions/getcontext.texi: Renamed from
18253 doc/posix-functions/getcontext.texi.
18254 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18255 doc/posix-functions/gethostbyaddr.texi.
18256 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18257 doc/posix-functions/gethostbyname.texi.
18258 * doc/pastposix-functions/getwd.texi: Renamed from
18259 doc/posix-functions/getwd.texi.
18260 * doc/pastposix-functions/h_errno.texi: Renamed from
18261 doc/posix-functions/h_errno.texi.
18262 * doc/pastposix-functions/index.texi: Renamed from
18263 doc/posix-functions/index.texi.
18264 * doc/pastposix-functions/makecontext.texi: Renamed from
18265 doc/posix-functions/makecontext.texi.
18266 * doc/pastposix-functions/mktemp.texi: Renamed from
18267 doc/posix-functions/mktemp.texi.
18268 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18269 doc/posix-functions/pthread_attr_getstackaddr.texi.
18270 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18271 doc/posix-functions/pthread_attr_setstackaddr.texi.
18272 * doc/pastposix-functions/rindex.texi: Renamed from
18273 doc/posix-functions/rindex.texi.
18274 * doc/pastposix-functions/scalb.texi: Renamed from
18275 doc/posix-functions/scalb.texi.
18276 * doc/pastposix-functions/setcontext.texi: Renamed from
18277 doc/posix-functions/setcontext.texi.
18278 * doc/pastposix-functions/swapcontext.texi: Renamed from
18279 doc/posix-functions/swapcontext.texi.
18280 * doc/pastposix-functions/ualarm.texi: Renamed from
18281 doc/posix-functions/ualarm.texi.
18282 * doc/pastposix-functions/usleep.texi: Renamed from
18283 doc/posix-functions/usleep.texi.
18284 * doc/pastposix-functions/vfork.texi: Renamed from
18285 doc/posix-functions/vfork.texi.
18286 * doc/pastposix-functions/wcswcs.texi: Renamed from
18287 doc/posix-functions/wcswcs.texi.
18288 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18289 (Function Substitutes): Update.
18291 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18293 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18296 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18297 Bruno Haible <bruno@clisp.org>
18299 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18301 2008-12-13 Bruno Haible <bruno@clisp.org>
18303 * modules/strtoull (Depends-on): Remove unistd.
18305 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18307 * modules/strtoull (Depends-on): Add stdlib.
18309 2008-12-11 Simon Josefsson <simon@josefsson.org>
18311 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18313 2008-12-10 Jim Meyering <meyering@redhat.com>
18315 gl_ASSERT: don't say assertions are disabled when they're not
18316 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18317 "checking whether to enable assertions... no", when they are in
18318 fact enabled. This is solely a bug in the output of configure.
18319 In spite of saying "no", NDEBUG was not defined in that case.
18320 Also, as noted by Eric Blake, leave assertions enabled upon
18321 --enable-assert=INVALID.
18323 2008-12-10 Bruno Haible <bruno@clisp.org>
18325 Change MODULES.html to refer to POSIX:2008 where possible.
18326 * MODULES.html.sh (POSIX2008_URL): New variable.
18327 (posix_headers): Remove sys/timeb, ucontext.
18328 (posix2001_headers): New variable.
18329 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18330 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18331 index, makecontext, mktemp, pthread_attr_getstackaddr,
18332 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18333 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18334 (posix2001_functions): New variable.
18335 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18338 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18340 add missing include to parse-duration.c
18341 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18342 * modules/parse-duration (Depends-on): Add xalloc.
18344 fix sed script reading maint.mk
18345 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18346 (syntax-check-rules): Use it.
18348 2008-12-09 Bruno Haible <bruno@clisp.org>
18350 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18351 MacOS X 10.4/PowerPC.
18352 Reported by Simon Josefsson.
18354 2008-12-08 Jim Meyering <meyering@redhat.com>
18356 work around mingw's lack of some S_IF definitions
18357 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18358 Reported by Simon Josefsson.
18360 2008-12-08 Bruno Haible <bruno@clisp.org>
18362 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18363 applied to variables. Needed on MacOS X 10.4/PowerPC.
18364 Reported by Simon Josefsson.
18366 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18367 and Eric Blake <ebb9@byu.net>
18369 assert: honor --enable-assert
18370 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18371 order to honor --enable-assert, rather than treating it as a
18372 synonym for --disable-assert.
18374 2008-12-08 Jim Meyering <meyering@redhat.com>
18376 * lib/posixtm.c: Remove now-useless declaration of mktime.
18378 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18380 2008-12-07 Bruno Haible <bruno@clisp.org>
18382 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18383 test_once): Mark functions as static.
18384 * tests/test-tls.c (test_tls): Likewise.
18386 2008-12-07 Bruno Haible <bruno@clisp.org>
18388 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18389 iconv_register_autodetect.
18391 2008-12-07 Jim Meyering <meyering@redhat.com>
18393 posixtm.c: avoid a warning
18394 * lib/posixtm.c (posixtime): Don't initialize tm0.
18395 It's no longer needed to placate gcc4's -Wuninitialized,
18396 and the attempt to placate would elicit a new warning.
18398 unicodeio.c: mark unused parameters
18399 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18400 (fallback_failure_callback): Likewise.
18402 2008-12-07 Bruno Haible <bruno@clisp.org>
18404 * gnulib-tool (func_create_testdir): When building the tests
18405 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18406 Reported by Simon Josefsson.
18408 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18410 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18412 2008-12-06 Bruno Haible <bruno@clisp.org>
18414 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18415 Suggested by Eric Blake.
18417 2008-12-06 Bruno Haible <bruno@clisp.org>
18419 Fix a c-stack test failure on MacOS X.
18420 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18421 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18422 handler for SIGBUS as well.
18423 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18424 install a signal handler for SIGBUS as well.
18425 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18427 2008-12-06 Bruno Haible <bruno@clisp.org>
18429 Advocacy documentation.
18430 * doc/gnulib-intro.texi (Benefits): New section.
18431 * doc/gnulib.texi: Update.
18433 2008-12-06 Bruno Haible <bruno@clisp.org>
18435 Document the 'manywarnings' module.
18436 * doc/manywarnings.texi: New file.
18437 * doc/gnulib.texi: Include it.
18439 2008-12-05 Eric Blake <ebb9@byu.net>
18441 tests: silence some gcc warnings
18442 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18443 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18446 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18447 Bruno Haible <bruno@clisp.org>
18449 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18451 2008-11-29 Jim Meyering <meyering@redhat.com>
18453 unicodeio.c: mark unused parameters
18454 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18455 (fallback_failure_callback): Likewise.
18458 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18459 (set_stat_type): Return S_IF*-valued "type" directly.
18460 Prompted by James Youngman's spotting a related bug.
18461 Confirmed by further testing through find.
18463 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18464 * lib/fts.c (D_TYPE): Define.
18465 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18466 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18467 (s_ifmt_shift_bits): New function.
18468 (set_stat_type): New function.
18469 (fts_build): When not calling fts_stat, call set_stat_type
18470 to propagate dirent.d_type info to fts_read caller.
18471 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18472 fts_statp->st_mode type information may be valid.
18474 2008-11-28 Simon Josefsson <simon@josefsson.org>
18476 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18477 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18480 2008-11-20 Bruno Haible <bruno@clisp.org>
18482 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18483 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18485 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18487 * modules/math (Makefile.am): Substitute
18488 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18489 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18491 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18492 Bruno Haible <bruno@clisp.org>
18494 * lib/stdint.in.h: Define all type macros so that their expansion is
18495 a single typedef'ed token. Fixes a compilation failure in Boost which
18496 does "using ::int8_t;".
18498 2008-11-18 Simon Josefsson <simon@josefsson.org>
18500 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18501 gl_MANYWARN_ALL_GCC.
18502 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18503 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18504 * modules/manywarnings: New file.
18505 * MODULES.html.sh: Mention manywarnings module.
18507 2008-11-18 Bruno Haible <bruno@clisp.org>
18509 * doc/gnulib-tool.texi (Unit tests): New section.
18511 2008-11-18 Simon Josefsson <simon@josefsson.org>
18513 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18514 paths like 'lib/po/foo.po'.
18516 2008-11-17 Simon Josefsson <simon@josefsson.org>
18518 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18519 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18521 2008-11-17 Simon Josefsson <simon@josefsson.org>
18523 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18526 2008-11-17 Simon Josefsson <simon@josefsson.org>
18528 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18530 2008-11-17 Bruce Korb <bkorb@gnu.org>
18532 * modules/parse-duration-tests: New file.
18533 * tests/test-parse-duration.sh: New file.
18534 * tests/test-parse-duration.c: New file.
18536 New module 'parse-duration'.
18537 * lib/parse-duration.h: New file.
18538 * lib/parse-duration.c: New file.
18539 * modules/parse-duration: New file.
18541 2008-11-17 Bruno Haible <bruno@clisp.org>
18543 * tests/test-select-out.sh: Comment out the first pipe test.
18544 Reported by Simon Josefsson.
18546 2008-11-17 Bruno Haible <bruno@clisp.org>
18548 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18549 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18552 2008-11-17 Bruno Haible <bruno@clisp.org>
18554 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18555 -lnetwork and -lnet. Needed for Haiku and BeOS.
18557 2008-11-16 Bruno Haible <bruno@clisp.org>
18559 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18561 2008-11-16 Bruno Haible <bruno@clisp.org>
18563 Avoid test failure on Haiku.
18564 * tests/test-fsync.c: Include <errno.h>.
18565 (main): Don't require that fsync (0) fails.
18567 2008-11-15 Bruno Haible <bruno@clisp.org>
18569 New module 'hostent'.
18570 * modules/hostent: New file.
18571 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18573 2008-11-15 Bruno Haible <bruno@clisp.org>
18575 New module 'servent'.
18576 * modules/servent: New file.
18577 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18579 2008-11-15 Bruno Haible <bruno@clisp.org>
18581 Avoid generating same test program with two different rules.
18582 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18583 test-frexp to test-frexp-nolibm.
18584 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18585 test-frexpl to test-frexpl-nolibm.
18587 2008-11-15 Bruno Haible <bruno@clisp.org>
18589 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18592 2008-11-15 Bruno Haible <bruno@clisp.org>
18594 * lib/netdb.in.h: Activate the definitions also when the system's
18595 <netdb.h> has 'struct addrinfo'.
18596 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18597 EAI_OVERFLOW or AI_NUMERICSERV.
18598 * doc/posix-headers/netdb.texi: Document the problem.
18600 2008-11-15 Bruno Haible <bruno@clisp.org>
18602 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18604 Make the 'sched' module work on platforms where <sched.h> exists but
18605 is incomplete (such as Haiku).
18606 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18607 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18608 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18609 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18610 HAVE_STRUCT_SCHED_PARAM.
18611 * modules/sched (Depends-on): Add include_next.
18612 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18613 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18614 * doc/posix-headers/sched.texi: Document the issue.
18616 2008-11-13 Jim Meyering <meyering@redhat.com>
18618 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18619 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18620 test would fail due to the difference in the Report bugs to ...
18621 line. The expected address is empty, "<>", while the actual
18622 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18624 2008-11-12 Bruno Haible <bruno@clisp.org>
18626 lstat: don't compile lstat.c on systems lacking lstat
18627 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18628 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18629 Reported by Daniel P. Berrange via Jim Meyering.
18631 2008-11-12 Jim Meyering <meyering@redhat.com>
18633 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18635 2008-11-12 Simon Josefsson <simon@josefsson.org>
18637 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18640 2008-11-12 Bruno Haible <bruno@clisp.org>
18642 * lib/unicodeio.c: Include unistr.h.
18643 (utf8_wctomb): Remove function.
18644 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18646 2008-11-12 Simon Josefsson <simon@josefsson.org>
18648 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18649 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18651 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18653 2008-11-12 Simon Josefsson <simon@josefsson.org>
18655 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18656 * doc/gnulib.texi: Add section for warnings.
18658 2008-11-11 Bruno Haible <bruno@clisp.org>
18660 * lib/sockets.h: Add a comment.
18662 2008-11-11 Karl Berry <karl@gnu.org>
18664 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18666 2008-11-11 Eric Blake <ebb9@byu.net>
18668 fdl.texi: avoid git symlinks
18669 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18671 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18673 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18675 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18677 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18678 (gl_WARN_ADD): Substitute $2 if literal.
18680 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18682 * m4/warning.m4: Remove.
18684 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18686 * m4/warnings.m4: Almost complete rewrite. :-)
18688 2008-11-10 Simon Josefsson <simon@josefsson.org>
18690 * modules/warnings: New module.
18691 * m4/warnings.m4: New file.
18692 * MODULES.html.sh: Mention warnings module.
18693 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18694 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18696 2008-11-10 Eric Blake <ebb9@byu.net>
18698 fdl.texi: make a symlink to the latest version
18699 * doc/standards.texi: Revert today's earlier change.
18700 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18701 * doc/fdl.texi: ...and replace this with a symlink to the newer
18704 2008-11-10 Bruno Haible <bruno@clisp.org>
18706 * tests/test-select-fd.c (main): Accept the result file name as fourth
18708 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18709 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18711 2008-11-10 Bruno Haible <bruno@clisp.org>
18713 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18714 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18715 as autoconf-substituted macros.
18716 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18717 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18718 gl_NETDB_H_DEFAULTS. Set these variables.
18719 * modules/netdb (Makefile.am): Substitute these variables.
18721 2008-11-10 Eric Blake <ebb9@byu.net>
18723 standards.texi: include correct file for FDL 1.3
18724 * doc/standards.texi (GNU Free Documentation License): Change
18725 include file to pull in FDL 1.3, not 1.2.
18727 fdl.texi: revert accidental change to license
18728 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18730 2008-11-10 Bruno Haible <bruno@clisp.org>
18732 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18733 cross-compiling guesses also when the native compile gives no result.
18735 2008-11-10 Bruno Haible <bruno@clisp.org>
18737 * lib/spawni.c (__spawni): Force variable into the stack.
18739 2008-11-10 Bruno Haible <bruno@clisp.org>
18741 Add support for Haiku.
18742 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18743 glibc and BeOS, but also on Haiku.
18744 * lib/fpurge.c (fpurge): Likewise.
18745 * lib/freadable.c (freadable): Likewise.
18746 * lib/freadahead.c (freadahead): Likewise.
18747 * lib/freading.c (freading): Likewise.
18748 * lib/freadptr.c (freadptr): Likewise.
18749 * lib/freadseek.c (freadptrinc): Likewise.
18750 * lib/fseeko.c (rpl_fseeko): Likewise.
18751 * lib/fseterr.c (fseterr): Likewise.
18752 * lib/fwritable.c (fwritable): Likewise.
18753 * lib/fwriting.c (fwriting): Likewise.
18754 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18756 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18758 * lib/config.charset: Treat Haiku like BeOS.
18760 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18762 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18763 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18765 2008-11-08 Bruno Haible <bruno@clisp.org>
18767 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18770 2008-11-08 Bruno Haible <bruno@clisp.org>
18772 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18774 2008-11-08 Bruno Haible <bruno@clisp.org>
18776 * tests/test-select-fd.c: New file.
18777 * tests/test-select-in.sh: New file.
18778 * tests/test-select-out.sh: New file.
18779 * tests/test-select-stdin.c: New file.
18780 * modules/select-tests (Files): Add the new files.
18781 (Depends-on): Add gettimeofday.
18782 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18783 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18784 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18786 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18787 Bruno Haible <bruno@clisp.org>
18789 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18791 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18793 * build-aux/pmccabe2html: Added support for C++ source files.
18795 2008-11-05 Ben Pfaff <blp@gnu.org>
18797 Fix lib/close.c build on Windows.
18798 * modules/close (Files): Add lib/w32sock.h.
18800 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18802 Accept Bison's NEWS format.
18803 * build-aux/announce-gen (print_news_deltas): Tweak
18806 2008-11-04 Bruno Haible <bruno@clisp.org>
18808 * modules/random_r (Maintainer): Add glibc.
18810 2008-11-04 Simon Josefsson <simon@josefsson.org>
18812 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18813 by karl@freefriends.org (Karl Berry).
18814 * doc/alloca.texi: Likewise.
18815 * doc/c-ctype.texi: Likewise.
18816 * doc/c-strcase.texi: Likewise.
18817 * doc/c-strcaseeq.texi: Likewise.
18818 * doc/c-strcasestr.texi: Likewise.
18819 * doc/c-strstr.texi: Likewise.
18820 * doc/c-strtod.texi: Likewise.
18821 * doc/c-strtold.texi: Likewise.
18822 * doc/ctime.texi: Likewise.
18823 * doc/error.texi: Likewise.
18824 * doc/fdl.texi: Likewise.
18825 * doc/gcd.texi: Likewise.
18826 * doc/getdate.texi: Likewise.
18827 * doc/gnulib-intro.texi: Likewise.
18828 * doc/gnulib-tool.texi: Likewise.
18829 * doc/gnulib.texi: Likewise.
18830 * doc/inet_ntoa.texi: Likewise.
18831 * doc/maintain.texi: Likewise.
18832 * doc/make-stds.texi: Likewise.
18833 * doc/quote.texi: Likewise.
18834 * doc/regexprops-generic.texi: Likewise.
18835 * doc/standards.texi: Likewise.
18836 * doc/verify.texi: Likewise.
18837 * doc/visibility.texi: Likewise.
18838 * doc/gnulib.texi (GNU Free Documentation License): Include
18839 fdl-1.3.texi instead of fdl.texi.
18841 2008-11-04 Simon Josefsson <simon@josefsson.org>
18843 * doc/fdl-1.3.texi: New file, from
18844 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18845 * modules/fdl-1.3: Add.
18846 * MODULES.html.sh: Add fdl-1.3.
18848 2008-11-03 Bruno Haible <bruno@clisp.org>
18850 Make determination of absolute name of header file work with AIX xlc.
18851 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18852 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18854 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18855 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18857 2008-11-03 Simon Josefsson <simon@josefsson.org>
18859 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18860 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18863 2008-11-02 Bruno Haible <bruno@clisp.org>
18865 Mark 'strpbrk' obsolete.
18866 * modules/strpbrk (Status, Notice): New sections.
18867 * modules/strtok_r (Depends-on): Add strpbrk.
18869 2008-11-02 Bruno Haible <bruno@clisp.org>
18871 Mark 'strdup' obsolete.
18872 * modules/strdup (Status, Notice): New sections.
18873 * modules/findprog (Depends-on): Add strdup.
18874 * modules/getaddrinfo (Depends-on): Likewise.
18875 * modules/localename (Depends-on): Likewise.
18876 * modules/relocatable-lib (Depends-on): Likewise.
18877 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18878 * modules/relocatable-prog (Depends-on): Likewise.
18879 * modules/trim (Depends-on): Likewise.
18880 * modules/unictype/gen-ctype (Depends-on): Likewise.
18881 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18883 2008-11-02 Bruno Haible <bruno@clisp.org>
18885 Mark 'strcspn' obsolete.
18886 * modules/strcspn (Status, Notice): New sections.
18888 2008-11-02 Bruno Haible <bruno@clisp.org>
18890 Mark 'rmdir' obsolete.
18891 * modules/rmdir (Status, Notice): New sections.
18892 * modules/clean-temp (Depends-on): Add rmdir.
18893 * modules/openat (Depends-on): Likewise.
18895 2008-11-02 Bruno Haible <bruno@clisp.org>
18897 Mark 'raise' obsolete.
18898 * modules/raise (Status, Notice): New sections.
18899 (Include): Specify <signal.h>.
18900 * modules/stdio (Depends-on): Add raise.
18901 * modules/write (Depends-on): Likewise.
18903 2008-11-02 Bruno Haible <bruno@clisp.org>
18905 Mark 'memset' obsolete.
18906 * modules/memset (Status, Notice): New sections.
18908 2008-11-02 Bruno Haible <bruno@clisp.org>
18910 Mark 'memmove' obsolete.
18911 * modules/memmove (Status, Notice): New sections.
18912 * modules/argp (Depends-on): Add memmove.
18913 * modules/argz (Depends-on): Likewise.
18914 * modules/canonicalize (Depends-on): Likewise.
18915 * modules/canonicalize-lgpl (Depends-on): Likewise.
18916 * modules/fts (Depends-on): Likewise.
18917 * modules/getcwd (Depends-on): Likewise.
18918 * modules/human (Depends-on): Likewise.
18919 * modules/regex (Depends-on): Likewise.
18920 * modules/striconveh (Depends-on): Likewise.
18921 * modules/trim (Depends-on): Likewise.
18922 * modules/unistr/u8-move (Depends-on): Likewise.
18923 * modules/unistr/u16-move (Depends-on): Likewise.
18924 * modules/unistr/u32-move (Depends-on): Likewise.
18926 2008-11-02 Bruno Haible <bruno@clisp.org>
18928 Mark 'memcpy' obsolete.
18929 * modules/memcpy (Status, Notice): New sections.
18931 2008-11-02 Bruno Haible <bruno@clisp.org>
18933 Mark 'memcmp' obsolete.
18934 * modules/memcmp (Status, Notice): New sections.
18935 * modules/argmatch (Depends-on): Add memchr.
18936 * modules/backupfile (Depends-on): Likewise.
18937 * modules/c-strcasestr (Depends-on): Likewise.
18938 * modules/crypto/des (Depends-on): Likewise.
18939 * modules/csharpcomp (Depends-on): Likewise.
18940 * modules/fnmatch (Depends-on): Likewise.
18941 * modules/git-merge-changelog (Depends-on): Likewise.
18942 * modules/isnand (Depends-on): Likewise.
18943 * modules/isnand-nolibm (Depends-on): Likewise.
18944 * modules/isnanf (Depends-on): Likewise.
18945 * modules/isnanf-nolibm (Depends-on): Likewise.
18946 * modules/isnanl (Depends-on): Likewise.
18947 * modules/isnanl-nolibm (Depends-on): Likewise.
18948 * modules/mbchar (Depends-on): Likewise.
18949 * modules/memcoll (Depends-on): Likewise.
18950 * modules/quotearg (Depends-on): Likewise.
18951 * modules/regex (Depends-on): Likewise.
18952 * modules/relocatable-prog (Depends-on): Likewise.
18953 * modules/same (Depends-on): Likewise.
18954 * modules/signbit (Depends-on): Likewise.
18955 * modules/strcasestr-simple (Depends-on): Likewise.
18956 * modules/unictype/gen-ctype (Depends-on): Likewise.
18957 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18958 * modules/uniname/uniname (Depends-on): Likewise.
18959 * modules/unistr/u8-cmp (Depends-on): Likewise.
18961 2008-11-02 Bruno Haible <bruno@clisp.org>
18963 Mark 'memchr' obsolete.
18964 * modules/memchr (Status, Notice): New sections.
18965 * modules/argp (Depends-on): Add memchr.
18966 * modules/base64 (Depends-on): Likewise.
18967 * modules/c-strcasestr (Depends-on): Likewise.
18968 * modules/chdir-long (Depends-on): Likewise.
18969 * modules/fnmatch (Depends-on): Likewise.
18970 * modules/getsubopt (Depends-on): Likewise.
18971 * modules/git-merge-changelog (Depends-on): Likewise.
18972 * modules/glob (Depends-on): Likewise.
18973 * modules/strcasestr-simple (Depends-on): Likewise.
18974 * modules/strnlen (Depends-on): Likewise.
18976 2008-11-02 Bruno Haible <bruno@clisp.org>
18978 Mark 'atexit' obsolete.
18979 * modules/atexit (Status, Notice): New sections.
18980 * modules/chdir-long (Depends-on): Add atexit.
18981 * modules/wait-process (Depends-on): Likewise.
18983 2008-11-02 Bruno Haible <bruno@clisp.org>
18985 * gnulib-tool: New option --with-obsolete.
18986 (func_usage): Document it.
18987 (func_modules_transitive_closure): Drop obsolete dependencies if
18988 incobsolete is not true.
18989 (func_import): Read and save the incobsolete variable to the cache.
18991 2008-11-02 Bruno Haible <bruno@clisp.org>
18993 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18994 * gnulib-tool: New option --extract-status.
18995 (func_usage): Document it.
18996 (sed_extract_prog): Recognize it.
18997 (func_get_status): New function.
18999 2008-10-30 Simon Josefsson <simon@josefsson.org>
19001 * modules/sockets (License): Change from LGPL to LGPLv2+.
19003 2008-10-28 Simon Josefsson <simon@josefsson.org>
19005 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19007 2008-10-28 Simon Josefsson <simon@josefsson.org>
19009 * MODULES.html.sh (Support for systems lacking POSIX:2001):
19010 Mention times and sys_times.
19011 * modules/sys_times, modules/sys_times-tests: New modules.
19012 * modules/times, modules/times-tests: Likewise
19013 * m4/sys_times_h.m4: New file.
19014 * lib/sys_times.in.h: Likewise
19015 * lib/times.c: Likewise.
19016 * tests/test-sys_times.c: Likewise.
19017 * tests/test-times.c: Likewise.
19018 * doc/posix-headers/sys_times.texi: Update.
19019 * doc/posix-functions/times.texi: Update.
19021 2008-10-28 Jim Meyering <meyering@redhat.com>
19023 * modules/tempname (Depends-on): Add lstat.
19025 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19027 2008-10-28 Simon Josefsson <simon@josefsson.org>
19029 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19030 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19031 using idiom used elsewhere in gnulib.
19033 2008-10-27 Jim Meyering <meyering@redhat.com>
19035 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19037 2008-10-27 Simon Josefsson <simon@josefsson.org>
19039 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19040 TESTS_ENVIRONMENT, for shell scripts that needs to call built
19042 * tests/test-argp-2.sh: Use $EXEEXT when needed.
19044 2008-10-27 Simon Josefsson <simon@josefsson.org>
19046 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19048 2008-10-27 Bruno Haible <bruno@clisp.org>
19050 * tests/test-lstat.c: Include <stdio.h>.
19052 2008-10-27 Simon Josefsson <simon@josefsson.org>
19054 * modules/lstat-tests: New module.
19055 * tests/test-lstat.c: New file.
19057 2008-10-26 Jim Meyering <meyering@redhat.com>
19059 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19061 2008-10-26 Simon Josefsson <simon@josefsson.org>
19062 Bruno Haible <bruno@clisp.org>
19064 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19065 * modules/configmake (Include): Add a note that the include must come
19066 after all system headers.
19067 * lib/javaversion.c: Include configmake.h after all other includes.
19069 2008-10-26 Bruno Haible <bruno@clisp.org>
19071 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19072 HAVE_STRUCT_RANDOM_DATA to 1.
19073 (gl_STDLIB_H): Simplify.
19075 2008-10-26 Simon Josefsson <simon@josefsson.org>
19077 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19078 substitute HAVE_STRUCT_RANDOM_DATA.
19079 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19081 * modules/stdlib (Makefile.am): Substitute
19082 HAVE_STRUCT_RANDOM_DATA.
19084 2008-10-26 Simon Josefsson <simon@josefsson.org>
19086 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19087 * doc/gnulib-intro.texi (Copyright): Likewise.
19089 2008-10-26 Simon Josefsson <simon@josefsson.org>
19091 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19094 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19095 Bruno Haible <bruno@clisp.org>
19097 * lib/unistd.in.h: Include <winsock2.h>.
19098 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19099 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19100 Provide dummy declarations.
19101 (gethostname): Override.
19102 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19103 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19104 gl_PREREQ_SYS_H_WINSOCK2.
19105 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19106 * doc/posix-functions/gethostname.texi: More details.
19108 2008-10-25 Bruno Haible <bruno@clisp.org>
19110 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19111 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19112 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19114 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19116 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19117 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19118 gl_UNISTD_H_DEFAULTS.
19120 2008-10-25 Eric Blake <ebb9@byu.net>
19122 signbit: avoid spurious compiler failure
19123 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19124 declarations inside function.
19126 2008-10-24 Simon Josefsson <simon@josefsson.org>
19127 Bruno Haible <bruno@clisp.org>
19129 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19130 * modules/random_r (Depends-on): Add stdint.
19132 2008-10-24 Bruno Haible <bruno@clisp.org>
19134 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19136 * modules/strerror (License): Likewise.
19138 2008-10-24 Jim Meyering <meyering@redhat.com>
19140 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19141 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19143 2008-10-24 Eric Blake <ebb9@byu.net>
19145 getgroups: fix compilation when getgroups is available
19146 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19147 but with <config.h> override of getgroups disabled.
19149 2008-10-24 Simon Josefsson <simon@josefsson.org>
19151 * doc/gnulib.texi (Header files): Add note about C++ problems.
19152 Explained by Bruno Haible <bruno@clisp.org>.
19154 2008-10-23 Bruno Haible <bruno@clisp.org>
19156 Define a dummy SA_NODEFER macro on Interix.
19157 * lib/signal.in.h (SA_NODEFER): Define fallback.
19158 Reported by Aleksey Cheusov <cheusov@tut.by> via
19159 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19161 2008-10-23 Bruno Haible <bruno@clisp.org>
19163 * modules/freadahead (License): Change to LGPLv2+.
19164 Suggested by Simon Josefsson.
19166 2008-10-23 Jim Meyering <meyering@redhat.com>
19168 random_r: new module
19169 * modules/random_r: New file.
19170 * m4/random_r.m4: New file.
19171 * lib/random_r.c: New file, from glibc.
19172 * modules/random_r-tests: New file.
19173 * tests/test-random_r.c: New file.
19174 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19176 (RAND_MAX): Define.
19177 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19178 * modules/stdlib: Substitute them, too.
19179 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19180 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19181 * doc/glibc-functions/random_r.texi: Likewise.
19182 * doc/glibc-functions/setstate_r.texi: Likewise.
19183 * doc/glibc-functions/srandom_r.texi: Likewise.
19184 * config/srclist.txt: Mention it.
19186 2008-10-23 David Lutterkort <lutter@redhat.com>
19188 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19191 2008-10-23 Jim Meyering <meyering@redhat.com>
19193 selinux-h: mark parameters of stub functions as intentionally unused
19194 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19195 * lib/se-context.in.h: Likewise.
19197 2008-10-22 Simon Josefsson <simon@josefsson.org>
19199 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19201 2008-10-22 Simon Josefsson <simon@josefsson.org>
19203 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19205 2008-10-22 Eric Blake <ebb9@byu.net>
19207 glthread/thread: avoid compiler warning
19208 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19209 Add unreachable abort to silence compiler.
19211 2008-10-22 Eric Blake <ebb9@byu.net>
19213 netdb: also supply struct addrinfo for cygwin 1.5.x
19214 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19216 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19218 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19220 2008-10-22 Bruno Haible <bruno@clisp.org>
19222 * users.txt: Update entry about pspp.
19224 2008-10-21 Bruno Haible <bruno@clisp.org>
19227 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19228 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19231 * lib/ioctl.c (ioctl): Don't undefine.
19232 * lib/socket.c (socket): Don't undefine.
19234 Remove unused module indicator macros.
19235 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19236 GNULIB_$1 as a C macro.
19238 * doc/posix-functions/close.texi: Undo last change.
19239 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19242 2008-10-21 Bruno Haible <bruno@clisp.org>
19244 Add gethostname() declaration to <unistd.h>.
19245 * lib/unistd.in.h (gethostname): New declaration.
19246 * lib/gethostname.c: Include <unistd.h>.
19247 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19248 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19249 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19250 and HAVE_GETHOSTNAME.
19251 * modules/gethostname (Depends-on): Add unistd.
19252 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19253 (Include): Specify <unistd.h>.
19254 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19256 * tests/test-gethostname.c: Include <unistd.h> first.
19258 2008-10-21 Bruno Haible <bruno@clisp.org>
19260 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19261 * modules/select-tests (Depends-on): Likewise.
19262 Reported by Simon Josefsson.
19264 2008-10-21 Simon Josefsson <simon@josefsson.org>
19266 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19267 * lib/accept.c: New file, based on winsock.c.
19268 * lib/bind.c: New file, based on winsock.c.
19269 * lib/connect.c: New file, based on winsock.c.
19270 * lib/getpeername.c: New file, based on winsock.c.
19271 * lib/getsockname.c: New file, based on winsock.c.
19272 * lib/getsockopt.c: New file, based on winsock.c.
19273 * lib/ioctl.c: New file, based on winsock.c.
19274 * lib/listen.c: New file, based on winsock.c.
19275 * lib/recv.c: New file, based on winsock.c.
19276 * lib/recvfrom.c: New file, based on winsock.c.
19277 * lib/send.c: New file, based on winsock.c.
19278 * lib/sendto.c: New file, based on winsock.c.
19279 * lib/setsockopt.c: New file, based on winsock.c.
19280 * lib/shutdown.c: New file, based on winsock.c.
19281 * lib/socket.c: New file, based on winsock.c.
19282 * lib/w32sock.h: New file, based on winsock.c.
19283 * lib/winsock.c: Remove file.
19284 * modules/accept: Likewise.
19285 * modules/bind: Likewise.
19286 * modules/connect: Likewise.
19287 * modules/getpeername: Likewise.
19288 * modules/getsockname: Likewise.
19289 * modules/getsockopt: Likewise.
19290 * modules/ioctl: Likewise.
19291 * modules/listen: Likewise.
19292 * modules/recv: Likewise.
19293 * modules/recvfrom: Likewise.
19294 * modules/send: Likewise.
19295 * modules/sendto: Likewise.
19296 * modules/setsockopt: Likewise.
19297 * modules/shutdown: Likewise.
19298 * modules/socket: Use socket.c instead of winsock.c.
19299 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19300 * doc/posix-functions/accept.texi: Doc fix.
19301 * doc/posix-functions/bind.texi: Doc fix.
19302 * doc/posix-functions/close.texi: Doc fix.
19303 * doc/posix-functions/connect.texi: Doc fix.
19304 * doc/posix-functions/getpeername.texi: Doc fix.
19305 * doc/posix-functions/getsockname.texi: Doc fix.
19306 * doc/posix-functions/getsockopt.texi: Doc fix.
19307 * doc/posix-functions/ioctl.texi: Doc fix.
19308 * doc/posix-functions/listen.texi: Doc fix.
19309 * doc/posix-functions/recv.texi: Doc fix.
19310 * doc/posix-functions/recvfrom.texi: Doc fix.
19311 * doc/posix-functions/send.texi: Doc fix.
19312 * doc/posix-functions/sendto.texi: Doc fix.
19313 * doc/posix-functions/setsockopt.texi: Doc fix.
19314 * doc/posix-functions/shutdown.texi: Doc fix.
19315 * doc/posix-functions/socket.texi: Doc fix.
19317 2008-10-20 Bruno Haible <bruno@clisp.org>
19319 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19320 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19321 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19322 as an alias for SIGABRT.
19323 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19324 (sigaction): Map it to SIGABRT.
19325 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19327 2008-10-20 Bruno Haible <bruno@clisp.org>
19329 * lib/fts.c: Don't include lstat.h.
19330 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19332 Move the lstat() declaration to <sys/stat.h>.
19333 * lib/lstat.h: Remove file.
19334 * lib/sys_stat.in.h: Add special invocation convention.
19335 (lstat): New declaration.
19336 * lib/lstat.c (orig_lstat): New function.
19337 (rpl_lstat): Use orig_lstat instead of lstat.
19338 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19339 AC_C_INLINE. Set REPLACE_LSTAT.
19340 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19342 * modules/lstat (Files): Remove lib/lstat.h.
19343 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19344 (Include): Specify <sys/stat.h> instead of lstat.h.
19345 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19347 * NEWS: Mention the change.
19349 2008-10-20 Bruno Haible <bruno@clisp.org>
19351 * modules/posix_spawn-tests: New file.
19352 * tests/test-posix_spawn3.c: New file.
19354 2008-10-20 Bruno Haible <bruno@clisp.org>
19356 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19357 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19358 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19359 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19360 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19362 2008-10-20 Bruno Haible <bruno@clisp.org>
19364 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19365 of posix_spawn on AIX 5.3.
19367 2008-10-20 Bruno Haible <bruno@clisp.org>
19369 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19371 2008-10-20 Bruno Haible <bruno@clisp.org>
19373 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19374 of AC_LANG_PROGRAM.
19376 2008-10-20 Simon Josefsson <simon@josefsson.org>
19378 * lib/netdb.in.h: Don't define GNU specific constants until they
19379 are supported or needed. Reported by Bruno Haible
19382 2008-10-20 Simon Josefsson <simon@josefsson.org>
19384 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19386 2008-10-20 Simon Josefsson <simon@josefsson.org>
19388 * lib/getaddrinfo.h: Remove file.
19389 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19390 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19391 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19392 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19393 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19394 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19395 * tests/test-getaddrinfo.c: Likewise.
19396 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19397 * NEWS: Mention change.
19399 2008-10-19 Bruno Haible <bruno@clisp.org>
19401 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19403 2008-10-19 Bruno Haible <bruno@clisp.org>
19405 * lib/wait-process.c: Include simply <sys/wait.h>.
19406 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19407 WIFSTOPPED): Remove fallback definitions.
19408 * modules/wait-process (Depends-on): Add sys_wait.
19410 New module 'sys_wait'.
19411 * modules/sys_wait: New file.
19412 * lib/sys_wait.in.h: New file, partially copied from
19413 lib/wait-process.c.
19414 * m4/sys_wait_h.m4: New file.
19415 * doc/posix-headers/sys_wait.texi: Mention the new module.
19417 2008-10-19 Bruno Haible <bruno@clisp.org>
19419 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19421 2008-10-19 Bruno Haible <bruno@clisp.org>
19423 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19424 * lib/wait-process.c (WAIT_T): Remove type.
19425 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19426 (wait_subprocess): Update.
19428 2008-10-19 Bruno Haible <bruno@clisp.org>
19430 New module 'atoll'.
19431 * modules/atoll: New file.
19432 * lib/stdlib.in.h (atoll): New declaration.
19433 * lib/atoll.c: New file, from glibc with modifications.
19434 * m4/atoll.m4: New file.
19435 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19437 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19438 * doc/posix-functions/atoll.texi: Mention the new module.
19440 2008-10-19 Bruno Haible <bruno@clisp.org>
19442 Add strtoull() declaration to <stdlib.h>.
19443 * lib/stdlib.in.h (strtoull): New declaration.
19444 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19446 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19448 * modules/strtoull (Depends-on): Add stdlib.
19449 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19450 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19453 2008-10-19 Bruno Haible <bruno@clisp.org>
19455 Add strtoll() declaration to <stdlib.h>.
19456 * lib/stdlib.in.h (strtoll): New declaration.
19457 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19459 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19461 * modules/strtoll (Depends-on): Add stdlib.
19462 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19463 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19465 2008-10-19 Bruno Haible <bruno@clisp.org>
19467 * modules/bcopy (Depends-on): Add strings.
19468 (Include): Specify <strings.h>.
19470 2008-10-19 Bruno Haible <bruno@clisp.org>
19472 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19474 2008-10-19 Bruno Haible <bruno@clisp.org>
19476 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19477 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19480 2008-10-19 Bruno Haible <bruno@clisp.org>
19482 * lib/atanl.c: Don't include isnanl.h.
19483 * lib/cosl.c: Likewise.
19484 * lib/ldexpl.c: Likewise.
19485 * lib/logl.c: Likewise.
19486 * lib/sinl.c: Likewise.
19487 * lib/sqrtl.c: Likewise.
19488 * lib/tanl.c: Likewise.
19490 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19491 * lib/isnanf.h: Remove file.
19492 * lib/isnand.h: Remove file.
19493 * lib/isnanl.h: Remove file.
19494 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19495 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19497 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19498 HAVE_ISNANF, don't define it as a C macro.
19499 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19500 HAVE_ISNAND, don't define it as a C macro.
19501 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19502 HAVE_ISNANL, don't define it as a C macro.
19503 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19505 * modules/isnanf (Files): Remove lib/isnanf.h.
19506 (Depends-on): Add math.
19507 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19508 (Include): Specify <math.h> instead of isnanf.h.
19509 * modules/isnand (Files): Remove lib/isnand.h.
19510 (Depends-on): Add math.
19511 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19512 (Include): Specify <math.h> instead of isnand.h.
19513 * modules/isnanl (Files): Remove lib/isnanl.h.
19514 (Depends-on): Add math.
19515 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19516 (Include): Specify <math.h> instead of isnanl.h.
19517 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19519 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19520 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19521 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19522 * NEWS: Mention the change.
19524 2008-10-18 Bruno Haible <bruno@clisp.org>
19526 Add getusershell(), setusershell(), endusershell() declarations to
19528 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19530 * lib/getusershell.c: Include unistd.h.
19531 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19532 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19534 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19535 and HAVE_GETUSERSHELL.
19536 * modules/getusershell (Depends-on): Add unistd, extensions.
19537 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19538 (Include): Specify <unistd.h>.
19539 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19542 2008-10-18 Bruno Haible <bruno@clisp.org>
19544 Add a getloadavg() declaration to <stdlib.h>.
19545 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19546 getloadavg declaration.
19547 (getloadavg): New declaration.
19548 * lib/getloadavg.c: Include <stdlib.h> first.
19549 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19550 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19551 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19552 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19553 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19554 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19555 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19556 (Include): Specify <stdlib.h>.
19557 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19558 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19560 2008-10-18 Bruno Haible <bruno@clisp.org>
19562 * lib/dirchownmod.c: Don't include lchmod.h.
19564 Move the lchmod() declaration to <sys/stat.h>.
19565 * lib/lchmod.h: Remove file.
19566 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19567 (lchmod): New declaration, moved here from lib/lchown.h.
19568 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19569 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19570 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19572 * modules/lchmod (Files): Remove lib/lchmod.h.
19573 (Depends-on): Add sys_stat, extensions.
19574 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19575 (Include): Specify <sys/stat.h> instead of lchmod.h.
19576 * modules/sys_stat (Depends-on): Add link-warning.
19577 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19578 definition of GL_LINK_WARNING.
19579 * NEWS: Mention the change.
19581 2008-10-18 Bruno Haible <bruno@clisp.org>
19583 * lib/fchdir.c: Don't include dirfd.h.
19584 * lib/fts.c: Likewise.
19585 * lib/getcwd.c: Likewise.
19586 * lib/glob.c: Likewise.
19588 Move the dirfd() declaration to <dirent.h>.
19589 * lib/dirfd.h: Remove file.
19590 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19591 (dirfd): New declaration.
19592 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19593 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19594 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19596 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19598 * modules/dirfd (Files): Remove lib/dirfd.h.
19599 (Depends-on): Add dirent, extensions.
19600 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19601 (Include): Specify <dirent.h> instead of dirfd.h.
19602 * modules/dirent (Depends-on): Add link-warning.
19603 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19604 definition of GL_LINK_WARNING.
19605 * NEWS: Mention the change.
19607 2008-10-18 Bruno Haible <bruno@clisp.org>
19609 Move the euidaccess() declaration to <unistd.h>.
19610 * lib/euidaccess.h: Remove file.
19611 * lib/unistd.in.h (euidaccess): New declaration.
19612 * lib/euidaccess.c: Don't include euidaccess.h.
19613 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19614 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19615 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19616 and HAVE_EUIDACCESS.
19617 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19618 (Depends-on): Add unistd.
19619 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19620 (Include): Specify <unistd.h> instead of euidaccess.h.
19621 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19623 * NEWS: Mention the change.
19625 2008-10-18 Bruno Haible <bruno@clisp.org>
19627 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19629 Move the getdomainname() declaration to <unistd.h>.
19630 * lib/getdomainname.h: Remove file.
19631 * lib/unistd.in.h (getdomainname): New declaration.
19632 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19633 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19634 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19635 HAVE_GETDOMAINNAME.
19636 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19637 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19638 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19639 (Depends-on): Add unistd, extensions.
19640 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19641 (Includes): Specify <unistd.h> instead of getdomainname.h.
19642 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19643 HAVE_GETDOMAINNAME.
19644 * NEWS: Mention the change.
19646 2008-10-18 Bruno Haible <bruno@clisp.org>
19648 * modules/dirent: New file.
19649 * m4/dirent_h.m4: New file.
19650 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19651 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19652 * modules/fchdir (Files): Remove lib/dirent.in.h.
19653 (Depends-on): Add dirent.
19654 (Makefile.am): Move rules to modules/dirent.
19655 * doc/posix-headers/dirent.texi: Mention the new module.
19657 2008-10-18 Bruno Haible <bruno@clisp.org>
19659 Avoid -Wunused-parameter warnings in public gnulib header files.
19660 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19662 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19664 2008-10-18 Bruno Haible <bruno@clisp.org>
19666 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19667 * doc/glibc-functions/error.texi: Mention the module 'error'.
19668 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19669 * doc/glibc-functions/getdomainname.texi: Mention the module
19671 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19672 * doc/glibc-functions/getpagesize.texi: Mention the module
19674 * doc/glibc-functions/getusershell.texi: Mention the module
19676 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19677 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19678 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19679 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19680 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19681 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19682 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19683 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19684 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19685 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19686 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19687 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19688 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19689 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19691 2008-10-17 Bruno Haible <bruno@clisp.org>
19693 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19694 HP-UX and IRIX, use -0.0L.
19695 * tests/test-ceill.c (minus_zero): Likewise.
19696 * tests/test-floorl.c (minus_zero): Likewise.
19697 * tests/test-frexpl.c (minus_zero): Likewise.
19698 * tests/test-isnan.c (minus_zerol): Likewise.
19699 * tests/test-isnanl.h (minus_zero): Likewise.
19700 * tests/test-ldexpl.c (minus_zero): Likewise.
19701 * tests/test-roundl.c (minus_zero): Likewise.
19702 * tests/test-signbit.c (minus_zerol): Likewise.
19703 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19704 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19705 * tests/test-truncl.c (minus_zero): Likewise.
19706 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19707 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19708 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19709 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19711 2008-10-17 Bruno Haible <bruno@clisp.org>
19713 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19714 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19715 that it gets activated only for gcc >= 3.0.
19716 * lib/dirent.in.h: Likewise.
19717 * lib/errno.in.h: Likewise.
19718 * lib/fcntl.in.h: Likewise.
19719 * lib/float.in.h: Likewise.
19720 * lib/iconv.in.h: Likewise.
19721 * lib/inttypes.in.h: Likewise.
19722 * lib/locale.in.h: Likewise.
19723 * lib/math.in.h: Likewise.
19724 * lib/netdb.in.h: Likewise.
19725 * lib/netinet_in.in.h: Likewise.
19726 * lib/search.in.h: Likewise.
19727 * lib/signal.in.h: Likewise.
19728 * lib/spawn.in.h: Likewise.
19729 * lib/stdarg.in.h: Likewise.
19730 * lib/stdint.in.h: Likewise.
19731 * lib/stdio.in.h: Likewise.
19732 * lib/stdlib.in.h: Likewise.
19733 * lib/string.in.h: Likewise.
19734 * lib/strings.in.h: Likewise.
19735 * lib/sys_file.in.h: Likewise.
19736 * lib/sys_ioctl.in.h: Likewise.
19737 * lib/sys_select.in.h: Likewise.
19738 * lib/sys_socket.in.h: Likewise.
19739 * lib/sys_stat.in.h: Likewise.
19740 * lib/sys_time.in.h: Likewise.
19741 * lib/sysexits.in.h: Likewise.
19742 * lib/time.in.h: Likewise.
19743 * lib/unistd.in.h: Likewise.
19744 * lib/wchar.in.h: Likewise.
19745 * lib/wctype.in.h: Likewise.
19746 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19748 2008-10-17 Jim Meyering <meyering@redhat.com>
19750 ignore-value: don't depend on inline module
19751 * modules/ignore-value (Depends-on): Remove 'inline'.
19752 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19753 Suggestion from Bruno Haible.
19755 2008-10-17 Bruno Haible <bruno@clisp.org>
19757 New implementation of condition variables for Win32.
19758 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19759 (gl_linked_waitqueue_t): New type.
19760 (gl_cond_t): Use it.
19761 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19762 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19763 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19764 (glthread_cond_init_func, glthread_cond_wait_func,
19765 glthread_cond_timedwait_func, glthread_cond_signal_func,
19766 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19767 Reimplemented on the basis of gl_linked_waitqueue_t.
19768 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19770 (gl_rwlock_t): Update.
19771 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19773 2008-10-17 Simon Josefsson <simon@josefsson.org>
19775 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19776 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19778 2008-10-17 Jim Meyering <meyering@redhat.com>
19780 ignore-value: new module
19781 * modules/ignore-value: New file.
19782 * lib/ignore-value.h: New file.
19783 * MODULES.html.sh (Compiler warning management): New section,
19784 just for this module. More to come.
19786 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19788 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19789 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19790 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19792 2008-10-16 Jim Meyering <meyering@redhat.com>
19794 openat-die.c: avoid 'no previous prototype' warning
19795 * lib/openat-die.c: Include "openat.h".
19796 Reported by Reuben Thomas <rrt@sc3d.org>.
19798 2008-10-16 Simon Josefsson <simon@josefsson.org>
19800 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19801 * lib/netdb.in.h: Fix typo.
19802 Reported by Bruno Haible <bruno@clisp.org>
19804 * lib/netdb.in.h: Include sys/socket.h for platforms without
19805 netdb.h, to get structures like hostent on MinGW.
19806 * modules/netdb (Depends-on): Add sys_socket.
19808 2008-10-15 Simon Josefsson <simon@josefsson.org>
19810 * modules/netdb, modules/netdb-tests: New file.
19811 * m4/netdb_h.m4: New file.
19812 * lib/netdb.in.h: Add, currently just an empty file pending
19814 * tests/test-netdb.c: New file.
19815 * doc/posix-headers/netdb.texi: Mention that we replace it if
19817 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19820 2008-10-15 Simon Josefsson <simon@josefsson.org>
19822 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19825 2008-10-13 Bruno Haible <bruno@clisp.org>
19827 * lib/glthread/cond.c (glthread_cond_wait_func,
19828 glthread_cond_timedwait_func): Add a comment.
19830 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19832 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19833 * tests/test-select.c: Likewise,
19835 2008-10-13 Bruno Haible <bruno@clisp.org>
19837 * lib/glthread/cond.c (glthread_cond_wait_func,
19838 glthread_cond_timedwait_func): Fix variable name.
19839 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19841 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19843 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19844 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19845 struct sockaddr.sa_len.
19846 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19848 2008-10-13 Simon Josefsson <simon@josefsson.org>
19850 * build-aux/pmccabe2html: Add css and css_url parameters.
19852 2008-10-12 Bruno Haible <bruno@clisp.org>
19854 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19856 Reported by Rainer Tammer <tammer@tammer.net>.
19858 2008-10-12 Bruno Haible <bruno@clisp.org>
19860 Use msvcrt aware primitives for creation/termination of Win32 threads.
19861 * lib/glthread/thread.c: Include <process.h>.
19862 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19863 (wrapper_func): Update signature.
19864 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19866 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19867 Bruno Haible <bruno@clisp.org>
19869 Provide a Win32 implementation of the 'cond' module.
19870 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19871 * lib/glthread/cond.c (glthread_cond_init_func,
19872 glthread_cond_wait_func, glthread_cond_timedwait_func,
19873 glthread_cond_signal_func, glthread_cond_broadcast_func,
19874 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19875 * modules/cond (Dependencies): Add gettimeofday.
19877 2008-10-11 Bruno Haible <bruno@clisp.org>
19879 Make sleep work on older versions of mingw.
19880 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19881 only whether it exists.
19882 * doc/posix-functions/sleep.texi: Mention the problem with older
19885 2008-10-11 Bruno Haible <bruno@clisp.org>
19887 New module 'shutdown'.
19888 * modules/shutdown: New file.
19889 * lib/sys_socket.in.h (shutdown): New declaration.
19890 * lib/winsock.c (shutdown): New function.
19891 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19893 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19894 * doc/posix-functions/shutdown.texi: Document the new module.
19896 2008-10-11 Jim Meyering <meyering@redhat.com>
19898 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19900 2008-10-11 Bruno Haible <bruno@clisp.org>
19902 New module 'fclose'.
19903 * modules/fclose: New file.
19904 * lib/stdio.in.h (fclose): New declaration.
19905 * lib/fclose.c: New file.
19906 * m4/fclose.m4: New file.
19907 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19909 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19910 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19912 * modules/close (Depends-on): fclose.
19913 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19915 2008-10-11 Bruno Haible <bruno@clisp.org>
19917 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19918 set errno and don't call _close.
19920 2008-10-10 Bruno Haible <bruno@clisp.org>
19922 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19923 ACL, not afterwards. Fixes test failure on Cygwin.
19925 2008-10-09 Ben Pfaff <blp@gnu.org>
19927 * build-aux/announce-gen: Fix gnulib version related part of usage
19928 message. Die with a useful error message if no tarballs are
19931 2008-10-10 Jim Meyering <meyering@redhat.com>
19933 bootstrap: use git's --depth=N option only if it's supported
19934 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19935 recognize the --depth option. Reported by Pádraig Brady.
19937 2008-10-09 Bruno Haible <bruno@clisp.org>
19939 New module 'ioctl'.
19940 * modules/ioctl: New file.
19941 * lib/sys_socket.in.h (ioctl): Remove declaration.
19942 * lib/winsock.c: Include <sys/ioctl.h>.
19943 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19944 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19945 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19946 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19947 * doc/posix-functions/ioctl.texi: Mention the new module.
19949 2008-10-09 Bruno Haible <bruno@clisp.org>
19951 New module 'sys_ioctl'.
19952 * lib/sys_ioctl.in.h: New file.
19953 * m4/sys_ioctl_h.m4: New file.
19954 * modules/sys_ioctl: New file.
19955 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19957 2008-10-09 Bruno Haible <bruno@clisp.org>
19959 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19960 * lib/winsock.c: Include <stdarg.h>.
19961 (rpl_ioctl): Change to second argument 'int' and then varargs.
19963 2008-10-09 Bruno Haible <bruno@clisp.org>
19965 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19966 when the sys_socket module is present and the system has <winsock2.h>.
19968 2008-10-09 Bruno Haible <bruno@clisp.org>
19970 * doc/posix-functions/close.texi: Mention module 'close' instead of
19971 module 'sys_socket'.
19973 2008-10-09 Bruno Haible <bruno@clisp.org>
19975 * doc/glibc-headers/sys_ioctl.texi: New file.
19976 * doc/gnulib.texi: Include it.
19978 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19979 Bruno Haible <bruno@clisp.org>
19981 Combine the two replacements of 'close'.
19982 * lib/sys_socket.in.h (close): Define to a reminder to include
19984 (_gl_close_fd_maybe_socket): New declaration.
19985 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19986 * lib/winsock.c (close): Remove undefinition.
19987 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19988 needed for the gnulib module 'close'.
19989 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19990 define to an error symbol or to a warning, if suitable.
19991 * lib/close.c: Include <sys/socket.h>.
19992 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19993 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19994 UNISTD_H_HAVE_WINSOCK2_H.
19995 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19996 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19997 UNISTD_H_HAVE_WINSOCK2_H.
19998 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19999 (configure.ac): Set a module indicator.
20000 (Makefile.am): Substitute GNULIB_CLOSE.
20001 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20002 * modules/poll-tests (Depends-on): Add close.
20003 * modules/select-tests (Depends-on): Likewise.
20005 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20006 Bruno Haible <bruno@clisp.org>
20008 New module 'close'.
20009 * modules/close: New file.
20010 * lib/unistd.in.h (close): Move declaration out of the
20011 FCHDIR_REPLACEMENT scope.
20012 (_gl_unregister_fd): New declaration.
20013 * lib/close.c: New file.
20014 * lib/fchdir.c (rpl_close): Remove function.
20015 * m4/close.m4: New file.
20016 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20018 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20020 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20022 * modules/fchdir (Depends-on): Add close.
20024 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20025 Bruno Haible <bruno@clisp.org>
20027 * lib/fcntl.in.h (open): Simplify conditionals.
20028 (_gl_register_fd): New declaration.
20029 * lib/fchdir.c (rpl_open): Remove function.
20030 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20032 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20033 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20036 2008-10-09 Jim Meyering <meyering@redhat.com>
20038 GNUmakefile: use the more name-space-friendly "_version"
20039 * top/GNUmakefile (_dummy): Update.
20040 (_version): Rename from "version".
20042 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20043 Bruno Haible <bruno@clisp.org>
20045 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20047 (_gl_register_fd): New function, extracted from rpl_open.
20048 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20049 (rpl_open, rpl_opendir): Use _gl_register_fd.
20051 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20053 Fix organization of 'open' replacement.
20054 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20055 (gl_FUNC_OPEN): Use it.
20056 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20058 2008-10-08 Bruno Haible <bruno@clisp.org>
20060 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20062 2008-10-08 Simon Josefsson <simon@josefsson.org>
20064 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20065 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20068 2008-10-08 Eric Blake <ebb9@byu.net>
20070 GNUmakefile: add 'make version' target
20071 * top/GNUmakefile (_curr-ver): Split version update rules...
20072 (version): ...into a target.
20074 2008-10-07 Bruno Haible <bruno@clisp.org>
20076 Use a more portable replacement expression for -0.0L.
20077 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20078 instead of -0.0L. Fix m4 quotation.
20080 * tests/test-signbit.c: Include <float.h>.
20081 (minus_zero): New variable.
20082 (test_signbitl): Use minus_zero instead of -zero.
20083 * modules/signbit-tests (Depends-on): Add float.
20085 * tests/test-ceill.c: Include <float.h>.
20086 (zero): Remove variable.
20087 (minus_zero): New variable.
20088 (main): Use minus_zero instead of -zero.
20089 * modules/ceill-tests (Depends-on): Add float.
20091 * tests/test-floorl.c: Include <float.h>.
20092 (zero): Remove variable.
20093 (minus_zero): New variable.
20094 (main): Use minus_zero instead of -zero.
20095 * modules/floorl-tests (Depends-on): Add float.
20097 * tests/test-roundl.c: Include <float.h>.
20098 (zero): Remove variable.
20099 (minus_zero): New variable.
20100 (main): Use minus_zero instead of -zero.
20101 * modules/roundl-tests (Depends-on): Add float.
20103 * tests/test-truncl.c: Include <float.h>.
20104 (zero): Remove variable.
20105 (minus_zero): New variable.
20106 (main): Use minus_zero instead of -zero.
20107 * modules/truncl-tests (Depends-on): Add float.
20109 * tests/test-frexpl.c (zero): Remove variable.
20110 (minus_zero): New variable.
20111 (main): Use minus_zero instead of -zero.
20112 * modules/frexpl-tests (Depends-on): Add float.
20114 * tests/test-isnan.c (zerol): Remove variable.
20115 (minus_zerol): New variable.
20116 (test_long_double): Use minus_zerol instead of -zerol.
20117 * modules/isnan-tests (Depends-on): Add float.
20119 * tests/test-isnanl.h (zero): Remove variable.
20120 (minus_zero): New variable.
20121 (main): Use minus_zero instead of -zero.
20122 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20123 * modules/isnanl-tests (Depends-on): Add float.
20125 * tests/test-ldexpl.c (zero): Remove variable.
20126 (minus_zero): New variable.
20127 (main): Use minus_zero instead of -zero.
20128 * modules/ldexpl-tests (Depends-on): Add float.
20130 * tests/test-snprintf-posix.h (zerol): Remove variable.
20131 (minus_zerol): New variable.
20132 (test_function): Use minus_zerol instead of -zerol.
20133 * modules/snprintf-posix-tests (Depends-on): Add float.
20134 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20136 * tests/test-sprintf-posix.h (zerol): Remove variable.
20137 (minus_zerol): New variable.
20138 (test_function): Use minus_zerol instead of -zerol.
20139 * modules/sprintf-posix-tests (Depends-on): Add float.
20140 * modules/vsprintf-posix-tests (Depends-on): Add float.
20142 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20143 (minus_zerol): New variable.
20144 (test_function): Use minus_zerol instead of -zerol.
20145 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20147 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20148 (minus_zerol): New variable.
20149 (test_function): Use minus_zerol instead of -zerol.
20150 * modules/vasprintf-posix-tests (Depends-on): Add float.
20152 2008-10-07 Simon Josefsson <simon@josefsson.org>
20154 * MODULES.html.sh (Support for building documentation): Mention
20155 pmccabe2html. Sort entries.
20157 Add pmccabe2html module, from gnupdf.
20158 * build-aux/pmccabe.css: New file.
20159 * build-aux/pmccabe2html: New file.
20160 * m4/pmccabe2html.m4: New file.
20161 * modules/pmccabe2html: New file.
20163 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20166 * MODULES.html.sh: Add to list of modules.
20167 * lib/flock.c: flock implementation for Windows and Unix systems
20169 * doc/glibc-functions/flock.texi: Update documentation.
20170 * lib/sys_file.in.h: <sys/file.h> header file.
20171 * m4/flock.m4: M4 macros.
20172 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20173 * modules/flock: flock module.
20174 * modules/flock-tests: flock tests module.
20175 * modules/sys_file: sys/file.h module.
20176 * tests/test-flock.c: test suite for flock.
20178 2008-10-06 Jim Meyering <meyering@redhat.com>
20180 bootstrap: check for LT_INIT more portably still ;-)
20181 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20182 Spotted by Bruno Haible.
20184 2008-10-06 Eric Blake <ebb9@byu.net>
20186 test-signbit: avoid tripping Irix cc bug on -0.0L
20187 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20188 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20189 entire testsuite consistent and avoids an Irix 6.2 bug.
20191 2008-10-05 Bruno Haible <bruno@clisp.org>
20192 Jim Meyering <jim@meyering.net>
20194 Add an option for ignoring EPIPE during close_stdout.
20195 * lib/closeout.h: Include <stdbool.h>.
20196 (close_stdout_set_ignore_EPIPE): New declaration.
20197 * lib/closeout.c: Include <stdbool.h>.
20198 (ignore_EPIPE): New variable.
20199 (close_stdout_set_ignore_EPIPE): New function.
20200 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20201 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20203 * modules/closeout (Depends-on): Add stdbool.
20205 2008-10-05 Bruno Haible <bruno@clisp.org>
20207 * modules/accept: New file.
20208 * modules/bind: New file.
20209 * modules/connect: New file.
20210 * modules/getpeername: New file.
20211 * modules/getsockname: New file.
20212 * modules/getsockopt: New file.
20213 * modules/listen: New file.
20214 * modules/recv: New file.
20215 * modules/recvfrom: New file.
20216 * modules/send: New file.
20217 * modules/sendto: New file.
20218 * modules/setsockopt: New file.
20219 * modules/socket: New file.
20220 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20221 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20222 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20223 the particular module is requested. Add a link warning when the
20224 particular module is not requested.
20225 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20226 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20227 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20228 the particular module is requested.
20229 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20230 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20231 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20232 * modules/sys_socket (Depends-on): Add link-warning.
20233 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20234 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20235 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20236 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20238 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20239 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20240 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20241 * doc/posix-functions/getpeername.texi: Mention the new module
20243 * doc/posix-functions/getsockname.texi: Mention the new module
20245 * doc/posix-functions/getsockopt.texi: Mention the new module
20247 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20248 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20249 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20250 * doc/posix-functions/send.texi: Mention the new module 'send'.
20251 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20252 * doc/posix-functions/setsockopt.texi: Mention the new module
20254 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20255 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20256 listen, connect, accept.
20257 * modules/select-tests (Depends-on): Likewise.
20259 2008-10-05 Bruno Haible <bruno@clisp.org>
20261 * lib/winsock.c (strerror): Remove unused #undef.
20262 (rpl_close): Remove unused local variable.
20264 * modules/sys_socket (Depends-on); Add errno.
20266 2008-10-05 Bruno Haible <bruno@clisp.org>
20268 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20269 (select): Add a link warning when the 'select' module is not used.
20270 * modules/sys_select (Depends-on): Add link-warning.
20271 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20272 Suggested by Paolo Bonzini.
20274 2008-10-05 Jim Meyering <meyering@redhat.com>
20276 bootstrap: check for LT_INIT more portably
20277 * build-aux/bootstrap: Avoid using grep -E, since it's not
20278 portable enough. Suggestion from Bruno Haible.
20280 2008-10-05 Bruno Haible <bruno@clisp.org>
20282 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20283 as being fixed by gnulib.
20285 2008-10-05 Bruno Haible <bruno@clisp.org>
20287 * modules/select-tests: New file, mostly copied from
20288 modules/sys_select-tests.
20289 * tests/test-select.c: New file, mostly copied from
20290 tests/test-sys_select.c.
20291 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20292 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20293 (Makefile.am): Remove test_sys_select_LDADD.
20295 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20296 to an undefined symbol, for an error message.
20297 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20298 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20299 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20300 winsock-select.c here.
20301 * modules/sys_select (Files): Remove lib/winsock-select.c.
20302 (Depends-on): Remove alloca.
20303 (Makefile.am): Substitute GNULIB_SELECT.
20304 * modules/select: New file.
20305 * doc/posix-functions/select.texi: Update.
20307 2008-10-05 Bruno Haible <bruno@clisp.org>
20309 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20310 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20311 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20312 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20314 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20315 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20317 2008-10-05 Bruno Haible <bruno@clisp.org>
20319 * modules/getdtablesize-tests: New file.
20320 * tests/test-getdtablesize.c: New file.
20322 New module 'getdtablesize'.
20323 * lib/unistd.in.h (getdtablesize): New declaration.
20324 * lib/getdtablesize.c: New file.
20325 * m4/getdtablesize.m4: New file.
20326 * modules/getdtablesize: New file.
20327 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20328 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20329 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20330 HAVE_GETDTABLESIZE.
20331 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20333 2008-10-05 Bruno Haible <bruno@clisp.org>
20335 * modules/sched (Makefile.am): Fix typo.
20336 Reported by Simon Josefsson.
20338 2008-10-05 Jim Meyering <meyering@redhat.com>
20340 bootstrap: check for LT_INIT, too
20341 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20342 are deprecated. Suggestion from Ralf Wildenhues.
20344 2008-10-05 Bruno Haible <bruno@clisp.org>
20346 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20347 overriding them by ours.
20348 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20350 2008-10-05 Jim Meyering <meyering@redhat.com>
20352 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20353 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20354 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20356 2008-10-04 Bruno Haible <bruno@clisp.org>
20358 * modules/dup2 (License): Change to LGPLv2+.
20359 * modules/sleep (License): Likewise.
20360 * modules/perror (License): Likewise.
20361 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20363 * modules/signal (License): Likewise.
20364 * modules/sigprocmask (License): Likewise.
20365 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20368 2008-10-04 Bruno Haible <bruno@clisp.org>
20370 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20371 Reported by Rainer Tammer <tammer@tammer.net>.
20373 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20374 Bruno Haible <bruno@clisp.org>
20376 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20377 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20378 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20380 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20382 filevercmp: new module
20383 * lib/filevercmp.h: New function filevercmp comparing version strings.
20384 * lib/filevercmp.c: Implementation of filevercmp function.
20385 * modules/filevercmp: Module metadata.
20386 * tests/test-filevercmp.c: Unit test for new module.
20387 * modules/filevercmp-tests: Unit test metadata.
20388 * MODULES.html.sh: Add filevercmp module.
20390 2008-10-03 Bruno Haible <bruno@clisp.org>
20392 * lib/c-ctype.h: Add comment.
20393 Reported by Jim Meyering.
20395 2008-10-02 Bruno Haible <bruno@clisp.org>
20397 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20399 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20401 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20402 name of bootstrap.conf accordingly.
20404 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20406 * build-aux/bootstrap: Install git-merge-changelog configuration
20407 items into .gitconfig if needed.
20409 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20411 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20412 git repository, and initialize/update it accordingly.
20414 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20416 * modules/fsync-tests: New file.
20417 * tests/test-fsync.c: New file.
20419 New module 'fsync'.
20420 * lib/fsync.c: New file.
20421 * m4/fsync.m4: New file.
20422 * modules/fsync: New file.
20423 * lib/unistd.in.h (fsync): New declaration.
20424 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20425 GNULIB_FSYNC and HAVE_FSYNC.
20426 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20427 * MODULES.html.sh (posix_functions): Add fsync.
20428 * doc/posix-functions/fsync.texi: Mention the new module.
20430 2008-10-02 Jim Meyering <meyering@redhat.com>
20432 fts.c: sync with similar code from coreutils' remove.c
20433 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20434 Guard also with "#if defined __linux__", since for now at least,
20435 this code is Linux-kernel-specific.
20437 2008-10-02 Jim Meyering <meyering@redhat.com>
20440 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20441 Include <sys/vfs.h>, not <sys/statfs.h>.
20443 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20444 Include <sys/vfs.h>, not <sys/statfs.h>.
20446 2008-10-01 Bruno Haible <bruno@clisp.org>
20448 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20449 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20450 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20451 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20452 * doc/posix-functions/posix_spawnp.texi: Likewise.
20453 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20454 whether posix_spawn actually works.
20455 * m4/pipe.m4 (gl_PIPE): Likewise.
20456 * modules/execute (Files): Add m4/posix_spawn.m4.
20457 * modules/pipe (Files): Add m4/posix_spawn.m4.
20458 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20460 2008-10-01 Jim Meyering <meyering@redhat.com>
20462 remove trailing spaces
20464 * lib/poll.c (poll): Likewise.
20465 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20466 * lib/winsock.c (rpl_close): Likewise.
20467 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20468 * modules/yield: Likewise.
20469 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20470 * tests/test-sys_select.c (connect_to_socket): Likewise.
20472 fts.c: adjust a new interface to be more generally useful
20473 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20474 (fts_build): Adjust caller.
20476 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20478 * modules/cond-tests: New file.
20479 * tests/test-cond.c: New file.
20481 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20482 Bruno Haible <bruno@clisp.org>
20484 * modules/cond (Dependencies): Add errno, time.
20485 * lib/glthread/cond.h: Include <time.h>.
20486 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20489 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20490 Bruno Haible <bruno@clisp.org>
20492 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20494 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20495 Bruno Haible <bruno@clisp.org>
20497 * modules/tls-tests (Depends-on): Add thread, yield.
20498 (configure.ac): Remove all checks.
20499 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20500 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20501 gl_thread_self): Remove definitions. Include glthread/thread.h and
20502 glthread/yield.h instead.
20503 (test_tls): Pass an additional NULL argument to gl_thread_join.
20505 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20506 Bruno Haible <bruno@clisp.org>
20508 * modules/lock-tests (Depends-on): Add thread, yield.
20509 (configure.ac): Remove all checks.
20510 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20511 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20512 gl_thread_self): Remove definitions. Include glthread/thread.h and
20513 glthread/yield.h instead.
20514 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20515 additional NULL argument to gl_thread_join.
20517 2008-09-30 Bruno Haible <bruno@clisp.org>
20519 Fix the Win32 implementation of the 'thread' module.
20520 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20522 (gl_thread_self): Invoke gl_thread_self_func.
20523 (gl_thread_self_func): New declaration.
20524 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20525 (do_init_self_key, init_self_key): New functions.
20526 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20527 Remove some fields.
20528 (running_threads, running_lock): Remove variables.
20529 (get_current_thread_handle): New function.
20530 (gl_thread_self_func, wrapper_func, glthread_create_func,
20531 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20534 2008-09-30 Bruno Haible <bruno@clisp.org>
20536 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20539 2008-09-30 Jim Meyering <meyering@redhat.com>
20541 fts.m4: correct the test for statfs.f_type
20542 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20543 when checking for statfs.f_type.
20545 2008-09-15 Simon Josefsson <simon@josefsson.org>
20547 tests: avoid some compiler warnings
20548 * tests/test-memchr.c (main): Pass NULL indirectly.
20549 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20551 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
20553 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20554 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20555 exactly specified dayshifts.
20556 (dayshift): New rule.
20557 (rel): Add dayshift.
20558 (relative_time_table) [tomorrow, yesterday, today, now]:
20559 Use tDAY_SHIFT in place of tDAY_UNIT.
20560 * tests/test-getdate.c: Add tests for now-disallowed countable
20561 dayshifts, e.g., "4 yesterday ago".
20563 2008-09-29 Bruno Haible <bruno@clisp.org>
20565 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20566 * tests/test-posix_spawn1.in.sh: Renamed from
20567 tests/test-posix_spawn.in.sh.
20568 * tests/test-posix_spawn2.c: New file.
20569 * tests/test-posix_spawn2.in.sh: New file.
20570 * modules/posix_spawnp-tests (Files): Update.
20571 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20573 2008-09-29 Bruno Haible <bruno@clisp.org>
20575 Propagate effects of putenv/setenv/unsetenv to child processes.
20576 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20577 * lib/pipe.c (create_pipe): Likewise.
20579 2008-09-29 Bruno Haible <bruno@clisp.org>
20581 Enable use of shell scripts as executables in mingw.
20582 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20583 run the program as a shell script.
20584 * lib/pipe.c (create_pipe): Likewise.
20585 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20588 2008-09-29 Eric Blake <ebb9@byu.net>
20590 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20592 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20594 * doc/posix-functions/accept.texi: Update mingw problems.
20595 * doc/posix-functions/bind.texi: Update mingw problems.
20596 * doc/posix-functions/close.texi: Update mingw problems.
20597 * doc/posix-functions/connect.texi: Update mingw problems.
20598 * doc/posix-functions/getpeername.texi: Update mingw problems.
20599 * doc/posix-functions/getsockname.texi: Update mingw problems.
20600 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20601 * doc/posix-functions/ioctl.texi: Update mingw problems.
20602 * doc/posix-functions/listen.texi: Update mingw problems.
20603 * doc/posix-functions/recv.texi: Update mingw problems.
20604 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20605 * doc/posix-functions/select.texi: Update mingw problems.
20606 * doc/posix-functions/send.texi: Update mingw problems.
20607 * doc/posix-functions/sendto.texi: Update mingw problems.
20608 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20609 * doc/posix-functions/socket.texi: Update mingw problems.
20611 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20612 Bruno Haible <bruno@clisp.org>
20614 * lib/sys_select.in.h: Include sys/time.h.
20615 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20616 * modules/sys_select: Depend on sys_time.
20617 * tests/test-sys_select.c: Test that sys/select.h defines struct
20620 2008-09-29 Bruno Haible <bruno@clisp.org>
20622 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20623 * lib/sys_select.in.h: Likewise.
20625 2008-09-29 Bruno Haible <bruno@clisp.org>
20627 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20629 2008-09-29 Bruno Haible <bruno@clisp.org>
20631 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20632 Set LIBSOCKET instead of augmenting LIBS.
20633 * modules/sockets (Link): New section.
20634 * modules/sockets-tests (test_sockets_LDADD): New variable.
20635 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20636 * modules/poll-tests (test_poll_LDADD): New variable.
20637 * NEWS: Document the change.
20639 2008-09-29 Bruno Haible <bruno@clisp.org>
20641 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20642 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20643 ARPA_INET_H directly.
20644 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20646 2008-09-28 Bruno Haible <bruno@clisp.org>
20648 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20649 from gl_HEADER_SYS_SOCKET.
20650 (gl_HEADER_SYS_SOCKET): Invoke it.
20651 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20653 2008-09-28 Bruno Haible <bruno@clisp.org>
20655 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20656 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20657 Needed on OSF/1 4.0.
20659 2008-09-28 Bruno Haible <bruno@clisp.org>
20661 Override open more carefully.
20662 * lib/open.c (orig_open): New function.
20663 (rpl_open): Use orig_open instead of open.
20664 * lib/fcntl.in.h: Add special invocation convention.
20665 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20666 (gl_FUNC_OPEN): Invoke it.
20668 Override freopen more carefully.
20669 * lib/freopen.c (orig_freopen): New function.
20670 (rpl_freopen): Use orig_freopen instead of freopen.
20671 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20672 (gl_FUNC_FREOPEN): Invoke it.
20674 Override fopen more carefully.
20675 * lib/fopen.c (orig_fopen): New function.
20676 (rpl_fopen): Use orig_fopen instead of fopen.
20677 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20678 (gl_FUNC_FOPEN): Invoke it.
20679 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20681 2008-09-28 Bruno Haible <bruno@clisp.org>
20683 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20686 2008-09-28 Bruno Haible <bruno@clisp.org>
20688 * tests/test-sigaction.c (handler, main): Disable the check whether
20689 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20690 glibc systems with LinuxThreads.
20692 2008-09-28 Bruno Haible <bruno@clisp.org>
20694 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20696 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20698 * lib/fcntl.in.h (open): Likewise.
20699 Reported by Rainer Tammer <tammer@tammer.net>.
20701 2008-09-28 Bruno Haible <bruno@clisp.org>
20703 * modules/posix_spawnp-tests: New file.
20704 * tests/test-posix_spawn.c: New file.
20705 * tests/test-posix_spawn.in.sh: New file.
20707 New module 'posix_spawnp'.
20708 * modules/posix_spawnp: New file.
20709 * lib/spawnp.c: New file, from GNU libc with modifications.
20710 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20712 New module 'posix_spawn'.
20713 * modules/posix_spawn: New file.
20714 * lib/spawn.c: New file, from GNU libc with modifications.
20715 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20717 New module 'posix_spawnattr_destroy'.
20718 * modules/posix_spawnattr_destroy: New file.
20719 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20720 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20723 New module 'posix_spawnattr_setsigmask'.
20724 * modules/posix_spawnattr_setsigmask: New file.
20725 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20727 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20730 New module 'posix_spawnattr_getsigmask'.
20731 * modules/posix_spawnattr_getsigmask: New file.
20732 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20734 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20737 New module 'posix_spawnattr_setsigdefault'.
20738 * modules/posix_spawnattr_setsigdefault: New file.
20739 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20741 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20744 New module 'posix_spawnattr_getsigdefault'.
20745 * modules/posix_spawnattr_getsigdefault: New file.
20746 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20748 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20751 New module 'posix_spawnattr_setschedpolicy'.
20752 * modules/posix_spawnattr_setschedpolicy: New file.
20753 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20755 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20758 New module 'posix_spawnattr_getschedpolicy'.
20759 * modules/posix_spawnattr_getschedpolicy: New file.
20760 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20762 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20765 New module 'posix_spawnattr_setschedparam'.
20766 * modules/posix_spawnattr_setschedparam: New file.
20767 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20769 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20772 New module 'posix_spawnattr_getschedparam'.
20773 * modules/posix_spawnattr_getschedparam: New file.
20774 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20776 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20779 New module 'posix_spawnattr_setpgroup'.
20780 * modules/posix_spawnattr_setpgroup: New file.
20781 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20783 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20786 New module 'posix_spawnattr_getpgroup'.
20787 * modules/posix_spawnattr_getpgroup: New file.
20788 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20790 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20793 New module 'posix_spawnattr_setflags'.
20794 * modules/posix_spawnattr_setflags: New file.
20795 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20796 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20799 New module 'posix_spawnattr_getflags'.
20800 * modules/posix_spawnattr_getflags: New file.
20801 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20802 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20805 New module 'posix_spawnattr_init'.
20806 * modules/posix_spawnattr_init: New file.
20807 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20808 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20811 New module 'posix_spawn_file_actions_destroy'.
20812 * modules/posix_spawn_file_actions_destroy: New file.
20813 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20815 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20818 New module 'posix_spawn_file_actions_addopen'.
20819 * modules/posix_spawn_file_actions_addopen: New file.
20820 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20822 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20825 New module 'posix_spawn_file_actions_adddup2'.
20826 * modules/posix_spawn_file_actions_adddup2: New file.
20827 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20829 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20832 New module 'posix_spawn_file_actions_addclose'.
20833 * modules/posix_spawn_file_actions_addclose: New file.
20834 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20836 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20839 New module 'posix_spawn_file_actions_init'.
20840 * modules/posix_spawn_file_actions_init: New file.
20841 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20842 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20845 New module 'posix_spawn-internal'.
20846 * modules/posix_spawn-internal: New file.
20847 * lib/spawn_int.h: New file, from GNU libc with modifications.
20848 * lib/spawni.c: New file, from GNU libc with modifications.
20849 * m4/posix_spawn.m4: New file.
20851 New module 'spawn'.
20852 * modules/spawn: New file.
20853 * lib/spawn.in.h: New file, from GNU libc with modifications.
20854 * m4/spawn_h.m4: New file.
20855 * doc/posix-headers/spawn.texi: Mention the new module.
20857 2008-09-28 Bruno Haible <bruno@clisp.org>
20859 * modules/sched-tests: New file.
20860 * tests/test-sched.c: New file.
20862 New module 'sched'.
20863 * modules/sched: New file.
20864 * lib/sched.in.h: New file.
20865 * m4/sched_h.m4: New file.
20866 * doc/posix-headers/sched.texi: Mention the new module.
20868 2008-09-27 Eric Blake <ebb9@byu.net>
20870 Fix previous patch, and tweak references to $0.
20871 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20872 (func_version, func_gnulib_dir): Don't call this program
20874 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20875 with using $0 in function.
20876 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20877 (func_fatal_error): Reuse the name the user invoked us with.
20879 2008-09-27 Bruno Haible <bruno@clisp.org>
20881 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20882 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20883 (gl_ICONV_H): Not here.
20884 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20885 instead of assigning ICONV_H directly.
20887 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20888 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20891 2008-09-27 Bruno Haible <bruno@clisp.org>
20893 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20894 * modules/arpa_inet (Depends-on): Add link-warning.
20895 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20896 * modules/unistd (Makefile.am): Likewise.
20898 2008-09-26 Bruno Haible <bruno@clisp.org>
20900 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20902 (func_version): Essentially copied from gnulib-tool.
20903 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20904 func_readlink): Copied from gnulib-tool.
20906 2008-09-26 Bruno Haible <bruno@clisp.org>
20908 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20909 invoking git-version-gen.
20911 2008-09-26 Bruno Haible <bruno@clisp.org>
20913 * posix-modules: Update to directory names changed on 2008-01-19.
20914 Remove commas in output before splitting into words. No more need to
20915 avoid 'ftruncate' since 2007-02-19.
20917 2008-09-26 Bruno Haible <bruno@clisp.org>
20919 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20921 2008-09-26 Bruno Haible <bruno@clisp.org>
20923 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20924 * modules/fwriteerror (Depends-on): Add errno.
20926 2008-09-26 Bruno Haible <bruno@clisp.org>
20928 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20929 * tests/test-vc-list-files-cvs.sh: Likewise.
20931 2008-09-26 Bruno Haible <bruno@clisp.org>
20933 * doc/posix-headers/sys_resource.texi: Reorder items.
20935 2008-09-26 Jim Meyering <meyering@redhat.com>
20937 fts: tweak inode comparison function
20938 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20939 inode numbers, as documented.
20941 fts: sort dirent entries on inode number before traversing
20942 This avoids a quadratic, seek-related performance penalty when
20943 operating on a directory containing many entries (measurable at 10k;
20944 3.5 hours at 2 million entries with a cold cache) on certain types
20945 of file systems, including ext3 and ext4, but not tmpfs.
20946 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20947 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20948 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20949 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20950 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20951 (fts_build): Set the stat.st_ino member from D_INO.
20952 If it is likely to be useful, sort dirent entries on inode number.
20954 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20955 and the struct statfs.f_type member.
20956 * modules/fts (Depends-on): Add d-ino.
20958 2008-09-26 Bruno Haible <bruno@clisp.org>
20960 * modules/sigpipe-die (Depends-on): Add sigpipe.
20962 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20963 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20964 and GNULIB_STDIO_H_SIGPIPE are set.
20965 * lib/stdio-write.c: New file.
20966 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20967 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20968 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20969 REPLACE_STDIO_WRITE_FUNCS.
20970 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20971 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20972 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20973 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20974 * modules/stdio (Files): Add lib/stdio-write.c.
20975 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20976 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20977 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20978 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20979 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20980 REPLACE_FPRINTF_POSIX.
20981 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20982 REPLACE_PRINTF_POSIX.
20983 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20984 REPLACE_VFPRINTF_POSIX.
20985 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20986 REPLACE_VPRINTF_POSIX.
20987 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20989 * doc/posix-functions/fputc.texi: Likewise.
20990 * doc/posix-functions/fputs.texi: Likewise.
20991 * doc/posix-functions/fwrite.texi: Likewise.
20992 * doc/posix-functions/printf.texi: Likewise.
20993 * doc/posix-functions/putc.texi: Likewise.
20994 * doc/posix-functions/putchar.texi: Likewise.
20995 * doc/posix-functions/puts.texi: Likewise.
20996 * doc/posix-functions/vfprintf.texi: Likewise.
20997 * doc/posix-functions/vprintf.texi: Likewise.
20999 * modules/safe-write (Depends-on): Add write.
21001 * modules/sigpipe-tests: New file.
21002 * tests/test-sigpipe.c: New file.
21003 * tests/test-sigpipe.sh: New file.
21005 * modules/write: New file.
21006 * lib/unistd.in.h: Include <sys/types.h>.
21007 (write): New declaration.
21008 * lib/write.c: New file.
21009 * m4/write.m4: New file.
21010 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21011 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21012 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21013 GNULIB_WRITE, REPLACE_WRITE.
21014 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21015 and the SIGPIPE issue.
21017 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21018 (raise): New declaration.
21019 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21020 (ext_signal): New function.
21021 (rpl_raise): New function.
21022 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21023 GNULIB_SIGNAL_H_SIGPIPE.
21024 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21025 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21027 * modules/sigpipe: New file.
21028 * m4/sigpipe.m4: New file.
21030 2008-09-25 Derek Price <derek@ximbiot.com>
21031 Bruno Haible <bruno@clisp.org>
21033 * gnulib-tool (func_import): Report all license incompatibilities, not
21034 just the first one.
21036 2008-09-25 Bruno Haible <bruno@clisp.org>
21038 * gnulib-tool (func_import): When computing the edits, consider not
21039 only the Makefile.ams that exist but also those that will be generated.
21041 2008-09-25 Simon Josefsson <simon@josefsson.org>
21043 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21044 fixes gnulib-tool --test warning about duplicate dependency.
21046 2008-09-25 Bruno Haible <bruno@clisp.org>
21048 * gnulib-tool: Don't ask the user to perform edits in the generated
21050 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21051 apply to the Makefile.am being generated.
21052 (func_emit_tests_Makefile_am): Execute edits that apply to the
21053 Makefile.am being generated.
21054 (func_import): Setup list of Makefile.am edits before emitting the
21055 Makefile.ams, not at the end.
21056 (func_create_testdir): Update.
21057 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21059 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21061 * gnulib-tool (func_import): Store the --tests-base option in the
21062 comment in gnulib-cache.m4.
21064 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21066 * NEWS: Document increased portability that sys_select now provides.
21068 * lib/sys_select.in.h: Install select wrapper.
21069 * lib/sys_socket.in.h: Use more descriptive name when there is no
21071 * lib/winsock-select.c: New.
21072 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21073 Require gl_HEADER_SYS_SOCKET.
21074 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21075 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21076 * tests/test-sys_select.c: Add functional tests.
21078 2008-09-24 Eric Blake <ebb9@byu.net>
21080 open, fopen: close fd leak in last patch
21081 * lib/open.c (rpl_open): Close fd before returning error.
21082 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21083 * doc/posix-functions/open.texi (open): Document that Irix also
21085 * doc/posix-functions/fopen.texi (fopen): Likewise.
21086 Reported by Paolo Bonzini.
21088 2008-09-24 Bruno Haible <bruno@clisp.org>
21090 Ensure that a filename ending in a slash cannot be used to access a
21092 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21093 to check whether it's really a directory.
21094 * lib/fopen.c: Include fcntl.h, unistd.h.
21095 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21097 * modules/fopen (Depends-on): Add unistd.
21098 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21099 * tests/test-fopen.c (main): Likewise.
21100 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21101 * doc/posix-functions/fopen.texi: Likewise.
21102 Reported by Eric Blake.
21104 2008-09-23 Eric Blake <ebb9@byu.net>
21106 c-stack: avoid compiler optimizations when provoking overflow
21107 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21108 recursion harder to optimize, to ensure a stack overflow occurs.
21109 * tests/test-c-stack.c (recurse): Likewise.
21110 Borrowed from libsigsegv.
21112 c-stack: work around Irix sigaltstack bug
21113 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21114 whether sigaltstack uses wrong end of stack_t (copied in part from
21116 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21117 Irix bug, without requiring an over-allocation.
21118 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21121 fopen: document mingw bug on directories
21122 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21123 not allowing a stream visiting a directory, even though reading
21124 from such a stream is not portable.
21126 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21128 * lib/poll.c: Rewrite.
21129 * modules/poll: Depend on alloca.
21131 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21133 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21134 instead define prototypes for a full set of wrappers. Ensure
21135 that Cygwin does not use the compatibility code, which is only
21137 * lib/winsock.c: New.
21138 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21139 * modules/sys_socket: Add lib/winsock.c.
21141 * modules/poll-tests: Add errno and perror.
21142 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21144 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21146 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21148 2008-09-23 Bruno Haible <bruno@clisp.org>
21150 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21151 * doc/glibc-functions/*: Likewise.
21153 2008-09-23 Simon Josefsson <simon@josefsson.org>
21155 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21158 2008-09-22 Eric Blake <ebb9@byu.net>
21159 Bruno Haible <bruno@clisp.org>
21161 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21162 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21163 supply %A but mishandle pseudo-NaN.
21164 Reported by Simon Josefsson.
21166 2008-09-21 Bruno Haible <bruno@clisp.org>
21168 * tests/test-lock.c (main): Tweak skip message.
21169 * tests/test-tls.c (main): Likewise.
21171 2008-09-21 Bruno Haible <bruno@clisp.org>
21173 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21174 whether 'struct sigaction' has sa_sigaction here...
21175 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21176 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21178 2008-09-21 Bruno Haible <bruno@clisp.org>
21180 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21182 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21183 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21185 (Support for obsolete systems lacking POSIX:2001): New section.
21186 (String handling <string.h>): Move strdup to the new section.
21187 Suggested by Simon Josefsson and Paolo Bonzini.
21189 2008-09-21 Bruno Haible <bruno@clisp.org>
21191 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21192 exponents in %e and %g results on 'long double'. Needed for mingw's
21193 improved *printf functions.
21194 * tests/test-vasprintf-posix.c (test_function): Likewise.
21195 * tests/test-snprintf-posix.h (test_function): Likewise.
21196 * tests/test-sprintf-posix.h (test_function): Likewise.
21197 Reported by Eric Blake.
21199 2008-09-21 Bruno Haible <bruno@clisp.org>
21201 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21202 * tests/test-sprintf-posix.h (test_function): Likewise.
21204 2008-09-21 Bruno Haible <bruno@clisp.org>
21206 * modules/getpass (Depends-on): Add strdup-posix.
21208 New module 'strdup-posix'.
21209 * modules/strdup-posix: New file.
21210 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21211 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21212 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21214 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21215 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21216 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21219 * modules/strdup (Depends-on): Remove malloc-posix.
21221 2008-09-20 Bruno Haible <bruno@clisp.org>
21223 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21226 2008-09-20 Bruno Haible <bruno@clisp.org>
21228 Ensure that wint_t gets defined on IRIX 5.3.
21229 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21230 * lib/wctype.in.h (wint_t): Likewise.
21231 (__wctype_wint_t): Remove type.
21232 (isw*): Use wint_t instead of __wctype_wint_t.
21233 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21234 * modules/wchar (Files): Add m4/wint_t.m4.
21235 (Makefile.am): Substitute HAVE_WINT_T.
21236 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21237 * tests/test-wctype.c: Check that wint_t is defined.
21238 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21239 * doc/posix-headers/wctype.texi: Likewise.
21240 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21242 2008-09-18 Bruno Haible <bruno@clisp.org>
21244 * gnulib-tool (func_exit): Update comment.
21246 2008-09-18 Simon Josefsson <simon@josefsson.org>
21248 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21249 assumes strdup exists and does not depend on strdup to return
21250 ENOMEM on out of memory conditions.
21252 2008-09-18 Bruno Haible <bruno@clisp.org>
21254 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21255 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21256 digits for the exponent.
21258 2008-09-18 Jim Meyering <meyering@redhat.com>
21259 Bruno Haible <bruno@clisp.org>
21261 * lib/vasnprintf.c (decimal_point_char): Define also if
21262 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21264 2008-09-16 Bruno Haible <bruno@clisp.org>
21265 and Eric Blake <ebb9@byu.net>
21267 vasnprintf: support Irix 5.3
21268 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21269 that mishandle long double infinity.
21270 Reported by Tom G. Christensen.
21272 2008-09-16 Bruno Haible <bruno@clisp.org>
21274 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21276 * doc/glibc-functions/alphasort.texi: Likewise.
21277 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21279 2008-09-16 Jim Meyering <meyering@redhat.com>
21281 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21282 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21283 a umask modification leak out of a subshell. Otherwise, the
21284 opensolaris /bin/sh would be accepted and thus cause unwarranted
21285 failures in the coreutils test suite.
21287 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21289 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21292 2008-09-16 Jim Meyering <meyering@redhat.com>
21294 avoid spurious test failure when library is built without ACL support
21295 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21296 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21297 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21298 * tests/test-copy-acl.sh: Likewise.
21300 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21302 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21303 based on character occurrence counts.
21305 2008-09-15 Eric Blake <ebb9@byu.net>
21307 tests: avoid some compiler warnings
21308 * tests/test-memchr.c (main): Pass NULL indirectly.
21309 * tests/test-closein.c (main): Avoid unused variable.
21311 2008-09-15 Bruno Haible <bruno@clisp.org>
21313 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21314 are missing on OpenBSD 4.0 individually.
21315 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21317 2008-09-15 Bruno Haible <bruno@clisp.org>
21319 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21320 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21321 * doc/posix-functions/perror.texi: Likewise.
21322 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21324 Reported by Eric Blake.
21326 * lib/errno.in.h: Use replacement values >= 2000.
21327 Reported by Eric Blake.
21329 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21331 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21332 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21334 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21335 compareseq was aborted.
21337 2008-09-14 Bruno Haible <bruno@clisp.org>
21339 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21341 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21342 (fstrcmp_bounded): Simplify result computation accordingly.
21344 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21346 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21347 (fstrcmp): Define in terms of fstrcmp_bounded.
21348 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21349 lower_bound argument.
21350 Return quickly if the result is certainly < lower_bound.
21351 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21353 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21355 * lib/diffseq.h (EARLY_ABORT): New macro.
21356 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21359 2008-09-14 Bruno Haible <bruno@clisp.org>
21361 * modules/perror-tests: New file.
21362 * tests/test-perror.sh: New file.
21363 * tests/test-perror.c: New file.
21365 New module 'perror'.
21366 * lib/stdio.in.h (perror): New declaration.
21367 * lib/perror.c: New file.
21368 * m4/perror.m4: New file.
21369 * modules/perror: New file.
21370 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21371 * doc/posix-functions/perror.texi: Mention the perror module.
21372 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21374 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21377 2008-09-14 Bruno Haible <bruno@clisp.org>
21379 * modules/stdio (Makefile.am): Reorder to match the order in
21381 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21383 2008-09-13 Bruno Haible <bruno@clisp.org>
21385 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21387 2008-09-13 Bruno Haible <bruno@clisp.org>
21389 Extend strerror to cover the added errno values.
21390 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21391 (rpl_strerror): Provide error messages for the added errno values and
21392 for the WSA* values.
21393 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21394 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21396 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21397 * modules/strerror (Depends-on): Add errno.
21398 * doc/posix-functions/strerror.texi: Document the change.
21399 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21402 2008-09-13 Bruno Haible <bruno@clisp.org>
21404 * modules/EOVERFLOW: Remove file.
21405 * m4/eoverflow.m4: Remove file.
21406 * modules/EOVERFLOW-tests: Remove file.
21407 * tests/test-EOVERFLOW.c: Remove file.
21408 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21409 * modules/ftell (Depends-on): Likewise.
21410 * modules/getdelim (Depends-on): Likewise.
21411 * modules/getugroups (Depends-on): Likewise.
21412 * modules/poll (Depends-on): Likewise.
21413 * modules/snprintf (Depends-on): Likewise.
21414 * modules/sprintf-posix (Depends-on): Likewise.
21415 * modules/vasnprintf (Depends-on): Likewise.
21416 * modules/vasprintf (Depends-on): Likewise.
21417 * modules/vfprintf-posix (Depends-on): Likewise.
21418 * modules/vsnprintf (Depends-on): Likewise.
21419 * modules/vsprintf-posix (Depends-on): Likewise.
21420 * modules/xvasprintf (Depends-on): Likewise.
21421 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21422 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21423 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21424 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21425 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21426 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21427 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21428 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21429 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21430 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21431 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21432 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21433 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21434 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21435 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21436 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21437 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21438 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21439 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21440 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21441 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21442 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21443 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21444 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21445 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21446 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21447 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21448 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21449 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21450 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21451 * MODULES.html.sh: Remove EOVERFLOW.
21452 * NEWS: Mention the change.
21454 2008-09-13 Bruno Haible <bruno@clisp.org>
21456 * modules/errno-tests: New file.
21457 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21459 * lib/errno.in.h: New file.
21460 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21461 * modules/errno: New file.
21462 * doc/posix-headers/errno.texi: Update documentation.
21463 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21465 2008-09-13 Bruno Haible <bruno@clisp.org>
21467 * tests/test-poll.c: Use #if for native Windows, rather than testing
21470 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21471 Bruno Haible <bruno@clisp.org>
21473 * lib/glob.c: Don't include <pwd.h> on native Windows.
21474 (WINDOWS32): New macro.
21475 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21477 2008-09-13 Bruno Haible <bruno@clisp.org>
21479 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21480 (ETIMEDOUT): Remove macro.
21481 (glthread_cond_timedwait_multithreaded): New declaration.
21482 (glthread_cond_timedwait): Use it.
21483 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21484 (glthread_cond_timedwait_multithreaded): New function.
21486 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21488 * modules/poll-tests: Do not check for io.h.
21489 * tests/test-poll.c: Check for __MSVCRT__ instead.
21491 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21493 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21494 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21495 * tests/test-poll.c: Use them. Use _pipe on Windows.
21497 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21499 * modules/poll-tests: New.
21500 * tests/test-poll.c: New.
21502 2008-09-12 Eric Blake <ebb9@byu.net>
21504 frexp: test for NetBSD failure on -0.0
21505 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21506 not all, bugs from NetBSD 3.0 have been fixed.
21507 * doc/posix-functions/frexp.texi (frexp): Document bug.
21508 Reported by Thomas Klausner.
21510 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21511 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21513 Reported by Jonathan C. Patschke <jp@centtech.com>.
21515 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21517 * lib/glthread/cond.h: Use dummy implementation also if
21520 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21522 * modules/fnmatch-posix (License): Change to LGPLv2+.
21523 * modules/fnmatch-gnu (License): Likewise.
21525 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21527 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21529 2008-09-11 Jim Meyering <meyering@redhat.com>
21531 * users.txt: Add gtk-vnc.
21533 2008-09-08 Simon Josefsson <simon@josefsson.org>
21535 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21538 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21539 required for 16-bit and 8-bit rotates.
21540 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21541 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21542 UINT8_MAX instead of hard-coded constants.
21543 Suggested by Paul Eggert.
21545 2008-09-07 Bruno Haible <bruno@clisp.org>
21547 * tests/test-striconveh.c (main): Check behaviour when converting from
21550 Make striconveh work better with stateful encodings.
21551 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21552 that iconv does not increment the inptr when returning -1/EINVAL.
21554 2008-09-07 Bruno Haible <bruno@clisp.org>
21556 * build-aux/config.rpath: Update according to libtool-2.2.6.
21557 * build-aux/config.libpath: Likewise.
21559 2008-09-06 Bruno Haible <bruno@clisp.org>
21561 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21562 * lib/freadptr.c (freadptr): Likewise.
21563 * lib/freadseek.c (freadptrinc): Likewise.
21564 Reported by Simon Josefsson.
21566 2008-09-06 Bruno Haible <bruno@clisp.org>
21568 * modules/freadptr (License): Change to LGPLv2+.
21569 * modules/freadseek (License): Likewise.
21570 Suggested by Eric Blake.
21572 * modules/memchr2 (License): Change to LGPLv2+.
21573 Approved by Eric Blake.
21575 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21576 Bruno Haible <bruno@clisp.org>
21578 Make gnulib-tool work with native 'sed' on AIX.
21579 * gnulib-tool (sed_noop): New variable.
21580 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21581 func_add_or_update, func_create_testdir): Use it to initialize sed
21583 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21585 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21586 Bruno Haible <bruno@clisp.org>
21588 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21589 also works after #include directives.
21591 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
21593 getdate.y: reject an out-of-range timezone value
21594 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21595 the range [-24...+24]. When specified with only one or two digits,
21596 * tests/test-getdate.c: Tests for the fix.
21597 * doc/getdate.texi: Document this change.
21599 2008-09-03 Bruno Haible <bruno@clisp.org>
21601 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21603 2008-09-02 Simon Josefsson <simon@josefsson.org>
21605 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21606 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21607 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21608 Blake <ebb9@byu.net>.
21610 * tests/test-bitrotate.c: Add more test vectors.
21612 2008-09-02 Eric Blake <ebb9@byu.net>
21614 vasnprintf-posix: handle large precision via %.*d
21615 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21616 when handling it ourselves.
21617 * tests/test-vasnprintf-posix.c (test_function): Add test.
21618 * tests/test-snprintf-posix.h (test_function): Likewise.
21619 * tests/test-sprintf-posix.h (test_function): Likewise.
21620 * tests/test-vasprintf-posix.c (test_function): Likewise.
21621 Reported by Alain Guibert.
21623 2008-09-01 Eric Blake <ebb9@byu.net>
21625 c-stack: make configure-time check more robust
21626 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21627 successful sigaction call.
21628 Reported by Tom G. Christensen.
21630 2008-09-01 Bruno Haible <bruno@clisp.org>
21632 New module 'findprog-lgpl'.
21633 * modules/findprog-lgpl: New file.
21634 * lib/findprog-lgpl.c: New file.
21635 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21636 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21637 to decide whether to use strdup or xstrdup, concatenated_filename or
21638 xconcatenated_filename.
21640 2008-09-01 Bruno Haible <bruno@clisp.org>
21642 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21643 'xconcat-filename' (GPL).
21644 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21645 (License): Change to LGPLv2+.
21646 * modules/xconcat-filename: New file.
21647 * lib/concat-filename.h (concatenated_filename): Change specification.
21648 (xconcatenated_filename): New declaration.
21649 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21650 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21652 * lib/xconcat-filename.c: New file.
21653 * NEWS: Mention the change.
21654 * lib/findprog.c: Include concat-filename.h, not filename.h.
21655 (find_in_path): Use xconcatenated_filename instead of
21656 concatenated_filename.
21657 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21658 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21659 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21660 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21661 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21662 instead of concatenated_filename.
21663 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21664 (execute_java_class): Use xconcatenated_filename instead of
21665 concatenated_filename.
21666 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21667 * modules/javacomp (Depends-on): Likewise.
21668 * modules/javaexec (Depends-on): Likewise.
21670 2008-09-01 Bruno Haible <bruno@clisp.org>
21672 Split module 'filename' into 'filename' and 'concat-filename'.
21673 * modules/filename: Keep only lib/filename.h.
21674 (License): Change to LGPLv2+.
21675 * modules/concat-filename: New file, extracted from modules/filename.
21676 * lib/filename.h (concatenated_filename): Remove declaration.
21677 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21678 * lib/concat-filename.c: Include concat-filename.h.
21679 * NEWS: Mention the change.
21681 2008-09-01 Simon Josefsson <simon@josefsson.org>
21683 * lib/bitrotate.h (rotl8, rotr8): Add.
21685 * modules/bitrotate (configure.ac): Need
21686 AC_REQUIRE([AC_C_INLINE]).
21687 (Description): Mention stdint.h. Reported by Bruno Haible
21690 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21691 Paolo Bonzini <bonzini@gnu.org>.
21693 2008-08-31 Bruno Haible <bruno@clisp.org>
21695 Assume Solaris specific bi-arch conventions on Solaris systems.
21696 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21697 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21698 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21699 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21700 like acl_libdirstem.
21701 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21703 * NEWS: Mention the change.
21704 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21706 2008-08-31 Jim Meyering <meyering@redhat.com>
21708 * lib/strftime.h: Add comments describing the two added arguments.
21710 remove duplicate #include directives
21711 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21712 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21714 2008-08-31 Bruno Haible <bruno@clisp.org>
21716 New module 'sigpipe-die'.
21717 * modules/sigpipe-die: New file.
21718 * lib/sigpipe-die.h: New file.
21719 * lib/sigpipe-die.c: New file.
21720 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21722 2008-08-31 Bruno Haible <bruno@clisp.org>
21724 Don't override previously installed signal handlers.
21725 * lib/fatal-signal.c (saved_sigactions): New variable.
21726 (uninstall_handlers): Reset the signal to the saved handler, not
21727 to SIG_DFL (except when ignored).
21728 (install_handlers): Save the previous handlers.
21730 2008-08-30 Bruno Haible <bruno@clisp.org>
21732 * gnulib-tool (func_reset_sigpipe): New function.
21733 (func_get_automake_snippet, func_modules_transitive_closure,
21734 func_import): Invoke it before a join command that reads from stdin,
21735 to avoid "echo: write error: Broken pipe" error messages on stderr.
21736 Reported by Sam Steingold <sds@gnu.org>.
21738 2008-08-30 Bruno Haible <bruno@clisp.org>
21740 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21741 Code copied from m4/open.m4.
21742 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21743 access and the filename ends in a slash. Code copied from lib/open.c.
21744 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21745 * tests/test-fopen.c (main): Check against bug with trailing slash.
21747 2008-08-29 Bruno Haible <bruno@clisp.org>
21749 Avoid some "gcc -pedantic" warnings.
21750 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21751 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21752 * lib/dirent.in.h: Likewise.
21753 * lib/fcntl.in.h: Likewise.
21754 * lib/float.in.h: Likewise.
21755 * lib/iconv.in.h: Likewise.
21756 * lib/inttypes.in.h: Likewise.
21757 * lib/locale.in.h: Likewise.
21758 * lib/math.in.h: Likewise.
21759 * lib/netinet_in.in.h: Likewise.
21760 * lib/search.in.h: Likewise.
21761 * lib/signal.in.h: Likewise.
21762 * lib/stdarg.in.h: Likewise.
21763 * lib/stdint.in.h: Likewise.
21764 * lib/stdio.in.h: Likewise.
21765 * lib/stdlib.in.h: Likewise.
21766 * lib/string.in.h: Likewise.
21767 * lib/strings.in.h: Likewise.
21768 * lib/sys_select.in.h: Likewise.
21769 * lib/sys_socket.in.h: Likewise.
21770 * lib/sys_stat.in.h: Likewise.
21771 * lib/sys_time.in.h: Likewise.
21772 * lib/sysexits.in.h: Likewise.
21773 * lib/time.in.h: Likewise.
21774 * lib/unistd.in.h: Likewise.
21775 * lib/wchar.in.h: Likewise.
21776 * lib/wctype.in.h: Likewise.
21777 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21778 * modules/fchdir (Makefile.am): Likewise.
21779 * modules/fcntl (Makefile.am): Likewise.
21780 * modules/float (Makefile.am): Likewise.
21781 * modules/iconv_open (Makefile.am): Likewise.
21782 * modules/inttypes (Makefile.am): Likewise.
21783 * modules/locale (Makefile.am): Likewise.
21784 * modules/math (Makefile.am): Likewise.
21785 * modules/netinet_in (Makefile.am): Likewise.
21786 * modules/search (Makefile.am): Likewise.
21787 * modules/signal (Makefile.am): Likewise.
21788 * modules/stdarg (Makefile.am): Likewise.
21789 * modules/stdint (Makefile.am): Likewise.
21790 * modules/stdio (Makefile.am): Likewise.
21791 * modules/stdlib (Makefile.am): Likewise.
21792 * modules/string (Makefile.am): Likewise.
21793 * modules/strings (Makefile.am): Likewise.
21794 * modules/sys_select (Makefile.am): Likewise.
21795 * modules/sys_socket (Makefile.am): Likewise.
21796 * modules/sys_stat (Makefile.am): Likewise.
21797 * modules/sys_time (Makefile.am): Likewise.
21798 * modules/sysexits (Makefile.am): Likewise.
21799 * modules/time (Makefile.am): Likewise.
21800 * modules/unistd (Makefile.am): Likewise.
21801 * modules/wchar (Makefile.am): Likewise.
21802 * modules/wctype (Makefile.am): Likewise.
21803 Reported by Reuben Thomas <rrt@sc3d.org>.
21805 2008-08-29 Bruno Haible <bruno@clisp.org>
21807 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21810 2008-08-29 Simon Josefsson <simon@josefsson.org>
21812 * MODULES.html.sh (Misc): Add bitrotate.
21814 * modules/bitrotate: New file.
21816 * lib/bitrotate.h: New file.
21818 * modules/bitrotate-tests: New file.
21820 * tests/test-bitrotate.c: New file.
21822 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21823 on the bitrotate module.
21825 * lib/arctwo.c: Use new bitrotate module.
21827 2008-08-29 Jim Meyering <meyering@redhat.com>
21829 bootstrap: merge changes from coreutils
21830 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21831 of copied files. Remove a kludge, now that this is fixed.
21832 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21833 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21834 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21836 2008-08-29 Bruno Haible <bruno@clisp.org>
21838 * MODULES.html.sh: Remove --cvs-urls option.
21840 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21842 maint.mk: adjust to file name change
21843 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21845 2008-08-28 Jim Meyering <meyering@redhat.com>
21847 * modules/getndelim2 (License): Relicense to LGPLv2+.
21848 Approved by Richard Stallman for the version of 1995, and by
21849 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21851 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21853 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21854 dummy if one is not available. Do not touch them if
21855 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21856 (getc_maybe_unlocked): New.
21857 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21859 2008-08-26 Eric Blake <ebb9@byu.net>
21861 doc/INSTALL: resync from autoconf
21862 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21863 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21865 * install.texi [!autoconf]: ...here. Resync from autoconf.
21866 * INSTALL: Regenerate.
21867 * INSTALL.ISO: New file.
21868 * INSTALL.UTF-8: Likewise.
21870 2008-08-26 Jim Meyering <meyering@redhat.com>
21872 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21873 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21874 these definitions conditional, so that they may be overridden, too.
21876 2008-08-26 Bruno Haible <bruno@clisp.org>
21878 Generate INSTALL file variants with prettier quotes.
21879 * doc/Makefile (INSTALL_PRELUDE): New macro.
21881 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21883 2008-08-26 Bruno Haible <bruno@clisp.org>
21885 Run makeinfo in an English locale.
21886 * doc/Makefile (MAKEINFO): New variable.
21888 2008-08-26 Bruno Haible <bruno@clisp.org>
21890 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21891 Suggested by Eric Blake.
21893 2008-08-25 Bruno Haible <bruno@clisp.org>
21895 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21897 2008-08-25 Eric Blake <ebb9@byu.net>
21899 c-stack: test that stack overflow can be caught
21900 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21901 that platform allows handling stack overflow; at least OS/2 EMX
21902 has sigaltstack, but crashes before transferring control to
21903 handler on stack overflow.
21904 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21905 check for HAVE_STACK_OVERFLOW_HANDLING.
21906 Reported by Elbert Pol.
21908 2008-08-25 Bruno Haible <bruno@clisp.org>
21910 * doc/posix-functions/strftime.texi: Fix description of strftime
21913 2008-08-24 Bruno Haible <bruno@clisp.org>
21915 * tests/uniwidth/test-uc_width2.c: New file.
21916 * tests/uniwidth/test-uc_width2.sh: New file.
21917 * modules/uniwidth/width-tests (Files): Add the new files.
21918 (TESTS): Add uniwidth/test-uc_width2.sh.
21919 (TESTS_ENVIRONMENT): New variable.
21920 (check_PROGRAMS): Add test-uc_width2.
21921 (test_uc_width2_SOURCES): New variable.
21923 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21924 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21926 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21928 2008-08-22 Eric Blake <ebb9@byu.net>
21930 test-lock, test-tls: mention why a test is skipped
21931 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21933 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21935 count-one-bits: relax license
21936 * modules/count-one-bits (License): Relicense to LGPLv2+.
21937 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21939 2008-08-22 Andreas Schwab <schwab@suse.de>
21941 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21942 Remove spurious space in assignment.
21944 2008-08-21 Simon Josefsson <simon@josefsson.org>
21946 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21947 Paul Eggert <eggert@CS.UCLA.EDU>.
21949 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21951 * modules/gettext: Add m4/threadlib.m4.
21953 2008-08-19 Eric Blake <ebb9@byu.net>
21955 test-c-stack: fix compilation failure on FreeBSD 5.0
21956 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21957 headers before <sys/resource.h>.
21958 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21960 Reported by Nelson H. F. Beebe.
21962 strverscmp: migrate from "strverscmp.h" to <string.h>
21963 * modules/string (Makefile.am): Add new hooks.
21964 * modules/strverscmp (Files): Remove strverscmp.h.
21965 (Depends-on): Add string.
21966 (configure.ac): Add indicator.
21967 (Include): Mention new header.
21968 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21970 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21972 * lib/strverscmp.h: Delete.
21973 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21974 * tests/test-strverscmp.c (includes): Adjust client.
21975 * lib/check-version.c (includes): Likewise.
21976 * NEWS: Document the change.
21978 strverscmp: add unit test
21979 * modules/strverscmp-tests: New file.
21980 * tests/test-strverscmp.c: Likewise.
21982 2008-08-19 Simon Josefsson <simon@josefsson.org>
21984 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21985 regarding Windows crypto stuff, from Mono.
21987 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21989 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21990 if present, for intel RND. Return error on failures.
21992 2008-08-18 Ben Pfaff <blp@gnu.org>
21994 gitlog-to-changelog: give better diagnostic for failed pipe-open
21995 * build-aux/gitlog-to-changelog: Improve error message: suggest
21996 that the version of Git may be too old.
21998 2008-08-18 Simon Josefsson <simon@josefsson.org>
22000 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
22001 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
22003 2008-08-18 Bruno Haible <bruno@clisp.org>
22005 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22008 2008-08-18 Bruno Haible <bruno@clisp.org>
22010 * lib/glthread/threadlib.c: Include <pthread.h>.
22012 2008-08-18 Bruno Haible <bruno@clisp.org>
22014 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22015 glthread_recursive_lock_* macros.
22016 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22019 2008-08-18 Bruno Haible <bruno@clisp.org>
22021 * lib/glthread/thread.c: Avoid forcing a context switch right after
22024 2008-08-17 Bruno Haible <bruno@clisp.org>
22026 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22027 * lib/glthread/thread.h: Provide Win32 specific implementation.
22028 * modules/thread (Files): Add lib/glthread/thread.c.
22029 (Depends-on): Add lock.
22030 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22032 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22034 New module 'yield'.
22035 * modules/yield: New file.
22036 * lib/glthread/yield.h: New file.
22037 * m4/yield.m4: New file.
22038 * MODULES.html.sh (Multithreading): Add yield.
22040 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22042 New module 'thread'.
22043 * modules/thread: New file.
22044 * lib/glthread/thread.h: New file.
22045 * m4/thread.m4: New file.
22046 * MODULES.html.sh (Multithreading): Add thread.
22048 2008-08-17 Bruno Haible <bruno@clisp.org>
22050 * lib/glthread/lock.h: Include <stdlib.h> always.
22051 * lib/glthread/tls.h: Likewise.
22052 * lib/glthread/cond.h: Likewise.
22054 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22057 * modules/cond: New file.
22058 * lib/glthread/cond.h: New file.
22059 * lib/glthread/cond.c: New file.
22060 * m4/cond.m4: New file.
22061 * MODULES.html.sh (Multithreading): Add cond.
22063 2008-08-16 Eric Blake <ebb9@byu.net>
22065 c-stack: fix regression on Irix 5.3 from 2008-06-21
22066 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22068 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22069 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22070 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22071 * modules/signal (Makefile.am): Use the value.
22072 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22073 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22074 * doc/posix-headers/signal.texi (signal.h): Document this
22076 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22077 Reported by Tom G. Christensen.
22079 2008-08-17 Bruno Haible <bruno@clisp.org>
22081 New module 'threadlib'.
22082 * modules/threadlib: New file.
22083 * lib/glthread/threadlib.c: New file, extracted from
22084 lib/glthread/lock.c.
22085 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22087 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22088 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22089 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22091 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22092 (gl_DISABLE_THREADS): Remove macro.
22093 * modules/lock (Files): Remove build-aux/config.rpath.
22094 (Depends-on): Remove havelib. Add threadlib.
22095 (configure.ac-early): Remove section.
22096 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22097 * modules/tls (Depends-on): Remove lock. Add threadlib.
22098 (Link): New section, copied from threadlib.
22099 * MODULES.html.sh (Multithreading): Add threadlib.
22101 2008-08-14 Bruno Haible <bruno@clisp.org>
22103 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22104 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22105 glthread_rwlock_unlock, glthread_rwlock_destroy,
22106 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22107 glthread_recursive_lock_destroy): Define as macros always.
22108 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22109 glthread_lock_lock.
22110 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22111 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22112 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22113 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22114 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22115 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22116 (glthread_recursive_lock_lock_func): Renamed from
22117 glthread_recursive_lock_lock.
22118 (glthread_recursive_lock_unlock_func): Renamed from
22119 glthread_recursive_lock_unlock.
22120 (glthread_recursive_lock_destroy_func): Renamed from
22121 glthread_recursive_lock_destroy.
22123 2008-08-14 Bruno Haible <bruno@clisp.org>
22125 * lib/glthread/lock.h: Renamed from lib/lock.h.
22126 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22127 * lib/glthread/tls.h: Renamed from lib/tls.h.
22128 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22129 * lib/fstrcmp.c: Update includes.
22130 * lib/strsignal.c: Update includes.
22131 * modules/lock (Files, Makefile.am): Update.
22132 (Include): Change to "glthread/lock.h".
22133 * modules/tls (Files, Makefile.am): Update.
22134 (Include): Change to "glthread/tls.h".
22135 * tests/test-lock.c: Update includes.
22136 * tests/test-tls.c: Update includes.
22137 * NEWS: Mention the renamed header files.
22139 2008-08-11 Jim Meyering <meyering@redhat.com>
22141 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22143 2008-08-11 Eric Blake <ebb9@byu.net>
22145 test-c-stack: avoid C99-ism
22146 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22148 Reported by Alain Guibert.
22150 2008-08-10 Jim Meyering <meyering@redhat.com>
22152 ensure that return value of uinttostr et al are not ignored
22153 * lib/inttostr.h (__GNUC_PREREQ): Define.
22154 (__attribute_warn_unused_result__): Define.
22155 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22157 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22159 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22160 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22162 2008-08-07 Jim Meyering <meyering@redhat.com>
22164 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22166 * modules/mkstemp (License): Relicense under LGPLv2+.
22167 * modules/tempname (License): Likewise.
22169 2008-08-06 Bruno Haible <bruno@clisp.org>
22171 * lib/poll.c (poll): Further micro-optimization.
22173 2008-08-06 Jim Meyering <meyering@redhat.com>
22175 inet_pton.c: use locale-independent tolower
22176 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22177 (inet_pton6): Use c_tolower rather than tolower.
22178 * modules/inet_pton (Depends-on): Add c-ctype.
22180 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22182 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22183 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22185 2008-08-06 Jim Meyering <meyering@redhat.com>
22187 * modules/inet_pton (License): Relicense under LGPLv2+.
22189 2008-08-03 Bruno Haible <bruno@clisp.org>
22191 Additional non-aborting API for lock and tls.
22192 * lib/lock.h: Include <errno.h>.
22193 (glthread_lock_init): New macro/function.
22194 (gl_lock_init): Define as wrapper around glthread_lock_init.
22195 (glthread_lock_lock): New macro/function.
22196 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22197 (glthread_lock_unlock): New macro/function.
22198 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22199 (glthread_lock_destroy): New macro/function.
22200 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22201 (glthread_rwlock_init): New macro/function.
22202 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22203 (glthread_rwlock_rdlock): New macro/function.
22204 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22205 (glthread_rwlock_wrlock): New macro/function.
22206 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22207 (glthread_rwlock_unlock): New macro/function.
22208 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22209 (glthread_rwlock_destroy): New macro/function.
22210 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22211 (glthread_recursive_lock_init): New macro/function.
22212 (gl_recursive_lock_init): Define as wrapper around
22213 glthread_recursive_lock_init.
22214 (glthread_recursive_lock_lock): New macro/function.
22215 (gl_recursive_lock_lock): Define as wrapper around
22216 glthread_recursive_lock_lock.
22217 (glthread_recursive_lock_unlock): New macro/function.
22218 (gl_recursive_lock_unlock): Define as wrapper around
22219 glthread_recursive_lock_unlock.
22220 (glthread_recursive_lock_destroy): New macro/function.
22221 (gl_recursive_lock_destroy): Define as wrapper around
22222 glthread_recursive_lock_destroy.
22223 (glthread_once): New macro/function.
22224 (gl_once): Define as wrapper around glthread_once.
22225 Update function declarations.
22226 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22227 glthread_rwlock_init. Return error code.
22228 (glthread_rwlock_rdlock_multithreaded): Renamed from
22229 glthread_rwlock_rdlock. Return error code.
22230 (glthread_rwlock_wrlock_multithreaded): Renamed from
22231 glthread_rwlock_wrlock. Return error code.
22232 (glthread_rwlock_unlock_multithreaded): Renamed from
22233 glthread_rwlock_unlock. Return error code.
22234 (glthread_rwlock_destroy_multithreaded): Renamed from
22235 glthread_rwlock_destroy. Return error code.
22236 (glthread_recursive_lock_init_multithreaded): Renamed from
22237 glthread_recursive_lock_init. Return error code.
22238 (glthread_recursive_lock_lock_multithreaded): Renamed from
22239 glthread_recursive_lock_lock. Return error code.
22240 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22241 glthread_recursive_lock_unlock. Return error code.
22242 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22243 glthread_recursive_lock_destroy. Return error code.
22244 (glthread_once_call): Make static.
22245 (glthread_once_multithreaded): Renamed from glthread_once.
22246 * lib/tls.h: Include <errno.h>.
22247 (glthread_tls_key_init): New macro/function.
22248 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22249 (glthread_tls_set): New macro/function.
22250 (gl_tls_set): Define as wrapper around glthread_tls_set.
22251 (glthread_tls_key_destroy): New macro/function.
22252 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22253 Update function declarations.
22254 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22256 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22258 2008-08-04 Eric Blake <ebb9@byu.net>
22260 gnumakefile: use space, not TAB, outside of targets
22261 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22263 2008-08-02 Jim Meyering <meyering@redhat.com>
22265 getdate.y: avoid locale-dependent date parsing failure
22266 In Turkish locales, getdate would fail to recognize keywords
22267 containing a lowercase "i". The solution is not to rely on
22268 locale-sensitive case-conversion.
22269 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22270 (lookup_word): Use c_toupper in place of toupper.
22271 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22272 Reported by Vefa Bicakci <bicave@superonline.com> in
22273 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22274 * modules/getdate (Depends-on): Add c-ctype.
22276 2008-08-02 Bruno Haible <bruno@clisp.org>
22278 * gnulib-tool (func_import): When updating or creating a .gitignore
22279 file, prepend each added line with a slash, and ignore leading slashes
22280 from the existing lines.
22281 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22283 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22285 Portability fix for GNU make 3.79.1.
22286 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22287 versions do not understand.
22289 2008-08-01 Bruno Haible <bruno@clisp.org>
22291 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22292 * tests/test-isnanf.h (zero): New variable.
22293 (main): Avoid literal -0.0f.
22294 * tests/test-isnand.h (zero): New variable.
22295 (main): Avoid literal -0.0.
22296 * tests/test-isnanl.h (zero): New variable.
22297 (main): Avoid literal -0.0L.
22298 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22299 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22301 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22302 (test_signbitd): Avoid literal -0.0.
22303 (test_signbitl): Avoid literal -0.0L.
22304 * tests/test-ceilf1.c (zero): New variable.
22305 (main): Avoid literal -0.0f.
22306 * tests/test-ceill.c (zero): New variable.
22307 (main): Avoid literal -0.0L.
22308 * tests/test-floorf1.c (zero): New variable.
22309 (main): Avoid literal -0.0f.
22310 * tests/test-floorl.c (zero): New variable.
22311 (main): Avoid literal -0.0L.
22312 * tests/test-roundf1.c (zero): New variable.
22313 (main): Avoid literal -0.0f.
22314 * tests/test-round1.c (zero): New variable.
22315 (main): Avoid literal -0.0.
22316 * tests/test-roundl.c (zero): New variable.
22317 (main): Avoid literal -0.0L.
22318 * tests/test-truncf1.c (zero): New variable.
22319 (main): Avoid literal -0.0f.
22320 * tests/test-trunc1.c (zero): New variable.
22321 (main): Avoid literal -0.0.
22322 * tests/test-truncl.c (zero): New variable.
22323 (main): Avoid literal -0.0L.
22324 * tests/test-frexp.c (zero): New variable.
22325 (main): Avoid literal -0.0.
22326 * tests/test-frexpl.c (zero): New variable.
22327 (main): Avoid literal -0.0L.
22328 * tests/test-ldexpl.c (zero): New variable.
22329 (main): Avoid literal -0.0L.
22330 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22331 (zerod, zerol): New variables.
22332 (test_function): Avoid literals -0.0, -0.0L.
22333 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22334 (zerod, zerol): New variables.
22335 (test_function): Avoid literals -0.0, -0.0L.
22336 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22337 (zerod, zerol): New variables.
22338 (test_function): Avoid literals -0.0, -0.0L.
22339 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22340 (zerod, zerol): New variables.
22341 (test_function): Avoid literals -0.0, -0.0L.
22342 * tests/test-strtod.c (zero): New variable.
22343 (main): Avoid literal -0.0.
22344 Reported by Jonathan C. Patschke <jp@centtech.com>.
22346 2008-07-31 Jim Meyering <meyering@redhat.com>
22348 sha256.h: correct definition of SHA224_DIGEST_SIZE
22349 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22350 Reported by Paulie Pena IV <paulie4@gmail.com>.
22351 Define as 224 / 8, rather than as a literal.
22352 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22353 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22354 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22356 2008-07-31 Bruno Haible <bruno@clisp.org>
22358 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22359 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22360 Reported by Jonathan Patschke <jp@centtech.com>.
22362 2008-07-31 Bruno Haible <bruno@clisp.org>
22364 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22365 Reported by Paolo Bonzini <bonzini@gnu.org>.
22367 2008-07-30 Eric Blake <ebb9@byu.net>
22369 test-strtod: allow compilation without -lm
22370 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22371 Reported by Dennis Clarke <blastwave@gmail.com>.
22373 2008-07-28 Jim Meyering <meyering@redhat.com>
22375 bootstrap: work also when there are no .po files in po/
22376 * build-aux/bootstrap (update_po_files): Complete the change
22377 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22379 2008-07-27 Jim Meyering <meyering@redhat.com>
22381 * users.txt: Add zile.
22383 2008-07-26 Ben Pfaff <blp@gnu.org>
22385 Add missing dependencies on new m4/exponent[fdl].m4 files.
22386 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22387 * modules/isnand-nolibm: Add m4/exponentd.m4.
22388 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22389 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22390 m4/isnan[fdl].m4, because the macros actually used moved.
22391 Reported by Jim Meyering.
22393 2008-07-14 Ben Pfaff <blp@gnu.org>
22396 * lib/isinf.c: New file.
22397 * lib/math.in.h: Define isinf macro if we have decided to replace
22399 * m4/isinf.m4: New file.
22400 * m4/math_h.m4: Initialize and substitute variables for isinf
22402 * modules/isinf: New file.
22403 * modules/isinf-tests: New file.
22404 * modules/math: Add substitutions for new module.
22405 * tests/test-isinf.c: New file.
22406 * doc/posix-functions/isinf.texi: Mention new module.
22407 * MODULES.html.sh: Mention new module.
22409 2008-07-14 Ben Pfaff <blp@gnu.org>
22411 Factor out some macros for use by additional modules.
22412 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22414 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22416 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22418 * m4/exponentf.m4: New file.
22419 * m4/exponentd.m4: New file.
22420 * m4/exponentl.m4: New file.
22421 * modules/isnanf: Use new file m4/exponentf.m4.
22422 * modules/isnand: Use new file m4/exponentd.m4.
22423 * modules/isnanl: Use new file m4/exponentl.m4.
22425 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22427 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22428 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22429 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22430 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22432 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22433 readlink on platforms without PATH_MAX.
22435 2008-07-21 Eric Blake <ebb9@byu.net>
22437 Warn, not fail, on stale version.
22438 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22440 Don't allow installation with stale devel version number.
22441 * top/GNUmakefile (_is-install-target): New macro.
22442 (_curr-ver): Forbid installation with stale version number.
22444 2008-07-20 Bruno Haible <bruno@clisp.org>
22446 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22448 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22450 2008-07-20 Bruno Haible <bruno@clisp.org>
22452 * lib/c-stack.h (c_stack_action): Add documentation.
22453 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22455 2008-07-20 Bruno Haible <bruno@clisp.org>
22457 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22458 * modules/readlink (License): Likewise.
22460 2008-07-17 Eric Blake <ebb9@byu.net>
22462 * modules/c-stack (Link): Fix typo.
22464 Make c-stack use libsigsegv, when available.
22465 * modules/c-stack (Depends-on): Add libsigsegv.
22466 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22468 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22469 (segv_handler, overflow_handler, c_stack_action)
22470 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22471 implementation when libsigsegv is available, but only when using
22472 the library is necessary.
22473 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22474 comment, explaining why XSI check fails on Linux.
22475 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22476 * tests/test-c-stack2.sh: Tweak skip message.
22477 * NEWS: Document new link-time requirements.
22479 2008-07-16 Eric Blake <ebb9@byu.net>
22481 c-stack: Expose false positives when not using libsigsegv.
22482 * modules/c-stack-tests (Files): Expand test.
22483 * tests/test-c-stack.c (main): Add means to conditionally trigger
22484 non-overflow SIGSEGV.
22485 * tests/test-c-stack2.sh: New file.
22487 2008-07-14 Bruno Haible <bruno@clisp.org>
22489 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22490 Reported by Eric Blake.
22492 2008-07-14 Sam Steingold <sds@gnu.org>
22493 Bruno Haible <bruno@clisp.org>
22495 New module libsigsegv.
22496 * modules/libsigsegv: New file.
22497 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22499 * MODULES.html.sh (Signal handling): New section.
22501 2008-07-14 Bruno Haible <bruno@clisp.org>
22503 * modules/unictype/ctype-* (Description): Add the word "function".
22504 Improves the resulting doc in MODULES.html.
22506 2008-07-12 Ben Pfaff <blp@gnu.org>
22508 Add longlong module.
22509 * modules/longlong: New file.
22511 2008-07-12 Bruno Haible <bruno@clisp.org>
22513 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22516 2008-07-10 Ben Pfaff <blp@gnu.org>
22519 * doc/posix-functions/isnan.texi: Mention new module.
22520 * lib/math.in.h: Define isnan macro if we have decided to replace
22522 * m4/isnan.m4: New file.
22523 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22524 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22526 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22528 * m4/math_h.m4: Initialize and substitute variables for isnan
22530 * modules/isnan: New file.
22531 * modules/isnan-tests: New file.
22532 * modules/math: Add substitutions for new module.
22533 * tests/test-isnan.c: New file.
22534 * MODULES.html.sh: Mention new module.
22536 2008-07-10 Ben Pfaff <blp@gnu.org>
22539 * lib/isnanf.m4: New file.
22540 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22541 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22542 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22543 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22544 * modules/isnanf: New file.
22545 * modules/isnanf-tests: New file.
22546 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22548 * tests/test-isnanf-nolibm.c: factored most of its contents into
22549 new file tests/test-isnanf.h.
22550 * tests/test-isnanf.h: New file.
22551 * tests/test-isnanf.c: New file.
22552 * MODULES.html.sh: Mention new module.
22553 * doc/glibc-functions/isnanf.texi: Mention new module.
22555 2008-07-10 Ben Pfaff <blp@gnu.org>
22558 * lib/isnand.h: New file.
22559 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22560 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22561 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22562 functionality also.
22563 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22564 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22565 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22566 * modules/isnand: New file.
22567 * modules/isnand-tests: New file.
22568 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22570 * tests/test-isnand-nolibm.c: factored most of its contents into
22571 new file tests/test-isnand.h.
22572 * tests/test-isnand.h: New file.
22573 * tests/test-isnand.c: New file.
22574 * MODULES.html.sh: Mention new module.
22576 2008-07-10 Ben Pfaff <blp@gnu.org>
22578 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22579 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22580 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22581 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22582 * modules/isnanf-nolibm: Update references to renamed files.
22583 * modules/isnand-nolibm: Likewise.
22584 * modules/isnanf-nolibm-tests: Likewise.
22585 * modules/isnand-nolibm-tests: Likewise.
22586 * lib/frexp.c: Likewise.
22587 * lib/isfinite.c: Likewise.
22588 * lib/signbitd.c: Likewise.
22589 * lib/signbitf.c: Likewise.
22590 * lib/vasnprintf.c: Likewise.
22591 * tests/test-ceilf1.c: Likewise.
22592 * tests/test-ceilf2.c: Likewise.
22593 * tests/test-floorf1.c: Likewise.
22594 * tests/test-floorf2.c: Likewise.
22595 * tests/test-frexp.c: Likewise.
22596 * tests/test-round1.c: Likewise.
22597 * tests/test-round2.c: Likewise.
22598 * tests/test-roundf1.c: Likewise.
22599 * tests/test-strtod.c: Likewise.
22600 * tests/test-trunc1.c: Likewise.
22601 * tests/test-trunc2.c: Likewise.
22602 * tests/test-truncf1.c: Likewise.
22603 * tests/test-truncf2.c: Likewise.
22604 * NEWS: Mention the renamed header files.
22606 2008-07-11 Jim Meyering <meyering@redhat.com>
22608 vc-list-files: make the last-resort awk code more portable
22609 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22610 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22611 does not support it.
22613 2008-07-10 Eric Blake <ebb9@byu.net>
22615 Work with tar's bootstrap.
22616 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22617 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22620 2008-07-09 Jim Meyering <meyering@redhat.com>
22622 posix-shell.m4: fix typo that made this test malfunction
22623 * m4/posix-shell.m4: Remove capitalization in variable name.
22625 2008-07-08 Bruno Haible <bruno@clisp.org>
22627 * m4/onceonly.m4: Update comments.
22628 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22630 2008-07-04 Jim Meyering <meyering@redhat.com>
22632 * users.txt: Add vc-dwim.
22633 (bison, coreutils): Use the gitweb URL.
22635 2008-07-03 Jim Meyering <meyering@redhat.com>
22637 * users.txt: Add libffcall. From Sam Steingold.
22639 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
22641 getdate.y: do not ignore TZ with relative day, month or year offset
22642 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22643 relative-date-handling, since otherwise, the latter would clobber the
22644 sole output (an updated Start value) of the tz-handling block.
22645 * tests/test-getdate.c: Tests for the fix
22647 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22649 Recognize 'foo_LIBRARIES += libgnu.a'.
22650 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22651 makefile snippet has already specified an installation location,
22654 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
22656 getdate.y: factor out common actions
22657 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22658 Use them in place of open-coded actions.
22660 2008-07-01 Simon Josefsson <simon@josefsson.org>
22662 Add self-test for getdate module.
22663 * modules/getdate-tests: New file.
22664 * tests/test-getdate.c: New file.
22666 2008-06-29 Bruno Haible <bruno@clisp.org>
22668 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22670 Reported by Sylvain Beucler <beuc@beuc.net>.
22672 2008-06-29 Bruno Haible <bruno@clisp.org>
22674 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22675 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22677 2008-06-29 Bruno Haible <bruno@clisp.org>
22679 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22681 Reported by Sylvain Beucler <beuc@beuc.net>.
22683 2008-06-26 Jim Meyering <meyering@redhat.com>
22685 make several modules depend on the "open" module
22686 This provides slightly increased consistency when opening-for-write
22687 the name of a non-directory spelled with a trailing slash.
22688 * modules/chdir-safer: Likewise.
22689 * modules/chown: Likewise.
22690 * modules/clean-temp: Likewise.
22691 * modules/copy-file: Likewise.
22692 * modules/fchdir: Likewise.
22693 * modules/fcntl-safer: Likewise.
22694 * modules/pipe: Likewise.
22695 * modules/utime: Likewise.
22696 Prompted by Eric Blake and Bruno Haible.
22698 2008-06-24 Andreas Schwab <schwab@suse.de>
22700 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22701 literals can be used as initializers for global variables.
22703 2008-06-23 Eric Blake <ebb9@byu.net>
22705 Make gnulib-cache.m4 easier to diff.
22706 * gnulib-tool (func_import): Allow newlines when reading cached
22707 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22709 2008-06-23 Bruno Haible <bruno@clisp.org>
22711 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22712 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22713 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22714 m4/signalblocking.m4.
22715 (gl_PREREQ_SIGACTION): Don't invoke it.
22716 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22717 gl_PREREQ_SIG_HANDLER_H.
22718 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22719 Don't check for sigaction here.
22721 2008-06-23 Bruno Haible <bruno@clisp.org>
22723 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22724 (install_handlers): Don't set the SA_RESETHAND flag.
22726 2008-06-23 Bruno Haible <bruno@clisp.org>
22728 * m4/sigaction.m4: Comment fixes.
22729 * lib/signal.in.h: Likewise.
22731 2008-06-23 Eric Blake <ebb9@byu.net>
22734 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22736 Avoid SA_ namespace.
22737 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22738 Reported by Ralf Wildenhues.
22740 Avoid test failure due to SA_RESTORER.
22741 * tests/test-sigaction.c (SA_MASK): New macro.
22742 (main): Avoid failing due to extension flags being set.
22743 Reported by Jim Meyering.
22745 Revert use of sig-handler.h in sigprocmask.c.
22746 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22747 it requires the existence of struct sigaction.
22748 * lib/sigprocmask.c (handler_t): Restore typedef.
22749 (rpl_signal, old_handlers): Use local type.
22751 2008-06-22 Bruno Haible <bruno@clisp.org>
22753 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22755 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22757 2008-06-22 Bruno Haible <bruno@clisp.org>
22759 * doc/posix-functions/siginterrupt.texi: Move note.
22761 * lib/signal.in.h (SA_RESTART): New macro.
22762 * lib/sigaction.c: Update comment.
22764 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22766 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22767 (gl_PREREQ_SIGPROCMASK): Invoke it.
22768 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22770 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22772 * lib/sigprocmask.c: Update a comment.
22774 2008-06-21 Eric Blake <ebb9@byu.net>
22776 Use sigaction module rather than signal().
22777 * modules/c-stack (Depends-on): Add sigaction.
22778 * modules/fatal-signal (Depends-on): Likewise.
22779 * modules/nanosleep (Depends-on): Likewise.
22780 * modules/sigprocmask (Files): Add sig-handler.h.
22781 * modules/sigaction (Files): Likewise.
22782 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22784 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22785 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22786 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22787 (init_fatal_signals): Likewise.
22788 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22789 (siginterrupt): Delete fallback.
22790 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22792 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22795 New module sigaction, for mingw.
22796 * modules/sigaction: New module...
22797 * modules/sigaction-tests: ...and its test.
22798 * m4/sigaction.m4: New file.
22799 * lib/sigaction.c: Likewise.
22800 * tests/test-sigaction.c: Likewise.
22801 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22802 * modules/signal (Makefile.am): Likewise.
22803 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22805 * doc/posix-headers/signal.texi (signal.h): Mention provided
22807 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22808 that sigaction is preferable.
22809 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22811 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22814 Improve robustness of sigprocmask by overriding signal.
22815 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22817 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22818 (SIGKILL, SIGSTOP): Provide fallbacks.
22819 (rpl_signal): Implement.
22820 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22821 signal can be called inside handlers.
22823 Fix nanosleep module on mingw.
22824 * modules/nanosleep (Depends-on): Add sys_select.
22825 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22827 Fix licensing of sigprocmask.
22828 * modules/raise (License): Relicense as LGPL.
22830 2008-06-21 Bruno Haible <bruno@clisp.org>
22832 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22833 result if it contains question marks.
22834 Reported by Michael Geng <linux@michaelgeng.de>.
22836 2008-06-19 Bruno Haible <bruno@clisp.org>
22839 * doc/gnulib.texi: Include updated-stamp.texi.
22840 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22841 (updated-stamp.texi): New rule.
22842 (gnulib.info): Depend on it.
22843 * doc/.gitignore: Add updated-stamp.texi.
22844 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22846 2008-06-19 Bruno Haible <bruno@clisp.org>
22848 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22849 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22851 2008-06-19 Eric Blake <ebb9@byu.net>
22853 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22854 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22855 Reported by Stepan Kasal.
22857 2008-06-18 Bruno Haible <bruno@clisp.org>
22859 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22860 Reported by Eric Blake.
22862 2008-06-18 Eric Blake <ebb9@byu.net>
22864 Work around cygwin 1.5.25 strsignal bug.
22865 * tests/test-strsignal.c: Allow for const char *.
22866 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22868 2008-06-18 Simon Josefsson <simon@josefsson.org>
22870 * users.txt: Update URL to article and add author/date
22873 2008-06-17 Bruno Haible <bruno@clisp.org>
22875 New macro gl_DISABLE_THREADS.
22876 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22877 if the user did not pass --enable-threads or --disable-threads option.
22878 (gl_DISABLE_THREADS): New macro.
22879 Reported by Eric Blake <ebb9@byu.net>.
22881 2008-06-17 Bruno Haible <bruno@clisp.org>
22883 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22884 when the macro ignores it.
22885 Based on a patch by Eric Blake <ebb9@byu.net>.
22887 2008-06-17 Bruno Haible <bruno@clisp.org>
22889 * modules/tls (License): Change to LGPLv2+.
22890 Reported by Eric Blake.
22892 2008-06-17 Eric Blake <ebb9@byu.net>
22894 Simplify c-stack prerequisites.
22895 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22896 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22897 no longer requires <ucontext.h> to exist. Optimize setrlimit
22899 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22902 Move c-stack test into testsuite.
22903 * modules/c-stack-tests: New file.
22904 * lib/c-stack.c [DEBUG]: Move test program...
22905 * tests/test-c-stack.c: ...into this new file. Skip rather than
22906 fail test if sigaltstack is lacking.
22907 * tests/test-c-stack.sh: New driver file.
22909 2008-06-16 Eric Blake <ebb9@byu.net>
22911 Use raise module consistently.
22912 * modules/fatal-signal (Depends-on): Add raise.
22913 * modules/sigprocmask (Depends-on): Likewise.
22914 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22915 * lib/sigprocmask.c (sigprocmask): Likewise.
22916 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22917 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22919 Fix compliance bug in sigpending.
22920 * lib/sigprocmask.c (sigpending): Return pending array via
22921 parameter, not return value.
22923 2008-06-14 Eric Blake <ebb9@byu.net>
22925 Improve obstack-printf test code.
22926 * tests/test-obstack-printf.c (test_function): Fix comment, and
22927 simplify usage of obstack_* in macros. Add a test for coverage.
22928 Reported by Bruno Haible.
22930 2008-06-14 Bruno Haible <bruno@clisp.org>
22932 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22933 array size as a constant, not as a const variable.
22934 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22935 AC_USE_SYSTEM_EXTENSIONS.
22936 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22937 Test whether the obstack_printf function actually exists.
22938 * modules/obstack-printf (Depends-on): Add extensions.
22939 (Include): Remove obstack.h.
22940 * modules/obstack-printf-posix (Depends-on): Add extensions.
22941 (Include): Remove obstack.h.
22943 2008-06-13 Eric Blake <ebb9@byu.net>
22945 Add obstack-printf and obstack-printf-posix modules.
22946 * modules/obstack-printf: New file.
22947 * modules/obstack-printf-posix: Likewise.
22948 * MODULES.html.sh (Misc): Mention them.
22949 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22951 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22953 * modules/stdio (Makefile.am): Accomodate new modules.
22954 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22955 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22957 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22959 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22960 (gl_REPLACE_OBSTACK_PRINTF): New macros
22961 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22962 * tests/test-obstack-printf.c: New file.
22963 * modules/obstack-printf-tests: Likewise.
22964 * modules/obstack-printf-posix-tests: Likewise.
22966 2008-06-11 Bruno Haible <bruno@clisp.org>
22968 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22969 * lib/open.c: Include errno.h.
22970 (open): Fail when attempting to write to a file that has a trailing
22972 * tests/test-open.c (main): Test against trailing slash bug.
22973 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22975 2008-06-10 Bruno Haible <bruno@clisp.org>
22977 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22978 for $? to work inside the trap command, with various /bin/sh-s.
22979 * tests/test-vc-list-files-cvs.sh: Likewise.
22981 2008-06-10 Bruno Haible <bruno@clisp.org>
22983 * lib/acl-internal.h: Don't include gettext.h here.
22984 * lib/set-mode-acl.c: Include gettext.h here.
22985 * lib/copy-acl.c: Likewise.
22987 2008-06-10 Bruno Haible <bruno@clisp.org>
22989 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22990 * lib/wait-process.c (wait_subprocess): Likewise.
22991 * lib/execute.h (execute): Add termsigp argument.
22992 * lib/execute.c (execute): Likewise.
22993 * lib/csharpcomp.c (compile_csharp_using_pnet,
22994 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22995 * lib/csharpexec.c (execute_csharp_using_pnet,
22996 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22997 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22998 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22999 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23000 is_jikes_present): Update.
23001 * lib/javaexec.c (execute_java_class): Update.
23002 * lib/javaversion.c (execute_and_read_line): Update.
23003 * NEWS: Document the changes.
23004 Reported by Eric Blake.
23006 2008-06-10 Eric Blake <ebb9@byu.net>
23008 Add missing include.
23009 * tests/test-strstr.c (includes): Add <signal.h>.
23010 * tests/test-strcasestr.c (includes): Likewise.
23011 * tests/test-memmem.c (includes): Likewise.
23013 2008-06-10 Bruno Haible <bruno@clisp.org>
23015 * lib/wait-process.c (wait_subprocess): Add an assertion.
23017 2008-06-10 Bruno Haible <bruno@clisp.org>
23019 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23021 2008-06-10 Bruno Haible <bruno@clisp.org>
23023 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23025 * tests/test-strcasestr.c (main): Likewise.
23026 * tests/test-strstr.c (main): Likewise.
23028 2008-06-09 Bruno Haible <bruno@clisp.org>
23030 Work around the Solaris 10 ACE ACLs ABI change.
23031 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23032 declare if ACL_NO_TRIVIAL is present.
23033 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23034 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23035 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23036 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23037 define if ACL_NO_TRIVIAL is present.
23038 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23039 and use the current ABI.
23040 (file_has_acl): Use same #if condition as elsewhere.
23041 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23042 in use, and use the current ABI.
23043 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23044 Reported by Jim Meyering.
23046 2008-06-09 Eric Blake <ebb9@byu.net>
23048 Work around environments that (stupidly) ignore SIGALRM.
23049 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23050 before using alarm().
23051 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23052 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23053 Reported by Ian Beckwith <ianb@erislabs.net>.
23055 Produce autobuild blurb earlier in log.
23056 * modules/autobuild (configure.ac-early): Move AB_INIT here.
23058 2008-06-09 Jim Meyering <meyering@redhat.com>
23059 and Ondřej Vašík <ovasik@redhat.com>
23061 utimens.c: correct kernel bug work-around
23062 Ondřej Vašík found that the invalid return value of 280 indicates
23063 failure, not success, and the kernel bug we're trying to work
23064 around affects not just the utimensat call, but also the fallback
23066 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23068 [HAVE_FUTIMENS]: Use the same work-around, here.
23070 2008-06-09 Jim Meyering <meyering@redhat.com>
23072 add more guards around definition of ACE_-related code
23073 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23074 ALLOW and ACE_OWNER are also defined.
23076 2008-06-08 Bruno Haible <bruno@clisp.org>
23078 * lib/acl-internal.h: Add me as co-author.
23079 * lib/file-has-acl.c: Likewise.
23080 * lib/set-mode-acl.c: Likewise.
23081 * lib/copy-acl.c: Likewise.
23083 2008-06-08 Bruno Haible <bruno@clisp.org>
23085 Add support for AIX ACLs.
23086 * lib/acl-internal.h (acl_nontrivial): New declaration.
23087 * lib/file-has-acl.c (acl_nontrivial): New function.
23088 (file_has_acl): Add implementation using AIX 4 ACL API.
23089 * lib/set-mode-acl.c (qset_acl): Likewise.
23090 * lib/copy-acl.c (qcopy_acl): Likewise.
23092 2008-06-08 Bruno Haible <bruno@clisp.org>
23094 Add support for HP-UX ACLs.
23095 * lib/acl-internal.h (acl_nontrivial): New declaration.
23096 * lib/file-has-acl.c (acl_nontrivial): New function.
23097 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23098 * lib/set-mode-acl.c (qset_acl): Likewise.
23099 * lib/copy-acl.c (qcopy_acl): Likewise.
23101 2008-06-08 Bruno Haible <bruno@clisp.org>
23103 Add support for Cygwin ACLs.
23104 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23105 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23106 the chmod_or_fchmod call.
23107 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23109 2008-06-08 Bruno Haible <bruno@clisp.org>
23111 Fix bug with setuid modes in Solaris 10+ code.
23112 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23113 succeeded, when the mode contains some special bits.
23115 2008-06-08 Bruno Haible <bruno@clisp.org>
23117 Add support for Solaris 7..10 ACLs.
23118 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23120 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23122 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23123 * lib/set-mode-acl.c (qset_acl): Likewise.
23124 * lib/copy-acl.c (qcopy_acl): Likewise.
23126 2008-06-08 Bruno Haible <bruno@clisp.org>
23128 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23130 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23131 (acl_access_nontrivial): Remove MacOS X case.
23132 (file_has_acl): Use acl_extended_nontrivial.
23133 * lib/copy-acl.c (qcopy_acl): Likewise.
23135 2008-06-08 Bruno Haible <bruno@clisp.org>
23137 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23139 2008-06-08 Jim Meyering <meyering@redhat.com>
23141 * modules/acl (Maintainer): Add Bruno Haible.
23143 2008-06-07 Bruno Haible <bruno@clisp.org>
23145 Improve support for Tru64 ACLs.
23146 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23149 2008-06-07 Bruno Haible <bruno@clisp.org>
23151 Add support for MacOS X ACLs.
23152 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23153 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23154 * lib/set-mode-acl.c (qset_acl): Likewise.
23155 * lib/copy-acl.c (qcopy_acl): Likewise.
23157 2008-06-07 Bruno Haible <bruno@clisp.org>
23159 Fix memory leak introduced on 2008-05-22.
23160 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23163 2008-06-07 Bruno Haible <bruno@clisp.org>
23165 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23166 to construct an empty ACL.
23168 2008-06-07 Bruno Haible <bruno@clisp.org>
23170 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23172 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23174 2008-06-07 Bruno Haible <bruno@clisp.org>
23176 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23177 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23179 2008-06-07 Bruno Haible <bruno@clisp.org>
23181 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23182 regardless of POSIX.
23183 * doc/posix-functions/_longjmp.texi: Likewise.
23184 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23185 SystemV platform in this case.
23187 2008-06-06 Eric Blake <ebb9@byu.net>
23189 Document abort() bugs.
23190 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23192 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23193 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23195 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23196 siglongjmp, but only as a macro.
23197 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23199 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23201 Tweak documentation to cover cygwin argz bugs.
23202 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23203 argz bug fix; no code change needed since no cygwin releases
23204 occurred between the last fix and the bug being tested.
23205 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23206 module and recently fixed cygwin bugs.
23207 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23208 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23209 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23210 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23211 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23213 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23214 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23215 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23216 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23217 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23218 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23221 Avoid gcc warning on cygwin.
23222 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23223 !ACL_NO_TRIVIAL]: Avoid unused variable.
23225 2008-06-05 Eric Blake <ebb9@byu.net>
23227 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23228 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23229 git-version-gen fails to come up with a version.
23230 Reported by Simon Josefsson.
23232 2008-06-05 Jim Meyering <meyering@redhat.com>
23233 Paul Eggert <eggert@cs.ucla.edu>
23235 utimens.c: work around a probable Linux kernel bug
23236 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23237 appears to be a kernel bug that causes utimensat to return 280
23238 instead of 0, indicating success.
23240 2008-06-04 Bruno Haible <bruno@clisp.org>
23242 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23245 2008-06-04 Bruno Haible <bruno@clisp.org>
23247 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23248 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23249 (file_has_acl): Use it. Save errno afterwards.
23250 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23252 2008-06-03 Bruno Haible <bruno@clisp.org>
23254 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23255 draft code. Simplify #ifs.
23256 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23257 Put Solaris code after POSIX-draft code. Fix comments regarding
23258 Solaris 10, HP-UX. Mention Cygwin.
23259 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23261 2008-06-03 Eric Blake <ebb9@byu.net>
23263 Provide fallback for older kernels.
23264 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23265 Provide runtime fallback if kernel lacks support.
23266 Reported by Mike Frysinger.
23268 2008-06-02 Bruno Haible <bruno@clisp.org>
23270 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23273 2008-06-02 Bruno Haible <bruno@clisp.org>
23275 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23276 * lib/copy-acl.c (qcopy_acl): Update comment.
23278 2008-06-02 Bruno Haible <bruno@clisp.org>
23280 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23283 2008-06-02 Bruno Haible <bruno@clisp.org>
23285 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23286 * tests/test-set-mode-acl.sh: Likewise.
23287 * tests/test-copy-acl.sh: Likewise.
23288 * tests/test-copy-file.sh: Likewise.
23290 2008-06-02 Bruno Haible <bruno@clisp.org>
23292 * tests/test-file-has-acl.sh: Remove unused code.
23294 2008-06-01 Bruno Haible <bruno@clisp.org>
23296 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23297 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23299 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23301 2008-06-01 Bruno Haible <bruno@clisp.org>
23303 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23304 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23305 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23307 * modules/acl-tests (configure.ac): Remove tests now contained in
23310 2008-06-02 Jim Meyering <meyering@redhat.com>
23312 announce-gen: use a better key-server host name
23313 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23314 it may be more consistently reliable. Suggested by Werner Koch
23315 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23317 2008-06-01 Bruno Haible <bruno@clisp.org>
23319 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23320 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23322 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23324 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23326 2008-06-01 Bruno Haible <bruno@clisp.org>
23329 * tests/test-file-has-acl.sh: New file.
23330 * tests/test-file-has-acl.c: New file.
23331 * tests/test-set-mode-acl.sh: New file.
23332 * tests/test-set-mode-acl.c: New file.
23333 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23334 * tests/test-copy-acl.c: New file.
23335 * modules/acl-tests: New file, based on modules/copy-file-tests.
23336 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23337 (Depends-on): Add acl-tests.
23338 (configure.ac): Remove checks.
23339 (Makefile.am): Don't create test-sameacls program here any more.
23341 2008-06-01 Bruno Haible <bruno@clisp.org>
23343 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23344 * tests/test-sameacls.c: Include progname.h.
23345 (main): Invoke set_program_name. Portability fixes for MacOS X,
23348 2008-06-01 Bruno Haible <bruno@clisp.org>
23350 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23352 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23354 2008-06-01 Bruno Haible <bruno@clisp.org>
23356 * modules/rpmatch (Depends-on): Add strdup.
23358 2008-06-01 Bruno Haible <bruno@clisp.org>
23360 * lib/pipe.c: Include unistd-safer.h.
23361 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23362 * modules/pipe (Depends-on): Add unistd-safer.
23364 2008-05-30 Simon Josefsson <simon@josefsson.org>
23366 * modules/autobuild (configure.ac): Call AB_INIT.
23368 2008-05-30 Simon Josefsson <simon@josefsson.org>
23370 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23371 Suggested by Bruno Haible <bruno@clisp.org>.
23373 2008-05-30 Simon Josefsson <simon@josefsson.org>
23375 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23376 printf. Use %lu instead of %d. Reported by Bruno Haible
23379 2008-05-29 Eric Blake <ebb9@byu.net>
23381 Prefer new POSIX 200x interfaces over futimesat.
23382 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23383 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23385 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23387 2008-05-28 Bruno Haible <bruno@clisp.org>
23389 * modules/stpcpy (License): Change to LGPLv2+.
23390 Requested by David Lutterkort <dlutter@redhat.com>.
23392 2008-05-27 Bruno Haible <bruno@clisp.org>
23394 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23396 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23398 2008-05-27 Bruno Haible <bruno@clisp.org>
23400 * modules/iconv_open (Link): New section, from module 'iconv'.
23401 * modules/striconv (Link): Likewise.
23402 * modules/striconveh (Link): Likewise.
23403 * modules/xstriconv (Link): Likewise.
23404 * modules/unicodeio (Link): Likewise.
23405 * modules/propername (Link): Likewise.
23406 Reported by Jim Meyering.
23408 2008-05-26 Jim Meyering <meyering@redhat.com>
23410 sha256: do not artificially restrict buffer length to be < 2^32
23411 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23412 uint32_t to size_t.
23413 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23416 avoid unaligned access errors, e.g., on sparc
23417 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23418 direct access through a possibly-unaligned uint64* pointer.
23419 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23420 direct access through a possibly-unaligned uint32* pointer.
23421 Prompted by this patch from Tom "spot" Callaway:
23422 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23424 sha512.c: fix typo in comment
23425 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23427 2008-05-25 Bruno Haible <bruno@clisp.org>
23429 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23430 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23431 (Makefile.am): Update lib_SOURCES.
23433 2008-05-25 Bruno Haible <bruno@clisp.org>
23435 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23437 2008-05-25 Jim Meyering <meyering@redhat.com>
23439 useless-if-before-free: freed expr may have white-space differences
23440 * build-aux/useless-if-before-free: Recognize cases in which the
23441 freed expression differs from the tested one in embedded white
23442 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23443 $1 was used, so we can't make any regexp shy. Improved tests now
23446 useless-if-before-free: accept white space in the expression.
23447 * build-aux/useless-if-before-free: For now, any white space
23448 in the expression must be identical in the free argument.
23450 useless-if-before-free: efficiency tweak
23451 * build-aux/useless-if-before-free: Make the expression-matching
23453 Make the *outer* regexp shy, not the expr-matching one.
23455 update code-in-comment to accept cast of free arg
23456 * build-aux/useless-if-before-free: Update regexp.
23458 2008-05-25 Bruno Haible <bruno@clisp.org>
23460 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23461 * modules/copy-file-tests (Files, Makefile.am): Update.
23462 * tests/test-copy-file.c (func_test_copy): Update.
23464 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23466 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23468 2008-05-23 Bruno Haible <bruno@clisp.org>
23470 Improve support for ACLs on OSF/1.
23471 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23472 Remove fallback for unknown flavors of ACLs.
23474 2008-05-22 Bruno Haible <bruno@clisp.org>
23476 Add support for ACLs on OSF/1.
23477 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23479 (acl_free_text): New macro fallback.
23480 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23482 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23483 acl_free_text function. Require AC_C_INLINE.
23485 2008-05-22 Bruno Haible <bruno@clisp.org>
23487 Make copy_acl work on MacOS X 10.5.
23488 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23489 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23490 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23491 If MODE_INSIDE_ACL, don't assume that every system has the same text
23492 representation for ACLs as FreeBSD.
23493 * lib/copy-acl.c (copy_acl): Add support for platforms with
23495 * lib/file-has-acl.c (file_has_acl): Likewise.
23496 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23497 FreeBSD, MacOS X, or IRIX, respectively.
23499 2008-05-22 Bruno Haible <bruno@clisp.org>
23501 * lib/acl.h: Don't include <sys/acl.h>.
23502 (GETACLCNT): Move fallback to lib/acl-internal.h.
23503 * lib/acl-internal.h: Include <sys/acl.h> here.
23504 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23506 2008-05-22 Bruno Haible <bruno@clisp.org>
23508 Split off copy_acl function to separate file.
23509 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23510 * lib/acl.c (copy_acl): Moved function to separate file.
23511 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23512 * modules/acl (Files): Add lib/copy-acl.c.
23513 (Makefiles.am): Augment lib_SOURCES.
23515 2008-05-22 Bruno Haible <bruno@clisp.org>
23517 * modules/copy-file-tests: New file.
23518 * tests/test-copy-file.sh: New file.
23519 * tests/test-copy-file.c: New file.
23520 * tests/test-copy-file-sameacls.c: New file.
23522 2008-05-22 Eric Blake <ebb9@byu.net>
23525 * tests/test-memcmp.c (main): Pass NULL indirectly.
23527 2008-05-21 Bruno Haible <bruno@clisp.org>
23529 Add reference doc about ACLs.
23530 * doc/acl-resources.txt: New file.
23531 * doc/acl-cygwin.txt: New file.
23533 2008-05-21 Bruno Haible <bruno@clisp.org>
23535 Avoid one more warning from gcc.
23536 * lib/vasnprintf.c (IF_LINT): Update comments.
23537 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23539 2008-05-21 Jim Meyering <meyering@redhat.com>
23541 avoid a warning from gcc
23542 * lib/vasnprintf.c (IF_LINT): Define.
23543 (scale10_round_decimal_long_double):
23544 Use it to avoid a "may be used uninitialized" warning.
23545 (scale10_round_decimal_double): Likewise.
23547 2008-05-21 Simon Josefsson <simon@josefsson.org>
23549 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23552 2008-05-20 Bruno Haible <bruno@clisp.org>
23554 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23555 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23557 2008-05-20 Simon Josefsson <simon@josefsson.org>
23559 * modules/memcmp-tests: New file.
23560 * tests/test-memcmp.c: New file.
23562 2008-05-19 Bruno Haible <bruno@clisp.org>
23564 * modules/propername (Notice, configure.ac): Put quoted "..." into
23566 * lib/propername.h: Update comments accordingly.
23567 Reported by Eric Blake.
23569 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23571 * modules/getpass-gnu (Depends-on): Add fseeko.
23573 2008-05-19 Simon Josefsson <simon@josefsson.org>
23575 * modules/base64-tests: New file.
23577 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23579 * lib/base64.c (base64_decode_ctx): If a decode context structure
23580 was passed in use it to ignore newlines. If a context structure
23581 was _not_ passed in, continue to treat newlines as garbage (this
23582 is the historical behavior). Formerly base64_decode.
23583 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23584 takes a decode context structure.
23585 * lib/base64.h (base64_decode): Macro for four-argument calls.
23586 (base64_decode_alloc): Likewise.
23587 * lib/base64.c (base64_decode_ctx): If a decode context structure
23588 was passed in use it to ignore newlines. If a context structure
23589 was _not_ passed in, continue to treat newlines as garbage (this
23590 is the historical behavior). Formerly base64_decode.
23591 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23592 takes a decode context structure.
23593 * lib/base64.h (base64_decode): Macro for four-argument calls.
23594 (base64_decode_alloc): Likewise.
23596 2008-05-19 Jim Meyering <meyering@redhat.com>
23598 avoid a warning from gcc
23599 * lib/trim.c (IF_LINT): Define.
23600 (trim2): Use it to avoid a "may be used uninitialized" warning.
23603 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23605 2008-05-19 Bruno Haible <bruno@clisp.org>
23607 * doc/glibc-functions/getpass.texi: Document limits of other
23610 2008-05-19 Simon Josefsson <simon@josefsson.org>
23611 Bruno Haible <bruno@clisp.org>
23613 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23615 2008-05-18 Bruno Haible <bruno@clisp.org>
23617 * modules/propername: New file, from GNU gettext.
23618 * lib/propername.h: New file, from GNU gettext.
23619 * lib/propername.c: New file, from GNU gettext.
23620 * MODULES.html.sh (Internationalization functions): Add propername.
23622 2008-05-16 Jim Meyering <meyering@redhat.com>
23623 Bruno Haible <bruno@clisp.org>
23625 Avoid some warnings from "gcc -Wshadow".
23626 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23628 2008-05-15 Eric Blake <ebb9@byu.net>
23630 Extend previous patch to cygwin 1.7.0.
23631 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23632 fast implementation in cygwin >= 1.7.0.
23633 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23634 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23636 2008-05-15 Bruno Haible <bruno@clisp.org>
23638 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23639 implementation in glibc >= 2.9.
23640 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23641 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23643 2008-05-15 Bruno Haible <bruno@clisp.org>
23645 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23646 (Unicode string functions): Add unilbrk/*.
23647 Reported by Karl Berry.
23649 2008-05-15 Eric Blake <ebb9@byu.net>
23651 Fix violation of <stdbool.h> replacement in regex.
23652 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23653 * lib/regexec.c (re_search_internal): Likewise.
23654 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23656 2008-05-15 Jim Meyering <meyering@redhat.com>
23658 avoid distracting test output when git or cvs is not found
23659 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23660 * tests/test-vc-list-files-git.sh: Likewise.
23662 2008-05-15 Eric Blake <ebb9@byu.net>
23664 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23665 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23667 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23668 * doc/posix-functions/strstr.texi (strstr): Likewise.
23669 * lib/str-two-way.h (MAX): Sychronize with glibc.
23671 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23673 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23675 (calc_first): Initialize constraint field.
23676 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23678 (duplicate_node): Merge constraint field for all node types.
23679 (calc_eclosure_iter): Look at constraint field for all node types.
23680 * lib/regex_internal.c (create_cd_newstate): Don't look at
23683 2008-05-14 Bruno Haible <bruno@clisp.org>
23685 Help GCC to do better code generation.
23686 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23687 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23688 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23689 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23690 Declare with attribute 'malloc' if supported.
23692 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23694 use "echo STR|wc -c" rather than unportable "expr length STR"
23695 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23696 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23698 2008-05-14 Jim Meyering <meyering@redhat.com>
23700 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23701 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23702 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23703 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23706 2008-05-14 Eric Blake <ebb9@byu.net>
23708 Avoid quadratic growth in gl_LIBSOURCES.
23709 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23710 Suggested by Bruno Haible.
23713 * modules/xmemdup0-tests: New file.
23714 * tests/test-xmemdup0.c: Likewise.
23716 2008-05-13 Eric Blake <ebb9@byu.net>
23718 Split xmemdup0 into its own module.
23719 * modules/xmemdup0: New file.
23720 * lib/xmemdup0.h: Likewise.
23721 * lib/xmemdup0.c: Likewise.
23722 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23723 * lib/xalloc.h (xmemdup0): Remove.
23724 * lib/xmalloc.c (xmemdup0): Likewise.
23726 2008-05-13 Eric Blake <ebb9@byu.net>
23727 Bruno Haible <bruno@clisp.org>
23729 Reduce number of forks required during autoconf.
23730 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23731 and gl_LIBSOURCES_DIR.
23732 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23733 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23734 m4_syscmd per file.
23735 <m4_foreach_w>: Move...
23736 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23738 2008-05-13 Eric Blake <ebb9@byu.net>
23740 * gnulib-tool: Fix various comment typos.
23742 2008-05-12 Bruno Haible <bruno@clisp.org>
23744 Tailor the linebreaking algorithm.
23745 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23747 2008-05-12 Bruno Haible <bruno@clisp.org>
23749 Update to Unicode 5.0.0.
23750 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23751 LBP_JV, LBP_JT. Redistribute values.
23752 (unilbrk_table): Change size.
23753 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23754 Unicode TR#14 rev. 22.
23755 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23756 LBP_JV, LBP_JT. Redistribute values.
23757 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23758 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23760 * lib/unilbrk/lbrkprop1.h: Regenerated.
23761 * lib/unilbrk/lbrkprop2.h: Regenerated.
23762 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23763 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23764 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23766 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23768 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23770 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23771 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23772 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23773 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23774 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23775 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23777 2008-05-11 Bruno Haible <bruno@clisp.org>
23779 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23781 2008-05-11 Bruno Haible <bruno@clisp.org>
23783 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23784 * modules/unilbrk/gen-lbrk: New file.
23786 2008-05-11 Bruno Haible <bruno@clisp.org>
23788 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23789 * m4/sha512.m4 (gl_SHA512): Likewise.
23791 2008-05-11 Jim Meyering <meyering@redhat.com>
23793 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23794 * modules/crypto/sha256: New file.
23795 * modules/crypto/sha512: Likewise.
23796 * lib/sha256.c: Likewise.
23797 * lib/sha256.h: Likewise.
23798 * lib/sha512.c: Likewise.
23799 * lib/sha512.h: Likewise.
23800 * lib/u64.h: Likewise.
23801 * m4/sha256.m4: Likewise.
23802 * m4/sha512.m4: Likewise.
23803 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23805 2008-05-10 Bruno Haible <bruno@clisp.org>
23807 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23808 (Input/Output <stdio.h>): Add xprintf.
23809 (Signal handling <signal.h>): Add strsignal.
23810 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23811 (Core language properties): Add func.
23812 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23813 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23815 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23816 (Input/output): New section.
23817 (File system functions): Add openat-die, stat-macros.
23818 (Networking functions): Add sockets.
23819 (Unicode string functions): Add unictype/*.
23820 (Support for building libraries and executables): Add gperf.
23821 (Support for building documentation): Add agpl-3.0.
23822 (Misc): Add nocrash.
23824 2008-05-10 Bruno Haible <bruno@clisp.org>
23826 * modules/unictype/gen-ctype: New file.
23828 2008-05-10 Jim Meyering <meyering@redhat.com>
23830 Make chdir-safer.c more efficient on a system with no symlinks.
23831 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23832 also if ELOOP is zero. Suggested by Bruno Haible.
23834 Make chdir-safer.c slightly safer.
23835 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23836 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23838 Avoid compile failure on systems without ELOOP (like mingw).
23839 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23840 Reported by Bruno Haible.
23842 2008-05-10 Bruno Haible <bruno@clisp.org>
23844 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23845 (is_utf8_encoding): Use a case-insensitive comparison.
23846 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23849 2008-05-10 Bruno Haible <bruno@clisp.org>
23851 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23852 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23853 * lib/unilbrk/ulc-common.h (iconv_string_length,
23854 iconv_string_keeping_offsets): Remove declarations.
23855 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23856 Don't include <iconv.h>, streq.h, xsize.h.
23857 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23859 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23860 <iconv.h>, streq.h, xsize.h.
23861 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23863 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23864 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23865 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23866 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23868 2008-05-10 Bruno Haible <bruno@clisp.org>
23870 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23871 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23873 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23874 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23876 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23877 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23879 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23880 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23882 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23883 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23885 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23886 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23888 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23889 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23891 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23892 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23894 2008-05-10 Bruno Haible <bruno@clisp.org>
23896 Split up 'linebreak' module.
23897 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23898 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23899 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23901 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23902 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23903 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23905 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23907 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23909 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23910 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23911 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23913 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23915 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23917 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23919 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23921 * modules/unilbrk/base: New file.
23922 * modules/unilbrk/tables: New file.
23923 * modules/unilbrk/u8-possible-linebreaks: New file.
23924 * modules/unilbrk/u16-possible-linebreaks: New file.
23925 * modules/unilbrk/u32-possible-linebreaks: New file.
23926 * modules/unilbrk/ulc-common: New file.
23927 * modules/unilbrk/ulc-possible-linebreaks: New file.
23928 * modules/unilbrk/u8-width-linebreaks: New file.
23929 * modules/unilbrk/u16-width-linebreaks: New file.
23930 * modules/unilbrk/u32-width-linebreaks: New file.
23931 * modules/unilbrk/ulc-width-linebreaks: New file.
23932 * lib/linebreak.h: Remove file.
23933 * lib/linebreak.c: Remove file.
23934 * m4/linebreak.m4: Remove file.
23935 * modules/linebreak: Remove file.
23936 * NEWS: Mention the changes.
23938 2008-05-09 Eric Blake <ebb9@byu.net>
23941 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23943 * lib/xmalloc.c (xmemdup0): New C implementation.
23945 2008-05-08 Bruno Haible <bruno@clisp.org>
23947 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23949 2008-05-07 Eric Blake <ebb9@byu.net>
23951 Support cross-compilation of <wctype.h>.
23952 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23955 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23957 * build-aux/vc-list-files: Add support for bzr.
23959 2008-05-03 Jim Meyering <meyering@redhat.com>
23961 avoid failed assertion with tight malloc
23962 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23964 2008-05-03 Simon Josefsson <simon@josefsson.org>
23966 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23967 are needed from arpa/inet.h.
23968 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23969 Reported by Bruno Haible.
23971 2008-05-02 Jim Meyering <meyering@redhat.com>
23973 avoid compilation error on FreeBSD 6
23974 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23976 2008-05-01 Jim Meyering <meyering@redhat.com>
23978 useless-if-before-free: correct --help's exit status description
23979 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23980 for one or more matches, etc. Reported by Bruno Haible.
23982 vc-list-files: make the stand-alone gnulib test work
23983 * modules/vc-list-files-tests (configure.ac):
23984 Define and AC_SUBST abs_aux_dir.
23985 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23986 $(abs_top_srcdir) to each script and having each of them
23987 duplicate the work of setting PATH, set PATH here, using
23988 the new variable, abs_aux_dir instead.
23989 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23990 * tests/test-vc-list-files-git.sh: Likewise.
23991 Reported by Bruno Haible.
23993 2008-05-01 Bruno Haible <bruno@clisp.org>
23995 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23996 reallocation. Rename 'done' to 'found_delimiter'.
23998 2008-05-01 Jim Meyering <meyering@redhat.com>
24000 vc-list-files: accommodate /bin/sh like the one from Solaris 10
24001 * build-aux/vc-list-files: Use `...`, not $(...).
24003 2008-04-30 Jim Meyering <meyering@redhat.com>
24005 add tests for vc-list-files
24006 * modules/vc-list-files-tests: New module.
24007 * tests/test-vc-list-files-cvs.sh: New file.
24008 * tests/test-vc-list-files-git.sh: New file.
24010 avoid a warning from gcc
24011 * lib/getndelim2.c (IF_LINT): Define.
24012 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24014 vc-list-files: work properly with build-aux/cvsu, too
24015 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24016 to all cvs-based clauses.
24018 vc-list-files: work properly in the CVS+awk case, too
24019 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24021 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24022 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24023 take more than one file argument, so . Add quotes, just in case $dir
24024 ever contains a shell meta-character. Prompted by Soren Hansen in
24025 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24027 2008-04-29 Eric Blake <ebb9@byu.net>
24029 Optimize getndelim2 to use block operations when possible.
24030 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24031 freadseek, and memchr2.
24032 * lib/getndelim2.c (getndelim2): Use them for block reads.
24034 2008-04-29 Bruno Haible <bruno@clisp.org>
24036 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24037 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24038 * modules/inet_ntop (Depends-on): Add extensions.
24039 * modules/inet_pton (Depends-on): Likewise.
24040 Reported by Simon Josefsson.
24042 2008-04-29 Jim Meyering <meyering@redhat.com>
24044 When the is more than one match in a block, match all of them.
24045 * build-aux/useless-if-before-free: Iterate through each block
24046 until there are no more matches.
24048 Fix broken useless-if-before-free script.
24049 * build-aux/useless-if-before-free: Fix typo: missing "?" after
24050 the expression to match cast of argument to free-like function.
24052 2008-04-29 Eric Blake <ebb9@byu.net>
24055 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24057 2008-04-29 Jim Meyering <meyering@redhat.com>
24059 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24060 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24061 by gnulib to exist and to declare e.g., inet_ntop.
24062 Don't include "inet_ntop.h", now removed.
24064 * m4/arpa_inet_h.m4: Remove trailing blanks.
24066 2008-04-29 Eric Blake <ebb9@byu.net>
24068 Silence valgrind on safe reads beyond potential array bounds.
24069 * lib/rawmemchr.valgrind: New file.
24070 * lib/strchrnul.valgrind: Likewise.
24071 * modules/rawmemchr (Files): Distribute new file.
24072 * modules/strchrnul (Files): Likewise.
24073 Suggested by Bruno Haible.
24075 2008-04-29 Bruno Haible <bruno@clisp.org>
24077 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24078 (inet_ntop, inet_pton): Change portability warning's wording.
24079 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24080 Invoke gl_CHECK_NEXT_HEADERS.
24081 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24082 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24084 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24085 * modules/arpa_inet (Description): No longer only for systems that
24087 (Depends-on): Add include_next.
24088 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24091 2008-04-29 Jim Meyering <meyering@redhat.com>
24093 * modules/mkdir (License): Re-license as LGPLv2+.
24095 2008-04-29 Bruno Haible <bruno@clisp.org>
24097 * modules/rawmemchr (Maintainer): Set to Eric.
24098 * modules/strchrnul (Maintainer): Likewise.
24100 2008-04-29 Simon Josefsson <simon@josefsson.org>
24102 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24103 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24105 * modules/arpa_inet (arpa/inet.h): Use them.
24107 2008-04-28 Eric Blake <ebb9@byu.net>
24110 * modules/getndelim2-tests: New file.
24111 * tests/test-getndelim2.c: Likewise.
24112 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24114 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24116 * MODULES.html.sh: Document new module.
24118 2008-04-20 Bruno Haible <bruno@clisp.org>
24120 * lib/c-stack.c (die): Use raise.
24121 * modules/c-stack (Depends-on): Add raise.
24123 2008-04-28 Bruno Haible <bruno@clisp.org>
24125 Expect rpmatch to be declared.
24126 * lib/yesno.c (rpmatch): Remove declaration.
24129 * lib/stdlib.in.h (rpmatch): New declaration.
24130 * lib/rpmatch.c: Include <stdlib.h> first.
24131 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24132 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24133 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24135 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24136 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24137 (Include): Set to <stdlib.h>.
24138 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24140 * NEWS: Document the change.
24142 2008-04-28 Bruno Haible <bruno@clisp.org>
24144 Change rpmatch to use nl_langinfo when appropriate.
24145 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24147 (localized_pattern): New function/macro.
24148 (try): Remove match, nomatch arguments. Copy the pattern into safe
24149 memory before caching it.
24150 (rpmatch): Use localized_pattern. Add translator comments.
24151 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24152 Suggested by Eric Blake.
24153 * modules/rpmatch (Depends-on): Add stdbool.
24155 2008-04-28 Eric Blake <ebb9@byu.net>
24157 Add rawmemchr module, matching glibc.
24158 * modules/string (Makefile.am): New indicator.
24159 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24160 * lib/string.in.h (rawmemchr): Declare when appropriate.
24161 * modules/rawmemchr: New file.
24162 * m4/rawmemchr.m4: Likewise.
24163 * lib/rawmemchr.c: Likewise.
24164 * modules/rawmemchr-tests: Likewise.
24165 * tests/test-rawmemchr.c: Likewise.
24166 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24168 * modules/strchrnul (Depends-on): Add rawmemchr.
24169 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24171 Whitespace cleanup.
24172 * tests/test-strchrnul.c: Reindent.
24173 * lib/strchrnul.c: Likewise.
24175 Optimize and test strchrnul.
24176 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24177 * modules/strchrnul-tests: New file.
24178 * tests/test-strchrnul.c: Likewise.
24180 Remove intprops dependency.
24181 * modules/memchr (Depends-on): Remove intprops.
24182 * modules/memrchr (Depends-on): Likewise.
24183 * modules/memchr2 (Depends-on): Likewise.
24184 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24185 * lib/memrchr.c (__memrchr): Likewise.
24186 * lib/memrchr2.c (memchr2): Likewise.
24187 Reported by Simon Josefsson.
24189 2008-04-28 Simon Josefsson <simon@josefsson.org>
24191 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24192 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24194 2008-04-28 Simon Josefsson <simon@josefsson.org>
24196 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24198 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24200 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24202 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24204 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24206 * m4/inet_pton.m4: Don't check for header files.
24208 * m4/inet_ntop.m4: Don't check for header files.
24210 2008-04-28 Simon Josefsson <simon@josefsson.org>
24212 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24213 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24214 trigger for cygwin).
24215 Reported by Bruno Haible <bruno@clisp.org>.
24217 2008-04-28 Bruno Haible <bruno@clisp.org>
24219 * doc/posix-functions/strdup.texi: Mention mingw problem.
24221 2008-04-27 Bruno Haible <bruno@clisp.org>
24223 * modules/stat-time-tests (Depends-on): Add sleep.
24224 * tests/test-stat-time.c (force_unlink): New function.
24226 (test_mtime): Remove the ctime related tests.
24227 (test_ctime): New function, containing the ctime related tests.
24228 (main): Call test_ctime, except on native Windows platforms.
24230 2008-04-27 Bruno Haible <bruno@clisp.org>
24232 * lib/rpmatch.c (rpmatch): Add some comments.
24233 Reported by James Youngman <jay@gnu.org>.
24235 2008-04-27 Bruno Haible <bruno@clisp.org>
24237 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24240 2008-04-27 Bruno Haible <bruno@clisp.org>
24242 Make test-yesno.sh work on mingw.
24243 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24244 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24245 (main): Set stdin to binary mode.
24246 * modules/yesno-tests (Depends-on): Add binary-io.
24248 2008-04-27 Bruno Haible <bruno@clisp.org>
24250 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24251 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24252 argument that lie outside the IEEE 854 domain.
24253 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24254 (gl_ISFINITE): Use it.
24255 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24257 2008-04-27 Bruno Haible <bruno@clisp.org>
24259 Allow local renaming in config.h.
24260 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24262 2008-04-27 Bruno Haible <bruno@clisp.org>
24264 * lib/memchr.c (__memchr): Change type of 'i'.
24265 * lib/memchr2.c (memchr2): Likewise.
24267 2008-04-26 Eric Blake <ebb9@byu.net>
24268 and Bruno Haible <bruno@clisp.org>
24270 Optimize and test memrchr.
24271 * modules/memrchr (Depends-on): Add intprops.
24272 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24273 * modules/memrchr-tests: New file.
24274 * tests/test-memrchr.c: New file.
24276 2008-04-26 Bruno Haible <bruno@clisp.org>
24278 Add tentative support for DragonFly BSD.
24279 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24280 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24282 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24283 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24284 * lib/fpurge.c (fpurge): Likewise.
24285 * lib/freadable.c (freaadable): Likewise.
24286 * lib/freadahead.c (freadahead): Likewise.
24287 * lib/freading.c (freading): Likewise.
24288 * lib/freadptr.c (freadptr): Likewise.
24289 * lib/freadseek.c (freadptrinc): Likewise.
24290 * lib/fseeko.c (fseeko): Likewise.
24291 * lib/fseterr.c (fseterr): Likewise.
24292 * lib/fwritable.c (fwritable): Likewise.
24293 * lib/fwriting.c (fwriting): Likewise.
24295 2008-04-26 Bruno Haible <bruno@clisp.org>
24297 * lib/stdio-impl.h: New file.
24298 * lib/fbufmode.c: Include stdio-impl.h.
24299 (fbufmode): Use fp_, remove redundant #defines.
24300 * lib/fflush.c: Include stdio-impl.h.
24301 (clear_ungetc_buffer): Remove redundant #defines.
24302 * lib/fpurge.c: Include stdio-impl.h.
24303 (fpurge): Remove redundant #defines.
24304 * lib/freadable.c: Include stdio-impl.h.
24305 (freadable): Remove redundant #defines.
24306 * lib/freadahead.c: Include stdio-impl.h.
24307 (freadahead): Remove redundant #defines.
24308 * lib/freading.c: Include stdio-impl.h.
24309 (freading): Remove redundant #defines.
24310 * lib/freadptr.c: Include stdio-impl.h.
24311 (freadptr): Remove redundant #defines.
24312 * lib/freadseek.c: Include stdio-impl.h.
24313 (freadptrinc): Remove redundant #defines.
24314 * lib/fseeko.c: Include stdio-impl.h.
24315 (rpl_fseeko): Remove redundant #defines.
24316 * lib/fseterr.c: Include stdio-impl.h.
24317 (fseterr): Remove redundant #defines.
24318 * lib/fwritable.c: Include stdio-impl.h.
24319 (fwritable: Remove redundant #defines.
24320 * lib/fwriting.c: Include stdio-impl.h.
24321 (fwriting): Remove redundant #defines.
24322 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24323 * modules/fflush (Files): Likewise.
24324 * modules/fpurge (Files): Likewise.
24325 * modules/freadable (Files): Likewise.
24326 * modules/freadahead (Files): Likewise.
24327 * modules/freading (Files): Likewise.
24328 * modules/freadptr (Files): Likewise.
24329 * modules/freadseek (Files): Likewise.
24330 * modules/fseeko (Files): Likewise.
24331 * modules/fseterr (Files): Likewise.
24332 * modules/fwritable (Files): Likewise.
24333 * modules/fwriting (Files): Likewise.
24335 2008-04-26 Bruno Haible <bruno@clisp.org>
24337 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24338 restore_seek_optimization, update_fpos_cache): New functions, extracted
24340 (rpl_fflush): Use them.
24341 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24342 (gl_REPLACE_FFLUSH): Use it.
24344 2008-04-26 Bruno Haible <bruno@clisp.org>
24346 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24348 * tests/test-xstrtoimax.sh: Likewise.
24349 * tests/test-xstrtoumax.sh: Likewise.
24350 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24352 2008-04-26 Bruno Haible <bruno@clisp.org>
24354 * modules/memchr-tests: New file.
24355 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24357 2008-04-26 Eric Blake <ebb9@byu.net>
24358 Bruno Haible <bruno@clisp.org>
24360 * lib/memchr.c: Include intprops.h.
24361 (__memchr): Optimize parallel detection of matching bytes. Rename local
24362 variables. Add explanatory comments.
24364 2008-04-26 Bruno Haible <bruno@clisp.org>
24366 Fix module 'memchr', broken since 2000-10-28.
24367 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24369 2008-04-26 Bruno Haible <bruno@clisp.org>
24371 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24374 2008-04-25 Eric Blake <ebb9@byu.net>
24376 Use native fstatat on cygwin 1.7.0.
24377 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24380 2008-04-23 Eric Blake <ebb9@byu.net>
24382 Improve memchr2 performance.
24383 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24385 * modules/memchr2 (Depends-on): Use intprops.h.
24387 2008-04-23 Simon Josefsson <simon@josefsson.org>
24389 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24390 an inline function instead of a CPP macro. Patch by Ben Pfaff
24391 <blp@cs.stanford.edu>.
24393 2008-04-23 Simon Josefsson <simon@josefsson.org>
24395 * lib/arpa_inet.in.h: New file.
24397 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24398 (Makefile.am): Sed in substitute header file.
24400 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24401 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24403 * modules/inet_ntop (configure.ac): Use
24404 gl_ARPA_INET_MODULE_INDICATOR.
24406 * modules/inet_pton (configure.ac): Use
24407 gl_ARPA_INET_MODULE_INDICATOR.
24409 2008-04-22 Jim Meyering <meyering@redhat.com>
24411 * modules/verify (License): Re-license as LGPLv2+.
24413 2008-04-22 Simon Josefsson <simon@josefsson.org>
24415 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24416 parameter to void* as per POSIX standard (MinGW uses char*).
24418 2008-04-21 Bruno Haible <bruno@clisp.org>
24420 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24421 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24422 Define to replacements if REPLACE_ISWCNTRL is 1.
24423 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24424 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24425 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24426 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24428 * doc/posix-functions/iswalpha.texi: Likewise.
24429 * doc/posix-functions/iswblank.texi: Likewise.
24430 * doc/posix-functions/iswcntrl.texi: Likewise.
24431 * doc/posix-functions/iswdigit.texi: Likewise.
24432 * doc/posix-functions/iswgraph.texi: Likewise.
24433 * doc/posix-functions/iswlower.texi: Likewise.
24434 * doc/posix-functions/iswprint.texi: Likewise.
24435 * doc/posix-functions/iswpunct.texi: Likewise.
24436 * doc/posix-functions/iswspace.texi: Likewise.
24437 * doc/posix-functions/iswupper.texi: Likewise.
24438 * doc/posix-functions/iswxdigit.texi: Likewise.
24439 Reported by Alain Guibert.
24441 2008-04-21 Bruno Haible <bruno@clisp.org>
24443 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24444 Patch by Alain Guibert.
24446 2008-04-21 Bruno Haible <bruno@clisp.org>
24448 Fix test failures on mingw.
24449 * tests/test-xstrtol.c (print_no_progname): New function.
24450 (main): Install it in error_print_progname hook.
24451 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24452 * tests/test-xstrtoimax.sh: Likewise.
24453 * tests/test-xstrtoumax.sh: Likewise.
24455 2008-04-21 Bruno Haible <bruno@clisp.org>
24457 Fix test failure on mingw.
24458 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24460 2008-04-21 Bruno Haible <bruno@clisp.org>
24462 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24463 Actually assign a value.
24465 2008-04-20 Bruno Haible <bruno@clisp.org>
24467 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24469 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24470 'canonicalize-lgpl' module is also used.
24471 * lib/canonicalize-lgpl.c: Undo last change.
24472 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24474 2008-04-20 Bruno Haible <bruno@clisp.org>
24476 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24477 config.h. Provide _mkdir based fallback for mingw.
24478 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24479 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24480 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24481 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24482 rather than defining mkdir in config.h.
24483 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24484 (gl_SYS_STAT_H_DEFAULTS): New macro.
24485 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24486 HAVE_IO_H any more.
24487 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24488 HAVE_DECL_MKDIR and HAVE_IO_H.
24490 2008-04-20 Bruno Haible <bruno@clisp.org>
24492 * lib/isapipe.c: Port to native Windows platforms.
24494 2008-04-20 Bruno Haible <bruno@clisp.org>
24496 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24498 2008-04-21 Eric Blake <ebb9@byu.net>
24500 Work around preprocessors that don't handle UINTMAX_MAX.
24501 * lib/memchr2.c (memchr2): Avoid embedded #if.
24502 Reported by Alain Guibert, fix suggested by Bruno Haible.
24504 2008-04-21 Simon Josefsson <simon@josefsson.org>
24506 * doc/posix-functions/strftime.texi (strftime): Explain better
24507 Windows incompatibility. Suggested by Micah Cowan
24508 <micah@cowan.name>.
24510 2008-04-20 Bruno Haible <bruno@clisp.org>
24512 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24515 2008-04-20 Bruno Haible <bruno@clisp.org>
24517 Fix test failure on platforms with non-GNU iconv.
24518 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24519 (U_TO_U8): Use it, rather than u16_to_u8.
24520 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24521 units at the end of the input string.
24522 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24524 2008-04-20 Bruno Haible <bruno@clisp.org>
24526 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24527 when the resulting length is 0.
24528 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24530 2008-04-20 Bruno Haible <bruno@clisp.org>
24532 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24534 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24536 2008-04-20 Bruno Haible <bruno@clisp.org>
24538 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24539 * modules/tsearch-tests (configure.ac): Test for initstate function.
24541 2008-04-20 Bruno Haible <bruno@clisp.org>
24543 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24544 for nlink_t if missing.
24545 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24547 2008-04-19 Bruno Haible <bruno@clisp.org>
24549 Work around snprintf bug on Linux libc5.
24550 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24551 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24553 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24554 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24556 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24557 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24558 * modules/snprintf (Files): Add m4/printf.m4.
24559 * modules/vsnprintf (Files): Likewise.
24560 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24561 * doc/posix-functions/vsnprintf.texi: Likewise.
24563 2008-04-19 Bruno Haible <bruno@clisp.org>
24565 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24566 from 0.0058 to less than 10^-7.
24568 2008-04-19 Bruno Haible <bruno@clisp.org>
24570 Fix rounding when a precision is given.
24571 * lib/vasnprintf.c (is_borderline): New function.
24572 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24574 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24576 * tests/test-vasprintf-posix.c (test_function): Likewise.
24577 * tests/test-snprintf-posix.h (test_function): Likewise.
24578 * tests/test-sprintf-posix.h (test_function): Likewise.
24579 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24580 * tests/test-printf-posix.h (test_function): Likewise.
24581 * tests/test-printf-posix.output: Update.
24582 Reported by John Darrington <john@darrington.wattle.id.au> via
24583 Ben Pfaff <blp@cs.stanford.edu>.
24585 2008-04-18 Simon Josefsson <simon@josefsson.org>
24587 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24588 Suggested by Bruno Haible <bruno@clisp.org>.
24590 2008-04-17 Bruno Haible <bruno@clisp.org>
24592 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24593 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24595 Patch by Bruce Merry <bmerry@gmail.com>.
24597 2008-04-17 Simon Josefsson <simon@josefsson.org>
24599 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24600 doesn't work under Windows.
24602 2008-04-16 Bruno Haible <bruno@clisp.org>
24604 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24606 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24607 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24608 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24609 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24610 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24611 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24612 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24614 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24615 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24616 Northern Sotho, Uighur.
24618 2008-04-16 Bruno Haible <bruno@clisp.org>
24620 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24621 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24622 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24623 Reported by Daniel Bergström <daniel@octocode.com>.
24625 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24626 Bruno Haible <bruno@clisp.org>
24628 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24630 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24631 New functions, mostly extracted from gl_locale_name_default.
24632 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24634 2008-04-16 Eric Blake <ebb9@byu.net>
24636 Adjust strtod detection to catch glibc 2.7 bug.
24637 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24638 Reported by John Gatewood Ham.
24640 2008-04-16 Bruno Haible <bruno@clisp.org>
24642 Add tentative support for Linux libc5.
24643 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24644 * lib/fpurge.c (fpurge): Likewise.
24645 * lib/freadable.c (freadable): Likewise.
24646 * lib/freadahead.c (freadahead): Likewise.
24647 * lib/freading.c (freading): Likewise.
24648 * lib/freadptr.c (freadptr): Likewise.
24649 * lib/freadseek.c (freadptrinc): Likewise.
24650 * lib/fseeko.c (rpl_fseeko): Likewise.
24651 * lib/fseterr.c (fseterr): Likewise.
24652 * lib/fwritable.c (fwritable): Likewise.
24653 * lib/fwriting.c (fwriting): Likewise.
24654 Reported by Alain Guibert <alguibert+bts@free.fr>.
24656 2008-04-15 Bruno Haible <bruno@clisp.org>
24658 * modules/mathl (configure.ac): Define module indicator.
24660 2008-04-15 Bruno Haible <bruno@clisp.org>
24662 * lib/logl.c (logl): Remove unused variables.
24664 2008-04-15 Bruno Haible <bruno@clisp.org>
24666 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24669 2008-04-15 Bruno Haible <bruno@clisp.org>
24671 * lib/trim.c (trim2): Fix argument of isspace() macro.
24673 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24675 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24677 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24679 2008-04-14 Bruno Haible <bruno@clisp.org>
24681 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24682 AC_LANG_PROGRAM argument.
24683 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24684 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24685 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24686 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24687 * m4/math_h.m4 (gl_MATH_H): Likewise.
24688 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24689 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24690 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24691 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24692 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24693 * m4/regex.m4 (gl_REGEX): Likewise.
24694 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24695 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24696 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24697 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24698 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24699 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24700 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24701 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24703 2008-04-14 Jim Meyering <meyering@redhat.com>
24705 test-strtod: fix typos: s/abs/fabs/
24706 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24708 2008-04-13 Bruno Haible <bruno@clisp.org>
24710 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24711 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24712 module is also used and while not building the reloc-wrapper.
24714 2008-04-13 Bruno Haible <bruno@clisp.org>
24716 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24718 2008-04-13 Bruno Haible <bruno@clisp.org>
24720 Fix AIX compilation failure introduced on 2008-04-02.
24721 * tests/test-frexp.c (exp): Undefine before redefining.
24722 * tests/test-frexpl.c (exp): Likewise.
24724 2008-04-13 Bruno Haible <bruno@clisp.org>
24726 Work around a HP-UX stdio bug.
24727 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24728 * tests/test-ftello.c (main): Likewise.
24729 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24730 * doc/posix-functions/ftello.texi: Likewise.
24732 2008-04-13 Bruno Haible <bruno@clisp.org>
24734 Make test-signbit pass on HP-UX/hppa.
24735 * tests/test-signbit.c (minus_zerol): New variable.
24736 (test_signbitl): Use it.
24738 2008-04-13 Bruno Haible <bruno@clisp.org>
24740 Make truncl work on OSF/1 4.0.
24741 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24742 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24743 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24744 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24746 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24748 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24750 2008-04-13 Bruno Haible <bruno@clisp.org>
24752 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24754 2008-04-13 Bruno Haible <bruno@clisp.org>
24756 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24757 expression, so as to avoid HP-UX 11 cc compiler bug.
24759 2008-04-13 Bruno Haible <bruno@clisp.org>
24761 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24763 2008-04-13 Bruno Haible <bruno@clisp.org>
24765 * lib/git-merge-changelog.c: Remove empty declaration outside of
24768 2008-04-13 Bruno Haible <bruno@clisp.org>
24770 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24772 2008-04-13 Bruno Haible <bruno@clisp.org>
24774 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24775 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24776 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24777 also if it exists but lacks definitions of the SHUT_* macros.
24778 * modules/sys_socket (Description): Update.
24779 Reported by Elbert Pol <e.pol@chello.nl>.
24781 2008-04-13 Bruno Haible <bruno@clisp.org>
24783 * lib/localcharset.c (OS2): Don't redefine if already defined.
24784 Reported by Elbert Pol <e.pol@chello.nl>.
24786 2008-04-13 Bruno Haible <bruno@clisp.org>
24788 * lib/binary-io.h [__EMX__]: Include <io.h>.
24789 Reported by Elbert Pol <e.pol@chello.nl>.
24791 2008-04-12 Bruno Haible <bruno@clisp.org>
24793 * lib/fpucw.h: Enable the definitions also for x86_64.
24794 Needed for NetBSD/x86_64.
24795 Reported by Thomas Klausner <tk@giga.or.at>.
24797 2008-04-12 Bruno Haible <bruno@clisp.org>
24799 * tests/test-strtod.c: Include isnand.h.
24800 (main): Use isnand instead of isnan.
24801 Reported by Jim Meyering.
24803 2008-04-12 Bruno Haible <bruno@clisp.org>
24805 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24806 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24808 2008-04-12 Jim Meyering <meyering@redhat.com>
24810 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24812 2008-04-12 Bruno Haible <bruno@clisp.org>
24814 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24815 Reported by Elbert Pol <e.pol@chello.nl>.
24817 2008-04-12 Eric Blake <ebb9@byu.net>
24819 Work around Solaris 10 math.h bug.
24820 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24821 (gl_MATH_H_DEFAULTS): Set up default.
24822 * modules/math (Makefile.am): Replace new indicators.
24823 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24824 * tests/test-math.c (main): Test this.
24825 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24826 * doc/posix-headers/math.texi (math.h): Mention bug.
24827 Reported by Nelson H. F. Beebe and Jim Meyering.
24829 2008-04-11 Bruno Haible <bruno@clisp.org>
24831 Adapt to future versions of Apple GCC.
24832 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24833 Reported by Peter O'Gorman <peter@pogma.com>.
24835 2008-04-11 Bruno Haible <bruno@clisp.org>
24837 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24839 2008-04-11 Bruno Haible <bruno@clisp.org>
24841 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24843 * modules/getaddrinfo-tests (Makefile.am): Define
24844 test_getaddrinfo_LDADD.
24846 2008-04-11 Bruno Haible <bruno@clisp.org>
24848 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24849 (init): Fix syntax error.
24850 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24853 2008-04-11 Bruno Haible <bruno@clisp.org>
24855 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24856 * modules/glob (Depends-on): Add stdbool.
24858 2008-04-11 Bruno Haible <bruno@clisp.org>
24860 * lib/trim.c: Include <string.h>.
24862 2008-04-11 Eric Blake <ebb9@byu.net>
24864 Avoid compile failure on OS/2.
24865 * lib/regex_internal.h (internal_function): Disable optimization
24866 on OS/2 (__EMX__), where it caused compiler error.
24867 Reported by Elbert Pol.
24869 2008-04-11 Bruno Haible <bruno@clisp.org>
24871 Flush the standard error stream before aborting. Needed on mingw.
24872 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24873 * tests/test-array_list.c (ASSERT): Likewise.
24874 * tests/test-array_oset.c (ASSERT): Likewise.
24875 * tests/test-avltree_list.c (ASSERT): Likewise.
24876 * tests/test-avltree_oset.c (ASSERT): Likewise.
24877 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24878 * tests/test-binary-io.c (ASSERT): Likewise.
24879 * tests/test-byteswap.c (ASSERT): Likewise.
24880 * tests/test-c-ctype.c (ASSERT): Likewise.
24881 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24882 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24883 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24884 * tests/test-c-strstr.c (ASSERT): Likewise.
24885 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24886 * tests/test-canonicalize.c (ASSERT): Likewise.
24887 * tests/test-carray_list.c (ASSERT): Likewise.
24888 * tests/test-ceilf1.c (ASSERT): Likewise.
24889 * tests/test-ceilf2.c (ASSERT): Likewise.
24890 * tests/test-ceill.c (ASSERT): Likewise.
24891 * tests/test-count-one-bits.c (ASSERT): Likewise.
24892 * tests/test-fbufmode.c (ASSERT): Likewise.
24893 * tests/test-fflush2.c (ASSERT): Likewise.
24894 * tests/test-floorf1.c (ASSERT): Likewise.
24895 * tests/test-floorf2.c (ASSERT): Likewise.
24896 * tests/test-floorl.c (ASSERT): Likewise.
24897 * tests/test-fopen.c (ASSERT): Likewise.
24898 * tests/test-fpending.c (ASSERT): Likewise.
24899 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24900 * tests/test-fpurge.c (ASSERT): Likewise.
24901 * tests/test-freadable.c (ASSERT): Likewise.
24902 * tests/test-freadahead.c (ASSERT): Likewise.
24903 * tests/test-freading.c (ASSERT): Likewise.
24904 * tests/test-freadptr.c (ASSERT): Likewise.
24905 * tests/test-freadptr2.c (ASSERT): Likewise.
24906 * tests/test-freadseek.c (ASSERT): Likewise.
24907 * tests/test-freopen.c (ASSERT): Likewise.
24908 * tests/test-frexp.c (ASSERT): Likewise.
24909 * tests/test-frexpl.c (ASSERT): Likewise.
24910 * tests/test-fseek.c (ASSERT): Likewise.
24911 * tests/test-fseeko.c (ASSERT): Likewise.
24912 * tests/test-fstrcmp.c (ASSERT): Likewise.
24913 * tests/test-ftell.c (ASSERT): Likewise.
24914 * tests/test-ftello.c (ASSERT): Likewise.
24915 * tests/test-func.c (ASSERT): Likewise.
24916 * tests/test-fwritable.c (ASSERT): Likewise.
24917 * tests/test-fwriting.c (ASSERT): Likewise.
24918 * tests/test-getdelim.c (ASSERT): Likewise.
24919 * tests/test-getline.c (ASSERT): Likewise.
24920 * tests/test-i-ring.c (ASSERT): Likewise.
24921 * tests/test-iconv-utf.c (ASSERT): Likewise.
24922 * tests/test-iconv.c (ASSERT): Likewise.
24923 * tests/test-isfinite.c (ASSERT): Likewise.
24924 * tests/test-isnand.c (ASSERT): Likewise.
24925 * tests/test-isnanf.c (ASSERT): Likewise.
24926 * tests/test-isnanl.h (ASSERT): Likewise.
24927 * tests/test-ldexpl.c (ASSERT): Likewise.
24928 * tests/test-linked_list.c (ASSERT): Likewise.
24929 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24930 * tests/test-localename.c (ASSERT): Likewise.
24931 * tests/test-lseek.c (ASSERT): Likewise.
24932 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24933 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24934 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24935 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24936 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24937 * tests/test-mbschr.c (ASSERT): Likewise.
24938 * tests/test-mbscspn.c (ASSERT): Likewise.
24939 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24940 * tests/test-mbspbrk.c (ASSERT): Likewise.
24941 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24942 * tests/test-mbsrchr.c (ASSERT): Likewise.
24943 * tests/test-mbsspn.c (ASSERT): Likewise.
24944 * tests/test-mbsstr1.c (ASSERT): Likewise.
24945 * tests/test-mbsstr2.c (ASSERT): Likewise.
24946 * tests/test-mbsstr3.c (ASSERT): Likewise.
24947 * tests/test-memchr2.c (ASSERT): Likewise.
24948 * tests/test-memmem.c (ASSERT): Likewise.
24949 * tests/test-open.c (ASSERT): Likewise.
24950 * tests/test-printf-frexp.c (ASSERT): Likewise.
24951 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24952 * tests/test-printf-posix.c (ASSERT): Likewise.
24953 * tests/test-quotearg.c (ASSERT): Likewise.
24954 * tests/test-rbtree_list.c (ASSERT): Likewise.
24955 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24956 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24957 * tests/test-round1.c (ASSERT): Likewise.
24958 * tests/test-roundf1.c (ASSERT): Likewise.
24959 * tests/test-roundl.c (ASSERT): Likewise.
24960 * tests/test-signbit.c (ASSERT): Likewise.
24961 * tests/test-sleep.c (ASSERT): Likewise.
24962 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24963 * tests/test-snprintf.c (ASSERT): Likewise.
24964 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24965 * tests/test-stat-time.c (ASSERT): Likewise.
24966 * tests/test-strcasestr.c (ASSERT): Likewise.
24967 * tests/test-strerror.c (ASSERT): Likewise.
24968 * tests/test-striconv.c (ASSERT): Likewise.
24969 * tests/test-striconveh.c (ASSERT): Likewise.
24970 * tests/test-striconveha.c (ASSERT): Likewise.
24971 * tests/test-strsignal.c (ASSERT): Likewise.
24972 * tests/test-strstr.c (ASSERT): Likewise.
24973 * tests/test-strtod.c (ASSERT): Likewise.
24974 * tests/test-trunc1.c (ASSERT): Likewise.
24975 * tests/test-trunc2.c (ASSERT): Likewise.
24976 * tests/test-truncf1.c (ASSERT): Likewise.
24977 * tests/test-truncf2.c (ASSERT): Likewise.
24978 * tests/test-truncl.c (ASSERT): Likewise.
24979 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24980 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24981 * tests/test-vasnprintf.c (ASSERT): Likewise.
24982 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24983 * tests/test-vasprintf.c (ASSERT): Likewise.
24984 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24985 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24986 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24987 * tests/test-vsnprintf.c (ASSERT): Likewise.
24988 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24989 * tests/test-wcwidth.c (ASSERT): Likewise.
24990 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24991 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24992 * tests/test-xvasprintf.c (ASSERT): Likewise.
24993 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24994 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24995 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24996 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24997 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24998 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24999 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25000 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25001 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25002 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25003 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25004 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25005 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25006 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25007 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25008 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25009 * tests/unictype/test-block_list.c (ASSERT): Likewise.
25010 * tests/unictype/test-block_of.c (ASSERT): Likewise.
25011 * tests/unictype/test-block_test.c (ASSERT): Likewise.
25012 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25013 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25014 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25015 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25016 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25017 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25018 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25019 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25020 * tests/unictype/test-combining.c (ASSERT): Likewise.
25021 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25022 * tests/unictype/test-digit.c (ASSERT): Likewise.
25023 * tests/unictype/test-mirror.c (ASSERT): Likewise.
25024 * tests/unictype/test-numeric.c (ASSERT): Likewise.
25025 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25026 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25027 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25028 * tests/unictype/test-scripts.c (ASSERT): Likewise.
25029 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25030 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25031 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25032 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25033 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25034 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25035 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25036 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25037 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25038 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25039 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25040 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25041 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25042 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25043 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25044 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25045 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25046 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25047 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25048 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25049 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25050 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25051 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25052 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25053 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25054 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25055 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25056 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25057 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25058 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25059 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25060 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25061 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25062 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25063 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25064 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25065 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25066 Reported by Eric Blake.
25068 2008-04-11 Bruno Haible <bruno@clisp.org>
25070 * lib/wchar.in.h: Tweak comment.
25072 2008-04-11 Bruno Haible <bruno@clisp.org>
25074 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25075 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25077 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25079 2008-04-11 Bruno Haible <bruno@clisp.org>
25081 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25083 2008-04-11 Simon Josefsson <simon@josefsson.org>
25085 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25086 of attempting to use non-existing /dev/*random. Based on patch
25087 from Adam Strzelecki <ono@java.pl> in
25088 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25090 2008-04-08 Bruno Haible <bruno@clisp.org>
25092 Add tentative support for emx+gcc.
25093 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25094 * lib/fpurge.c (fpurge): Likewise.
25095 * lib/freadable.c (freadable): Likewise.
25096 * lib/freadahead.c (freadahead): Likewise.
25097 * lib/freading.c (freading): Likewise.
25098 * lib/freadptr.c (freadptr): Likewise.
25099 * lib/freadseek.c (freadptrinc): Likewise.
25100 * lib/fseeko.c (rpl_fseeko): Likewise.
25101 * lib/fseterr.c (fseterr): Likewise.
25102 * lib/fwritable.c (fwritable): Likewise.
25103 * lib/fwriting.c (fwriting): Likewise.
25104 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25106 2008-04-09 Eric Blake <ebb9@byu.net>
25108 Avoid some autoconf warnings.
25109 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25110 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25111 * m4/afs.m4 (gl_AFS): Likewise.
25112 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25113 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25114 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25115 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25116 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25117 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25118 (AC_CHECK_DECLS_ONCE): Likewise.
25120 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25121 gnulib-tool requires autoconf 2.59 or better.
25122 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25124 2008-04-08 Eric Blake <ebb9@byu.net>
25126 Use 'git describe --match' if present (added in git 1.5.5).
25127 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25130 2008-04-08 Bruno Haible <bruno@clisp.org>
25132 Add tentative support for OpenServer.
25133 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25135 * lib/fpurge.c (fpurge): Likewise.
25136 * lib/freadable.c (freadable): Likewise.
25137 * lib/freadahead.c (freadahead): Likewise.
25138 * lib/freading.c (freading): Likewise.
25139 * lib/freadptr.c (freadptr): Likewise.
25140 * lib/freadseek.c (freadptrinc): Likewise.
25141 * lib/fseeko.c (rpl_fseeko): Likewise.
25142 * lib/fseterr.c (fseterr): Likewise.
25143 * lib/fwritable.c (fwritable): Likewise.
25144 * lib/fwriting.c (fwriting): Likewise.
25145 Reported by Roger Cornelius <rac@tenzing.org> and
25146 Brian K. White <brian@aljex.com>.
25148 2008-04-06 Jim Meyering <meyering@redhat.com>
25150 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25152 2008-04-06 Bruno Haible <bruno@clisp.org>
25154 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25155 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25156 * tests/test-printf-posix.sh: Likewise.
25157 * tests/test-vfprintf-posix.sh: Likewise.
25158 * tests/test-vprintf-posix.sh: Likewise.
25159 * tests/test-xprintf-posix.sh: Likewise.
25161 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25163 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25164 hide error from 'ls', needed on OS/2.
25165 Report by Elbert Pol <elbert.pol@gmail.com>.
25167 2008-04-04 Eric Blake <ebb9@byu.net>
25169 Make test-fseeko.c failures meaningful.
25170 * tests/test-fseeko.c: Print line number on failure.
25171 * tests/test-fseek.c: Likewise.
25172 Reported by Nelson H. F. Beebe.
25174 Improve strtod bug detection check.
25175 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25176 required for Solaris 10.
25177 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25179 2008-04-04 Bruno Haible <bruno@clisp.org>
25181 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25184 2008-04-03 Eric Blake <ebb9@byu.net>
25186 Ensure sane .version contents.
25187 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25189 * build-aux/git-version-gen: Improve documentation.
25191 Make GNU make output nicer.
25192 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25193 MAKECMDGOALS to enforce message for all command line targets. Set
25194 srcdir for use in maint.mk.
25196 Another maintainer tweak.
25197 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25198 a target that regenerates version.
25200 2008-04-03 Jim Meyering <meyering@redhat.com>
25202 vc-list-files: don't cause coreutils "make po-check" failure
25203 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25205 2008-04-03 Eric Blake <ebb9@byu.net>
25207 Allow VPATH usage of vc-list-files.
25208 * build-aux/vc-list-files (scriptversion): Add timestamp.
25209 (options): Add --help, --version, -C.
25210 (CVS): Support installed cvsu.
25212 2008-04-02 Bruno Haible <bruno@clisp.org>
25214 Avoid some "statement with no effect" warnings from gcc.
25215 * tests/test-wctype.c (main): Explicitly ignore unused values.
25216 Reported by Jim Meyering.
25218 2008-04-02 Jim Meyering <meyering@redhat.com>
25220 Avoid some warnings from "gcc -Wshadow".
25221 * tests/test-frexp.c (exp): Define to a different identifier.
25222 * tests/test-frexpl.c (exp): Likewise.
25224 2008-04-03 Jim Meyering <meyering@redhat.com>
25226 bootstrap: remove dangling *.[ch] symlinks from lib
25227 * build-aux/bootstrap [dangling symlink removal]: Move find's
25228 -depth option to precede all others, to avoid a warning.
25229 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25231 2008-04-02 Bruno Haible <bruno@clisp.org>
25233 Avoid some warnings from "gcc -Wshadow".
25234 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25235 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25236 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25237 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25238 Reported by Jim Meyering.
25240 2008-04-01 Bruno Haible <bruno@clisp.org>
25242 Fix test to work on IRIX 6.5 with cc.
25243 * tests/test-math.c (numeric_equal): New function.
25246 2008-04-01 Bruno Haible <bruno@clisp.org>
25248 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25250 2008-04-01 Bruno Haible <bruno@clisp.org>
25252 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25253 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25254 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25255 (Depends-on): Remove math.
25257 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25258 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25259 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25260 (Depends-on): Remove math.
25262 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25263 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25264 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25265 (Depends-on): Remove math.
25266 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25267 (Depends-on): Remove math.
25269 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25270 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25271 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25272 (Depends-on): Remove math.
25273 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25274 (Depends-on): Remove math.
25276 * tests/test-round1.c: Include nan.h.
25277 (main): Use NaNd instead of NAN.
25278 * modules/round-tests (Files): Add tests/nan.h.
25280 * tests/test-trunc1.c: Include nan.h.
25281 (main): Use NaNd instead of NAN.
25282 * modules/trunc-tests (Files): Add tests/nan.h.
25284 * tests/test-roundf1.c: Include nan.h.
25285 (main): Use NaNf instead of NAN.
25286 * modules/roundf-tests (Files): Add tests/nan.h.
25288 * tests/test-truncf1.c: Include nan.h.
25289 (main): Use NaNf instead of NAN.
25290 * modules/truncf-tests (Files): Add tests/nan.h.
25292 * tests/test-ceilf1.c: Include nan.h.
25293 (main): Use NaNf instead of NAN.
25294 * modules/ceilf-tests (Files): Add tests/nan.h.
25296 * tests/test-floorf1.c: Include nan.h.
25297 (main): Use NaNf instead of NAN.
25298 * modules/floorf-tests (Files): Add tests/nan.h.
25300 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25301 (main): Use NaNf instead of NAN.
25302 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25304 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25305 (main): Use NaNd instead of NAN.
25306 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25308 * tests/test-frexp.c: Include nan.h.
25309 (main): Use NaNd instead of NAN.
25310 * modules/frexp-tests (Files): Add tests/nan.h.
25312 * lib/isnan.c: Don't include <math.h>.
25313 (FUNC): Don't use NAN macro.
25314 * modules/isnand-nolibm (Depends-on): Remove math.
25315 * modules/isnanf-nolibm (Depends-on): Remove math.
25316 * modules/isnanl (Depends-on): Remove math.
25317 * modules/isnanl-nolibm (Depends-on): Remove math.
25319 * tests/nan.h: New file.
25321 2008-04-01 Eric Blake <ebb9@byu.net>
25324 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25325 values to be the right type.
25327 For now, cater to gnulib strtod inaccuracies.
25328 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25329 fractional results. While not as nice from a QoI perspective, it
25330 is a quicker patch than correctly implementing decimal to binary
25333 2008-03-31 Eric Blake <ebb9@byu.net>
25335 Guarantee a definition of NAN.
25336 * lib/math.in.h (NAN): Define if missing.
25337 * tests/test-math.c (main): Test it.
25338 * doc/posix-headers/math.texi (math.h): Document this.
25339 * lib/isnan.c (rpl_isnand): Use it.
25340 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25341 * tests/test-floorf1.c (NaN): Likewise.
25342 * tests/test-frexp.c (NaN): Likewise.
25343 * tests/test-isnand.c (NaN): Likewise.
25344 * tests/test-isnanf.c (NaN): Likewise.
25345 * tests/test-round1.c (NaN): Likewise.
25346 * tests/test-roundf1.c (NaN): Likewise.
25347 * tests/test-snprintf-posix.h (NaN): Likewise.
25348 * tests/test-sprintf-posix.h (NaN): Likewise.
25349 * tests/test-trunc1.c (NaN): Likewise.
25350 * tests/test-truncf1.c (NaN): Likewise.
25351 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25352 * tests/test-vasprintf-posix.c (NaN): Likewise.
25353 * modules/isnand-nolibm (Depends-on): Add math.
25354 * modules/isnanf-nolibm (Depends-on): Likewise.
25355 * modules/isnanl (Depends-on): Likewise.
25356 * modules/isnanl-nolibm (Depends-on): Likewise.
25357 * modules/snprintf-posix-tests (Depends-on): Likewise.
25358 * modules/sprintf-posix-tests (Depends-on): Likewise.
25359 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25360 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25361 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25362 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25364 2008-03-31 Bruno Haible <bruno@clisp.org>
25366 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25367 * doc/posix-functions/strtod.texi: Likewise.
25369 2008-03-31 Bruno Haible <bruno@clisp.org>
25371 * tests/test-strtod.c (main): Don't use C99 syntax.
25373 2008-03-31 Bruno Haible <bruno@clisp.org>
25375 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25376 Reported by Eric Blake.
25378 2008-03-31 Jim Meyering <meyering@redhat.com>
25380 Don't compare actual signbit return values.
25381 * tests/test-strtod.c (main): Rather, compare only their
25382 zero/non-zero nature.
25384 2008-03-31 Eric Blake <ebb9@byu.net>
25386 More strtod documentation.
25387 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25388 failures as distinct bugs.
25390 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25392 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25393 Problem reported by Erik Benada in
25394 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25396 2008-03-30 Bruno Haible <bruno@clisp.org>
25398 * tests/test-strtod.c: Add comments about which assertion fails on which
25400 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25402 2008-03-30 Eric Blake <ebb9@byu.net>
25404 Test signbit behavior on zeros.
25405 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25406 (test_signbitd, test_signbitl): Likewise.
25408 More strtod touchups.
25409 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25410 sign of negative underflow, for now. Use .5, not .1.
25411 * doc/posix-functions/strtod.texi (strtod): Mention these
25413 Reported by Jim Meyering.
25415 2008-03-30 Bruno Haible <bruno@clisp.org>
25417 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25418 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25420 2008-03-30 Bruno Haible <bruno@clisp.org>
25422 Avoid failure when attempting to return empty iconv results on some
25424 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25425 allocation, don't report ENOMEM when the resulting string is empty.
25427 2008-03-30 Bruno Haible <bruno@clisp.org>
25429 Fix buffer overrun.
25430 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25431 Don't consider the width for tmp_length. Check count against tmp_length
25432 before doing the padding. Ensure enough allocation during padding.
25434 2008-03-30 Eric Blake <ebb9@byu.net>
25437 * lib/strtod.c (strtod): Avoid compiler warnings.
25438 Reported by Jim Meyering.
25440 2008-03-30 Bruno Haible <bruno@clisp.org>
25442 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25443 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25444 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25445 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25446 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25447 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25448 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25449 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25451 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25452 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25453 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25454 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25455 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25456 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25457 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25458 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25460 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25461 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25462 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25463 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25464 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25465 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25466 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25467 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25469 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25470 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25472 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25473 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25475 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25476 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25478 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25479 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25480 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25482 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25483 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25484 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25486 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25487 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25488 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25490 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25491 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25492 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25494 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25495 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25496 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25497 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25498 (Depends-on): Add EOVERFLOW.
25499 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25500 (Depends-on): Add EOVERFLOW.
25501 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25502 (Depends-on): Add EOVERFLOW.
25503 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25504 (Depends-on): Add EOVERFLOW.
25505 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25506 (Depends-on): Add EOVERFLOW.
25507 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25508 (Depends-on): Add EOVERFLOW.
25509 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25510 (Depends-on): Add EOVERFLOW.
25511 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25512 (Depends-on): Add EOVERFLOW.
25514 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25515 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25516 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25518 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25519 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25520 * modules/snprintf (Depends-on): Add EOVERFLOW.
25522 * lib/poll.c (EOVERFLOW): Remove fallback.
25523 * modules/poll (Depends-on): Add EOVERFLOW.
25525 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25526 * modules/getugroups (Depends-on): Add EOVERFLOW.
25528 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25529 * modules/getdelim (Depends-on): Add EOVERFLOW.
25531 * lib/ftell.c (EOVERFLOW): Remove fallback.
25532 * modules/ftell (Depends-on): Add EOVERFLOW.
25534 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25535 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25536 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25538 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25540 * modules/EOVERFLOW-tests: New file.
25541 * tests/test-EOVERFLOW.c: New file.
25543 * modules/EOVERFLOW: New file.
25544 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25546 2008-03-30 Bruno Haible <bruno@clisp.org>
25548 Fix bug introduced on 2007-06-10.
25549 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25550 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25552 2008-03-30 Bruno Haible <bruno@clisp.org>
25554 Improve freadseek's efficiency after ungetc.
25555 * lib/freadseek.c: Include freadahead.h.
25556 (freadptrinc): New function, extracted from freadseek.
25557 (freadseek): Use it in a loop. Use freadahead to determine the number
25558 of loop iterations.
25559 * modules/freadseek (Depends-on): Add freadahead.
25560 (configure.ac): Require AC_C_INLINE.
25562 2008-03-30 Bruno Haible <bruno@clisp.org>
25564 * lib/freadseek.c (freadseek): Don't ignore the return value of
25567 2008-03-29 Eric Blake <ebb9@byu.net>
25569 Add hex float support.
25570 * modules/strtod (Depends-on): Add c-ctype.
25571 (Link): Mention POW_LIB.
25572 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25573 whitespace between 'e' and exponent.
25574 * tests/test-strtod.c (main): Enable hex float tests.
25575 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25578 Document various strtod bugs, with some fixes.
25579 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25580 "-0x", "inf", "nan", and hex constants.
25581 * doc/posix-functions/atof.texi (atof): Likewise.
25582 * modules/stdlib (Makefile.am): Support strtod.
25583 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25584 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25585 detect additional strtod bugs.
25586 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25587 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25588 bool where appropriate. Parse 'inf' and 'nan'.
25589 * tests/test-strtod.c: New file.
25590 * modules/strtod (Depends-on): Add stdbool, stdlib.
25591 (configure.ac): Turn on module indicator.
25592 * modules/strtod-tests: New module.
25594 2008-03-29 Eric Blake <ebb9@byu.net>
25596 Fix ftell on mingw.
25597 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25598 * modules/ftell-tests (Depends-on): Add binary-io.
25599 * modules/ftello-tests (Depends-on): Likewise.
25600 * tests/test-ftell.c (main): Enhance test to cover behavior after
25601 ungetc. Enforce binary mode.
25602 * tests/test-ftello.c (main): Likewise.
25604 Pass test-freadseek on cygwin.
25605 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25606 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25609 * tests/test-fflush2.c (main): Fix typo.
25611 2008-03-29 Bruno Haible <bruno@clisp.org>
25613 * tests/test-fflush2.c (main): Temporarily disable the contents of
25615 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25616 Reported by Eric Blake.
25618 2008-03-28 Simon Josefsson <simon@josefsson.org>
25620 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25621 (GC_SHA224_DIGEST_SIZE): Add.
25623 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25624 (gc_hash_digest_length): Likewise.
25625 (gc_hash_buffer): Likewise.
25627 2008-03-25 Bruno Haible <bruno@clisp.org>
25629 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25630 detail which gettext release to use.
25631 Reported by Simon Josefsson.
25633 2008-03-26 Jim Meyering <meyering@redhat.com>
25635 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25636 * modules/gnumakefile (clean-GNUmakefile): Also, use
25637 test ... && ... || : syntax rather than if-then ... fi.
25639 gnumakefile: Don't double-quote-expand $(VPATH) value.
25640 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25642 2008-03-24 Eric Blake <ebb9@byu.net>
25644 Alter GNUmakefile to install into top directory.
25645 * modules/maintainer-makefile: Split, and add dependency...
25646 * modules/gnumakefile: to this new module.
25647 * build-aux/GNUmakefile: Move...
25648 * top/GNUmakefile: ...here.
25649 * build-aux/maint.mk: Move...
25650 * top/maint.mk: ...here.
25651 * MODULES.html.sh (Support for maintaining...): Document new
25654 2008-03-23 Bruno Haible <bruno@clisp.org>
25656 * gnulib-tool: New options --vc-files, --no-vc-files.
25657 (func_usage): Document them.
25658 (vc_files): New variable.
25659 (func_import): Consider vc_files.
25660 (func_create_testdir): Set vc_files to empty.
25661 Suggested by Jim Meyering and Karl Berry.
25663 2008-03-23 Bruno Haible <bruno@clisp.org>
25665 Fix regex compilation error on HP-UX 11.
25666 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25667 * modules/regex (Files): Add m4/mbstate_t.m4.
25668 Reported by Ton Voon <ton.voon@altinity.com>.
25670 2008-03-23 Bruno Haible <bruno@clisp.org>
25672 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25674 2008-03-23 Eric Blake <ebb9@byu.net>
25675 Bruno Haible <bruno@clisp.org>
25677 Install files from top/ in the destination directory.
25678 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25679 augmentation also for the files from top/.
25680 (func_import, func_create_testdir): Rewrite file names:
25681 top/filename -> filename.
25683 2008-03-23 Bruno Haible <bruno@clisp.org>
25685 Tweak "gnulib --version" output.
25686 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25688 2008-03-23 Bruno Haible <bruno@clisp.org>
25690 Tweak "gnulib --version" output.
25691 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25692 rather than contents of ChangeLog, when possible.
25694 2008-03-21 Eric Blake <ebb9@byu.net>
25696 More --version tweaks.
25697 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25698 date of last ChangeLog entry.
25700 2008-03-21 Jim Meyering <meyering@redhat.com>
25702 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25704 2008-03-20 Eric Blake <ebb9@byu.net>
25707 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25709 2008-03-20 Simon Josefsson <simon@josefsson.org>
25711 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25712 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25714 2008-03-20 Eric Blake <ebb9@byu.net>
25716 Sync GNUmakefile with coreutils.
25717 * build-aux/GNUmakefile (have-Makefile): Rename...
25718 (_have-Makefile): ...to this, for namespace consideration.
25719 (GNUmakefile.cfg): Include, if present.
25720 (_autoreconf): Define a default.
25721 (_is-dist-target): New rule for rebuilds to pick up intra-release
25723 (maint-cfg.mk): Rename...
25724 (cfg.mk): ...to this.
25726 2008-03-18 Jim Meyering <meyering@redhat.com>
25728 New script and module: mktempd
25729 * MODULES.html.sh (maint+release support): Add mktempd.
25730 * build-aux/mktempd: New file.
25731 * modules/mktempd: New file.
25733 2008-03-15 Jim Meyering <meyering@redhat.com>
25736 * lib/sha1.c, lib/md5.c: 63 != ~63.
25737 Reported by Andreas Schwab.
25739 sha1.c, md5.c: Hoist a redundant expression.
25740 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25741 "ctx->buflen" only once, before calling *_process_block.
25742 * lib/md5.c (md5_process_bytes): Likewise.
25744 2008-03-14 Eric Blake <ebb9@byu.net>
25746 Bump copyright year in files generated by gnulib-tool.
25747 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25748 gnulib-tool, rather than hard-coding it.
25750 Fix 'gnulib-tool --version' output to work with git.
25751 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25752 (startup): ...here.
25753 (func_version): Use it to invoke git-version-gen, rather than
25754 relying on CVS keyword expansion. Modernize wording.
25755 (cvsdatestamp, last_checkin_date, version): Kill unused
25758 2008-03-12 Jim Meyering <meyering@redhat.com>
25760 Recognize optional cast of the argument to free.
25761 * build-aux/useless-if-before-free: Update regexps.
25763 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25765 2008-03-11 Bruno Haible <bruno@clisp.org>
25767 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25768 by a single package.
25769 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25770 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25771 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25772 Reported by Sam Steingold <sds@gnu.org>.
25774 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25776 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25779 2008-03-11 Bruno Haible <bruno@clisp.org>
25781 Avoid conflicts between local macro definitions.
25782 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25783 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25785 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25786 Bruno Haible <bruno@clisp.org>
25788 Make va_copy work with some version of xlc on AIX 5.1.
25789 * lib/stdarg.in.h: New file.
25790 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25791 On AIX, use a <stdarg.h> file substitute.
25792 * modules/stdarg (Files): Add lib/stdarg.in.h.
25793 (Depends-on): Add include_next.
25794 (Makefile.am): Build a stdarg.h substitute if requested.
25795 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25797 2008-03-10 Bruno Haible <bruno@clisp.org>
25799 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25800 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25801 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25803 2008-03-10 Bruno Haible <bruno@clisp.org>
25805 * modules/stdlib (Depends-on): Add include_next, remove
25808 2008-03-09 Bruno Haible <bruno@clisp.org>
25810 * lib/freadahead.h (freadahead): Document more precisely.
25811 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25812 the sum of both buffer sizes.
25813 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25814 * NEWS: Document the change.
25816 2008-03-09 Bruno Haible <bruno@clisp.org>
25818 Extend freadptr to return also the buffer size.
25819 * lib/freadptr.h (freadptr): Add sizep argument.
25820 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25821 (freadptr): Add sizep argument. Determine buffer size like freadahead
25823 * tests/test-freadptr.c: Don't include freadahead.h.
25824 (main): Adapt for new calling convention of freadptr.
25825 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25826 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25827 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25828 tests/test-freadptr2.sh.
25829 (Depends): Remove freadahead.
25830 (TESTS): Add test-freadptr2.sh.
25831 (check_PROGRAMS): Add test-freadptr2.
25833 2008-03-09 Bruno Haible <bruno@clisp.org>
25835 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25836 Report and solution by Simon Josefsson.
25838 2008-03-06 Bruno Haible <bruno@clisp.org>
25840 Make fflush after ungetc work on BSD platforms.
25841 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25842 * tests/test-fflush2.c: New file.
25843 * tests/test-fflush2.sh: New file.
25844 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25845 tests/test-fflush2.c.
25846 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25847 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25849 2008-03-06 Eric Blake <ebb9@byu.net>
25851 Likewise for ftello.
25852 * modules/ftello (Dependencies): Add extensions.
25853 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25855 2008-03-06 Bruno Haible <bruno@clisp.org>
25857 * modules/fseeko (Dependencies): Add extensions.
25858 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25859 Needed on glibc systems.
25861 2008-03-06 Bruno Haible <bruno@clisp.org>
25863 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25865 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25867 2008-03-06 Bruno Haible <bruno@clisp.org>
25869 * users.txt: Add libgnupdf.
25871 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25873 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25874 (Header File Substitutes, Function Substitutes,
25875 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25876 (Build robot for gnulib): Fix typo.
25878 2008-03-06 Bruno Haible <bruno@clisp.org>
25880 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25881 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25883 2008-03-06 Bruno Haible <bruno@clisp.org>
25885 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25886 * doc/gnulib.texi: Include it.
25888 2008-03-06 Simon Josefsson <simon@josefsson.org>
25890 * modules/func (License): Change license to unlimited; there was
25891 no LGPL parts in the module anyway.
25893 2008-03-06 Simon Josefsson <simon@josefsson.org>
25895 * modules/__func__: Renamed to modules/func.
25896 * modules/__func__-tests: Renamed to modules/func-tests.
25897 * tests/test-__func__.c: Renamed to tests/test-func.c.
25898 * m4/__func__.m4: Renamed to m4/func.m4.
25899 * doc/gnulib.texi (__func__): Section renamed to func.
25900 Suggested by Eric Blake <ebb9@byu.net>.
25902 2008-03-06 Simon Josefsson <simon@josefsson.org>
25904 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25905 about __func__. Make example self-contained. Suggested by Eric
25906 Blake <ebb9@byu.net>.
25908 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25909 Suggested by Eric Blake <ebb9@byu.net>.
25911 2008-03-06 Simon Josefsson <simon@josefsson.org>
25913 * modules/__func__: New file.
25914 * modules/__func__-tests: New file.
25915 * tests/test-__func__.c: New file.
25916 * m4/__func__.m4: New file.
25917 * doc/gnulib.texi (__func__): Document __func__ module.
25919 2008-03-05 Simon Josefsson <simon@josefsson.org>
25921 * modules/byteswap (License): Re-license as LGPLv2+.
25923 2008-03-05 Simon Josefsson <simon@josefsson.org>
25925 * doc/Makefile: Add pdf target.
25927 2008-03-05 Simon Josefsson <simon@josefsson.org>
25929 * modules/inline (License): Use 'unlimited', since there are only
25930 *.m4 files in this module.
25932 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25933 Bruno Haible <bruno@clisp.org>
25935 Add support for HP C 7.1 on OpenVMS 8.3.
25936 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25938 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25940 Update VMS specifics.
25941 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25943 2008-03-02 Jim Meyering <meyering@redhat.com>
25945 Remove the last dependency on the "free" module.
25946 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25947 Reported by Bob Proulx.
25949 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25951 Remove useless "if" tests before free. Deprecate "free" module.
25952 * doc/posix-functions/free.texi: Mention that this
25953 module is no longer useful.
25954 * modules/free (Notice): Say this module is obsolete.
25955 * modules/readutmp (Depends-on): Remove free.
25956 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25957 * lib/putenv.c (putenv): Likewise.
25958 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25959 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25960 * tests/test-c-strcasestr.c (main): Likewise.
25961 * tests/test-c-strstr.c (main): Likewise.
25962 * tests/test-mbscasestr1.c (main): Likewise.
25963 * tests/test-mbscasestr2.c (main): Likewise.
25964 * tests/test-mbsstr1.c (main): Likewise.
25965 * tests/test-mbsstr2.c (main): Likewise.
25966 * tests/test-memmem.c (main): Likewise.
25967 * tests/test-strcasestr.c (main): Likewise.
25968 * tests/test-striconv.c (main): Likewise.
25969 * tests/test-striconveh.c (main): Likewise.
25970 * tests/test-striconveha.c (main): Likewise.
25971 * tests/test-strstr.c (main): Likewise.
25973 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25975 bootstrap: sync from coreutils again
25976 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25978 2008-03-01 Jim Meyering <meyering@redhat.com>
25980 bootstrap: sync from coreutils
25981 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25982 also when the target doesn't exist.
25984 2008-03-01 Eric Blake <ebb9@byu.net>
25986 Fix bugs in last patch.
25987 * lib/memchr2.c (memchr2): Fix typo.
25988 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25990 Reported by Bruce Korb.
25992 New module 'memchr2'.
25993 * modules/memchr2: New file.
25994 * modules/memchr2-tests: Likewise.
25995 * lib/memchr2.h: Likewise.
25996 * lib/memchr2.c: Likewise, based on memchr.c.
25997 * tests/test-memchr2.c: New test.
25998 * MODULES.html.sh (String handling): Add memchr2.
26000 2008-02-29 Bruno Haible <bruno@clisp.org>
26002 * modules/freadseek-tests: New file.
26003 * tests/test-freadseek.sh: New file.
26004 * tests/test-freadseek.c: New file.
26006 New module 'freadseek'.
26007 * modules/freadseek: New file.
26008 * lib/freadseek.h: New file.
26009 * lib/freadseek.c: New file.
26010 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26012 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
26014 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26017 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26018 program_invocation_name and program_invocation_short_name are
26021 2008-02-28 Bruno Haible <bruno@clisp.org>
26023 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26024 * tests/test-freadptr.sh: Also test non-seekable stdin.
26026 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
26028 * build-aux/bootstrap (source_base, m4_base)
26029 (doc_base, tests_base): New variables.
26030 (gnulib_tool_options): Do not hardcode base directories, use
26031 the above variables instead.
26033 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
26035 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26037 2008-02-28 Bruno Haible <bruno@clisp.org>
26039 * modules/freadptr-tests: New file.
26040 * tests/test-freadptr.sh: New file.
26041 * tests/test-freadptr.c: New file.
26043 New module 'freadptr'.
26044 * modules/freadptr: New file.
26045 * lib/freadptr.h: New file.
26046 * lib/freadptr.c: New file.
26047 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26049 2008-02-26 Karl Berry <karl@freefriends.org>
26052 * libltdl/argz.c (argz_add, argz_count): New functions.
26053 * libltdl/argz.in.h: Declare them.
26054 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26056 2008-02-22 Bruno Haible <bruno@clisp.org>
26058 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26059 is a pointer type. Needed for HP-UX 10.
26060 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26061 * doc/posix-functions/gmtime_r.texi: Likewise.
26062 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26064 2008-02-24 Bruno Haible <bruno@clisp.org>
26066 * modules/environ-tests: New file.
26067 * tests/test-environ.c: New file.
26069 New module 'environ'.
26070 * modules/environ: New file.
26071 * lib/unistd.in.h (environ): New declaration.
26072 * m4/environ.m4: New file.
26073 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26075 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26077 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26079 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26080 wrong claim that 'environ' is missing on some systems.
26081 * modules/execute (Depends-on): Add environ.
26082 * lib/execute.c (environ): Remove fallback declaration.
26083 * modules/pipe (Depends-on): Add environ.
26084 * lib/pipe.c (environ): Remove fallback declaration.
26085 * modules/setenv (Depends-on): Add environ.
26086 * lib/setenv.c (environ): Remove fallback declaration.
26087 * modules/unsetenv (Depends-on): Add environ.
26088 * lib/unsetenv.c (environ): Remove fallback declaration.
26089 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26091 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26092 (gl_PREREQ_UNSETENV): Likewise.
26094 2008-02-24 Bruno Haible <bruno@clisp.org>
26096 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26098 2008-02-20 Bob Proulx <bob@proulx.com>
26100 Enable use of older two part flavor 'git describe'.
26101 * build-aux/git-version-gen: If using the older two part flavor of
26102 git version then recreate the third part now present in the
26103 newer three part flavor of git describe.
26105 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26107 * lib/fts.c (fts_build): Typo correction to comment.
26109 2008-02-17 Bruno Haible <bruno@clisp.org>
26111 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26112 generating no-op conflicts.
26114 2008-02-17 Bruno Haible <bruno@clisp.org>
26117 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26118 result_entries, rather than an index-based loop.
26120 2008-02-17 Bruno Haible <bruno@clisp.org>
26123 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26125 (entry_create): New function.
26126 (entry_hashcode): Use the cached hashcode if possible.
26127 (read_changelog_file, try_split_merged_entry): Use entry_create.
26129 2008-02-17 Bruno Haible <bruno@clisp.org>
26131 Speed up from O(n^2) to O(n) for long ChangeLog files.
26132 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26133 (read_changelog_file): Change implementation of entries_reversed list
26135 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26137 2008-02-17 Bruno Haible <bruno@clisp.org>
26139 New option --split-merged-entry.
26140 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26141 (find_paragraph_end, try_split_merged_entry): New functions.
26142 (long_options): Add option --split-merged-entry.
26143 (usage): Document option --split-merged-entry.
26144 (main): Implement option --split-merged-entry.
26145 Reported by Eric Blake.
26147 2008-02-17 Bruno Haible <bruno@clisp.org>
26149 * lib/git-merge-changelog.c: Include c-strstr.h.
26150 (main): Support the "git pull --rebase" situation.
26151 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26152 Reported by Eric Blake.
26154 2008-02-16 Eric Blake <ebb9@byu.net>
26156 Avoid doubling \ in common case of "c-maybe" quoting style.
26157 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26158 eliding outer quotes.
26159 * lib/quotearg.h: Document this.
26160 * tests/test-quotearg.c (result_strings, inputs, results_g)
26161 (flag_results, locale_results): Test it by adding a new string to
26163 (compare_strings): Test new string.
26165 2008-02-13 Eric Blake <ebb9@byu.net>
26167 Avoid trigraph quoting in default output.
26168 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26169 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26170 unless explicitly requested.
26171 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26173 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26175 Don't rely on signed integer overflowing to negative value.
26176 * lib/getugroups.c (getugroups): Include <limits.h>.
26177 Instead, compare against INT_MAX, and increment only if the test passes.
26179 2008-02-13 Jim Meyering <meyering@redhat.com>
26180 and Eric Blake <ebb9@byu.net>
26182 Avoid shadowing warning and compile errors on Linux.
26183 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26184 forwarding macros on Linux.
26185 (dcgettext): Define a stub, for Linux.
26186 (results_g, main): Avoid warnings.
26188 2008-02-12 Eric Blake <ebb9@byu.net>
26190 Silence warning in last patch.
26191 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26193 Quotearg part 4: add tests, fix c-maybe colon quoting.
26194 * lib/quotearg.h: Improve documentation.
26195 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26196 escapes when adding outer quotes. When quoting trigraphs, use
26197 valid C notation. When quoting NUL, omit extra characters if next
26198 character is not digit. Alter prototype.
26199 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26201 * modules/quotearg-tests: New module.
26202 * tests/test-quotearg.c: New test.
26204 2008-02-07 Eric Blake <ebb9@byu.net>
26206 Quotearg part 3: add flag to control outer quote elision.
26207 * lib/quotearg.h (c_maybe_quoting_style): New style.
26208 (enum quoting_flags): Better documentation of flags.
26209 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26211 (quotearg_buffer_restyled): Handle new flag to elide outer
26214 Quotearg part 2: add flag that can control NUL elision.
26215 * lib/quotearg.h (set_quoting_flags): New prototype.
26216 * lib/quotearg.c (struct quoting_options): Add flag field.
26217 (set_quoting_flags): New function.
26218 (quotearg_buffer_restyled): Add flags parameter.
26219 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26220 (quotearg_n_options): Set the flag, since length cannot be
26222 (quoting_options_from_style): Default flags correctly.
26224 Quotearg part 1: more wrappers, restore quotearg_char state.
26225 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26226 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26227 (quotearg_colon_mem): New wrappers.
26228 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26229 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26231 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26232 (quotearg_colon_mem): New functions.
26234 2008-02-11 Bruno Haible <bruno@clisp.org>
26236 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26237 library in the current directory: it does not work with parallel make.
26238 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26240 2008-02-11 Bruno Haible <bruno@clisp.org>
26242 * .gitattributes: New file.
26244 2008-02-11 Jim Meyering <meyering@redhat.com>
26246 useless-if-before-free: Fix reversed exit values.
26247 * build-aux/useless-if-before-free: Use correct values
26248 for EXIT_MATCH and EXIT_NO_MATCH.
26250 * build-aux/useless-if-before-free: Close stdout carefully.
26252 2008-02-10 Bruno Haible <bruno@clisp.org>
26254 New module 'git-merge-changelog'.
26255 * modules/git-merge-changelog: New file.
26256 * lib/git-merge-changelog.c: New file.
26258 2008-02-10 Jim Meyering <meyering@redhat.com>
26260 useless-if-before-free: New option: --list (-l).
26262 useless-if-before-free: Don't exit immediately upon open failure.
26263 * build-aux/useless-if-before-free: Exit 2 for errors.
26264 Upon failure to open a file, don't exit immediately.
26265 Rather, just warn and continue with any remaining files.
26267 2008-02-10 Bruno Haible <bruno@clisp.org>
26269 New abstract list operation 'node_set_value'.
26270 * lib/gl_list.h (gl_list_node_set_value): New function.
26271 (struct gl_list_implementation): New field node_set_value.
26272 * lib/gl_list.c (gl_list_node_set_value): New function.
26273 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26274 (gl_array_list_implementation): Update.
26275 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26276 (gl_carray_list_implementation): Update.
26277 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26278 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26279 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26280 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26281 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26282 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26283 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26285 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26286 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26287 (gl_sublist_list_implementation): Update.
26289 2008-02-10 Bruno Haible <bruno@clisp.org>
26291 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26292 Needed when ELEMENT is #defined to 'some_type *'.
26294 2008-02-10 Jim Meyering <meyering@redhat.com>
26296 New script and module: useless-if-before-free
26297 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26298 * build-aux/useless-if-before-free: New file.
26299 * modules/useless-if-before-free: New file.
26301 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26303 xstrtol_error: Fix typo.
26304 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26305 s/exit_failure/exit_status/.
26307 2008-02-09 Jim Meyering <meyering@redhat.com>
26309 New script and module: gitlog-to-changelog
26310 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26311 * modules/gitlog-to-changelog: New file.
26312 * build-aux/gitlog-to-changelog: New file.
26314 2008-02-08 Jim Meyering <meyering@redhat.com>
26316 Avoid two "parameter unused" warnings.
26317 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26320 Use "git COMMAND", not "git-COMMAND".
26321 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26322 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26323 * build-aux/git-version-gen: Use "git status", not "git-status".
26325 2008-02-07 Bruno Haible <bruno@clisp.org>
26327 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26328 Avoids a crash on Windows Vista.
26329 Reported by Adam Strzelecki <ono@java.pl> via
26330 Simon Josefsson <simon@josefsson.org>.
26332 2008-02-06 Bruno Haible <bruno@clisp.org>
26334 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26335 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26336 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26337 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26338 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26339 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26340 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26341 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26342 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26343 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26344 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26345 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26346 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26347 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26348 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26349 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26351 * tests/test-snprintf-posix.h (test_function): Likewise.
26352 * tests/test-sprintf-posix.h (test_function): Likewise.
26353 * tests/test-vasprintf-posix.c (test_function): Likewise.
26354 * doc/posix-functions/fprintf.texi: Update.
26355 * doc/posix-functions/printf.texi: Update.
26356 * doc/posix-functions/snprintf.texi: Update.
26357 * doc/posix-functions/sprintf.texi: Update.
26358 * doc/posix-functions/vfprintf.texi: Update.
26359 * doc/posix-functions/vprintf.texi: Update.
26360 * doc/posix-functions/vsnprintf.texi: Update.
26361 * doc/posix-functions/vsprintf.texi: Update.
26362 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26364 2008-02-06 Bruno Haible <bruno@clisp.org>
26366 Fix bug introduced on 2008-01-26.
26367 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26369 2008-02-06 Bruno Haible <bruno@clisp.org>
26371 Fix bug introduced on 2007-06-10.
26372 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26373 !NEED_PRINTF_FLAG_ZERO.
26375 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26377 getloadavg: use libperfstat on AIX5
26378 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26380 2008-02-03 Bruno Haible <bruno@clisp.org>
26382 * lib/diffseq.h: Add comments about required #includes.
26383 Reported by Michael Biggs <gnulib@doubleplum.net>.
26385 2008-02-01 Bruno Haible <bruno@clisp.org>
26387 * users.txt: Add gnuit.
26389 2008-01-31 Bruno Haible <bruno@clisp.org>
26391 * lib/md4.c (set_uint32): Mark as inline.
26392 * lib/md5.c (set_uint32): Likewise.
26393 * lib/sha1.c (set_uint32): Likewise.
26394 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26395 * m4/md5.m4 (gl_MD5): Likewise.
26396 * m4/sha1.m4 (gl_SHA1): Likewise.
26398 2008-01-31 Jim Meyering <meyering@redhat.com>
26400 Use "sizeof VAR", rather than a literal "4".
26401 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26402 * lib/md4.c (md4_read_ctx): Likewise.
26403 * lib/sha1.c (sha1_read_ctx): Likewise.
26405 2008-01-31 Simon Josefsson <simon@josefsson.org>
26407 * tests/test-sha1.c: New file, based on test-md5.c.
26409 * modules/crypto/sha1-tests: New file.
26411 2008-01-31 Simon Josefsson <simon@josefsson.org>
26413 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26415 2008-01-31 Jim Meyering <meyering@redhat.com>
26417 Prefer "sizeof v" over the equivalent "4".
26418 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26419 * lib/md5.c (set_uint32): Likewise.
26420 * lib/sha1.c (set_uint32): Likewise.
26422 2008-01-31 Simon Josefsson <simon@josefsson.org>
26424 * lib/sha1.c (set_uint32): Mark function as static.
26426 2008-01-31 Simon Josefsson <simon@josefsson.org>
26428 md2: clarify comments to say that alignment is not required.
26429 * lib/md2.h: Remove warning about alignment in comment.
26430 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26431 never been required.
26433 2008-01-31 Simon Josefsson <simon@josefsson.org>
26435 md4: adapt alignment constraint fix from sha1.
26436 * lib/md4.c (set_uint32): New function, from sha1.c
26437 (md4_read_ctx): Use it.
26438 (md4_finish_ctx): Doc fix.
26439 * lib/md4.h: Doc fix.
26441 2008-01-31 Simon Josefsson <simon@josefsson.org>
26443 md5: adapt alignment constraint fix from sha1.
26444 * lib/md5.c (set_uint32): New function, from sha1.c
26445 (md5_read_ctx): Use it.
26446 (md5_finish_ctx): Doc fix.
26447 * lib/md5.h: Doc fix.
26449 2008-01-30 Peter Palfrader <weasel@debian.org>
26451 sha1: remove the result buffer alignment constraint
26452 * lib/sha1.c (set_uint32): New function.
26453 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26455 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26456 * lib/sha1.h: Likewise.
26458 2008-01-30 Andreas Schwab <schwab@suse.de>
26459 Bruno Haible <bruno@clisp.org>
26461 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26462 correct definition of LDBL_MIN_EXP.
26464 2008-01-30 Karl Berry <karl@gnu.org>
26466 * config/srclist-update: try to preserve x bit on updates.
26467 * config/srclistvars.sh: update for karl.
26469 2008-01-29 Jim Meyering <meyering@redhat.com>
26471 vasnprintf.c: Avoid warning about unused label
26472 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26473 "overflow" label definition and associated code with the
26474 same cpp condition that guards the sole use of that label.
26476 2008-01-26 Bruno Haible <bruno@clisp.org>
26478 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26479 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26480 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26481 * lib/isnanl-nolibm.h (isnanl): Likewise.
26482 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26484 2008-01-26 Bruno Haible <bruno@clisp.org>
26486 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26487 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26489 2008-01-26 Bruno Haible <bruno@clisp.org>
26491 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26492 GCC >= 4.0 built-in.
26493 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26495 2008-01-26 Bruno Haible <bruno@clisp.org>
26497 Rename isnan, applicable to 'double' only, to isnand.
26498 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26499 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26500 (configure.ac): Update.
26501 (Include): Replace "isnan.h" with "isnand.h".
26502 * m4/isnand.m4: Renamed from m4/isnan.m4.
26503 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26504 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26505 instead of isnan.c.
26506 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26507 instead of HAVE_ISNAN_IN_LIBC.
26508 (isnand): Renamed from isnan.
26509 * lib/isnand.c: New file.
26510 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26511 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26512 (Makefile.am): Update.
26513 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26514 Include isnand.h instead of isnan.h.
26515 (main): Test isnand instead of isnan.
26516 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26518 * modules/frexp (Depends-on): Likewise.
26519 * modules/frexp-tests (Depends-on): Likewise.
26520 * modules/frexp-nolibm (Depends-on): Likewise.
26521 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26522 * modules/isfinite (Depends-on): Likewise.
26523 * modules/round-tests (Depends-on): Likewise.
26524 * modules/signbit (Depends-on): Likewise.
26525 * modules/signbit-tests (Depends-on): Likewise.
26526 * modules/snprintf-posix (Depends-on): Likewise.
26527 * modules/sprintf-posix (Depends-on): Likewise.
26528 * modules/trunc-tests (Depends-on): Likewise.
26529 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26530 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26531 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26532 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26533 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26534 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26535 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26536 * modules/vasnprintf-posix (Depends-on): Likewise.
26537 * modules/vasprintf-posix (Depends-on): Likewise.
26538 * modules/vfprintf-posix (Depends-on): Likewise.
26539 * modules/vsnprintf-posix (Depends-on): Likewise.
26540 * modules/vsprintf-posix (Depends-on): Likewise.
26541 * lib/frexp.c: Include isnand.h instead of isnan.h.
26542 (ISNAN): Set to isnand instead of isnan.
26543 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26544 (gl_isfinited): Use isnand instead of isnan.
26545 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26546 (gl_signbitd): Use isnand instead of isnan.
26547 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26548 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26549 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26550 (main): Use isnand instead of isnan.
26551 * tests/test-round1.c: Include isnand.h.
26552 (main): Use isnand instead of isnan.
26553 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26554 (ISNAN): Set to isnand instead of isnan.
26555 * tests/test-trunc1.c: Include isnand.h.
26556 (main): Use isnand instead of isnan.
26557 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26558 (equal): Use isnand instead of isnan.
26559 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26561 * NEWS: Mention the change.
26563 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26564 Bruno Haible <bruno@clisp.org>
26566 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26567 the GCC builtins for signbits are present and set
26568 REPLACE_SIGNBIT_USING_GCC if so.
26569 * lib/math.in.h (signbit): Define using GCC builtins if
26570 REPLACE_SIGNBIT_USING_GCC is set.
26571 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26572 REPLACE_SIGNBIT_USING_GCC.
26573 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26575 2008-01-25 Jim Meyering <meyering@redhat.com>
26577 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26578 * lib/poll.c: Include <config.h>, not "config.h".
26579 * tests/test-getaddrinfo.c: Likewise.
26581 2008-01-25 Simon Josefsson <simon@josefsson.org>
26583 * modules/sockets-tests: New file.
26585 2008-01-24 Simon Josefsson <simon@josefsson.org>
26587 * modules/sockets: New module, can be used to call WSA_Startup and
26588 WSA_Cleanup when needed.
26590 * lib/sockets.h, lib/sockets.c: New files.
26592 * m4/sockets.m4: New file.
26594 * tests/test-sockets.c: New file.
26596 2008-01-19 Bruno Haible <bruno@clisp.org>
26598 * doc/posix-headers: Renamed from doc/headers.
26599 * doc/posix-functions: Renamed from doc/functions.
26600 * doc/gnulib.texi: Update.
26602 2008-01-19 Bruno Haible <bruno@clisp.org>
26604 * doc/glibc-functions/strcasestr.texi: Include contents of
26605 doc/functions/strcasestr.texi, fixing the list of platforms.
26606 * doc/functions/strcasestr.texi: Remove file.
26608 2008-01-19 Bruno Haible <bruno@clisp.org>
26610 * doc/glibc-functions/memmem.texi: Include contents of
26611 doc/functions/memmem.texi.
26612 * doc/functions/memmem.texi: Remove file.
26614 2008-01-18 Bruno Haible <bruno@clisp.org>
26616 * doc/glibc-functions/*.texi: New files.
26617 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26618 to use the new files.
26620 2008-01-17 Bruno Haible <bruno@clisp.org>
26622 * tests/test-gethostname.c (main): Fix printf statement.
26624 2008-01-17 Simon Josefsson <simon@josefsson.org>
26626 * modules/gethostname-tests: New file.
26628 * tests/test-gethostname.c: New file.
26630 2008-01-17 Simon Josefsson <simon@josefsson.org>
26632 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26633 used by the UNAME case. Reported by Bruno Haible
26636 2008-01-17 Eric Blake <ebb9@byu.net>
26638 Convert c-strcasestr to be more efficient.
26639 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26640 (Depends-on): Add c-strcase, remove malloca, strnlen.
26641 * tests/test-c-strcasestr.c (main): Enhance test.
26642 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26644 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26646 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26647 Use it in creating po/Makevars.
26649 2008-01-15 Simon Josefsson <simon@josefsson.org>
26651 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26652 Applications that requires it should initialize libgcrypt
26655 2008-01-16 Simon Josefsson <simon@josefsson.org>
26657 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26659 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26661 Fix problem with getdate on mingw32 reported by Simon Josefsson
26662 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26663 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26664 tzname", when deciding whether to declare tzname.
26665 * lib/strftime.c (tzname): Likewise.
26667 2008-01-15 Bruno Haible <bruno@clisp.org>
26669 Work around a MacOS X 10.5 bug in frexpl().
26670 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26671 * doc/functions/frexpl.texi: Document the bug.
26672 Reported by Elias Pipping <pipping@gentoo.org>.
26674 2008-01-14 Eric Blake <ebb9@byu.net>
26676 Touch up previous patch.
26677 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26678 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26680 Convert strcasestr module to use Two-Way algorithm.
26681 * modules/strcasestr-simple: New module, based on the old
26682 strcasestr, but with Two-Way rather than KMP.
26683 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26684 * lib/string.in.h (rpl_strcasestr): Declare.
26685 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26687 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26688 * modules/string (Makefile.am): Support strcasestr.
26689 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26690 * modules/strcasestr-tests (Depends-on): Check for alarm.
26691 * tests/test-strcasestr.c: Augment test.
26692 * lib/str-two-way.h: Clean up stray macro.
26693 * NEWS: Document new module.
26694 * MODULES.html.sh (string handling): Likewise.
26695 * doc/functions/strcasestr.texi: New file.
26696 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26697 here, since it is not a POSIX function.
26699 2008-01-14 Colin Watson <cjwatson@debian.org>
26700 Bruno Haible <bruno@clisp.org>
26702 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26703 works fine; if not, set REPLACE_STRSIGNAL.
26704 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26705 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26707 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26708 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26709 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26711 2008-01-14 Bruno Haible <bruno@clisp.org>
26713 * modules/strsignal (Include): Change to <string.h>.
26715 2008-01-14 Colin Watson <cjwatson@debian.org>
26717 * modules/argp (Notice): Add a notice recommending to change
26719 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26721 2008-01-13 Colin Watson <cjwatson@debian.org>
26723 * modules/strsignal-tests: New file.
26724 * tests/test-strsignal.c: New file.
26726 * lib/strsignal.c: New file, from glibc with modifications.
26727 * lib/siglist.h: New file, from glibc with modifications.
26728 * lib/string.in.h (strsignal): New declaration.
26729 * m4/strsignal.m4: New file.
26730 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26731 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26732 * modules/strsignal: New file.
26733 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26734 HAVE_DECL_STRSIGNAL.
26736 2008-01-13 Bruno Haible <bruno@clisp.org>
26738 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26739 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26740 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26741 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26743 2008-01-13 Bruno Haible <bruno@clisp.org>
26745 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26746 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26747 * lib/argp.h (__attribute__): Likewise.
26748 * lib/c-stack.c (__attribute__): Likewise.
26749 * lib/error.h (__attribute__): Likewise.
26750 * lib/fts.c (__attribute__): Likewise.
26751 * lib/openat.h (__attribute__): Likewise.
26752 * lib/stdio.in.h (__attribute__): Likewise.
26753 * lib/string.in.h (__attribute__): Likewise.
26754 * lib/utimens.c (__attribute__): Likewise.
26755 * lib/vasnprintf.h (__attribute__): Likewise.
26756 * lib/xalloc.h (__attribute__): Likewise.
26757 * lib/xprintf.h (__attribute__): Likewise.
26758 * lib/xstrtol.h (__attribute__): Likewise.
26759 * lib/xvasprintf.h (__attribute__): Likewise.
26761 2008-01-12 Bruno Haible <bruno@clisp.org>
26763 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26764 * doc/glibc-headers/a.out.texi: New file.
26765 * doc/glibc-headers/aliases.texi: New file.
26766 * doc/glibc-headers/alloca.texi: New file.
26767 * doc/glibc-headers/ar.texi: New file.
26768 * doc/glibc-headers/argp.texi: New file.
26769 * doc/glibc-headers/argz.texi: New file.
26770 * doc/glibc-headers/byteswap.texi: New file.
26771 * doc/glibc-headers/crypt.texi: New file.
26772 * doc/glibc-headers/endian.texi: New file.
26773 * doc/glibc-headers/envz.texi: New file.
26774 * doc/glibc-headers/err.texi: New file.
26775 * doc/glibc-headers/error.texi: New file.
26776 * doc/glibc-headers/execinfo.texi: New file.
26777 * doc/glibc-headers/fpu_control.texi: New file.
26778 * doc/glibc-headers/fstab.texi: New file.
26779 * doc/glibc-headers/fts.texi: New file.
26780 * doc/glibc-headers/getopt.texi: New file.
26781 * doc/glibc-headers/ieee754.texi: New file.
26782 * doc/glibc-headers/ifaddrs.texi: New file.
26783 * doc/glibc-headers/libintl.texi: New file.
26784 * doc/glibc-headers/mcheck.texi: New file.
26785 * doc/glibc-headers/mntent.texi: New file.
26786 * doc/glibc-headers/obstack.texi: New file.
26787 * doc/glibc-headers/paths.texi: New file.
26788 * doc/glibc-headers/printf.texi: New file.
26789 * doc/glibc-headers/pty.texi: New file.
26790 * doc/glibc-headers/resolv.texi: New file.
26791 * doc/glibc-headers/shadow.texi: New file.
26792 * doc/glibc-headers/sysexits.texi: New file.
26793 * doc/glibc-headers/ttyent.texi: New file.
26795 2008-01-12 Jim Meyering <meyering@redhat.com>
26797 announce-gen: emit Gnulib's git-based version string.
26798 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26799 New option --gnulib-version=V, where V is expected to be
26800 the output of running git describe in the gnulib directory.
26801 (get_tool_versions): Request feedback on xdelta. I suspect it's
26802 not useful, and plan to stop publishing an xdelta file with each
26805 * build-aux/announce-gen: Also check for lzma-compressed files.
26807 2008-01-11 Bruno Haible <bruno@clisp.org>
26809 * tests/test-memmem.c (main): Increase maximum allowed time.
26810 * tests/test-strstr.c (main): Likewise.
26812 2008-01-11 Bruno Haible <bruno@clisp.org>
26814 * doc/functions/memmem.texi: Add more precisions about platforms.
26815 * doc/functions/strstr.texi: Likewise.
26817 2008-01-10 Eric Blake <ebb9@byu.net>
26819 * m4/strstr.m4: Delete cruft from copy-n-paste.
26820 Reported by Bruno Haible.
26822 2008-01-10 Bruno Haible <bruno@clisp.org>
26824 Make c-strstr rely on strstr.
26825 * lib/c-strstr.c: Don't include str-kmp.h.
26826 (c_strstr): Define in terms of strstr.
26827 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26828 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26830 2008-01-10 Bruno Haible <bruno@clisp.org>
26832 * doc/gnulib.texi (String Functions in C Locale): New section.
26833 * doc/c-ctype.texi: New file.
26834 * doc/c-strcase.texi: New file.
26835 * doc/c-strcaseeq.texi: New file.
26836 * doc/c-strcasestr.texi: New file.
26837 * doc/c-strstr.texi: New file.
26838 * doc/c-strtod.texi: New file.
26839 * doc/c-strtold.texi: New file.
26841 2008-01-10 Eric Blake <ebb9@byu.net>
26843 * lib/relocatable.h: Fix a comment.
26845 2008-01-10 Eric Blake <ebb9@byu.net>
26847 Share two-way algorithm.
26848 * lib/str-two-way.h: New file, merged from...
26849 * lib/memmem.c: ...here...
26850 * lib/strstr.c: ...and here.
26851 * modules/memmem (Files): Use it.
26852 * modules/strstr (Files): Likewise.
26854 Avoid quadratic strstr implementations.
26855 * lib/strstr.c: New file.
26856 * m4/strstr.m4: Likewise.
26857 * modules/strstr: Likewise.
26858 * modules/strstr-tests: Likewise.
26859 * tests/test-strstr.c: Likewise.
26860 * lib/string.in.h (rpl_strstr): Declare.
26861 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26862 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26863 * modules/string (Makefile.am): Likewise.
26864 * MODULES.html.sh (string handling): Mention new module.
26865 * doc/functions/strstr.texi (strstr): Document the bug.
26867 2008-01-10 Bruno Haible <bruno@clisp.org>
26869 * lib/relocatable.h (relocate): State whether result is freshly
26871 * lib/relocatable.c (relocate): Return a freshly allocated string
26872 instead of a pointer to a privately held string.
26873 Reported by Sylvain Beucler <beuc@gnu.org>.
26875 2008-01-10 Colin Watson <cjwatson@debian.org>
26877 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26878 s/S_ISNLK/S_ISLNK/.
26880 2008-01-09 Bruno Haible <bruno@clisp.org>
26882 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26884 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26885 if it's only a guess.
26886 * modules/memmem: Simplify by depending on memmem-simple.
26888 2008-01-09 Bruno Haible <bruno@clisp.org>
26890 Work around OpenBSD 4.0 tdelete() bug.
26891 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26892 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26893 macros and don't redefine the enum values.
26894 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26895 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26896 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26898 2008-01-09 Bruno Haible <bruno@clisp.org>
26900 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26901 (main): Don't perform the tests if setlocale did not install a UTF-8
26902 locale. Needed on OpenBSD 4.0.
26903 * modules/wcwidth-tests (Depends-on): Add localcharset.
26905 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26907 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26908 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26909 * NEWS: announce this.
26910 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26912 2008-01-09 Simon Josefsson <simon@josefsson.org>
26913 and Eric Blake <ebb9@byu.net>
26915 Add memmem-simple module.
26916 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26917 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26918 * modules/memmem-simple: New file.
26919 * modules/memmem (Description): Tweak.
26920 * MODULES.html.sh (string handling): Mention new module.
26921 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26922 addressed by memmem-simple.
26923 * NEWS: Document the difference.
26925 2008-01-09 Eric Blake <ebb9@byu.net>
26927 Give gcc some memmem optimization hints.
26928 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26929 (strcasestr): Declare as pure.
26930 * modules/memmem (Maintainer): Claim my implementation.
26932 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26934 Support AIX 6.1 and higher.
26935 * build-aux/config.libpath: Likewise.
26936 * build-aux/config.rpath: Likewise.
26938 2008-01-08 Jim Meyering <meyering@redhat.com>
26939 Bruno Haible <bruno@clisp.org>
26941 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26942 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26943 Reported by Peter Fales in
26944 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26946 2008-01-08 Bruno Haible <bruno@clisp.org>
26948 * modules/unictype/category-of (Depends-on): Add
26949 unictype/category-none.
26950 * modules/unictype/category-and-tests (Depends-on): Add
26951 unictype/category-{L,N,Lu,Nd}.
26952 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26953 * modules/unictype/category-or-tests (Depends-on): Add
26954 unictype/category-{L,N}.
26955 * modules/unictype/category-name-tests (Depends-on): Add
26956 unictype/category-{Z,Nl}.
26957 Reported by Simon Josefsson.
26959 2008-01-08 Bruno Haible <bruno@clisp.org>
26961 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26963 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26964 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26965 Reported by Peter Miller <millerp@canb.auug.org.au>.
26967 2008-01-08 Eric Blake <ebb9@byu.net>
26969 Rewrite memmem to guarantee linear complexity without malloc.
26970 * lib/memmem.c (memmem): Use Two-Way rather than
26971 Knuth-Morris-Pratt, to allow O(1) space usage.
26972 (critical_factorization, two_way_short_needle)
26973 (two_way_long_needle): New functions.
26974 (knuth_morris_pratt): Delete.
26975 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26977 * tests/test-memmem.c (main): Add tests for periodic needle and
26978 sublinear performance.
26979 * doc/functions/memmem.texi (memmem): Document other deficiencies
26980 in cygwin and older glibc.
26982 2008-01-08 Bruno Haible <bruno@clisp.org>
26984 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26987 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26989 Add a configure time option: --disable-acl.
26990 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26991 AC_ARG_ENABLE(acl).
26993 2008-01-06 Simon Josefsson <simon@josefsson.org>
26995 * tests/test-localename.c: Don't include obsolete "setenv.h".
26997 * modules/localename-tests (Depends-on): Need unsetenv.
26999 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27001 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27003 2008-01-06 Colin Watson <cjwatson@debian.org>
27005 * users.txt: Add man-db.
27007 2008-01-07 Bruno Haible <bruno@clisp.org>
27009 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27010 previous section name.
27012 2008-01-07 Bruno Haible <bruno@clisp.org>
27014 * lib/progname.c (set_program_name): Don't strip off a leading
27015 "lt-" prefix outside a .libs directory.
27016 Suggested by Paul Eggert.
27018 2008-01-01 Sylvain Beucler <beuc@gnu.org>
27019 Bruno Haible <bruno@clisp.org>
27021 Improve memory cleanup in 'relocatable' module.
27022 * lib/relocatable.h (compute_curr_prefix): Change return type to
27024 * lib/relocatable.c (compute_curr_prefix): Change return type to
27025 'char *'. Free curr_installdir after use.
27026 (relocate): Free curr_prefix_better after use.
27027 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27029 2008-01-01 Bruno Haible <bruno@clisp.org>
27031 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27032 failure on older glibc systems.
27033 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27035 2008-01-05 Eric Blake <ebb9@byu.net>
27037 Avoid quadratic system memmem.
27038 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27039 Reported by Ralf Wildenhues.
27041 Fix memmem test for mingw.
27042 * modules/memmem-tests (configure.ac): Check for alarm.
27043 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27045 * doc/functions/memmem.texi: New file.
27046 * doc/gnulib.texi (Function Substitutes): Add memmem.
27047 Reported by Bruno Haible.
27049 2008-01-04 Bruno Haible <bruno@clisp.org>
27051 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27052 Require gl_HEADER_STRINGS_H_DEFAULTS, not
27053 gl_HEADER_STRING_H_DEFAULTS.
27055 2008-01-04 Eric Blake <ebb9@byu.net>
27057 Shorten duration of memmem test.
27058 * tests/test-memmem.c (main): Use alarm to declare failure if test
27059 is taking too long.
27060 Reported by Ralf Wildenhues.
27062 2007-12-21 Simon Josefsson <simon@josefsson.org>
27064 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27065 string, needed by strerror.
27067 2008-01-03 Colin Watson <cjwatson@debian.org>
27068 Bruno Haible <bruno@clisp.org>
27070 * doc/gnulib-tool.texi (Localization): New section.
27072 2008-01-02 Bruno Haible <bruno@clisp.org>
27074 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27075 variables to 'unsigned char *' type.
27076 Reported by Paul Eggert.
27078 2008-01-02 Jim Meyering <jim@meyering.net>
27080 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27082 2007-12-31 Jim Meyering <jim@meyering.net>
27084 Avoid use of private FTS type name.
27085 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27087 2007-12-30 Karl Berry <karl@gnu.org>
27089 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27090 work around defect in Texinfo and/or the standalone Info browser.
27092 2007-12-30 Bruno Haible <bruno@clisp.org>
27094 Unify 5 copies of the KMP code.
27095 * lib/str-kmp.h: New file.
27096 * lib/c-strcasestr.c: Include str-kmp.h.
27097 (knuth_morris_pratt): Remove function.
27098 (c_strcasestr): Update.
27099 * lib/c-strstr.c: Include str-kmp.h.
27100 (knuth_morris_pratt): Remove function.
27101 (c_strcasestr): Update.
27102 * lib/mbscasestr.c: Include str-kmp.h.
27103 (knuth_morris_pratt_unibyte): Remove function.
27104 * lib/mbsstr.c: Include str-kmp.h.
27105 (knuth_morris_pratt_unibyte): Remove function.
27106 * lib/strcasestr.c: Include str-kmp.h.
27107 (knuth_morris_pratt): Remove function.
27108 (strcasestr): Update.
27109 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27110 * modules/c-strstr (Files): Likewise.
27111 * modules/mbscasestr (Files): Likewise.
27112 * modules/mbsstr (Files): Likewise.
27113 * modules/strcasestr (Files): Likewise.
27114 Suggested by Paul Eggert.
27116 2007-12-30 Bruno Haible <bruno@clisp.org>
27118 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27121 2007-12-30 Bruno Haible <bruno@clisp.org>
27123 * lib/xmalloca.h: Include xalloc.h.
27124 (xnmalloca): New macro.
27126 2007-12-30 Bruno Haible <bruno@clisp.org>
27128 * lib/malloca.h (nmalloca): New macro.
27129 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27130 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27131 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27132 knuth_morris_pratt_multibyte): Likewise.
27133 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27134 knuth_morris_pratt_multibyte): Likewise.
27135 * lib/memmem.c (knuth_morris_pratt): Likewise.
27136 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27138 2007-12-25 Bruno Haible <bruno@clisp.org>
27140 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27141 * lib/glob.c: Don't include openat.h.
27142 (link_exists2_p): Add back the code that deals with the
27143 !GLOB_ALTDIRFUNC case.
27144 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27145 let it do the filename concatenation.
27146 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27147 * modules/glob (Depends-on): Remove openat.
27149 2007-12-31 Bruno Haible <bruno@clisp.org>
27151 * modules/dirfd (License): Change to LGPLv2+.
27152 Approved by Jim Meyering.
27154 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27156 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27157 when multiplying M by sizeof (size_t).
27159 2007-12-10 Martin Lambers <marlam@marlam.de>
27161 Override getpagesize on mingw.
27162 * lib/getpagesize.c: New file.
27163 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27164 * modules/getpagesize (Files): Add lib/getpagesize.c.
27165 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27166 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27167 REPLACE_GETPAGESIZE.
27168 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27170 2007-12-25 Bruno Haible <bruno@clisp.org>
27172 * modules/localcharset (Notice): New field.
27173 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27174 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27176 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27177 Bruno Haible <bruno@clisp.org>
27179 Avoid using the syntax symbol() in formatted documentation.
27180 * MODULES.html.sh (func_module): When replacing symbol() with a
27181 hyperlink, remove the parentheses. Show an error if some remain.
27182 Recognize and render the '...' syntax.
27183 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27184 Rework. Add paragraph about GCC's inlining.
27185 * doc/alloca.texi: Likewise.
27186 * doc/error.texi: Remove parentheses from symbol reference.
27187 * doc/gnulib-intro.texi: Likewise.
27188 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27189 * modules/fnmatch (Description): Reword to say "the ... function".
27190 * modules/full-read (Description): Likewise.
27191 * modules/full-write (Description): Likewise.
27192 * modules/safe-read (Description): Likewise.
27193 * modules/safe-write (Description): Likewise.
27194 * modules/strchrnul (Description): Likewise.
27195 * modules/trim (Description): Likewise.
27196 * modules/error (Description): Remove parentheses from symbol
27198 * modules/verror (Description): Likewise.
27199 Reported by Karl Berry.
27201 2007-12-25 Bruno Haible <bruno@clisp.org>
27203 Fixup after 2007-10-16 commit.
27204 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27206 2007-12-24 Bruno Haible <bruno@clisp.org>
27208 Make --enable-relocatable work with DESTDIR.
27209 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27210 to compute installdir from destprog.
27211 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27212 also set the RELOC_DESTDIR variable.
27213 Reported by Левашев Иван <octagram@bluebottle.com>.
27215 2007-12-24 Bruno Haible <bruno@clisp.org>
27217 Fix link error due to xalloc_die().
27218 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27220 * lib/relocwrapper.c: Update comments.
27221 * build-aux/install-reloc: Remove xreadlink.c from file list.
27222 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27224 Reported by Левашев Иван <octagram@bluebottle.com>.
27226 2007-12-24 Bruno Haible <bruno@clisp.org>
27228 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27229 * lib/setenv.h: Remove file.
27230 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27232 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27233 (Depends-on): Add stdlib.
27234 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27236 (Include): Replace setenv.h with <stdlib.h>.
27237 * modules/unsetenv: New file.
27238 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27239 * lib/unsetenv.c: Include <stdlib.h> first.
27240 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27241 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27242 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27243 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27244 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27245 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27246 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27247 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27248 * doc/functions/unsetenv.texi: Update.
27249 * modules/xsetenv (Depends-on): Add unsetenv.
27250 * modules/getdate (Depends-on): Likewise.
27251 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27252 * lib/xsetenv.c: Don't include setenv.h.
27253 * lib/getdate.y: Likewise.
27254 * lib/relocwrapper.c: Likewise.
27255 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27256 (Depends-on): Add stdlib.
27257 * NEWS: Mention the changes.
27258 Reported by Левашев Иван <octagram@bluebottle.com>.
27260 2007-12-23 Bruno Haible <bruno@clisp.org>
27262 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27265 2007-12-23 Bruno Haible <bruno@clisp.org>
27267 * lib/c-strcasestr.c: Add more comments.
27268 * lib/c-strstr.c: Likewise.
27269 * lib/mbscasestr.c: Likewise.
27270 * lib/mbsstr.c: Likewise.
27271 * lib/strcasestr.c: Likewise.
27272 * lib/memmem.c: Likewise.
27274 2007-12-23 Bruno Haible <bruno@clisp.org>
27276 * tests/test-memmem.c: Include <string.h> first.
27278 2007-12-22 Bruno Haible <bruno@clisp.org>
27280 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27281 the contents of $testsbase.
27282 Reported by Ralf Wildenhues.
27284 2007-12-22 Bruno Haible <bruno@clisp.org>
27286 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27287 two variables local_ldadd_before, local_ldadd_last.
27289 2007-12-20 Eric Blake <ebb9@byu.net>
27291 Work around circular library issue when cross-compiling.
27292 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27293 that progname.o does not need to pull in rpl_memcmp.
27295 2007-12-19 Eric Blake <ebb9@byu.net>
27297 Fix memmem to avoid O(n^2) worst-case complexity.
27298 * lib/memmem.c (knuth_morris_pratt): New function.
27299 (memmem): Use it if first few naive iterations fail.
27300 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27301 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27302 * modules/memchr (License): Likewise.
27303 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27305 * tests/test-memmem.c: Rewrite, borrowing ideas from
27306 test-mbsstr1.c; the old version wouldn't even compile!
27307 * modules/memmem-tests: New file.
27308 * lib/string.in.h (rpl_memmem): Add declaration.
27309 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27310 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27313 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27315 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27316 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27317 before any system include files, and undef after them all. This
27318 should fix a problem on VMS reported by John E. Malmberg in
27319 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27321 2007-12-17 Eric Blake <ebb9@byu.net>
27323 Revert addition of verify, for BSD/OS.
27324 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27325 can't handle large files, for the sake of obsolete platforms.
27326 * modules/fseeko (Depends-on): Remove verify.
27327 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27328 * doc/functions/ftello.texi (ftello): Likewise.
27329 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27330 Reported by Larry Jones.
27332 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27334 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27335 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27337 2007-12-17 Jim Meyering <meyering@redhat.com>
27339 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27340 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27341 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27342 * modules/getcwd (Depends-on): Add openat.
27343 Reported by Petr Salinger.
27345 2007-12-17 Bruno Haible <bruno@clisp.org>
27347 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27348 avoid a segmentation fault of the configure test on x86_64 systems.
27350 2007-12-15 Jim Meyering <meyering@redhat.com>
27352 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27354 2007-12-13 Eric Blake <ebb9@byu.net>
27356 Another fseek test.
27357 * tests/test-fseek.c (main): Also test ungetc handling.
27358 * tests/test-fseeko.c (main): Likewise.
27359 * modules/fseeko (Depends-on): Add verify.
27360 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27362 Reported by Larry Jones.
27364 Fix fseeko on mingw.
27365 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27368 Beef up fseek tests.
27369 * tests/test-fseek.c (main): Also test eof handling.
27370 * tests/test-fseeko.c (main): Likewise.
27371 Reported by Larry Jones.
27373 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27375 Fix fseeko on BSD-based platforms.
27376 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27379 2007-12-12 Eric Blake <ebb9@byu.net>
27381 Allow circular dependency of separate libtests.a
27382 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27385 2007-12-11 Eric Blake <ebb9@byu.net>
27387 Fix bug with -0.0L in previous patch.
27388 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27389 * tests/test-isnan.c (main): Also test on zeroes.
27390 * tests/test-isnanf.c (main): Likewise.
27391 * tests/test-isnanl.h (main): Likewise.
27393 Detect pseudo-denormals on x86 even when cross-compiling.
27394 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27395 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27396 invalid bit patterns that happen to satisfy ==.
27398 Avoid link failures with separate libtests.a.
27399 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27400 last, to satisfy circular dependencies.
27402 2007-12-11 Eric Blake <ebb9@byu.net>
27403 and Bruno Haible <bruno@clisp.org>
27405 Fix OpenBSD 4.0 <float.h> handling of long double.
27406 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27407 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27408 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27410 2007-12-11 Jim Meyering <meyering@redhat.com>
27412 * users.txt: Add libvirt.
27414 Support versions of autoconf prior to 2.59c.
27415 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27416 if it is not already defined.
27418 2007-12-09 Bruno Haible <bruno@clisp.org>
27420 Let 'gnulib-tool --import' collect sources needed for the tests in
27421 tests/ rather than in lib/.
27422 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27423 argument. If true, add rules to generate libtests.a, and put libtests.a
27424 into $(LDADD). Consider source files in subdirectories and set
27426 (func_emit_initmacro_start, func_emit_initmacro_end,
27427 func_emit_initmacro_done): Pass all arguments explicitly.
27428 (func_import): Determine two module lists main_modules,
27429 testsrelated_modules. Determine use_libtests. Determine two variables
27430 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27431 instead of just sed_transform_lib_file. Determine two variables
27432 main_files and testsrelated_files. Compute 'files' as the union of
27433 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27434 func_add_or_update. In the generated gnulib-comp.m4, collect the
27435 object files for tests/ in different variables than those for lib/.
27436 Substitute LIBTESTS_LIBDEPS.
27437 (func_create_testdir): Combine the uses_subdirs results from
27438 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27440 2007-12-09 Bruno Haible <bruno@clisp.org>
27442 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27443 the build-aux directory.
27445 2007-12-09 Bruno Haible <bruno@clisp.org>
27447 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27448 introduced on 2006-09-09.
27450 2007-12-07 Jim Meyering <meyering@redhat.com>
27452 Let these macros work also with autoconf-2.59.
27453 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27454 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27455 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27457 2007-12-06 Jim Meyering <meyering@redhat.com>
27459 Avoid a configure-time syntax error in gl_FUNC_ACL.
27460 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27461 function in each branch, before testing the cache variable.
27463 2007-12-04 Eric Blake <ebb9@byu.net>
27465 Make scripts executable.
27466 * build-aux/config.guess: Add execute permissions.
27467 * build-aux/config.sub: Likewise.
27468 * build-aux/gendocs.sh: Likewise.
27470 Fix frexp on mingw.
27471 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27473 * doc/functions/frexp.texi (frexp): Document the bug.
27475 Make cygwin fseeko check more reliable.
27476 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27477 version numbers, rather than unrelated feature check.
27478 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27479 * doc/functions/ftello.texi (ftello): Likewise.
27480 Reported by Bruno Haible.
27482 * m4/strerror.m4: Bump version number.
27484 2007-12-03 Bruno Haible <bruno@clisp.org>
27486 * doc/functions/mprotect.texi: Mention the mingw problem.
27488 2007-12-03 Eric Blake <ebb9@byu.net>
27490 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27491 REPLACE_STRERROR is initialized before this macro.
27493 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27495 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27496 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27497 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27498 put -lsec in even for programs other than 'ls'. This fixes a problem
27499 for gettext reported by Bruno Haible in
27500 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27501 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27502 Add support for Solaris 10. This isn't efficient, but should get the
27505 2007-12-03 James Youngman <jay@gnu.org>
27507 * doc/regexprops-generic.texi: change "an close-group" to "a
27508 close-group" and "illegal" to "not allowed".
27510 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27512 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27513 pr_byname.h. Needed for the rare case when the maintainer has done
27514 "make maintainer-clean" in the source directory and then attempts a
27515 build outside the source directory.
27516 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27519 2007-12-02 Martin Lambers <marlam@marlam.de>
27520 Bruno Haible <bruno@clisp.org>
27522 * lib/getpagesize.h: Remove file.
27523 * lib/unistd.in.h: Include declaration of getpagesize here.
27524 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27525 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27527 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27528 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27529 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27530 (Depends-on): Add unistd.
27531 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27532 (Include): Use <unistd.h> instead of getpagesize.h.
27533 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27534 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27535 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27536 gl_GETPAGESIZE invocation, already handled by module dependency.
27537 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27539 2007-12-02 Bruno Haible <bruno@clisp.org>
27541 * modules/strings-tests: New file.
27542 * tests/test-strings.c: New file.
27544 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27545 * lib/strings.in.h: New file.
27546 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27547 * m4/strings_h.m4: New file.
27548 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27549 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27550 * modules/strings: New file.
27551 * modules/string (Makefile.am): Update.
27552 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27553 Reported by Karl Berry.
27555 2007-12-01 Eric Blake <ebb9@byu.net>
27557 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27558 accomodate fix in cygwin 1.5.25.
27560 2007-12-01 Jim Meyering <meyering@redhat.com>
27562 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27563 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27564 that would inhibit utf8-optimization of a regexp containing line-
27565 or buffer-anchors, e.g., `^', `$'.
27567 2007-11-30 Bruno Haible <bruno@clisp.org>
27569 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27570 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27571 glthread_recursive_lock_init.
27572 * lib/lock.c (glthread_recursive_lock_init)
27573 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27574 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27576 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27578 New function qset_acl, like set_acl but with syscall semantics.
27579 * lib/acl.h (qset_acl): New decl.
27580 * lib/acl.c (qset_acl): New function.
27581 (set_acl): Use new function. Use more-consistent diagnostics.
27583 2007-11-28 Jim Meyering <meyering@redhat.com>
27585 * modules/physmem (License): Change from GPL to LGPLv2+.
27587 2007-11-26 Bruno Haible <bruno@clisp.org>
27589 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27590 'long double' type has excess precision.
27591 Reported by Jim Meyering in
27592 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27594 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27596 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27597 Sync from <http://gnu.org/licenses>.
27598 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27599 with license text from same location.
27600 * doc/maintain.texi, doc/standards.texi: Sync from
27601 <http://savannah.gnu.org/projects/gnustandards>.
27603 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
27604 and Jim Meyering <meyering@redhat.com>
27606 Adjust getdate' grammar to accept a slightly more regular language.
27607 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27608 Before, the former was rejected.
27609 * lib/getdate.y (digits_to_date_time): New function, factored
27611 (number): ...here. Just call digits_to_date_time.
27612 (hybrid): New non-terminal to handle an <unsigned number,
27613 signed relative offset> sequence consistently.
27615 2007-11-18 Jim Meyering <meyering@redhat.com>
27617 Pull my changes from coreutils:
27618 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27619 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27620 use of $gnulib_tool_option_extras, so that it's separated from the
27621 preceding argument.
27623 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27624 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27625 parent destination directories before copying a file into place.
27627 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27629 bootstrap: work also with 4-argument variant of AC_INIT
27630 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27632 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27634 Port test-getaddrinfo to Solaris.
27635 Problem reported by Bruno Haible in
27636 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27637 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27638 explanation of setting 'hints'.
27639 Don't reject an implementation merely because it returns EAI_SERVICE.
27640 (EAI_SERVICE): Define to 0 if not defined.
27642 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27644 The license of gnu-make and posix-shell is now "GPLed build tool".
27645 * modules/gnu-make (License): Likewise.
27646 * modules/posix-shell (License): Likewise.
27648 New module posix-shell, for determining a POSIX shell
27649 or perhaps something that is close enough to a POSIX shell.
27650 * m4/posix-shell.m4: New file.
27651 * modules/posix-shell: New file.
27653 * MODULES.html.sh: Mention new module.
27655 New module gnu-make, for determining whether we're using GNU Make.
27656 * m4/gnu-make.m4: New file.
27657 * modules/gnu-make: New file.
27658 * MODULES.html.sh: Mention new module.
27660 2007-11-14 Jim Meyering <meyering@redhat.com>
27662 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27663 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27664 use this macro to create a function _definition_.
27665 Remove useless "#undef ARGMATCH_DIE".
27667 2007-11-14 Bruno Haible <bruno@clisp.org>
27669 * lib/config.charset: Update for OpenBSD 4.1.
27670 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27672 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27674 Document 64-bit #if problems in stdint.texi.
27675 * doc/headers/stdint.texi (stdint.h): Mention problems with
27676 64-bit-#if, and how to work around them.
27678 Don't insist on 'long long int' support in the preprocessor. It
27679 breaks too many things. For example, PRIdMAX still uses a 'long
27680 long int' format with the latest Sun compiler, even though
27681 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27682 preprocessor problem. This causes the latest coreutils to dump
27683 core on Solaris 10 sparc with the Sun C compiler.
27684 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27685 the troublesome expressions at configure-time, not at #if-time.
27686 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27688 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27689 compile-time C checks, done at 'configure'-time.
27690 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27691 * modules/inttypes (Makefile): Substitute the new symbols that
27692 gl_INTTYPES_H now generates.
27693 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27695 2007-11-12 Bruno Haible <bruno@clisp.org>
27697 Tests for Unicode character classification functions.
27699 * modules/unictype/bidicategory-byname-tests: New file.
27700 * modules/unictype/bidicategory-name-tests: New file.
27701 * modules/unictype/bidicategory-of-tests: New file.
27702 * modules/unictype/bidicategory-test-tests: New file.
27703 * modules/unictype/block-list-tests: New file.
27704 * modules/unictype/block-of-tests: New file.
27705 * modules/unictype/block-test-tests: New file.
27706 * modules/unictype/category-C-tests: New file.
27707 * modules/unictype/category-Cc-tests: New file.
27708 * modules/unictype/category-Cf-tests: New file.
27709 * modules/unictype/category-Cn-tests: New file.
27710 * modules/unictype/category-Co-tests: New file.
27711 * modules/unictype/category-Cs-tests: New file.
27712 * modules/unictype/category-L-tests: New file.
27713 * modules/unictype/category-Ll-tests: New file.
27714 * modules/unictype/category-Lm-tests: New file.
27715 * modules/unictype/category-Lo-tests: New file.
27716 * modules/unictype/category-Lt-tests: New file.
27717 * modules/unictype/category-Lu-tests: New file.
27718 * modules/unictype/category-M-tests: New file.
27719 * modules/unictype/category-Mc-tests: New file.
27720 * modules/unictype/category-Me-tests: New file.
27721 * modules/unictype/category-Mn-tests: New file.
27722 * modules/unictype/category-N-tests: New file.
27723 * modules/unictype/category-Nd-tests: New file.
27724 * modules/unictype/category-Nl-tests: New file.
27725 * modules/unictype/category-No-tests: New file.
27726 * modules/unictype/category-P-tests: New file.
27727 * modules/unictype/category-Pc-tests: New file.
27728 * modules/unictype/category-Pd-tests: New file.
27729 * modules/unictype/category-Pe-tests: New file.
27730 * modules/unictype/category-Pf-tests: New file.
27731 * modules/unictype/category-Pi-tests: New file.
27732 * modules/unictype/category-Po-tests: New file.
27733 * modules/unictype/category-Ps-tests: New file.
27734 * modules/unictype/category-S-tests: New file.
27735 * modules/unictype/category-Sc-tests: New file.
27736 * modules/unictype/category-Sk-tests: New file.
27737 * modules/unictype/category-Sm-tests: New file.
27738 * modules/unictype/category-So-tests: New file.
27739 * modules/unictype/category-Z-tests: New file.
27740 * modules/unictype/category-Zl-tests: New file.
27741 * modules/unictype/category-Zp-tests: New file.
27742 * modules/unictype/category-Zs-tests: New file.
27743 * modules/unictype/category-and-not-tests: New file.
27744 * modules/unictype/category-and-tests: New file.
27745 * modules/unictype/category-byname-tests: New file.
27746 * modules/unictype/category-name-tests: New file.
27747 * modules/unictype/category-none-tests: New file.
27748 * modules/unictype/category-of-tests: New file.
27749 * modules/unictype/category-or-tests: New file.
27750 * modules/unictype/category-test-withtable-tests: New file.
27751 * modules/unictype/combining-class-tests: New file.
27752 * modules/unictype/ctype-alnum-tests: New file.
27753 * modules/unictype/ctype-alpha-tests: New file.
27754 * modules/unictype/ctype-blank-tests: New file.
27755 * modules/unictype/ctype-cntrl-tests: New file.
27756 * modules/unictype/ctype-digit-tests: New file.
27757 * modules/unictype/ctype-graph-tests: New file.
27758 * modules/unictype/ctype-lower-tests: New file.
27759 * modules/unictype/ctype-print-tests: New file.
27760 * modules/unictype/ctype-punct-tests: New file.
27761 * modules/unictype/ctype-space-tests: New file.
27762 * modules/unictype/ctype-upper-tests: New file.
27763 * modules/unictype/ctype-xdigit-tests: New file.
27764 * modules/unictype/decimal-digit-tests: New file.
27765 * modules/unictype/digit-tests: New file.
27766 * modules/unictype/mirror-tests: New file.
27767 * modules/unictype/numeric-tests: New file.
27768 * modules/unictype/property-alphabetic-tests: New file.
27769 * modules/unictype/property-ascii-hex-digit-tests: New file.
27770 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27771 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27772 * modules/unictype/property-bidi-block-separator-tests: New file.
27773 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27774 * modules/unictype/property-bidi-common-separator-tests: New file.
27775 * modules/unictype/property-bidi-control-tests: New file.
27776 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27777 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27778 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27779 * modules/unictype/property-bidi-european-digit-tests: New file.
27780 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27781 * modules/unictype/property-bidi-left-to-right-tests: New file.
27782 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27783 * modules/unictype/property-bidi-other-neutral-tests: New file.
27784 * modules/unictype/property-bidi-pdf-tests: New file.
27785 * modules/unictype/property-bidi-segment-separator-tests: New file.
27786 * modules/unictype/property-bidi-whitespace-tests: New file.
27787 * modules/unictype/property-byname-tests: New file.
27788 * modules/unictype/property-combining-tests: New file.
27789 * modules/unictype/property-composite-tests: New file.
27790 * modules/unictype/property-currency-symbol-tests: New file.
27791 * modules/unictype/property-dash-tests: New file.
27792 * modules/unictype/property-decimal-digit-tests: New file.
27793 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27794 * modules/unictype/property-deprecated-tests: New file.
27795 * modules/unictype/property-diacritic-tests: New file.
27796 * modules/unictype/property-extender-tests: New file.
27797 * modules/unictype/property-format-control-tests: New file.
27798 * modules/unictype/property-grapheme-base-tests: New file.
27799 * modules/unictype/property-grapheme-extend-tests: New file.
27800 * modules/unictype/property-grapheme-link-tests: New file.
27801 * modules/unictype/property-hex-digit-tests: New file.
27802 * modules/unictype/property-hyphen-tests: New file.
27803 * modules/unictype/property-id-continue-tests: New file.
27804 * modules/unictype/property-id-start-tests: New file.
27805 * modules/unictype/property-ideographic-tests: New file.
27806 * modules/unictype/property-ids-binary-operator-tests: New file.
27807 * modules/unictype/property-ids-trinary-operator-tests: New file.
27808 * modules/unictype/property-ignorable-control-tests: New file.
27809 * modules/unictype/property-iso-control-tests: New file.
27810 * modules/unictype/property-join-control-tests: New file.
27811 * modules/unictype/property-left-of-pair-tests: New file.
27812 * modules/unictype/property-line-separator-tests: New file.
27813 * modules/unictype/property-logical-order-exception-tests: New file.
27814 * modules/unictype/property-lowercase-tests: New file.
27815 * modules/unictype/property-math-tests: New file.
27816 * modules/unictype/property-non-break-tests: New file.
27817 * modules/unictype/property-not-a-character-tests: New file.
27818 * modules/unictype/property-numeric-tests: New file.
27819 * modules/unictype/property-other-alphabetic-tests: New file.
27820 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27821 * modules/unictype/property-other-grapheme-extend-tests: New file.
27822 * modules/unictype/property-other-id-continue-tests: New file.
27823 * modules/unictype/property-other-id-start-tests: New file.
27824 * modules/unictype/property-other-lowercase-tests: New file.
27825 * modules/unictype/property-other-math-tests: New file.
27826 * modules/unictype/property-other-uppercase-tests: New file.
27827 * modules/unictype/property-paired-punctuation-tests: New file.
27828 * modules/unictype/property-paragraph-separator-tests: New file.
27829 * modules/unictype/property-pattern-syntax-tests: New file.
27830 * modules/unictype/property-pattern-white-space-tests: New file.
27831 * modules/unictype/property-private-use-tests: New file.
27832 * modules/unictype/property-punctuation-tests: New file.
27833 * modules/unictype/property-quotation-mark-tests: New file.
27834 * modules/unictype/property-radical-tests: New file.
27835 * modules/unictype/property-sentence-terminal-tests: New file.
27836 * modules/unictype/property-soft-dotted-tests: New file.
27837 * modules/unictype/property-space-tests: New file.
27838 * modules/unictype/property-terminal-punctuation-tests: New file.
27839 * modules/unictype/property-test-tests: New file.
27840 * modules/unictype/property-titlecase-tests: New file.
27841 * modules/unictype/property-unassigned-code-value-tests: New file.
27842 * modules/unictype/property-unified-ideograph-tests: New file.
27843 * modules/unictype/property-uppercase-tests: New file.
27844 * modules/unictype/property-variation-selector-tests: New file.
27845 * modules/unictype/property-white-space-tests: New file.
27846 * modules/unictype/property-xid-continue-tests: New file.
27847 * modules/unictype/property-xid-start-tests: New file.
27848 * modules/unictype/property-zero-width-tests: New file.
27849 * modules/unictype/scripts-tests: New file.
27850 * modules/unictype/syntax-c-ident-tests: New file.
27851 * modules/unictype/syntax-c-whitespace-tests: New file.
27852 * modules/unictype/syntax-java-ident-tests: New file.
27853 * modules/unictype/syntax-java-whitespace-tests: New file.
27854 * tests/unictype/test-bidi_byname.c: New file.
27855 * tests/unictype/test-bidi_name.c: New file.
27856 * tests/unictype/test-bidi_of.c: New file.
27857 * tests/unictype/test-bidi_test.c: New file.
27858 * tests/unictype/test-block_list.c: New file.
27859 * tests/unictype/test-block_of.c: New file.
27860 * tests/unictype/test-block_test.c: New file.
27861 * tests/unictype/test-categ_and.c: New file.
27862 * tests/unictype/test-categ_and_not.c: New file.
27863 * tests/unictype/test-categ_byname.c: New file.
27864 * tests/unictype/test-categ_name.c: New file.
27865 * tests/unictype/test-categ_none.c: New file.
27866 * tests/unictype/test-categ_of.c: New file.
27867 * tests/unictype/test-categ_or.c: New file.
27868 * tests/unictype/test-categ_test_withtable.c: New file.
27869 * tests/unictype/test-combining.c: New file.
27870 * tests/unictype/test-decdigit.c: New file.
27871 * tests/unictype/test-digit.c: New file.
27872 * tests/unictype/test-mirror.c: New file.
27873 * tests/unictype/test-numeric.c: New file.
27874 * tests/unictype/test-pr_byname.c: New file.
27875 * tests/unictype/test-pr_test.c: New file.
27876 * tests/unictype/test-predicate-part1.h: New file.
27877 * tests/unictype/test-predicate-part2.h: New file.
27878 * tests/unictype/test-scripts.c: New file.
27879 * tests/unictype/test-sy_c_ident.c: New file.
27880 * tests/unictype/test-sy_java_ident.c: New file.
27882 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27884 * tests/unictype/test-categ_Cc.c: Likewise.
27885 * tests/unictype/test-categ_Cf.c: Likewise.
27886 * tests/unictype/test-categ_Cn.c: Likewise.
27887 * tests/unictype/test-categ_Co.c: Likewise.
27888 * tests/unictype/test-categ_Cs.c: Likewise.
27889 * tests/unictype/test-categ_L.c: Likewise.
27890 * tests/unictype/test-categ_Ll.c: Likewise.
27891 * tests/unictype/test-categ_Lm.c: Likewise.
27892 * tests/unictype/test-categ_Lo.c: Likewise.
27893 * tests/unictype/test-categ_Lt.c: Likewise.
27894 * tests/unictype/test-categ_Lu.c: Likewise.
27895 * tests/unictype/test-categ_M.c: Likewise.
27896 * tests/unictype/test-categ_Mc.c: Likewise.
27897 * tests/unictype/test-categ_Me.c: Likewise.
27898 * tests/unictype/test-categ_Mn.c: Likewise.
27899 * tests/unictype/test-categ_N.c: Likewise.
27900 * tests/unictype/test-categ_Nd.c: Likewise.
27901 * tests/unictype/test-categ_Nl.c: Likewise.
27902 * tests/unictype/test-categ_No.c: Likewise.
27903 * tests/unictype/test-categ_P.c: Likewise.
27904 * tests/unictype/test-categ_Pc.c: Likewise.
27905 * tests/unictype/test-categ_Pd.c: Likewise.
27906 * tests/unictype/test-categ_Pe.c: Likewise.
27907 * tests/unictype/test-categ_Pf.c: Likewise.
27908 * tests/unictype/test-categ_Pi.c: Likewise.
27909 * tests/unictype/test-categ_Po.c: Likewise.
27910 * tests/unictype/test-categ_Ps.c: Likewise.
27911 * tests/unictype/test-categ_S.c: Likewise.
27912 * tests/unictype/test-categ_Sc.c: Likewise.
27913 * tests/unictype/test-categ_Sk.c: Likewise.
27914 * tests/unictype/test-categ_Sm.c: Likewise.
27915 * tests/unictype/test-categ_So.c: Likewise.
27916 * tests/unictype/test-categ_Z.c: Likewise.
27917 * tests/unictype/test-categ_Zl.c: Likewise.
27918 * tests/unictype/test-categ_Zp.c: Likewise.
27919 * tests/unictype/test-categ_Zs.c: Likewise.
27920 * tests/unictype/test-ctype_alnum.c: Likewise.
27921 * tests/unictype/test-ctype_alpha.c: Likewise.
27922 * tests/unictype/test-ctype_blank.c: Likewise.
27923 * tests/unictype/test-ctype_cntrl.c: Likewise.
27924 * tests/unictype/test-ctype_digit.c: Likewise.
27925 * tests/unictype/test-ctype_graph.c: Likewise.
27926 * tests/unictype/test-ctype_lower.c: Likewise.
27927 * tests/unictype/test-ctype_print.c: Likewise.
27928 * tests/unictype/test-ctype_punct.c: Likewise.
27929 * tests/unictype/test-ctype_space.c: Likewise.
27930 * tests/unictype/test-ctype_upper.c: Likewise.
27931 * tests/unictype/test-ctype_xdigit.c: Likewise.
27932 * tests/unictype/test-decdigit.h: Likewise.
27933 * tests/unictype/test-digit.h: Likewise.
27934 * tests/unictype/test-numeric.h: Likewise.
27935 * tests/unictype/test-pr_alphabetic.c: Likewise.
27936 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27937 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27938 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27939 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27940 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27941 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27942 * tests/unictype/test-pr_bidi_control.c: Likewise.
27943 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27944 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27945 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27946 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27947 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27948 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27949 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27950 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27951 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27952 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27953 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27954 * tests/unictype/test-pr_combining.c: Likewise.
27955 * tests/unictype/test-pr_composite.c: Likewise.
27956 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27957 * tests/unictype/test-pr_dash.c: Likewise.
27958 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27959 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27960 * tests/unictype/test-pr_deprecated.c: Likewise.
27961 * tests/unictype/test-pr_diacritic.c: Likewise.
27962 * tests/unictype/test-pr_extender.c: Likewise.
27963 * tests/unictype/test-pr_format_control.c: Likewise.
27964 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27965 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27966 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27967 * tests/unictype/test-pr_hex_digit.c: Likewise.
27968 * tests/unictype/test-pr_hyphen.c: Likewise.
27969 * tests/unictype/test-pr_id_continue.c: Likewise.
27970 * tests/unictype/test-pr_id_start.c: Likewise.
27971 * tests/unictype/test-pr_ideographic.c: Likewise.
27972 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27973 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27974 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27975 * tests/unictype/test-pr_iso_control.c: Likewise.
27976 * tests/unictype/test-pr_join_control.c: Likewise.
27977 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27978 * tests/unictype/test-pr_line_separator.c: Likewise.
27979 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27980 * tests/unictype/test-pr_lowercase.c: Likewise.
27981 * tests/unictype/test-pr_math.c: Likewise.
27982 * tests/unictype/test-pr_non_break.c: Likewise.
27983 * tests/unictype/test-pr_not_a_character.c: Likewise.
27984 * tests/unictype/test-pr_numeric.c: Likewise.
27985 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27986 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27987 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27988 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27989 * tests/unictype/test-pr_other_id_start.c: Likewise.
27990 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27991 * tests/unictype/test-pr_other_math.c: Likewise.
27992 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27993 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27994 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27995 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27996 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27997 * tests/unictype/test-pr_private_use.c: Likewise.
27998 * tests/unictype/test-pr_punctuation.c: Likewise.
27999 * tests/unictype/test-pr_quotation_mark.c: Likewise.
28000 * tests/unictype/test-pr_radical.c: Likewise.
28001 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28002 * tests/unictype/test-pr_soft_dotted.c: Likewise.
28003 * tests/unictype/test-pr_space.c: Likewise.
28004 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28005 * tests/unictype/test-pr_titlecase.c: Likewise.
28006 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28007 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28008 * tests/unictype/test-pr_uppercase.c: Likewise.
28009 * tests/unictype/test-pr_variation_selector.c: Likewise.
28010 * tests/unictype/test-pr_white_space.c: Likewise.
28011 * tests/unictype/test-pr_xid_continue.c: Likewise.
28012 * tests/unictype/test-pr_xid_start.c: Likewise.
28013 * tests/unictype/test-pr_zero_width.c: Likewise.
28014 * tests/unictype/test-sy_c_whitespace.c: Likewise.
28015 * tests/unictype/test-sy_java_whitespace.c: Likewise.
28017 2007-11-12 Bruno Haible <bruno@clisp.org>
28019 Unicode character classification functions.
28020 * lib/unictype.h: New file.
28021 * modules/unictype/base: New file.
28022 * modules/unictype/category-L: New file.
28023 * modules/unictype/category-Lu: New file.
28024 * modules/unictype/category-Ll: New file.
28025 * modules/unictype/category-Lt: New file.
28026 * modules/unictype/category-Lm: New file.
28027 * modules/unictype/category-Lo: New file.
28028 * modules/unictype/category-M: New file.
28029 * modules/unictype/category-Mn: New file.
28030 * modules/unictype/category-Mc: New file.
28031 * modules/unictype/category-Me: New file.
28032 * modules/unictype/category-N: New file.
28033 * modules/unictype/category-Nd: New file.
28034 * modules/unictype/category-Nl: New file.
28035 * modules/unictype/category-No: New file.
28036 * modules/unictype/category-P: New file.
28037 * modules/unictype/category-Pc: New file.
28038 * modules/unictype/category-Pd: New file.
28039 * modules/unictype/category-Ps: New file.
28040 * modules/unictype/category-Pe: New file.
28041 * modules/unictype/category-Pi: New file.
28042 * modules/unictype/category-Pf: New file.
28043 * modules/unictype/category-Po: New file.
28044 * modules/unictype/category-S: New file.
28045 * modules/unictype/category-Sm: New file.
28046 * modules/unictype/category-Sc: New file.
28047 * modules/unictype/category-Sk: New file.
28048 * modules/unictype/category-So: New file.
28049 * modules/unictype/category-Z: New file.
28050 * modules/unictype/category-Zs: New file.
28051 * modules/unictype/category-Zl: New file.
28052 * modules/unictype/category-Zp: New file.
28053 * modules/unictype/category-C: New file.
28054 * modules/unictype/category-Cc: New file.
28055 * modules/unictype/category-Cf: New file.
28056 * modules/unictype/category-Cs: New file.
28057 * modules/unictype/category-Co: New file.
28058 * modules/unictype/category-Cn: New file.
28059 * modules/unictype/category-or: New file.
28060 * modules/unictype/category-of: New file.
28061 * modules/unictype/category-test: New file.
28062 * modules/unictype/category-test-withtable: New file.
28063 * modules/unictype/category-byname: New file.
28064 * modules/unictype/category-none: New file.
28065 * modules/unictype/category-and: New file.
28066 * modules/unictype/category-and-not: New file.
28067 * modules/unictype/category-name: New file.
28068 * modules/unictype/combining-class: New file.
28069 * modules/unictype/category-all: New file.
28070 * modules/unictype/bidicategory-all: New file.
28071 * modules/unictype/bidicategory-byname: New file.
28072 * modules/unictype/bidicategory-name: New file.
28073 * modules/unictype/bidicategory-of: New file.
28074 * modules/unictype/bidicategory-test: New file.
28075 * modules/unictype/decimal-digit: New file.
28076 * modules/unictype/digit: New file.
28077 * modules/unictype/numeric: New file.
28078 * modules/unictype/mirror: New file.
28079 * modules/unictype/property-white-space: New file.
28080 * modules/unictype/property-alphabetic: New file.
28081 * modules/unictype/property-other-alphabetic: New file.
28082 * modules/unictype/property-not-a-character: New file.
28083 * modules/unictype/property-default-ignorable-code-point: New file.
28084 * modules/unictype/property-other-default-ignorable-code-point: New
28086 * modules/unictype/property-deprecated: New file.
28087 * modules/unictype/property-logical-order-exception: New file.
28088 * modules/unictype/property-variation-selector: New file.
28089 * modules/unictype/property-private-use: New file.
28090 * modules/unictype/property-unassigned-code-value: New file.
28091 * modules/unictype/property-uppercase: New file.
28092 * modules/unictype/property-other-uppercase: New file.
28093 * modules/unictype/property-lowercase: New file.
28094 * modules/unictype/property-other-lowercase: New file.
28095 * modules/unictype/property-titlecase: New file.
28096 * modules/unictype/property-soft-dotted: New file.
28097 * modules/unictype/property-id-start: New file.
28098 * modules/unictype/property-other-id-start: New file.
28099 * modules/unictype/property-id-continue: New file.
28100 * modules/unictype/property-other-id-continue: New file.
28101 * modules/unictype/property-xid-start: New file.
28102 * modules/unictype/property-xid-continue: New file.
28103 * modules/unictype/property-pattern-white-space: New file.
28104 * modules/unictype/property-pattern-syntax: New file.
28105 * modules/unictype/property-join-control: New file.
28106 * modules/unictype/property-grapheme-base: New file.
28107 * modules/unictype/property-grapheme-extend: New file.
28108 * modules/unictype/property-other-grapheme-extend: New file.
28109 * modules/unictype/property-grapheme-link: New file.
28110 * modules/unictype/property-bidi-control: New file.
28111 * modules/unictype/property-bidi-left-to-right: New file.
28112 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28113 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28114 * modules/unictype/property-bidi-european-digit: New file.
28115 * modules/unictype/property-bidi-eur-num-separator: New file.
28116 * modules/unictype/property-bidi-eur-num-terminator: New file.
28117 * modules/unictype/property-bidi-arabic-digit: New file.
28118 * modules/unictype/property-bidi-common-separator: New file.
28119 * modules/unictype/property-bidi-block-separator: New file.
28120 * modules/unictype/property-bidi-segment-separator: New file.
28121 * modules/unictype/property-bidi-whitespace: New file.
28122 * modules/unictype/property-bidi-non-spacing-mark: New file.
28123 * modules/unictype/property-bidi-boundary-neutral: New file.
28124 * modules/unictype/property-bidi-pdf: New file.
28125 * modules/unictype/property-bidi-embedding-or-override: New file.
28126 * modules/unictype/property-bidi-other-neutral: New file.
28127 * modules/unictype/property-hex-digit: New file.
28128 * modules/unictype/property-ascii-hex-digit: New file.
28129 * modules/unictype/property-ideographic: New file.
28130 * modules/unictype/property-unified-ideograph: New file.
28131 * modules/unictype/property-radical: New file.
28132 * modules/unictype/property-ids-binary-operator: New file.
28133 * modules/unictype/property-ids-trinary-operator: New file.
28134 * modules/unictype/property-zero-width: New file.
28135 * modules/unictype/property-space: New file.
28136 * modules/unictype/property-non-break: New file.
28137 * modules/unictype/property-iso-control: New file.
28138 * modules/unictype/property-format-control: New file.
28139 * modules/unictype/property-dash: New file.
28140 * modules/unictype/property-hyphen: New file.
28141 * modules/unictype/property-punctuation: New file.
28142 * modules/unictype/property-line-separator: New file.
28143 * modules/unictype/property-paragraph-separator: New file.
28144 * modules/unictype/property-quotation-mark: New file.
28145 * modules/unictype/property-sentence-terminal: New file.
28146 * modules/unictype/property-terminal-punctuation: New file.
28147 * modules/unictype/property-currency-symbol: New file.
28148 * modules/unictype/property-math: New file.
28149 * modules/unictype/property-other-math: New file.
28150 * modules/unictype/property-paired-punctuation: New file.
28151 * modules/unictype/property-left-of-pair: New file.
28152 * modules/unictype/property-combining: New file.
28153 * modules/unictype/property-composite: New file.
28154 * modules/unictype/property-decimal-digit: New file.
28155 * modules/unictype/property-numeric: New file.
28156 * modules/unictype/property-diacritic: New file.
28157 * modules/unictype/property-extender: New file.
28158 * modules/unictype/property-ignorable-control: New file.
28159 * modules/unictype/property-test: New file.
28160 * modules/unictype/property-byname: New file.
28161 * modules/unictype/property-all: New file.
28162 * modules/unictype/scripts: New file.
28163 * modules/unictype/scripts-all: New file.
28164 * modules/unictype/block-of: New file.
28165 * modules/unictype/block-test: New file.
28166 * modules/unictype/block-list: New file.
28167 * modules/unictype/block-all: New file.
28168 * modules/unictype/syntax-c-whitespace: New file.
28169 * modules/unictype/syntax-java-whitespace: New file.
28170 * modules/unictype/syntax-c-ident: New file.
28171 * modules/unictype/syntax-java-ident: New file.
28172 * modules/unictype/ctype-alnum: New file.
28173 * modules/unictype/ctype-alpha: New file.
28174 * modules/unictype/ctype-cntrl: New file.
28175 * modules/unictype/ctype-digit: New file.
28176 * modules/unictype/ctype-graph: New file.
28177 * modules/unictype/ctype-lower: New file.
28178 * modules/unictype/ctype-print: New file.
28179 * modules/unictype/ctype-punct: New file.
28180 * modules/unictype/ctype-space: New file.
28181 * modules/unictype/ctype-upper: New file.
28182 * modules/unictype/ctype-xdigit: New file.
28183 * modules/unictype/ctype-blank: New file.
28184 * lib/unictype/bidi_byname.c: New file.
28185 * lib/unictype/bidi_name.c: New file.
28186 * lib/unictype/bidi_of.c: New file.
28187 * lib/unictype/bidi_test.c: New file.
28188 * lib/unictype/bitmap.h: New file.
28189 * lib/unictype/block_test.c: New file.
28190 * lib/unictype/blocks.c: New file.
28191 * lib/unictype/categ_C.c: New file.
28192 * lib/unictype/categ_Cc.c: New file.
28193 * lib/unictype/categ_Cf.c: New file.
28194 * lib/unictype/categ_Cn.c: New file.
28195 * lib/unictype/categ_Co.c: New file.
28196 * lib/unictype/categ_Cs.c: New file.
28197 * lib/unictype/categ_L.c: New file.
28198 * lib/unictype/categ_Ll.c: New file.
28199 * lib/unictype/categ_Lm.c: New file.
28200 * lib/unictype/categ_Lo.c: New file.
28201 * lib/unictype/categ_Lt.c: New file.
28202 * lib/unictype/categ_Lu.c: New file.
28203 * lib/unictype/categ_M.c: New file.
28204 * lib/unictype/categ_Mc.c: New file.
28205 * lib/unictype/categ_Me.c: New file.
28206 * lib/unictype/categ_Mn.c: New file.
28207 * lib/unictype/categ_N.c: New file.
28208 * lib/unictype/categ_Nd.c: New file.
28209 * lib/unictype/categ_Nl.c: New file.
28210 * lib/unictype/categ_No.c: New file.
28211 * lib/unictype/categ_P.c: New file.
28212 * lib/unictype/categ_Pc.c: New file.
28213 * lib/unictype/categ_Pd.c: New file.
28214 * lib/unictype/categ_Pe.c: New file.
28215 * lib/unictype/categ_Pf.c: New file.
28216 * lib/unictype/categ_Pi.c: New file.
28217 * lib/unictype/categ_Po.c: New file.
28218 * lib/unictype/categ_Ps.c: New file.
28219 * lib/unictype/categ_S.c: New file.
28220 * lib/unictype/categ_Sc.c: New file.
28221 * lib/unictype/categ_Sk.c: New file.
28222 * lib/unictype/categ_Sm.c: New file.
28223 * lib/unictype/categ_So.c: New file.
28224 * lib/unictype/categ_Z.c: New file.
28225 * lib/unictype/categ_Zl.c: New file.
28226 * lib/unictype/categ_Zp.c: New file.
28227 * lib/unictype/categ_Zs.c: New file.
28228 * lib/unictype/categ_and.c: New file.
28229 * lib/unictype/categ_and_not.c: New file.
28230 * lib/unictype/categ_byname.c: New file.
28231 * lib/unictype/categ_name.c: New file.
28232 * lib/unictype/categ_none.c: New file.
28233 * lib/unictype/categ_of.c: New file.
28234 * lib/unictype/categ_or.c: New file.
28235 * lib/unictype/categ_test.c: New file.
28236 * lib/unictype/combining.c: New file.
28237 * lib/unictype/ctype_alnum.c: New file.
28238 * lib/unictype/ctype_alpha.c: New file.
28239 * lib/unictype/ctype_blank.c: New file.
28240 * lib/unictype/ctype_cntrl.c: New file.
28241 * lib/unictype/ctype_digit.c: New file.
28242 * lib/unictype/ctype_graph.c: New file.
28243 * lib/unictype/ctype_lower.c: New file.
28244 * lib/unictype/ctype_print.c: New file.
28245 * lib/unictype/ctype_punct.c: New file.
28246 * lib/unictype/ctype_space.c: New file.
28247 * lib/unictype/ctype_upper.c: New file.
28248 * lib/unictype/ctype_xdigit.c: New file.
28249 * lib/unictype/decdigit.c: New file.
28250 * lib/unictype/digit.c: New file.
28251 * lib/unictype/identsyntaxmap.h: New file.
28252 * lib/unictype/mirror.c: New file.
28253 * lib/unictype/numeric.c: New file.
28254 * lib/unictype/pr_alphabetic.c: New file.
28255 * lib/unictype/pr_ascii_hex_digit.c: New file.
28256 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28257 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28258 * lib/unictype/pr_bidi_block_separator.c: New file.
28259 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28260 * lib/unictype/pr_bidi_common_separator.c: New file.
28261 * lib/unictype/pr_bidi_control.c: New file.
28262 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28263 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28264 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28265 * lib/unictype/pr_bidi_european_digit.c: New file.
28266 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28267 * lib/unictype/pr_bidi_left_to_right.c: New file.
28268 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28269 * lib/unictype/pr_bidi_other_neutral.c: New file.
28270 * lib/unictype/pr_bidi_pdf.c: New file.
28271 * lib/unictype/pr_bidi_segment_separator.c: New file.
28272 * lib/unictype/pr_bidi_whitespace.c: New file.
28273 * lib/unictype/pr_byname.c: New file.
28274 * lib/unictype/pr_byname.gperf: New file.
28275 * lib/unictype/pr_combining.c: New file.
28276 * lib/unictype/pr_composite.c: New file.
28277 * lib/unictype/pr_currency_symbol.c: New file.
28278 * lib/unictype/pr_dash.c: New file.
28279 * lib/unictype/pr_decimal_digit.c: New file.
28280 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28281 * lib/unictype/pr_deprecated.c: New file.
28282 * lib/unictype/pr_diacritic.c: New file.
28283 * lib/unictype/pr_extender.c: New file.
28284 * lib/unictype/pr_format_control.c: New file.
28285 * lib/unictype/pr_grapheme_base.c: New file.
28286 * lib/unictype/pr_grapheme_extend.c: New file.
28287 * lib/unictype/pr_grapheme_link.c: New file.
28288 * lib/unictype/pr_hex_digit.c: New file.
28289 * lib/unictype/pr_hyphen.c: New file.
28290 * lib/unictype/pr_id_continue.c: New file.
28291 * lib/unictype/pr_id_start.c: New file.
28292 * lib/unictype/pr_ideographic.c: New file.
28293 * lib/unictype/pr_ids_binary_operator.c: New file.
28294 * lib/unictype/pr_ids_trinary_operator.c: New file.
28295 * lib/unictype/pr_ignorable_control.c: New file.
28296 * lib/unictype/pr_iso_control.c: New file.
28297 * lib/unictype/pr_join_control.c: New file.
28298 * lib/unictype/pr_left_of_pair.c: New file.
28299 * lib/unictype/pr_line_separator.c: New file.
28300 * lib/unictype/pr_logical_order_exception.c: New file.
28301 * lib/unictype/pr_lowercase.c: New file.
28302 * lib/unictype/pr_math.c: New file.
28303 * lib/unictype/pr_non_break.c: New file.
28304 * lib/unictype/pr_not_a_character.c: New file.
28305 * lib/unictype/pr_numeric.c: New file.
28306 * lib/unictype/pr_other_alphabetic.c: New file.
28307 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28308 * lib/unictype/pr_other_grapheme_extend.c: New file.
28309 * lib/unictype/pr_other_id_continue.c: New file.
28310 * lib/unictype/pr_other_id_start.c: New file.
28311 * lib/unictype/pr_other_lowercase.c: New file.
28312 * lib/unictype/pr_other_math.c: New file.
28313 * lib/unictype/pr_other_uppercase.c: New file.
28314 * lib/unictype/pr_paired_punctuation.c: New file.
28315 * lib/unictype/pr_paragraph_separator.c: New file.
28316 * lib/unictype/pr_pattern_syntax.c: New file.
28317 * lib/unictype/pr_pattern_white_space.c: New file.
28318 * lib/unictype/pr_private_use.c: New file.
28319 * lib/unictype/pr_punctuation.c: New file.
28320 * lib/unictype/pr_quotation_mark.c: New file.
28321 * lib/unictype/pr_radical.c: New file.
28322 * lib/unictype/pr_sentence_terminal.c: New file.
28323 * lib/unictype/pr_soft_dotted.c: New file.
28324 * lib/unictype/pr_space.c: New file.
28325 * lib/unictype/pr_terminal_punctuation.c: New file.
28326 * lib/unictype/pr_test.c: New file.
28327 * lib/unictype/pr_titlecase.c: New file.
28328 * lib/unictype/pr_unassigned_code_value.c: New file.
28329 * lib/unictype/pr_unified_ideograph.c: New file.
28330 * lib/unictype/pr_uppercase.c: New file.
28331 * lib/unictype/pr_variation_selector.c: New file.
28332 * lib/unictype/pr_white_space.c: New file.
28333 * lib/unictype/pr_xid_continue.c: New file.
28334 * lib/unictype/pr_xid_start.c: New file.
28335 * lib/unictype/pr_zero_width.c: New file.
28336 * lib/unictype/scripts.c: New file.
28337 * lib/unictype/sy_c_ident.c: New file.
28338 * lib/unictype/sy_c_whitespace.c: New file.
28339 * lib/unictype/sy_java_ident.c: New file.
28340 * lib/unictype/sy_java_whitespace.c: New file.
28342 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28344 * lib/unictype/blocks.h: Likewise.
28345 * lib/unictype/categ_C.h: Likewise.
28346 * lib/unictype/categ_Cc.h: Likewise.
28347 * lib/unictype/categ_Cf.h: Likewise.
28348 * lib/unictype/categ_Cn.h: Likewise.
28349 * lib/unictype/categ_Co.h: Likewise.
28350 * lib/unictype/categ_Cs.h: Likewise.
28351 * lib/unictype/categ_L.h: Likewise.
28352 * lib/unictype/categ_Ll.h: Likewise.
28353 * lib/unictype/categ_Lm.h: Likewise.
28354 * lib/unictype/categ_Lo.h: Likewise.
28355 * lib/unictype/categ_Lt.h: Likewise.
28356 * lib/unictype/categ_Lu.h: Likewise.
28357 * lib/unictype/categ_M.h: Likewise.
28358 * lib/unictype/categ_Mc.h: Likewise.
28359 * lib/unictype/categ_Me.h: Likewise.
28360 * lib/unictype/categ_Mn.h: Likewise.
28361 * lib/unictype/categ_N.h: Likewise.
28362 * lib/unictype/categ_Nd.h: Likewise.
28363 * lib/unictype/categ_Nl.h: Likewise.
28364 * lib/unictype/categ_No.h: Likewise.
28365 * lib/unictype/categ_P.h: Likewise.
28366 * lib/unictype/categ_Pc.h: Likewise.
28367 * lib/unictype/categ_Pd.h: Likewise.
28368 * lib/unictype/categ_Pe.h: Likewise.
28369 * lib/unictype/categ_Pf.h: Likewise.
28370 * lib/unictype/categ_Pi.h: Likewise.
28371 * lib/unictype/categ_Po.h: Likewise.
28372 * lib/unictype/categ_Ps.h: Likewise.
28373 * lib/unictype/categ_S.h: Likewise.
28374 * lib/unictype/categ_Sc.h: Likewise.
28375 * lib/unictype/categ_Sk.h: Likewise.
28376 * lib/unictype/categ_Sm.h: Likewise.
28377 * lib/unictype/categ_So.h: Likewise.
28378 * lib/unictype/categ_Z.h: Likewise.
28379 * lib/unictype/categ_Zl.h: Likewise.
28380 * lib/unictype/categ_Zp.h: Likewise.
28381 * lib/unictype/categ_Zs.h: Likewise.
28382 * lib/unictype/categ_of.h: Likewise.
28383 * lib/unictype/combining.h: Likewise.
28384 * lib/unictype/ctype_alnum.h: Likewise.
28385 * lib/unictype/ctype_alpha.h: Likewise.
28386 * lib/unictype/ctype_blank.h: Likewise.
28387 * lib/unictype/ctype_cntrl.h: Likewise.
28388 * lib/unictype/ctype_digit.h: Likewise.
28389 * lib/unictype/ctype_graph.h: Likewise.
28390 * lib/unictype/ctype_lower.h: Likewise.
28391 * lib/unictype/ctype_print.h: Likewise.
28392 * lib/unictype/ctype_punct.h: Likewise.
28393 * lib/unictype/ctype_space.h: Likewise.
28394 * lib/unictype/ctype_upper.h: Likewise.
28395 * lib/unictype/ctype_xdigit.h: Likewise.
28396 * lib/unictype/decdigit.h: Likewise.
28397 * lib/unictype/digit.h: Likewise.
28398 * lib/unictype/mirror.h: Likewise.
28399 * lib/unictype/numeric.h: Likewise.
28400 * lib/unictype/pr_alphabetic.h: Likewise.
28401 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28402 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28403 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28404 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28405 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28406 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28407 * lib/unictype/pr_bidi_control.h: Likewise.
28408 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28409 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28410 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28411 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28412 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28413 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28414 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28415 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28416 * lib/unictype/pr_bidi_pdf.h: Likewise.
28417 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28418 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28419 * lib/unictype/pr_combining.h: Likewise.
28420 * lib/unictype/pr_composite.h: Likewise.
28421 * lib/unictype/pr_currency_symbol.h: Likewise.
28422 * lib/unictype/pr_dash.h: Likewise.
28423 * lib/unictype/pr_decimal_digit.h: Likewise.
28424 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28425 * lib/unictype/pr_deprecated.h: Likewise.
28426 * lib/unictype/pr_diacritic.h: Likewise.
28427 * lib/unictype/pr_extender.h: Likewise.
28428 * lib/unictype/pr_format_control.h: Likewise.
28429 * lib/unictype/pr_grapheme_base.h: Likewise.
28430 * lib/unictype/pr_grapheme_extend.h: Likewise.
28431 * lib/unictype/pr_grapheme_link.h: Likewise.
28432 * lib/unictype/pr_hex_digit.h: Likewise.
28433 * lib/unictype/pr_hyphen.h: Likewise.
28434 * lib/unictype/pr_id_continue.h: Likewise.
28435 * lib/unictype/pr_id_start.h: Likewise.
28436 * lib/unictype/pr_ideographic.h: Likewise.
28437 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28438 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28439 * lib/unictype/pr_ignorable_control.h: Likewise.
28440 * lib/unictype/pr_iso_control.h: Likewise.
28441 * lib/unictype/pr_join_control.h: Likewise.
28442 * lib/unictype/pr_left_of_pair.h: Likewise.
28443 * lib/unictype/pr_line_separator.h: Likewise.
28444 * lib/unictype/pr_logical_order_exception.h: Likewise.
28445 * lib/unictype/pr_lowercase.h: Likewise.
28446 * lib/unictype/pr_math.h: Likewise.
28447 * lib/unictype/pr_non_break.h: Likewise.
28448 * lib/unictype/pr_not_a_character.h: Likewise.
28449 * lib/unictype/pr_numeric.h: Likewise.
28450 * lib/unictype/pr_other_alphabetic.h: Likewise.
28451 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28452 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28453 * lib/unictype/pr_other_id_continue.h: Likewise.
28454 * lib/unictype/pr_other_id_start.h: Likewise.
28455 * lib/unictype/pr_other_lowercase.h: Likewise.
28456 * lib/unictype/pr_other_math.h: Likewise.
28457 * lib/unictype/pr_other_uppercase.h: Likewise.
28458 * lib/unictype/pr_paired_punctuation.h: Likewise.
28459 * lib/unictype/pr_paragraph_separator.h: Likewise.
28460 * lib/unictype/pr_pattern_syntax.h: Likewise.
28461 * lib/unictype/pr_pattern_white_space.h: Likewise.
28462 * lib/unictype/pr_private_use.h: Likewise.
28463 * lib/unictype/pr_punctuation.h: Likewise.
28464 * lib/unictype/pr_quotation_mark.h: Likewise.
28465 * lib/unictype/pr_radical.h: Likewise.
28466 * lib/unictype/pr_sentence_terminal.h: Likewise.
28467 * lib/unictype/pr_soft_dotted.h: Likewise.
28468 * lib/unictype/pr_space.h: Likewise.
28469 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28470 * lib/unictype/pr_titlecase.h: Likewise.
28471 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28472 * lib/unictype/pr_unified_ideograph.h: Likewise.
28473 * lib/unictype/pr_uppercase.h: Likewise.
28474 * lib/unictype/pr_variation_selector.h: Likewise.
28475 * lib/unictype/pr_white_space.h: Likewise.
28476 * lib/unictype/pr_xid_continue.h: Likewise.
28477 * lib/unictype/pr_xid_start.h: Likewise.
28478 * lib/unictype/pr_zero_width.h: Likewise.
28479 * lib/unictype/scripts.h: Likewise.
28480 * lib/unictype/scripts_byname.gperf: Likewise.
28481 * lib/unictype/sy_c_ident.h: Likewise.
28482 * lib/unictype/sy_c_whitespace.h: Likewise.
28483 * lib/unictype/sy_java_ident.h: Likewise.
28484 * lib/unictype/sy_java_whitespace.h: Likewise.
28486 * lib/unictype/Makefile: New file.
28487 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28489 * lib/unictype/3level.h: New file, copied from glibc.
28490 * lib/unictype/3levelbit.h: New file.
28492 2007-11-11 Bruno Haible <bruno@clisp.org>
28494 * modules/gperf: New file.
28495 * modules/iconv_open (Depends-on): Add it.
28496 (Makefile.am): Remove the GPERF definition.
28498 2007-11-11 Bruno Haible <bruno@clisp.org>
28500 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28501 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28503 2007-11-11 Bruno Haible <bruno@clisp.org>
28505 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28506 (usage): Remove function.
28508 2007-11-11 Bruno Haible <bruno@clisp.org>
28510 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28511 gl_FUNC_CEILF_LIBS.
28512 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28514 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28515 gl_FUNC_CEILL_LIBS.
28516 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28517 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28518 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28520 2007-11-11 Bruno Haible <bruno@clisp.org>
28522 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28523 roundf were declared but do not exist on functions.
28524 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28525 roundl were declared but do not exist on functions.
28526 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28527 HAVE_FLOORL_AND_CEILL, respectively.
28528 Needed for Sun C on Solaris 10.
28530 2007-11-11 Bruno Haible <bruno@clisp.org>
28532 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28533 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28534 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28535 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28536 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28537 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28538 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28540 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28541 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28542 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28543 of HAVE_DECL_ROUND*.
28544 * modules/math (Makefile.am): Update.
28546 2007-11-10 Bruno Haible <bruno@clisp.org>
28548 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28549 ptrdiff_t as m4/intl.m4.
28551 2007-11-10 Jim Meyering <meyering@redhat.com>
28553 Avoid link failure for the argmatch test.
28554 * tests/test-argmatch.c (usage): Define function to avoid a link
28555 failure: argmatch_die requires a usage function.
28557 2007-11-09 Bruno Haible <bruno@clisp.org>
28559 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28560 * doc/functions/vsnprintf.texi: Likewise.
28561 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28562 with a size argument < 2.
28564 2007-11-09 Bruno Haible <bruno@clisp.org>
28566 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28567 buffer. Fixes an inefficiency introduced on 2007-11-03.
28569 2007-11-09 Bruno Haible <bruno@clisp.org>
28571 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28572 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28574 2007-11-08 Jim Meyering <meyering@redhat.com>
28576 Change cache variable name prefix "jm_" to "gl_" everywhere.
28577 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28578 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28579 * m4/uptime.m4: s/gl_/jm_/
28581 2007-11-07 Bruno Haible <bruno@clisp.org>
28583 Update to GNU gettext 0.17.
28584 * m4/intl.m4: Update to GNU gettext 0.17.
28585 * m4/po.m4: Likewise.
28586 * modules/gettext (Files): Remove m4/ulonglong.m4.
28587 (configure.ac): Require gettext infrastructure from version 0.17.
28589 2007-11-06 Bruno Haible <bruno@clisp.org>
28591 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28592 symbolic values are not defined in a public header.
28593 * lib/freadable.c (freadable) [QNX]: Likewise.
28594 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28595 * lib/freading.c (freading) [QNX]: Likewise.
28596 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28597 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28598 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28599 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28600 Reported by Alain Magloire.
28602 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28604 2007-11-05 Bruno Haible <bruno@clisp.org>
28606 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28607 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28608 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28609 Reported by Eric Blake.
28611 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28612 Bruno Haible <bruno@clisp.org>
28614 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28615 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28616 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28617 (malloc): Undefine also before including <stdlib.h>.
28618 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28619 Needed on OSF/1 4.0.
28621 2007-11-05 Jim Meyering <meyering@redhat.com>
28623 git-version-gen: sync from coreutils.
28624 * build-aux/git-version-gen: Add comments.
28625 Change the first '-' to '.' in the snapshot version string,
28626 e.g., 6.9-377-08144 -> 6.9.377-08144
28627 Remove first parameter.
28628 Don't declare a version "-dirty" merely because a time
28631 2007-11-04 Bruno Haible <bruno@clisp.org>
28633 * lib/lock.h: Protect all macro definitions containing an 'if'
28634 statement through a "do { ... } while (0)".
28635 * lib/tls.h: Likewise.
28637 2007-11-04 Bruno Haible <bruno@clisp.org>
28639 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28641 2007-11-04 Bruno Haible <bruno@clisp.org>
28643 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28644 * modules/fprintf-posix (Depends-on): Add nocrash.
28645 * modules/snprintf-posix (Depends-on): Likewise.
28646 * modules/sprintf-posix (Depends-on): Likewise.
28647 * modules/vasnprintf-posix (Depends-on): Likewise.
28648 * modules/vasprintf-posix (Depends-on): Likewise.
28649 * modules/vfprintf-posix (Depends-on): Likewise.
28650 * modules/vsnprintf-posix (Depends-on): Likewise.
28651 * modules/vsprintf-posix (Depends-on): Likewise.
28652 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28653 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28654 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28655 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28656 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28657 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28658 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28660 2007-11-04 Bruno Haible <bruno@clisp.org>
28662 * modules/nocrash: New file.
28663 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28664 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28666 2007-11-04 Bruno Haible <bruno@clisp.org>
28668 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28669 precision handling.
28670 * tests/test-vasprintf-posix.c (test_function): Likewise.
28671 * tests/test-snprintf-posix.h (test_function): Likewise.
28672 * tests/test-sprintf-posix.h (test_function): Likewise.
28674 Fix *printf behaviour for large precisions on mingw and BeOS.
28675 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28676 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28677 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28678 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28679 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28680 gl_PRINTF_PRECISION and test its result. Invoke
28681 gl_PREREQ_VASNPRINTF_PRECISION.
28682 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28683 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28684 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28685 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28686 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28687 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28688 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28689 * doc/functions/fprintf.texi: Update.
28690 * doc/functions/printf.texi: Update.
28691 * doc/functions/snprintf.texi: Update.
28692 * doc/functions/sprintf.texi: Update.
28693 * doc/functions/vfprintf.texi: Update.
28694 * doc/functions/vprintf.texi: Update.
28695 * doc/functions/vsnprintf.texi: Update.
28696 * doc/functions/vsprintf.texi: Update.
28698 2007-11-04 Bruno Haible <bruno@clisp.org>
28700 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28702 2007-11-04 Bruno Haible <bruno@clisp.org>
28704 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28705 Reported by Sylvain Beucler <beuc@gnu.org>.
28707 2007-11-03 Bruno Haible <bruno@clisp.org>
28709 * tests/test-fprintf-posix2.sh: New file.
28710 * tests/test-fprintf-posix2.c: New file.
28711 * modules/fprintf-posix-tests (Files): Add them.
28712 (TESTS): Add test-fprintf-posix2.sh.
28713 (configure.ac): Check for getrlimit and setrlimit.
28714 (check_PROGRAMS): Add test-fprintf-posix2.
28716 * tests/test-printf-posix2.sh: New file.
28717 * tests/test-printf-posix2.c: New file.
28718 * modules/printf-posix-tests (Files): Add them.
28719 (TESTS): Add test-printf-posix2.sh.
28720 (configure.ac): Check for getrlimit and setrlimit.
28721 (check_PROGRAMS): Add test-printf-posix2.
28723 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28724 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28725 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28726 (decode_double): New function, copied from decode_long_double.
28727 (scale10_round_decimal_decoded): New function, extracted from
28728 scale10_round_decimal_long_double.
28729 (scale10_round_decimal_long_double): Use it.
28730 (scale10_round_decimal_double): New function.
28731 (floorlog10): New function.
28732 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28733 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28734 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28735 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28736 gl_PRINTF_ENOMEM and test its result. Invoke
28737 gl_PREREQ_VASNPRINTF_ENOMEM.
28738 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28739 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28740 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28741 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28742 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28743 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28744 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28745 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28746 * modules/snprintf-posix (Depends-on): Likewise.
28747 * modules/sprintf-posix (Depends-on): Likewise.
28748 * modules/vasnprintf-posix (Depends-on): Likewise.
28749 * modules/vasprintf-posix (Depends-on): Likewise.
28750 * modules/vfprintf-posix (Depends-on): Likewise.
28751 * modules/vsnprintf-posix (Depends-on): Likewise.
28752 * modules/vsprintf-posix (Depends-on): Likewise.
28753 * doc/functions/fprintf.texi: Update.
28754 * doc/functions/printf.texi: Update.
28755 * doc/functions/snprintf.texi: Update.
28756 * doc/functions/sprintf.texi: Update.
28757 * doc/functions/vfprintf.texi: Update.
28758 * doc/functions/vprintf.texi: Update.
28759 * doc/functions/vsnprintf.texi: Update.
28760 * doc/functions/vsprintf.texi: Update.
28762 2007-11-03 Bruno Haible <bruno@clisp.org>
28764 * modules/frexp-nolibm-tests: New file.
28766 * modules/frexp-nolibm: New file.
28767 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28769 2007-11-03 Bruno Haible <bruno@clisp.org>
28771 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28772 value is C99 compliant.
28773 Needed for OSF/1 5.1.
28775 2007-11-03 Bruno Haible <bruno@clisp.org>
28777 Fix out-of-memory handling of vasnprintf.
28778 * lib/printf-parse.c: Include <errno.h>.
28779 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28780 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28783 2007-11-02 Eric Blake <ebb9@byu.net>
28785 Fix tests on cygwin.
28786 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28788 2007-11-01 Bruno Haible <bruno@clisp.org>
28790 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28792 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28793 needed for POSIX compatibility.
28795 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28797 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28798 for compatibility with GNU.
28800 2007-11-01 Bruno Haible <bruno@clisp.org>
28802 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28803 (putenv): Renamed from rpl_putenv. Change argument type from
28804 'const char *' to 'char *'.
28805 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28806 of defining putenv in config.h, just set REPLACE_PUTENV.
28807 * modules/putenv (Depends-on): Add stdlib.
28808 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28809 (Include): Use <stdlib.h>.
28810 * lib/stdlib.in.h (putenv): New declaration.
28811 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28813 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28815 Needed for MacOS X 10.5.0.
28816 Reported by Peter O'Gorman <peter@pogma.com>.
28818 2007-11-01 Jim Meyering <meyering@redhat.com>
28820 Treat an empty date string exactly like "0".
28821 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28822 if the remaining date string (to be parsed) is empty, use "0".
28823 Reported by Mischa Molhoek and discussed in this thread:
28824 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28826 2007-10-31 Bruno Haible <bruno@clisp.org>
28828 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28829 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28830 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28831 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28832 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28833 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28835 2007-10-31 Bruno Haible <bruno@clisp.org>
28837 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28838 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28839 (AC_TYPE_LONG_LONG_INT): Use it.
28840 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28842 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28844 * modules/stdint (Files): Remove m4/ulonglong.m4.
28845 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28847 * modules/strtoumax (Files): Likewise.
28849 2007-10-30 Bruno Haible <bruno@clisp.org>
28851 * modules/xvasprintf-posix: New file.
28852 Suggested by Eric Blake.
28854 2007-10-30 Bruno Haible <bruno@clisp.org>
28856 * modules/xprintf-posix-tests: New file.
28857 * tests/test-xprintf-posix.sh: New file.
28858 * tests/test-xprintf-posix.c: New file.
28859 * tests/test-xfprintf-posix.c: New file.
28861 * modules/xprintf-posix: New file.
28863 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28865 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28866 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28867 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28869 2007-10-29 Bruno Haible <bruno@clisp.org>
28871 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28872 contain the special marker '_cv_'.
28873 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28874 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28875 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28876 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28877 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28878 Reported by Ralf Wildenhues.
28880 2007-10-29 Bruno Haible <bruno@clisp.org>
28882 * gnulib-tool (func_import): When --lgpl is not specified, set
28883 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28885 Reported by Simon Josefsson.
28887 2007-10-28 Bruno Haible <bruno@clisp.org>
28889 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28890 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28891 HAVE_DECL_ISFINITE.
28892 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28893 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28894 HAVE_DECL_ISFINITE.
28896 2007-10-28 Bruno Haible <bruno@clisp.org>
28898 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28899 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28901 2007-10-28 Bruno Haible <bruno@clisp.org>
28903 Fix link errors with Sun C 5.0 on Solaris 10.
28904 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28905 function is declared but not present in the compiler's libm.
28906 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28907 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28908 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28909 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28910 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28911 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28912 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28913 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28914 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28915 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28916 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28919 2007-10-28 Bruno Haible <bruno@clisp.org>
28921 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28922 gl_FUNC_FLOORL. Cache the result.
28923 (gl_FUNC_FLOORL): Use it.
28924 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28925 gl_FUNC_CEILL. Cache the result.
28926 (gl_FUNC_CEILL): Use it.
28928 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28929 gl_FUNC_FLOOR. Cache the result.
28930 (gl_FUNC_FLOOR): Use it.
28931 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28932 gl_FUNC_CEIL. Cache the result.
28933 (gl_FUNC_CEIL): Use it.
28935 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28936 gl_FUNC_FLOORF. Cache the result.
28937 (gl_FUNC_FLOORF): Use it.
28938 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28939 gl_FUNC_CEILF. Cache the result.
28940 (gl_FUNC_CEILF): Use it.
28942 2007-10-28 Bruno Haible <bruno@clisp.org>
28944 * gnulib-tool: Allow specifying the LGPL version number through
28945 --lgpl=2 or --lgpl=3.
28946 (func_usage): Document --lgpl with argument.
28947 Handle --lgpl=... arguments.
28948 (func_import): Recognize also gl_LGPL calls with an argument. When
28949 --lgpl=2 is used and the module's license is just LGPL, report an
28950 error. Set sed_transform_lib_file according to the lgpl variable. In
28951 the generated files, use --lgpl or gl_LGPL invocations with argument,
28953 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28955 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28958 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28959 Bruno Haible <bruno@clisp.org>
28961 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28962 (u16_uctomb_aux): Likewise.
28963 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28965 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28967 2007-10-28 Bruno Haible <bruno@clisp.org>
28969 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28970 Invoke AM_GETTEXT_OPTION if it exists.
28971 * modules/vasprintf: Likewise.
28972 * modules/verror: Likewise.
28973 * modules/xprintf: Likewise.
28974 * modules/xvasprintf: Likewise.
28976 2007-10-27 Ben Pfaff <blp@gnu.org>
28978 * lib/math.in.h: Define isfinite macro and prototypes for
28979 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28981 * m4/math_h.m4: New substitutions for isfinite module.
28982 * lib/isfinite.c: New file.
28983 * m4/isfinite.m4: New file.
28984 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28985 * modules/isfinite: New file.
28986 * modules/isfinite-tests: New file.
28987 * tests/tests-isfinite.c: New file.
28988 * doc/functions/isfinite.texi: Mention isfinite module.
28989 * MODULES.html.sh: Mention new module.
28991 2007-10-27 Ben Pfaff <blp@gnu.org>
28993 Ralf Wildenhues reported that Tru64 4.0D declares the round
28994 functions but does not have definitions.
28995 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28996 cannot be found in any library, set the output variable to
28997 "missing" instead of "".
28998 * m4/round.m4: Also use our substitute if we cannot find round in
28999 any library, even if it is declared.
29000 * m4/roundf.m4: Likewise for roundf.
29001 * m4/roundl.m4: Likewise for roundl.
29002 * lib/math.in.h: Undefine roundf, round, roundl before defining
29003 their replacements, to allow for hypothetical systems where these
29004 may be defined as macros but not available in libraries.
29006 2007-10-27 Bruno Haible <bruno@clisp.org>
29008 * doc/gnulib.texi: Invoke @firstparagraphindent.
29009 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29011 (Source changes): New section.
29013 2007-10-26 Bruno Haible <bruno@clisp.org>
29015 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29016 borrowed from autoconf.
29018 2007-10-26 Bruno Haible <bruno@clisp.org>
29020 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29021 strerror returned the empty string. Needed on HP-UX 11.00.
29023 2007-10-24 Micah Cowan <micah@cowan.name>
29025 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
29026 * build-aux/bootstrap: Remove support for now-unnecessary option,
29027 --cvs-user, and envvars CVS_USER, CVS_RSH.
29029 2007-10-24 Jim Meyering <meyering@redhat.com>
29031 Avoid diagnostics from sha1sum when there is no cached checksum.
29032 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29033 if the po.s1 file hasn't been created yet.
29035 * build-aux/bootstrap: Sync from coreutils:
29036 2007-10-24 Jim Meyering <meyering@redhat.com>
29037 Get gnulib from the git repository, not from an obsolete cvs one.
29038 * build-aux/bootstrap: Suggestion from Micah Cowan.
29039 2007-10-04 Jim Meyering <jim@meyering.net>
29040 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29041 (update_po_files): Work also when there are no .po files in po/.
29043 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
29045 * README: Append ".git" to git and cg examples.
29046 Problem reported by Benoit Sigoure.
29048 2007-10-23 Micah Cowan <micah@cowan.name>
29050 * users.txt: Add wget.
29052 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29054 Fix linking of some unistdio tests on FreeBSD.
29055 * modules/unistdio/u16-vsnprintf-tests
29056 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29057 * modules/unistdio/u16-vsprintf-tests
29058 (test_u16_vsnprintf1_LDADD): Likewise.
29059 * modules/unistdio/u32-vsnprintf-tests
29060 (test_u32_vsnprintf1_LDADD): Likewise.
29061 * modules/unistdio/u32-vsprintf-tests
29062 (test_u32_vsprintf1_LDADD): Likewise.
29063 * modules/unistdio/u8-vsnprintf-tests
29064 (test_u8_vsnprintf1_LDADD): Likewise.
29065 * modules/unistdio/u8-vsprintf-tests
29066 (test_u8_vsprintf1_LDADD): Likewise.
29067 * modules/unistdio/ulc-vsnprintf-tests
29068 (test_ulc_vsnprintf1_LDADD): Likewise.
29069 * modules/unistdio/ulc-vsprintf-tests
29070 (test_ulc_vsprintf1_LDADD): Likewise.
29072 Fix linking of some uniconv tests on FreeBSD.
29073 * modules/uniconv/u16-conv-from-enc-tests
29074 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29075 * modules/uniconv/u16-conv-to-enc-tests
29076 (test_u16_conv_to_enc_LDADD): Likewise.
29077 * modules/uniconv/u16-strconv-from-enc-tests
29078 (test_u16_strconv_from_enc_LDADD): Likewise.
29079 * modules/uniconv/u16-strconv-to-enc-tests
29080 (test_u16_strconv_to_enc_LDADD): Likewise.
29081 * modules/uniconv/u32-conv-from-enc-tests
29082 (test_u32_conv_from_enc_LDADD): Likewise.
29083 * modules/uniconv/u32-conv-to-enc-tests
29084 (test_u32_conv_to_enc_LDADD): Likewise.
29085 * modules/uniconv/u32-strconv-from-enc-tests
29086 (test_u32_strconv_from_enc_LDADD): Likewise.
29087 * modules/uniconv/u32-strconv-to-enc-tests
29088 (test_u32_strconv_to_enc_LDADD): Likewise.
29089 * modules/uniconv/u8-conv-from-enc-tests
29090 (test_u8_conv_from_enc_LDADD): Likewise.
29091 * modules/uniconv/u8-conv-to-enc-tests
29092 (test_u8_conv_to_enc_LDADD): Likewise.
29093 * modules/uniconv/u8-strconv-from-enc-tests
29094 (test_u8_strconv_from_enc_LDADD): Likewise.
29095 * modules/uniconv/u8-strconv-to-enc-tests
29096 (test_u8_strconv_to_enc_LDADD): Likewise.
29098 2007-10-22 Bruno Haible <bruno@clisp.org>
29100 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29103 2007-10-22 Eric Blake <ebb9@byu.net>
29105 Tweak x*printf documentation.
29106 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29107 variable name and comments.
29108 Suggested by Bruno Haible.
29110 2007-10-22 Bruno Haible <bruno@clisp.org>
29112 * lib/acl.c (copy_acl): Fix file name in comment.
29114 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29116 Fix Tru64 problem with stdbool.h.
29117 * lib/stdbool.in.h (false, true):
29118 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29119 Don't declare as an enum in this situation; it runs afoul of Tru64.
29120 Problem reported by Steven M. Schweda in
29121 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29123 2007-10-22 Eric Blake <ebb9@byu.net>
29125 Also wrap vf?printf.
29126 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29127 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29128 (xvprintf, xvfprintf): New functions.
29130 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29132 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29133 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29135 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29136 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29138 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29140 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29143 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29146 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29147 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29149 * tests/test-i-ring.c: Work for C89.
29151 2007-10-22 Bruno Haible <bruno@clisp.org>
29153 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29154 -1u, in preprocessor expression, so that we don't test for the bug
29155 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29156 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29158 2007-10-22 Eric Blake <ebb9@byu.net>
29160 * tests/test-yesno.sh: Silence stderr during test.
29162 2007-10-22 Simon Josefsson <simon@josefsson.org>
29164 * modules/crypto/gc-camellia: New file.
29166 * m4/gc-camellia.m4: New file.
29168 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29170 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29172 2007-10-22 Simon Josefsson <simon@josefsson.org>
29174 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29175 --help to stdout. Reported by sms@antinode.org (Steven
29178 2007-10-22 Simon Josefsson <simon@josefsson.org>
29180 * users.txt: Fix link to libksba.
29182 2007-10-21 Ben Pfaff <blp@gnu.org>
29184 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29185 round.c roundf implementation that depends on floorf and ceilf to
29186 be tested unconditionally.
29188 2007-10-21 Ben Pfaff <blp@gnu.org>
29190 * m4/check-libm-func.m4: Removed.
29191 * m4/check-math-lib.m4: New file.
29192 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29193 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29194 definition and lack of AC_LIBOBJ([roundf]).
29195 * m4/roundl.m4: Ditto, and similarly for roundl.
29196 * modules/round: Reference new m4 file.
29197 * modules/roundf: Ditto.
29198 * modules/roundl: Ditto.
29199 * tests/test-round2.c (main): Use ROUND instead of round.
29200 Bug report from Bruno Haible.
29202 2007-10-21 Bruno Haible <bruno@clisp.org>
29204 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29207 2007-10-21 Bruno Haible <bruno@clisp.org>
29209 * tests/test-wcwidth.c (main): Allow negative result for some control
29212 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29213 Needed on OSF/1 5.1.
29215 2007-10-21 Bruno Haible <bruno@clisp.org>
29217 * tests/test-floorf1.c: Include isnanf.h.
29218 (main): Use isnanf() instead of isnan().
29219 * tests/test-ceilf1.c: Include isnanf.h.
29220 (main): Use isnanf() instead of isnan().
29221 * tests/test-truncf1.c: Include isnanf.h.
29222 (main): Use isnanf() instead of isnan().
29223 * tests/test-roundf1.c: Include isnanf.h.
29224 (main): Use isnanf() instead of isnan().
29226 2007-10-21 Eric Blake <ebb9@byu.net>
29228 * users.txt: Update URL for m4.
29230 2007-10-21 Bruno Haible <bruno@clisp.org>
29232 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29234 2007-10-21 Bruno Haible <bruno@clisp.org>
29236 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29237 Git's management files if the CVS files are not present.
29239 2007-10-20 Bruno Haible <bruno@clisp.org>
29241 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29244 2007-10-20 Ben Pfaff <blp@gnu.org>
29246 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29248 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29249 * lib/round.c: New file.
29250 * lib/roundf.c: New file.
29251 * lib/roundl.c: New file.
29252 * m4/round.m4: New file.
29253 * m4/roundf.m4: New file.
29254 * m4/roundl.m4: New file.
29255 * m4/check-libm-func-m4: New file.
29256 * modules/math: Replace round, roundf, roundl related @VARS@ in
29258 * modules/round: New file.
29259 * modules/round-tests: New file.
29260 * modules/roundf: New file.
29261 * modules/roundf-tests: New file.
29262 * modules/roundl: New file.
29263 * modules/roundl-tests: New file.
29264 * tests/test-round1.c: New file.
29265 * tests/test-round2.c: New file.
29266 * tests/test-roundf1.c: New file.
29267 * tests/test-roundf2.c: New file.
29268 * tests/test-roundl.c: New file.
29269 * doc/functions/round.texi: Mention round module.
29270 * doc/functions/roundf.texi: Mention roundf module.
29271 * doc/functions/roundl.texi: Mention roundl module.
29272 * MODULES.html.sh: Mention new modules.
29273 Thanks to Bruno Haible for suggestions.
29275 2007-10-20 Jim Meyering <meyering@redhat.com>
29277 * lib/xprintf.c: Include <config.h> unconditionally.
29279 Change xprintf's license to GPL.
29280 * modules/xprintf (License): s/LGPL/GPL/, since this module
29281 depends on modules (exit and exitfail) which are GPL.
29282 Suggestion from Bruno Haible.
29285 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29286 Use a clearer diagnostic.
29287 Patch from Bruno Haible.
29289 2007-10-20 Bruno Haible <bruno@clisp.org>
29291 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29292 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29293 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29295 2007-10-20 Bruno Haible <bruno@clisp.org>
29297 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29298 precision in the comparison result > x - 1 or similar.
29299 * tests/test-ceilf2.c (correct_result_p): Likewise.
29300 * tests/test-truncf2.c (correct_result_p): Likewise.
29301 * tests/test-trunc2.c (correct_result_p): Likewise.
29302 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29304 2007-10-20 Bruno Haible <bruno@clisp.org>
29306 * modules/ceil: New file.
29307 * m4/ceil.m4: New file.
29308 * doc/functions/ceil.texi: Mention the 'ceil' module.
29310 2007-10-20 Bruno Haible <bruno@clisp.org>
29312 * modules/floor: New file.
29313 * m4/floor.m4: New file.
29314 * doc/functions/floor.texi: Mention the 'floor' module.
29316 2007-10-20 Bruno Haible <bruno@clisp.org>
29318 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29320 * modules/floorf-tests (Depends-on): Likewise.
29321 * modules/truncf-tests (Depends-on): Likewise.
29322 * modules/trunc-tests (Depends-on): Likewise.
29323 Reported by Ben Pfaff.
29325 2007-10-19 Jim Meyering <meyering@redhat.com>
29327 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29328 Don't bother testing specific errno values. Just test ferror.
29330 New module: xprintf
29331 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29333 2007-10-19 Bruno Haible <bruno@clisp.org>
29335 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29337 * modules/javaexec (Makefile.am): Likewise.
29338 * modules/relocatable-prog (Makefile.am): Likewise.
29339 Suggested by Jim Meyering.
29341 2007-10-18 Bruno Haible <bruno@clisp.org>
29343 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29344 Reported by Jim Meyering.
29346 2007-10-18 Eric Blake <ebb9@byu.net>
29348 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29350 2007-10-18 Bruno Haible <bruno@clisp.org>
29352 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29353 the format string into writable memory. Needed in Fortify conditions.
29355 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29356 Bruno Haible <bruno@clisp.org>
29358 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29359 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29360 * modules/trim (Depends-on): Add mbchar.
29361 (configure.ac): Add gl_FUNC_MBRTOWC.
29362 (Makefile.am): Augment lib_SOURCES.
29364 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29366 Modify glob.c to use fstatat and dirfd, to simplify it.
29367 Suggested by Eric Blake.
29368 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29369 Don't include <stdbool.h>; not used.
29370 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29371 (link_exists_p): Simplify implementation, since we can now assume
29373 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29375 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29377 * gnulib-tool (func_get_dependencies): Fix sed script to
29380 2007-10-17 Bruno Haible <bruno@clisp.org>
29382 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29383 allow locale names without encoding suffix.
29384 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29385 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29387 2007-10-16 Bruno Haible <bruno@clisp.org>
29389 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29390 * lib/getgroups.c (getgroups): Likewise.
29391 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29393 2007-10-16 Bruno Haible <bruno@clisp.org>
29395 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29396 * modules/malloc-posix (License): Likewise.
29397 * modules/realloc-posix (License): Likewise.
29398 * modules/calloc-posix (License): Likewise.
29399 * modules/intprops (License): Change from GPL to LGPL, with
29400 Paul Eggert's approval.
29402 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29404 Merge glibc changes into lib/glob.c.
29406 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29407 2007-10-15 04:59:03 UTC. Here are the changes:
29409 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29411 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29413 * lib/glob.c: Add some branch prediction throughout.
29415 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29418 * lib/glob.c (glob): Recognize patterns starting \/.
29420 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29423 * lib/glob.c (attribute_hidden): Define if not defined.
29424 (glob): Unescape dirname, filename or username when needed and not
29425 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29426 is NULL. Handle unescaped [ in pattern without closing ].
29427 Don't pass GLOB_CHECK down to recursive glob for directories.
29428 (__glob_pattern_type): New function.
29429 (__glob_pattern_p): Implement using __glob_pattern_type.
29430 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29431 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29432 Remove unreachable code.
29434 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29436 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29437 explain why there are no leaks.
29439 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29442 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29443 time, rather allocate increasingly bigger arrays of pointers, if
29444 possible with alloca, if too large with malloc.
29446 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29448 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29449 Problem reported by H.Merijn Brand in
29450 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29451 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29452 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29454 2007-10-15 Bruno Haible <bruno@clisp.org>
29456 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29457 with explicit rpl_ prefix.
29458 * lib/fopen.c (fopen): Likewise.
29459 * lib/freopen.c (freopen): Likewise.
29460 * lib/iconv.c (iconv): Likewise.
29461 * lib/iconv_close.c (iconv_close): Likewise.
29463 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29465 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29467 2007-10-15 Bruno Haible <bruno@clisp.org>
29469 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29470 <stddef.h> instead of <stdlib.h> since we only need NULL.
29471 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29473 2007-10-15 Bruno Haible <bruno@clisp.org>
29475 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29476 Replace paragraph talking about LIBOBJS.
29477 Reported by Colin Watson <cjwatson@debian.org>.
29479 2007-10-15 Bruno Haible <bruno@clisp.org>
29481 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29482 <stdlib.h> before using NULL.
29484 2007-10-15 Simon Josefsson <simon@josefsson.org>
29486 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29487 Reported by Albert Chin <china@thewrittenword.com>.
29489 2007-10-14 Bruno Haible <bruno@clisp.org>
29491 * modules/iconv_open-utf-tests: New file.
29492 * tests/test-iconv-utf.c: New file.
29494 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29495 * modules/iconv_open-utf: New file.
29496 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29497 (iconv, iconv_close): New declarations.
29498 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29500 (iconv_open): Add special handling of conversion between UTF-8 and
29501 UTF-{16,32}{BE,LE}.
29502 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29503 * lib/iconv_close.c: New file.
29504 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29505 gl_FUNC_ICONV_OPEN.
29506 (gl_FUNC_ICONV_OPEN): Use it.
29507 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29508 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29509 and REPLACE_ICONV_UTF.
29510 * modules/iconv_open (Depends-on): Add c-strcase.
29511 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29513 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29515 2007-10-13 Albert Chin <china@thewrittenword.com>
29516 Bruno Haible <bruno@clisp.org>
29518 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29519 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29521 2007-10-13 Bruno Haible <bruno@clisp.org>
29523 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29524 defined, use the ISO C99 inline semantics.
29525 * lib/argp.h (ARGP_EI): Likewise.
29527 2007-10-13 Bruno Haible <bruno@clisp.org>
29529 Handle 'inline' change in gcc 4.3.0.
29530 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29531 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29532 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29533 argp_fmtstream_point): Disable 'extern' declaration if the function
29534 definition is going to be provided inline.
29535 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29536 semantics, not the ISO C99 inline semantics.
29537 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29538 'extern' declaration if the function definition is going to be provided
29540 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29541 the GNU C inline semantics, not the ISO C99 inline semantics. With
29542 GCC 4.2, avoid a warning.
29544 2007-10-13 Bruno Haible <bruno@clisp.org>
29546 * lib/freading.h (freading): Enable the use of __freading for
29548 * lib/freading.c (freading): Likewise.
29550 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29552 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29553 "warning: C99 inline functions are not supported; using GNU89".
29555 2007-10-12 Bruno Haible <bruno@clisp.org>
29557 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29559 * tests/test-ceilf2.c: New file.
29560 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29562 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29563 * modules/ceilf-tests: Update.
29565 2007-10-12 Bruno Haible <bruno@clisp.org>
29567 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29569 * tests/test-floorf2.c: New file.
29570 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29572 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29573 * modules/floorf-tests: Update.
29575 2007-10-12 Bruno Haible <bruno@clisp.org>
29577 * tests/test-trunc2.c: New file.
29578 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29580 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29581 * modules/trunc-tests: Update.
29583 2007-10-12 Bruno Haible <bruno@clisp.org>
29585 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29587 * tests/test-truncf2.c: New file.
29588 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29590 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29591 * modules/truncf-tests: Update.
29593 2007-10-11 Eric Blake <ebb9@byu.net>
29595 Don't claim strerror is broken on Interix.
29596 * doc/functions/strerror.texi (strerror): Known broken systems are
29597 now Solaris 8, and not Interix.
29598 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29599 Interix on cross-compile.
29600 Reported by Martin Koeppe in
29601 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29603 2007-10-11 Bruno Haible <bruno@clisp.org>
29605 * modules/i-ring-tests: New file.
29606 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29609 2007-10-11 Bruno Haible <bruno@clisp.org>
29611 * modules/filenamecat-tests: New file.
29612 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29613 * lib/filenamecat.c: Remove test code.
29615 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29617 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29619 * lib/strerror.c: Include <string.h> always, to test interface,
29620 and to remove the need for the dummy.
29621 Include intprops.h to compute width instead of doing it ourselves
29622 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29623 (strerror): Define it to return NULL if there's no system strerror.
29624 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29625 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29626 ancient pre-strerror Unix systems well any more. Saying "unknown
29627 system error" is enough.
29628 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29629 simpler strerror.c implementation.
29630 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29631 Simplify the tests to reflect the simpler strerror implementation.
29632 * modules/strerror (Depends-on): Add intprops.
29634 2007-10-09 Eric Blake <ebb9@byu.net>
29636 Silence test-fpending.
29637 * modules/fpending-tests (Files): Add wrapper script.
29638 * tests/test-fpending.sh: New file.
29640 2007-10-09 Bruno Haible <bruno@clisp.org>
29642 * MODULES.html.sh (func_module): Don't create a hyperlink for
29643 function names like 'printf_frexp'.
29644 (Misc): Add crc, memxor.
29645 (Characteristics of floating types): New section.
29646 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29647 isnanf-nolibm, signbit, trunc, truncf, truncl.
29648 (Enhancements for ISO C 99 functions): New subsection Input/output.
29649 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29650 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29651 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29652 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29653 (Enhancements for POSIX:2001 functions): Add chdir-long.
29654 (File system functions): Add areadlink, chdir-safer, read-file.
29655 Remove cycle-check.
29656 (File system as inode set): New section.
29657 (Date and time): Add gethrxtime.
29658 (Multithreading): Add openmp.
29659 (Internationalization functions): Add localename.
29660 (Unicode string functions): Add unistr/u*-mbsnlen.
29661 (Support for maintaining and releasing projects): Add git-version-gen.
29662 (Lone files): Remove directories.
29664 2007-10-08 Ben Pfaff <blp@gnu.org>
29666 * lib/xmalloca.h: Fix typo in comment.
29668 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29670 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29671 when avoiding problems with integer overflow. Use a portable test
29674 2007-10-08 Simon Josefsson <simon@josefsson.org>
29676 * modules/dummy (License): Change to LGPLv2+.
29677 * modules/float (License): Likewise
29678 * modules/realloc (License): Likewise
29679 * modules/stdlib (License): Likewise
29681 2007-10-07 Bruno Haible <bruno@clisp.org>
29683 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29684 * floor.c (TWO_MANT_DIG): Likewise.
29685 * ceil.c (TWO_MANT_DIG): Likewise.
29686 Reported by Ben Pfaff.
29688 2007-10-07 Bruno Haible <bruno@clisp.org>
29690 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29691 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29692 * lib/frexp.c (FUNC): Likewise.
29693 * lib/printf-frexp.h (printf_frexp): Likewise.
29694 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29695 * lib/printf-frexp.c (FUNC): Likewise.
29696 Suggested by Jim Meyering.
29698 2007-10-07 Jim Meyering <meyering@redhat.com>
29700 Make xnanosleep's integer overflow test more robust.
29701 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29702 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29704 2007-10-07 Bruno Haible <bruno@clisp.org>
29706 * NEWS: Mention the license change.
29708 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29709 abbreviations in the modules files.
29711 Change copyright notice from GPLv2+ to GPLv3+.
29712 * README: Change copyright notice.
29713 * MODULES.html.sh: Likewise.
29714 * build-aux/bootstrap.conf: Likewise.
29715 * build-aux/config.libpath: Likewise.
29716 * build-aux/csharpcomp.sh.in: Likewise.
29717 * build-aux/csharpexec.sh.in: Likewise.
29718 * build-aux/install-reloc: Likewise.
29719 * build-aux/javacomp.sh.in: Likewise.
29720 * build-aux/javaexec.sh.in: Likewise.
29721 * build-aux/ldd.sh.in: Likewise.
29722 * build-aux/reloc-ldflags: Likewise.
29723 * build-aux/relocatable.sh.in: Likewise.
29724 * build-aux/x-to-1.in: Likewise.
29725 * check-module: Likewise.
29726 * config/srclistvars.sh: Likewise.
29727 * gnulib-tool: Likewise.
29728 * lib/acl-internal.h: Likewise.
29729 * lib/acl.c: Likewise.
29730 * lib/acl.h: Likewise.
29731 * lib/acl_entries.c: Likewise.
29732 * lib/areadlink-with-size.c: Likewise.
29733 * lib/areadlink.c: Likewise.
29734 * lib/areadlink.h: Likewise.
29735 * lib/argmatch.c: Likewise.
29736 * lib/argmatch.h: Likewise.
29737 * lib/argp-ba.c: Likewise.
29738 * lib/argp-eexst.c: Likewise.
29739 * lib/argp-fmtstream.c: Likewise.
29740 * lib/argp-fmtstream.h: Likewise.
29741 * lib/argp-fs-xinl.c: Likewise.
29742 * lib/argp-help.c: Likewise.
29743 * lib/argp-namefrob.h: Likewise.
29744 * lib/argp-parse.c: Likewise.
29745 * lib/argp-pin.c: Likewise.
29746 * lib/argp-pv.c: Likewise.
29747 * lib/argp-pvh.c: Likewise.
29748 * lib/argp-xinl.c: Likewise.
29749 * lib/argp.h: Likewise.
29750 * lib/at-func.c: Likewise.
29751 * lib/atanl.c: Likewise.
29752 * lib/backupfile.c: Likewise.
29753 * lib/backupfile.h: Likewise.
29754 * lib/basename.c: Likewise.
29755 * lib/binary-io.h: Likewise.
29756 * lib/byteswap.in.h: Likewise.
29757 * lib/c-stack.c: Likewise.
29758 * lib/c-stack.h: Likewise.
29759 * lib/c-strcasestr.c: Likewise.
29760 * lib/c-strcasestr.h: Likewise.
29761 * lib/c-strstr.c: Likewise.
29762 * lib/c-strstr.h: Likewise.
29763 * lib/c-strtod.c: Likewise.
29764 * lib/calloc.c: Likewise.
29765 * lib/canon-host.c: Likewise.
29766 * lib/canon-host.h: Likewise.
29767 * lib/canonicalize-lgpl.c: Likewise.
29768 * lib/canonicalize.c: Likewise.
29769 * lib/canonicalize.h: Likewise.
29770 * lib/ceil.c: Likewise.
29771 * lib/ceilf.c: Likewise.
29772 * lib/ceill.c: Likewise.
29773 * lib/chdir-long.c: Likewise.
29774 * lib/chdir-long.h: Likewise.
29775 * lib/chdir-safer.c: Likewise.
29776 * lib/chdir-safer.h: Likewise.
29777 * lib/chown.c: Likewise.
29778 * lib/classpath.c: Likewise.
29779 * lib/classpath.h: Likewise.
29780 * lib/clean-temp.c: Likewise.
29781 * lib/clean-temp.h: Likewise.
29782 * lib/cloexec.c: Likewise.
29783 * lib/close-stream.c: Likewise.
29784 * lib/closein.c: Likewise.
29785 * lib/closein.h: Likewise.
29786 * lib/closeout.c: Likewise.
29787 * lib/closeout.h: Likewise.
29788 * lib/concat-filename.c: Likewise.
29789 * lib/copy-file.c: Likewise.
29790 * lib/copy-file.h: Likewise.
29791 * lib/count-one-bits.h: Likewise.
29792 * lib/crc.c: Likewise.
29793 * lib/crc.h: Likewise.
29794 * lib/creat-safer.c: Likewise.
29795 * lib/csharpcomp.c: Likewise.
29796 * lib/csharpcomp.h: Likewise.
29797 * lib/csharpexec.c: Likewise.
29798 * lib/csharpexec.h: Likewise.
29799 * lib/cycle-check.c: Likewise.
29800 * lib/cycle-check.h: Likewise.
29801 * lib/diacrit.c: Likewise.
29802 * lib/diacrit.h: Likewise.
29803 * lib/diffseq.h: Likewise.
29804 * lib/dirchownmod.c: Likewise.
29805 * lib/dirent.in.h: Likewise.
29806 * lib/dirfd.c: Likewise.
29807 * lib/dirfd.h: Likewise.
29808 * lib/dirname.c: Likewise.
29809 * lib/dirname.h: Likewise.
29810 * lib/dummy.c: Likewise.
29811 * lib/dup-safer.c: Likewise.
29812 * lib/dup2.c: Likewise.
29813 * lib/eealloc.h: Likewise.
29814 * lib/error.c: Likewise.
29815 * lib/error.h: Likewise.
29816 * lib/euidaccess.c: Likewise.
29817 * lib/exclude.c: Likewise.
29818 * lib/exclude.h: Likewise.
29819 * lib/execute.c: Likewise.
29820 * lib/execute.h: Likewise.
29821 * lib/exitfail.c: Likewise.
29822 * lib/exitfail.h: Likewise.
29823 * lib/expl.c: Likewise.
29824 * lib/fatal-signal.c: Likewise.
29825 * lib/fatal-signal.h: Likewise.
29826 * lib/fbufmode.c: Likewise.
29827 * lib/fbufmode.h: Likewise.
29828 * lib/fchdir.c: Likewise.
29829 * lib/fchmodat.c: Likewise.
29830 * lib/fchownat.c: Likewise.
29831 * lib/fcntl--.h: Likewise.
29832 * lib/fcntl-safer.h: Likewise.
29833 * lib/fcntl.in.h: Likewise.
29834 * lib/fd-safer.c: Likewise.
29835 * lib/fflush.c: Likewise.
29836 * lib/file-has-acl.c: Likewise.
29837 * lib/file-set.c: Likewise.
29838 * lib/file-type.c: Likewise.
29839 * lib/file-type.h: Likewise.
29840 * lib/fileblocks.c: Likewise.
29841 * lib/filemode.c: Likewise.
29842 * lib/filemode.h: Likewise.
29843 * lib/filename.h: Likewise.
29844 * lib/filenamecat.c: Likewise.
29845 * lib/filenamecat.h: Likewise.
29846 * lib/findprog.c: Likewise.
29847 * lib/findprog.h: Likewise.
29848 * lib/float.in.h: Likewise.
29849 * lib/floor.c: Likewise.
29850 * lib/floorf.c: Likewise.
29851 * lib/floorl.c: Likewise.
29852 * lib/fopen-safer.c: Likewise.
29853 * lib/fopen.c: Likewise.
29854 * lib/fpending.c: Likewise.
29855 * lib/fpending.h: Likewise.
29856 * lib/fprintf.c: Likewise.
29857 * lib/fprintftime.h: Likewise.
29858 * lib/fpucw.h: Likewise.
29859 * lib/fpurge.c: Likewise.
29860 * lib/fpurge.h: Likewise.
29861 * lib/freadable.c: Likewise.
29862 * lib/freadable.h: Likewise.
29863 * lib/freadahead.c: Likewise.
29864 * lib/freadahead.h: Likewise.
29865 * lib/freading.c: Likewise.
29866 * lib/freading.h: Likewise.
29867 * lib/free.c: Likewise.
29868 * lib/freopen.c: Likewise.
29869 * lib/frexp.c: Likewise.
29870 * lib/frexpl.c: Likewise.
29871 * lib/fseek.c: Likewise.
29872 * lib/fseterr.c: Likewise.
29873 * lib/fseterr.h: Likewise.
29874 * lib/fstatat.c: Likewise.
29875 * lib/fstrcmp.c: Likewise.
29876 * lib/fstrcmp.h: Likewise.
29877 * lib/fsusage.c: Likewise.
29878 * lib/fsusage.h: Likewise.
29879 * lib/ftell.c: Likewise.
29880 * lib/ftello.c: Likewise.
29881 * lib/fts-cycle.c: Likewise.
29882 * lib/fts.c: Likewise.
29883 * lib/fts_.h: Likewise.
29884 * lib/full-read.c: Likewise.
29885 * lib/full-read.h: Likewise.
29886 * lib/full-write.c: Likewise.
29887 * lib/full-write.h: Likewise.
29888 * lib/fwritable.c: Likewise.
29889 * lib/fwritable.h: Likewise.
29890 * lib/fwriteerror.c: Likewise.
29891 * lib/fwriteerror.h: Likewise.
29892 * lib/fwriting.c: Likewise.
29893 * lib/fwriting.h: Likewise.
29894 * lib/gcd.c: Likewise.
29895 * lib/gcd.h: Likewise.
29896 * lib/getcwd.c: Likewise.
29897 * lib/getdate.h: Likewise.
29898 * lib/getdate.y: Likewise.
29899 * lib/getdomainname.c: Likewise.
29900 * lib/getdomainname.h: Likewise.
29901 * lib/getgroups.c: Likewise.
29902 * lib/gethostname.c: Likewise.
29903 * lib/gethrxtime.c: Likewise.
29904 * lib/gethrxtime.h: Likewise.
29905 * lib/getloadavg.c: Likewise.
29906 * lib/getndelim2.c: Likewise.
29907 * lib/getndelim2.h: Likewise.
29908 * lib/getnline.c: Likewise.
29909 * lib/getnline.h: Likewise.
29910 * lib/getopt.c: Likewise.
29911 * lib/getopt.in.h: Likewise.
29912 * lib/getopt1.c: Likewise.
29913 * lib/getopt_int.h: Likewise.
29914 * lib/getpagesize.h: Likewise.
29915 * lib/getsubopt.c: Likewise.
29916 * lib/gettime.c: Likewise.
29917 * lib/getugroups.c: Likewise.
29918 * lib/getugroups.h: Likewise.
29919 * lib/getusershell.c: Likewise.
29920 * lib/gl_anyavltree_list1.h: Likewise.
29921 * lib/gl_anyavltree_list2.h: Likewise.
29922 * lib/gl_anyhash_list1.h: Likewise.
29923 * lib/gl_anyhash_list2.h: Likewise.
29924 * lib/gl_anylinked_list1.h: Likewise.
29925 * lib/gl_anylinked_list2.h: Likewise.
29926 * lib/gl_anyrbtree_list1.h: Likewise.
29927 * lib/gl_anyrbtree_list2.h: Likewise.
29928 * lib/gl_anytree_list1.h: Likewise.
29929 * lib/gl_anytree_list2.h: Likewise.
29930 * lib/gl_anytree_oset.h: Likewise.
29931 * lib/gl_anytreehash_list1.h: Likewise.
29932 * lib/gl_anytreehash_list2.h: Likewise.
29933 * lib/gl_array_list.c: Likewise.
29934 * lib/gl_array_list.h: Likewise.
29935 * lib/gl_array_oset.c: Likewise.
29936 * lib/gl_array_oset.h: Likewise.
29937 * lib/gl_avltree_list.c: Likewise.
29938 * lib/gl_avltree_list.h: Likewise.
29939 * lib/gl_avltree_oset.c: Likewise.
29940 * lib/gl_avltree_oset.h: Likewise.
29941 * lib/gl_avltreehash_list.c: Likewise.
29942 * lib/gl_avltreehash_list.h: Likewise.
29943 * lib/gl_carray_list.c: Likewise.
29944 * lib/gl_carray_list.h: Likewise.
29945 * lib/gl_linked_list.c: Likewise.
29946 * lib/gl_linked_list.h: Likewise.
29947 * lib/gl_linkedhash_list.c: Likewise.
29948 * lib/gl_linkedhash_list.h: Likewise.
29949 * lib/gl_list.c: Likewise.
29950 * lib/gl_list.h: Likewise.
29951 * lib/gl_oset.c: Likewise.
29952 * lib/gl_oset.h: Likewise.
29953 * lib/gl_rbtree_list.c: Likewise.
29954 * lib/gl_rbtree_list.h: Likewise.
29955 * lib/gl_rbtree_oset.c: Likewise.
29956 * lib/gl_rbtree_oset.h: Likewise.
29957 * lib/gl_rbtreehash_list.c: Likewise.
29958 * lib/gl_rbtreehash_list.h: Likewise.
29959 * lib/gl_sublist.c: Likewise.
29960 * lib/gl_sublist.h: Likewise.
29961 * lib/group-member.c: Likewise.
29962 * lib/group-member.h: Likewise.
29963 * lib/hard-locale.c: Likewise.
29964 * lib/hard-locale.h: Likewise.
29965 * lib/hash-pjw.c: Likewise.
29966 * lib/hash-pjw.h: Likewise.
29967 * lib/hash-triple.c: Likewise.
29968 * lib/hash.c: Likewise.
29969 * lib/hash.h: Likewise.
29970 * lib/human.c: Likewise.
29971 * lib/human.h: Likewise.
29972 * lib/i-ring.c: Likewise.
29973 * lib/i-ring.h: Likewise.
29974 * lib/idcache.c: Likewise.
29975 * lib/imaxabs.c: Likewise.
29976 * lib/imaxdiv.c: Likewise.
29977 * lib/inet_pton.c: Likewise.
29978 * lib/inet_pton.h: Likewise.
29979 * lib/intprops.h: Likewise.
29980 * lib/inttostr.c: Likewise.
29981 * lib/inttostr.h: Likewise.
29982 * lib/inttypes.in.h: Likewise.
29983 * lib/isapipe.c: Likewise.
29984 * lib/isdir.c: Likewise.
29985 * lib/isnan.c: Likewise.
29986 * lib/isnan.h: Likewise.
29987 * lib/isnanf.c: Likewise.
29988 * lib/isnanf.h: Likewise.
29989 * lib/isnanl-nolibm.h: Likewise.
29990 * lib/isnanl.c: Likewise.
29991 * lib/isnanl.h: Likewise.
29992 * lib/javacomp.c: Likewise.
29993 * lib/javacomp.h: Likewise.
29994 * lib/javaexec.c: Likewise.
29995 * lib/javaexec.h: Likewise.
29996 * lib/javaversion.c: Likewise.
29997 * lib/javaversion.h: Likewise.
29998 * lib/javaversion.java: Likewise.
29999 * lib/lbrkprop.h: Likewise.
30000 * lib/lchmod.h: Likewise.
30001 * lib/lchown.c: Likewise.
30002 * lib/ldexpl.c: Likewise.
30003 * lib/linebreak.c: Likewise.
30004 * lib/linebreak.h: Likewise.
30005 * lib/linebuffer.c: Likewise.
30006 * lib/linebuffer.h: Likewise.
30007 * lib/locale.in.h: Likewise.
30008 * lib/logl.c: Likewise.
30009 * lib/long-options.c: Likewise.
30010 * lib/long-options.h: Likewise.
30011 * lib/lstat.c: Likewise.
30012 * lib/lstat.h: Likewise.
30013 * lib/math.in.h: Likewise.
30014 * lib/mbchar.c: Likewise.
30015 * lib/mbchar.h: Likewise.
30016 * lib/mbfile.h: Likewise.
30017 * lib/mbiter.h: Likewise.
30018 * lib/mbscasecmp.c: Likewise.
30019 * lib/mbscasestr.c: Likewise.
30020 * lib/mbschr.c: Likewise.
30021 * lib/mbscspn.c: Likewise.
30022 * lib/mbslen.c: Likewise.
30023 * lib/mbsncasecmp.c: Likewise.
30024 * lib/mbsnlen.c: Likewise.
30025 * lib/mbspbrk.c: Likewise.
30026 * lib/mbspcasecmp.c: Likewise.
30027 * lib/mbsrchr.c: Likewise.
30028 * lib/mbssep.c: Likewise.
30029 * lib/mbsspn.c: Likewise.
30030 * lib/mbsstr.c: Likewise.
30031 * lib/mbstok_r.c: Likewise.
30032 * lib/mbswidth.c: Likewise.
30033 * lib/mbswidth.h: Likewise.
30034 * lib/mbuiter.h: Likewise.
30035 * lib/memcasecmp.c: Likewise.
30036 * lib/memcasecmp.h: Likewise.
30037 * lib/memchr.c: Likewise.
30038 * lib/memcmp.c: Likewise.
30039 * lib/memcoll.c: Likewise.
30040 * lib/memcoll.h: Likewise.
30041 * lib/memcpy.c: Likewise.
30042 * lib/memrchr.c: Likewise.
30043 * lib/mkancesdirs.c: Likewise.
30044 * lib/mkdir-p.c: Likewise.
30045 * lib/mkdir-p.h: Likewise.
30046 * lib/mkdir.c: Likewise.
30047 * lib/mkdirat.c: Likewise.
30048 * lib/mkdtemp.c: Likewise.
30049 * lib/mkstemp-safer.c: Likewise.
30050 * lib/mkstemp.c: Likewise.
30051 * lib/modechange.c: Likewise.
30052 * lib/modechange.h: Likewise.
30053 * lib/mountlist.c: Likewise.
30054 * lib/mountlist.h: Likewise.
30055 * lib/mpsort.c: Likewise.
30056 * lib/nanosleep.c: Likewise.
30057 * lib/obstack.c: Likewise.
30058 * lib/obstack.h: Likewise.
30059 * lib/open-safer.c: Likewise.
30060 * lib/open.c: Likewise.
30061 * lib/openat-die.c: Likewise.
30062 * lib/openat-priv.h: Likewise.
30063 * lib/openat-proc.c: Likewise.
30064 * lib/openat.c: Likewise.
30065 * lib/openat.h: Likewise.
30066 * lib/pagealign_alloc.c: Likewise.
30067 * lib/pagealign_alloc.h: Likewise.
30068 * lib/physmem.c: Likewise.
30069 * lib/physmem.h: Likewise.
30070 * lib/pipe-safer.c: Likewise.
30071 * lib/pipe.c: Likewise.
30072 * lib/pipe.h: Likewise.
30073 * lib/posixtm.c: Likewise.
30074 * lib/posixtm.h: Likewise.
30075 * lib/posixver.c: Likewise.
30076 * lib/printf-frexp.c: Likewise.
30077 * lib/printf-frexp.h: Likewise.
30078 * lib/printf-frexpl.c: Likewise.
30079 * lib/printf-frexpl.h: Likewise.
30080 * lib/printf.c: Likewise.
30081 * lib/progname.c: Likewise.
30082 * lib/progname.h: Likewise.
30083 * lib/progreloc.c: Likewise.
30084 * lib/putenv.c: Likewise.
30085 * lib/quote.c: Likewise.
30086 * lib/quote.h: Likewise.
30087 * lib/quotearg.c: Likewise.
30088 * lib/quotearg.h: Likewise.
30089 * lib/raise.c: Likewise.
30090 * lib/readline.c: Likewise.
30091 * lib/readline.h: Likewise.
30092 * lib/readlink.c: Likewise.
30093 * lib/readtokens.c: Likewise.
30094 * lib/readtokens.h: Likewise.
30095 * lib/readtokens0.c: Likewise.
30096 * lib/readtokens0.h: Likewise.
30097 * lib/readutmp.c: Likewise.
30098 * lib/readutmp.h: Likewise.
30099 * lib/realloc.c: Likewise.
30100 * lib/relocwrapper.c: Likewise.
30101 * lib/rename-dest-slash.c: Likewise.
30102 * lib/rename.c: Likewise.
30103 * lib/rmdir.c: Likewise.
30104 * lib/rpmatch.c: Likewise.
30105 * lib/safe-read.c: Likewise.
30106 * lib/safe-read.h: Likewise.
30107 * lib/safe-write.c: Likewise.
30108 * lib/safe-write.h: Likewise.
30109 * lib/same-inode.h: Likewise.
30110 * lib/same.c: Likewise.
30111 * lib/same.h: Likewise.
30112 * lib/save-cwd.c: Likewise.
30113 * lib/save-cwd.h: Likewise.
30114 * lib/savedir.c: Likewise.
30115 * lib/savedir.h: Likewise.
30116 * lib/savewd.c: Likewise.
30117 * lib/savewd.h: Likewise.
30118 * lib/search.in.h: Likewise.
30119 * lib/setenv.c: Likewise.
30120 * lib/setenv.h: Likewise.
30121 * lib/settime.c: Likewise.
30122 * lib/sh-quote.c: Likewise.
30123 * lib/sh-quote.h: Likewise.
30124 * lib/sig2str.c: Likewise.
30125 * lib/sig2str.h: Likewise.
30126 * lib/signal.in.h: Likewise.
30127 * lib/signbitd.c: Likewise.
30128 * lib/signbitf.c: Likewise.
30129 * lib/signbitl.c: Likewise.
30130 * lib/sigprocmask.c: Likewise.
30131 * lib/sincosl.c: Likewise.
30132 * lib/sleep.c: Likewise.
30133 * lib/sprintf.c: Likewise.
30134 * lib/sqrtl.c: Likewise.
30135 * lib/stat-time.h: Likewise.
30136 * lib/stdio--.h: Likewise.
30137 * lib/stdio-safer.h: Likewise.
30138 * lib/stdlib--.h: Likewise.
30139 * lib/stdlib-safer.h: Likewise.
30140 * lib/stdlib.in.h: Likewise.
30141 * lib/stpcpy.c: Likewise.
30142 * lib/stpncpy.c: Likewise.
30143 * lib/strchrnul.c: Likewise.
30144 * lib/strcspn.c: Likewise.
30145 * lib/strerror.c: Likewise.
30146 * lib/strftime.c: Likewise.
30147 * lib/strftime.h: Likewise.
30148 * lib/striconveh.c: Likewise.
30149 * lib/striconveh.h: Likewise.
30150 * lib/striconveha.c: Likewise.
30151 * lib/striconveha.h: Likewise.
30152 * lib/stripslash.c: Likewise.
30153 * lib/strnlen1.c: Likewise.
30154 * lib/strnlen1.h: Likewise.
30155 * lib/strtod.c: Likewise.
30156 * lib/strtoimax.c: Likewise.
30157 * lib/strtok_r.c: Likewise.
30158 * lib/strtol.c: Likewise.
30159 * lib/strtoll.c: Likewise.
30160 * lib/strtoul.c: Likewise.
30161 * lib/strtoull.c: Likewise.
30162 * lib/sysexits.in.h: Likewise.
30163 * lib/tempname.c: Likewise.
30164 * lib/tempname.h: Likewise.
30165 * lib/timespec.h: Likewise.
30166 * lib/tls.c: Likewise.
30167 * lib/tls.h: Likewise.
30168 * lib/tmpdir.c: Likewise.
30169 * lib/tmpdir.h: Likewise.
30170 * lib/tmpfile-safer.c: Likewise.
30171 * lib/tmpfile.c: Likewise.
30172 * lib/trigl.c: Likewise.
30173 * lib/trigl.h: Likewise.
30174 * lib/trim.c: Likewise.
30175 * lib/trim.h: Likewise.
30176 * lib/trunc.c: Likewise.
30177 * lib/truncf.c: Likewise.
30178 * lib/truncl.c: Likewise.
30179 * lib/tsearch.c: Likewise.
30180 * lib/unicodeio.c: Likewise.
30181 * lib/unicodeio.h: Likewise.
30182 * lib/unistd--.h: Likewise.
30183 * lib/unistd-safer.h: Likewise.
30184 * lib/unistdio/ulc-fprintf.c: Likewise.
30185 * lib/unistdio/ulc-vfprintf.c: Likewise.
30186 * lib/unlinkdir.c: Likewise.
30187 * lib/unlinkdir.h: Likewise.
30188 * lib/unlocked-io.h: Likewise.
30189 * lib/unsetenv.c: Likewise.
30190 * lib/userspec.c: Likewise.
30191 * lib/utime.c: Likewise.
30192 * lib/utimecmp.c: Likewise.
30193 * lib/utimecmp.h: Likewise.
30194 * lib/utimens.c: Likewise.
30195 * lib/verify.h: Likewise.
30196 * lib/verror.c: Likewise.
30197 * lib/verror.h: Likewise.
30198 * lib/version-etc-fsf.c: Likewise.
30199 * lib/version-etc.c: Likewise.
30200 * lib/version-etc.h: Likewise.
30201 * lib/vfprintf.c: Likewise.
30202 * lib/vprintf.c: Likewise.
30203 * lib/vsprintf.c: Likewise.
30204 * lib/w32spawn.h: Likewise.
30205 * lib/wait-process.c: Likewise.
30206 * lib/wait-process.h: Likewise.
30207 * lib/wcwidth.c: Likewise.
30208 * lib/write-any-file.c: Likewise.
30209 * lib/xalloc-die.c: Likewise.
30210 * lib/xalloc.h: Likewise.
30211 * lib/xasprintf.c: Likewise.
30212 * lib/xgetcwd.c: Likewise.
30213 * lib/xgetcwd.h: Likewise.
30214 * lib/xgetdomainname.c: Likewise.
30215 * lib/xgetdomainname.h: Likewise.
30216 * lib/xgethostname.c: Likewise.
30217 * lib/xmalloc.c: Likewise.
30218 * lib/xmalloca.c: Likewise.
30219 * lib/xmalloca.h: Likewise.
30220 * lib/xmemcoll.c: Likewise.
30221 * lib/xnanosleep.c: Likewise.
30222 * lib/xreadlink.c: Likewise.
30223 * lib/xreadlink.h: Likewise.
30224 * lib/xsetenv.c: Likewise.
30225 * lib/xsetenv.h: Likewise.
30226 * lib/xstriconv.c: Likewise.
30227 * lib/xstriconv.h: Likewise.
30228 * lib/xstrndup.c: Likewise.
30229 * lib/xstrndup.h: Likewise.
30230 * lib/xstrtod.c: Likewise.
30231 * lib/xstrtod.h: Likewise.
30232 * lib/xstrtol-error.c: Likewise.
30233 * lib/xstrtol.c: Likewise.
30234 * lib/xstrtol.h: Likewise.
30235 * lib/xtime.h: Likewise.
30236 * lib/xvasprintf.c: Likewise.
30237 * lib/xvasprintf.h: Likewise.
30238 * lib/yesno.c: Likewise.
30239 * lib/yesno.h: Likewise.
30240 * posix-modules: Likewise.
30241 * tests/test-alloca-opt.c: Likewise.
30242 * tests/test-arcfour.c: Likewise.
30243 * tests/test-arctwo.c: Likewise.
30244 * tests/test-argmatch.c: Likewise.
30245 * tests/test-argp-2.sh: Likewise.
30246 * tests/test-argp.c: Likewise.
30247 * tests/test-arpa_inet.c: Likewise.
30248 * tests/test-array_list.c: Likewise.
30249 * tests/test-array_oset.c: Likewise.
30250 * tests/test-atexit.c: Likewise.
30251 * tests/test-avltree_list.c: Likewise.
30252 * tests/test-avltree_oset.c: Likewise.
30253 * tests/test-avltreehash_list.c: Likewise.
30254 * tests/test-base64.c: Likewise.
30255 * tests/test-binary-io.c: Likewise.
30256 * tests/test-byteswap.c: Likewise.
30257 * tests/test-c-ctype.c: Likewise.
30258 * tests/test-c-strcasecmp.c: Likewise.
30259 * tests/test-c-strcasestr.c: Likewise.
30260 * tests/test-c-strncasecmp.c: Likewise.
30261 * tests/test-c-strstr.c: Likewise.
30262 * tests/test-canonicalize-lgpl.c: Likewise.
30263 * tests/test-canonicalize.c: Likewise.
30264 * tests/test-carray_list.c: Likewise.
30265 * tests/test-ceilf.c: Likewise.
30266 * tests/test-ceill.c: Likewise.
30267 * tests/test-count-one-bits.c: Likewise.
30268 * tests/test-crc.c: Likewise.
30269 * tests/test-dirname.c: Likewise.
30270 * tests/test-fbufmode.c: Likewise.
30271 * tests/test-fcntl.c: Likewise.
30272 * tests/test-fflush.c: Likewise.
30273 * tests/test-floorf.c: Likewise.
30274 * tests/test-floorl.c: Likewise.
30275 * tests/test-fopen.c: Likewise.
30276 * tests/test-fprintf-posix.c: Likewise.
30277 * tests/test-fprintf-posix.h: Likewise.
30278 * tests/test-fpurge.c: Likewise.
30279 * tests/test-freadable.c: Likewise.
30280 * tests/test-freadahead.c: Likewise.
30281 * tests/test-freading.c: Likewise.
30282 * tests/test-freopen.c: Likewise.
30283 * tests/test-frexp.c: Likewise.
30284 * tests/test-frexpl.c: Likewise.
30285 * tests/test-fseek.c: Likewise.
30286 * tests/test-fseeko.c: Likewise.
30287 * tests/test-fseterr.c: Likewise.
30288 * tests/test-fstrcmp.c: Likewise.
30289 * tests/test-ftell.c: Likewise.
30290 * tests/test-ftello.c: Likewise.
30291 * tests/test-fwritable.c: Likewise.
30292 * tests/test-fwriting.c: Likewise.
30293 * tests/test-getaddrinfo.c: Likewise.
30294 * tests/test-getpass.c: Likewise.
30295 * tests/test-gettimeofday.c: Likewise.
30296 * tests/test-hmac-md5.c: Likewise.
30297 * tests/test-hmac-sha1.c: Likewise.
30298 * tests/test-iconv.c: Likewise.
30299 * tests/test-iconvme.c: Likewise.
30300 * tests/test-inttypes.c: Likewise.
30301 * tests/test-isnan.c: Likewise.
30302 * tests/test-isnanf.c: Likewise.
30303 * tests/test-isnanl-nolibm.c: Likewise.
30304 * tests/test-isnanl.c: Likewise.
30305 * tests/test-isnanl.h: Likewise.
30306 * tests/test-ldexpl.c: Likewise.
30307 * tests/test-linked_list.c: Likewise.
30308 * tests/test-linkedhash_list.c: Likewise.
30309 * tests/test-locale.c: Likewise.
30310 * tests/test-localename.c: Likewise.
30311 * tests/test-lock.c: Likewise.
30312 * tests/test-lseek.c: Likewise.
30313 * tests/test-malloca.c: Likewise.
30314 * tests/test-math.c: Likewise.
30315 * tests/test-mbscasecmp.c: Likewise.
30316 * tests/test-mbscasestr1.c: Likewise.
30317 * tests/test-mbscasestr2.c: Likewise.
30318 * tests/test-mbscasestr3.c: Likewise.
30319 * tests/test-mbscasestr4.c: Likewise.
30320 * tests/test-mbschr.c: Likewise.
30321 * tests/test-mbscspn.c: Likewise.
30322 * tests/test-mbsncasecmp.c: Likewise.
30323 * tests/test-mbspbrk.c: Likewise.
30324 * tests/test-mbspcasecmp.c: Likewise.
30325 * tests/test-mbsrchr.c: Likewise.
30326 * tests/test-mbsspn.c: Likewise.
30327 * tests/test-mbsstr1.c: Likewise.
30328 * tests/test-mbsstr2.c: Likewise.
30329 * tests/test-mbsstr3.c: Likewise.
30330 * tests/test-md5.c: Likewise.
30331 * tests/test-memmem.c: Likewise.
30332 * tests/test-netinet_in.c: Likewise.
30333 * tests/test-open.c: Likewise.
30334 * tests/test-printf-frexp.c: Likewise.
30335 * tests/test-printf-frexpl.c: Likewise.
30336 * tests/test-printf-posix.c: Likewise.
30337 * tests/test-printf-posix.h: Likewise.
30338 * tests/test-rbtree_list.c: Likewise.
30339 * tests/test-rbtree_oset.c: Likewise.
30340 * tests/test-rbtreehash_list.c: Likewise.
30341 * tests/test-read-file.c: Likewise.
30342 * tests/test-rijndael.c: Likewise.
30343 * tests/test-search.c: Likewise.
30344 * tests/test-signbit.c: Likewise.
30345 * tests/test-sleep.c: Likewise.
30346 * tests/test-snprintf-posix.c: Likewise.
30347 * tests/test-snprintf-posix.h: Likewise.
30348 * tests/test-snprintf.c: Likewise.
30349 * tests/test-sprintf-posix.c: Likewise.
30350 * tests/test-sprintf-posix.h: Likewise.
30351 * tests/test-stat-time.c: Likewise.
30352 * tests/test-stdbool.c: Likewise.
30353 * tests/test-stdint.c: Likewise.
30354 * tests/test-stdio.c: Likewise.
30355 * tests/test-stdlib.c: Likewise.
30356 * tests/test-stpncpy.c: Likewise.
30357 * tests/test-strcasestr.c: Likewise.
30358 * tests/test-striconv.c: Likewise.
30359 * tests/test-striconveh.c: Likewise.
30360 * tests/test-striconveha.c: Likewise.
30361 * tests/test-string.c: Likewise.
30362 * tests/test-sys_select.c: Likewise.
30363 * tests/test-sys_socket.c: Likewise.
30364 * tests/test-sys_stat.c: Likewise.
30365 * tests/test-sys_time.c: Likewise.
30366 * tests/test-sysexits.c: Likewise.
30367 * tests/test-time.c: Likewise.
30368 * tests/test-tls.c: Likewise.
30369 * tests/test-trunc.c: Likewise.
30370 * tests/test-truncf.c: Likewise.
30371 * tests/test-truncl.c: Likewise.
30372 * tests/test-unistd.c: Likewise.
30373 * tests/test-vasnprintf-posix.c: Likewise.
30374 * tests/test-vasnprintf-posix2.c: Likewise.
30375 * tests/test-vasnprintf.c: Likewise.
30376 * tests/test-vasprintf-posix.c: Likewise.
30377 * tests/test-vasprintf.c: Likewise.
30378 * tests/test-verify.c: Likewise.
30379 * tests/test-vfprintf-posix.c: Likewise.
30380 * tests/test-vprintf-posix.c: Likewise.
30381 * tests/test-vsnprintf-posix.c: Likewise.
30382 * tests/test-vsnprintf.c: Likewise.
30383 * tests/test-vsprintf-posix.c: Likewise.
30384 * tests/test-wchar.c: Likewise.
30385 * tests/test-wctype.c: Likewise.
30386 * tests/test-wcwidth.c: Likewise.
30387 * tests/test-xstrtol.c: Likewise.
30388 * tests/test-xvasprintf.c: Likewise.
30389 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30390 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30391 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30392 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30393 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30394 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30395 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30396 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30397 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30398 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30399 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30400 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30401 * tests/uniname/test-uninames.c: Likewise.
30402 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30403 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30404 * tests/unistdio/test-u16-printf1.h: Likewise.
30405 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30406 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30407 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30408 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30409 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30410 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30411 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30412 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30413 * tests/unistdio/test-u32-printf1.h: Likewise.
30414 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30415 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30416 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30417 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30418 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30419 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30420 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30421 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30422 * tests/unistdio/test-u8-printf1.h: Likewise.
30423 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30424 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30425 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30426 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30427 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30428 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30429 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30430 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30431 * tests/unistdio/test-ulc-printf1.h: Likewise.
30432 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30433 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30434 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30435 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30436 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30437 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30438 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30439 * tests/uniwidth/test-u16-width.c: Likewise.
30440 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30441 * tests/uniwidth/test-u32-width.c: Likewise.
30442 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30443 * tests/uniwidth/test-u8-width.c: Likewise.
30444 * tests/uniwidth/test-uc_width.c: Likewise.
30445 * config/srclist-update: Likewise.
30446 (fixlicense): Update to GPLv3+.
30448 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30449 * tests/test-tsearch.c: Change copyright notice.
30451 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30452 * lib/c-strcaseeq.h: Change copyright notice.
30453 * lib/streq.h: Likewise.
30454 * lib/uniconv.h: Likewise.
30455 * lib/uniconv/u-conv-from-enc.h: Likewise.
30456 * lib/uniconv/u-conv-to-enc.h: Likewise.
30457 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30458 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30459 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30460 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30461 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30462 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30463 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30464 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30465 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30466 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30467 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30468 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30469 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30470 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30471 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30472 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30473 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30474 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30475 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30476 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30477 * lib/uniname.h: Likewise.
30478 * lib/uniname/uniname.c: Likewise.
30479 * lib/unistdio.h: Likewise.
30480 * lib/unistdio/u-asnprintf.h: Likewise.
30481 * lib/unistdio/u-asprintf.h: Likewise.
30482 * lib/unistdio/u-printf-args.c: Likewise.
30483 * lib/unistdio/u-printf-args.h: Likewise.
30484 * lib/unistdio/u-printf-parse.h: Likewise.
30485 * lib/unistdio/u-snprintf.h: Likewise.
30486 * lib/unistdio/u-sprintf.h: Likewise.
30487 * lib/unistdio/u-vasprintf.h: Likewise.
30488 * lib/unistdio/u-vsnprintf.h: Likewise.
30489 * lib/unistdio/u-vsprintf.h: Likewise.
30490 * lib/unistdio/u16-asnprintf.c: Likewise.
30491 * lib/unistdio/u16-asprintf.c: Likewise.
30492 * lib/unistdio/u16-printf-parse.c: Likewise.
30493 * lib/unistdio/u16-snprintf.c: Likewise.
30494 * lib/unistdio/u16-sprintf.c: Likewise.
30495 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30496 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30497 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30498 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30499 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30500 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30501 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30502 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30503 * lib/unistdio/u16-vasnprintf.c: Likewise.
30504 * lib/unistdio/u16-vasprintf.c: Likewise.
30505 * lib/unistdio/u16-vsnprintf.c: Likewise.
30506 * lib/unistdio/u16-vsprintf.c: Likewise.
30507 * lib/unistdio/u32-asnprintf.c: Likewise.
30508 * lib/unistdio/u32-asprintf.c: Likewise.
30509 * lib/unistdio/u32-printf-parse.c: Likewise.
30510 * lib/unistdio/u32-snprintf.c: Likewise.
30511 * lib/unistdio/u32-sprintf.c: Likewise.
30512 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30513 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30514 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30515 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30516 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30517 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30518 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30519 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30520 * lib/unistdio/u32-vasnprintf.c: Likewise.
30521 * lib/unistdio/u32-vasprintf.c: Likewise.
30522 * lib/unistdio/u32-vsnprintf.c: Likewise.
30523 * lib/unistdio/u32-vsprintf.c: Likewise.
30524 * lib/unistdio/u8-asnprintf.c: Likewise.
30525 * lib/unistdio/u8-asprintf.c: Likewise.
30526 * lib/unistdio/u8-printf-parse.c: Likewise.
30527 * lib/unistdio/u8-snprintf.c: Likewise.
30528 * lib/unistdio/u8-sprintf.c: Likewise.
30529 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30530 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30531 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30532 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30533 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30534 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30535 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30536 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30537 * lib/unistdio/u8-vasnprintf.c: Likewise.
30538 * lib/unistdio/u8-vasprintf.c: Likewise.
30539 * lib/unistdio/u8-vsnprintf.c: Likewise.
30540 * lib/unistdio/u8-vsprintf.c: Likewise.
30541 * lib/unistdio/ulc-asnprintf.c: Likewise.
30542 * lib/unistdio/ulc-asprintf.c: Likewise.
30543 * lib/unistdio/ulc-printf-parse.c: Likewise.
30544 * lib/unistdio/ulc-snprintf.c: Likewise.
30545 * lib/unistdio/ulc-sprintf.c: Likewise.
30546 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30547 * lib/unistdio/ulc-vasprintf.c: Likewise.
30548 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30549 * lib/unistdio/ulc-vsprintf.c: Likewise.
30550 * lib/unistr.h: Likewise.
30551 * lib/unistr/u-cpy-alloc.h: Likewise.
30552 * lib/unistr/u-cpy.h: Likewise.
30553 * lib/unistr/u-endswith.h: Likewise.
30554 * lib/unistr/u-move.h: Likewise.
30555 * lib/unistr/u-set.h: Likewise.
30556 * lib/unistr/u-startswith.h: Likewise.
30557 * lib/unistr/u-stpcpy.h: Likewise.
30558 * lib/unistr/u-stpncpy.h: Likewise.
30559 * lib/unistr/u-strcat.h: Likewise.
30560 * lib/unistr/u-strcpy.h: Likewise.
30561 * lib/unistr/u-strcspn.h: Likewise.
30562 * lib/unistr/u-strdup.h: Likewise.
30563 * lib/unistr/u-strlen.h: Likewise.
30564 * lib/unistr/u-strncat.h: Likewise.
30565 * lib/unistr/u-strncpy.h: Likewise.
30566 * lib/unistr/u-strnlen.h: Likewise.
30567 * lib/unistr/u-strpbrk.h: Likewise.
30568 * lib/unistr/u-strspn.h: Likewise.
30569 * lib/unistr/u-strstr.h: Likewise.
30570 * lib/unistr/u-strtok.h: Likewise.
30571 * lib/unistr/u16-check.c: Likewise.
30572 * lib/unistr/u16-chr.c: Likewise.
30573 * lib/unistr/u16-cmp.c: Likewise.
30574 * lib/unistr/u16-cpy-alloc.c: Likewise.
30575 * lib/unistr/u16-cpy.c: Likewise.
30576 * lib/unistr/u16-endswith.c: Likewise.
30577 * lib/unistr/u16-mblen.c: Likewise.
30578 * lib/unistr/u16-mbsnlen.c: Likewise.
30579 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30580 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30581 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30582 * lib/unistr/u16-mbtouc.c: Likewise.
30583 * lib/unistr/u16-mbtoucr.c: Likewise.
30584 * lib/unistr/u16-move.c: Likewise.
30585 * lib/unistr/u16-next.c: Likewise.
30586 * lib/unistr/u16-prev.c: Likewise.
30587 * lib/unistr/u16-set.c: Likewise.
30588 * lib/unistr/u16-startswith.c: Likewise.
30589 * lib/unistr/u16-stpcpy.c: Likewise.
30590 * lib/unistr/u16-stpncpy.c: Likewise.
30591 * lib/unistr/u16-strcat.c: Likewise.
30592 * lib/unistr/u16-strchr.c: Likewise.
30593 * lib/unistr/u16-strcmp.c: Likewise.
30594 * lib/unistr/u16-strcpy.c: Likewise.
30595 * lib/unistr/u16-strcspn.c: Likewise.
30596 * lib/unistr/u16-strdup.c: Likewise.
30597 * lib/unistr/u16-strlen.c: Likewise.
30598 * lib/unistr/u16-strmblen.c: Likewise.
30599 * lib/unistr/u16-strmbtouc.c: Likewise.
30600 * lib/unistr/u16-strncat.c: Likewise.
30601 * lib/unistr/u16-strncmp.c: Likewise.
30602 * lib/unistr/u16-strncpy.c: Likewise.
30603 * lib/unistr/u16-strnlen.c: Likewise.
30604 * lib/unistr/u16-strpbrk.c: Likewise.
30605 * lib/unistr/u16-strrchr.c: Likewise.
30606 * lib/unistr/u16-strspn.c: Likewise.
30607 * lib/unistr/u16-strstr.c: Likewise.
30608 * lib/unistr/u16-strtok.c: Likewise.
30609 * lib/unistr/u16-to-u32.c: Likewise.
30610 * lib/unistr/u16-to-u8.c: Likewise.
30611 * lib/unistr/u16-uctomb-aux.c: Likewise.
30612 * lib/unistr/u16-uctomb.c: Likewise.
30613 * lib/unistr/u32-check.c: Likewise.
30614 * lib/unistr/u32-chr.c: Likewise.
30615 * lib/unistr/u32-cmp.c: Likewise.
30616 * lib/unistr/u32-cpy-alloc.c: Likewise.
30617 * lib/unistr/u32-cpy.c: Likewise.
30618 * lib/unistr/u32-endswith.c: Likewise.
30619 * lib/unistr/u32-mblen.c: Likewise.
30620 * lib/unistr/u32-mbsnlen.c: Likewise.
30621 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30622 * lib/unistr/u32-mbtouc.c: Likewise.
30623 * lib/unistr/u32-mbtoucr.c: Likewise.
30624 * lib/unistr/u32-move.c: Likewise.
30625 * lib/unistr/u32-next.c: Likewise.
30626 * lib/unistr/u32-prev.c: Likewise.
30627 * lib/unistr/u32-set.c: Likewise.
30628 * lib/unistr/u32-startswith.c: Likewise.
30629 * lib/unistr/u32-stpcpy.c: Likewise.
30630 * lib/unistr/u32-stpncpy.c: Likewise.
30631 * lib/unistr/u32-strcat.c: Likewise.
30632 * lib/unistr/u32-strchr.c: Likewise.
30633 * lib/unistr/u32-strcmp.c: Likewise.
30634 * lib/unistr/u32-strcpy.c: Likewise.
30635 * lib/unistr/u32-strcspn.c: Likewise.
30636 * lib/unistr/u32-strdup.c: Likewise.
30637 * lib/unistr/u32-strlen.c: Likewise.
30638 * lib/unistr/u32-strmblen.c: Likewise.
30639 * lib/unistr/u32-strmbtouc.c: Likewise.
30640 * lib/unistr/u32-strncat.c: Likewise.
30641 * lib/unistr/u32-strncmp.c: Likewise.
30642 * lib/unistr/u32-strncpy.c: Likewise.
30643 * lib/unistr/u32-strnlen.c: Likewise.
30644 * lib/unistr/u32-strpbrk.c: Likewise.
30645 * lib/unistr/u32-strrchr.c: Likewise.
30646 * lib/unistr/u32-strspn.c: Likewise.
30647 * lib/unistr/u32-strstr.c: Likewise.
30648 * lib/unistr/u32-strtok.c: Likewise.
30649 * lib/unistr/u32-to-u16.c: Likewise.
30650 * lib/unistr/u32-to-u8.c: Likewise.
30651 * lib/unistr/u32-uctomb.c: Likewise.
30652 * lib/unistr/u8-check.c: Likewise.
30653 * lib/unistr/u8-chr.c: Likewise.
30654 * lib/unistr/u8-cmp.c: Likewise.
30655 * lib/unistr/u8-cpy-alloc.c: Likewise.
30656 * lib/unistr/u8-cpy.c: Likewise.
30657 * lib/unistr/u8-endswith.c: Likewise.
30658 * lib/unistr/u8-mblen.c: Likewise.
30659 * lib/unistr/u8-mbsnlen.c: Likewise.
30660 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30661 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30662 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30663 * lib/unistr/u8-mbtouc.c: Likewise.
30664 * lib/unistr/u8-mbtoucr.c: Likewise.
30665 * lib/unistr/u8-move.c: Likewise.
30666 * lib/unistr/u8-next.c: Likewise.
30667 * lib/unistr/u8-prev.c: Likewise.
30668 * lib/unistr/u8-set.c: Likewise.
30669 * lib/unistr/u8-startswith.c: Likewise.
30670 * lib/unistr/u8-stpcpy.c: Likewise.
30671 * lib/unistr/u8-stpncpy.c: Likewise.
30672 * lib/unistr/u8-strcat.c: Likewise.
30673 * lib/unistr/u8-strchr.c: Likewise.
30674 * lib/unistr/u8-strcmp.c: Likewise.
30675 * lib/unistr/u8-strcpy.c: Likewise.
30676 * lib/unistr/u8-strcspn.c: Likewise.
30677 * lib/unistr/u8-strdup.c: Likewise.
30678 * lib/unistr/u8-strlen.c: Likewise.
30679 * lib/unistr/u8-strmblen.c: Likewise.
30680 * lib/unistr/u8-strmbtouc.c: Likewise.
30681 * lib/unistr/u8-strncat.c: Likewise.
30682 * lib/unistr/u8-strncmp.c: Likewise.
30683 * lib/unistr/u8-strncpy.c: Likewise.
30684 * lib/unistr/u8-strnlen.c: Likewise.
30685 * lib/unistr/u8-strpbrk.c: Likewise.
30686 * lib/unistr/u8-strrchr.c: Likewise.
30687 * lib/unistr/u8-strspn.c: Likewise.
30688 * lib/unistr/u8-strstr.c: Likewise.
30689 * lib/unistr/u8-strtok.c: Likewise.
30690 * lib/unistr/u8-to-u16.c: Likewise.
30691 * lib/unistr/u8-to-u32.c: Likewise.
30692 * lib/unistr/u8-uctomb-aux.c: Likewise.
30693 * lib/unistr/u8-uctomb.c: Likewise.
30694 * lib/unitypes.h: Likewise.
30695 * lib/uniwidth.h: Likewise.
30696 * lib/uniwidth/cjk.h: Likewise.
30697 * lib/uniwidth/u16-strwidth.c: Likewise.
30698 * lib/uniwidth/u16-width.c: Likewise.
30699 * lib/uniwidth/u32-strwidth.c: Likewise.
30700 * lib/uniwidth/u32-width.c: Likewise.
30701 * lib/uniwidth/u8-strwidth.c: Likewise.
30702 * lib/uniwidth/u8-width.c: Likewise.
30703 * lib/uniwidth/width.c: Likewise.
30705 2007-10-07 Bruno Haible <bruno@clisp.org>
30707 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30708 The file is still under LGPL (see modules/inttypes).
30710 2007-10-06 Bruno Haible <bruno@clisp.org>
30712 * modules/trunc (Dependencies): Add 'extensions'.
30713 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30714 Reported by Ben Pfaff <blp@gnu.org>.
30716 2007-10-06 Bruno Haible <bruno@clisp.org>
30718 * modules/freopen-tests: New file.
30719 * tests/test-freopen.c: New file.
30721 * modules/fopen-tests: New file.
30722 * tests/test-fopen.c: New file.
30724 * modules/fopen: New file.
30725 * lib/fopen.c: New file.
30726 * m4/fopen.m4: New file.
30727 * modules/freopen: New file.
30728 * lib/freopen.c: New file.
30729 * m4/freopen.m4: New file.
30730 * lib/stdio.in.h (fopen, freopen): New declarations.
30731 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30732 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30733 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30734 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30735 * doc/functions/fopen.texi: Mention the 'fopen' module.
30736 * doc/functions/freopen.texi: Mention the 'freopen' module.
30738 2007-10-06 Bruno Haible <bruno@clisp.org>
30740 * modules/open-tests: New file.
30741 * tests/test-open.c: New file.
30743 * modules/open: New file.
30744 * lib/open.c: New file.
30745 * m4/open.m4: New file.
30746 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30748 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30749 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30751 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30752 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30754 * doc/functions/open.texi: Mention the 'open' module.
30756 2007-10-04 Bruno Haible <bruno@clisp.org>
30758 * modules/ceill-tests: New file.
30759 * tests/test-ceill.c: New file.
30761 * modules/ceill: New file.
30762 * lib/ceill.c: Replace entire file.
30763 * m4/ceill.m4: New file.
30764 * lib/math.in.h (ceill): Replace declaration.
30765 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30766 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30767 * doc/functions/ceill.texi: Mention the 'ceill' module.
30768 * modules/mathl (Files): Remove lib/ceill.c.
30769 (Depends-on): Add ceill.
30771 2007-10-04 Bruno Haible <bruno@clisp.org>
30773 * modules/ceilf-tests: New file.
30774 * tests/test-ceilf.c: New file.
30776 * modules/ceilf: New file.
30777 * lib/ceil.c: New file.
30778 * lib/ceilf.c: New file.
30779 * m4/ceilf.m4: New file.
30780 * lib/math.in.h (ceilf): New declaration.
30781 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30783 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30785 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30787 2007-10-04 Bruno Haible <bruno@clisp.org>
30789 * modules/floorl-tests: New file.
30790 * tests/test-floorl.c: New file.
30792 * modules/floorl: New file.
30793 * lib/floorl.c: Replace entire file.
30794 * m4/floorl.m4: New file.
30795 * lib/math.in.h (floorl): Replace declaration.
30796 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30797 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30798 * doc/functions/floorl.texi: Mention the 'floorl' module.
30799 * modules/mathl (Files): Remove lib/floorl.c.
30800 (Depends-on): Add floorl.
30802 2007-10-04 Bruno Haible <bruno@clisp.org>
30804 * modules/floorf-tests: New file.
30805 * tests/test-floorf.c: New file.
30807 * modules/floorf: New file.
30808 * lib/floor.c: New file.
30809 * lib/floorf.c: New file.
30810 * m4/floorf.m4: New file.
30811 * lib/math.in.h (floorf): New declaration.
30812 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30814 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30816 * doc/functions/floorf.texi: Mention the 'floorf' module.
30818 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30819 Bruno Haible <bruno@clisp.org>
30821 Advertise for the Git server instead of the CVS server.
30822 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30823 repository instead of the CVS one.
30824 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30825 about all VCS systems generically.
30826 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30828 2007-10-04 Bruno Haible <bruno@clisp.org>
30830 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30832 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30834 2007-10-04 Bruno Haible <bruno@clisp.org>
30836 * modules/truncl-tests: New file.
30837 * tests/test-truncl.c: New file.
30839 * modules/truncl: New file.
30840 * lib/truncl.c: New file.
30841 * m4/truncl.m4: New file.
30842 * lib/math.in.h (truncl): New declaration.
30843 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30845 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30847 * doc/functions/truncl.texi: Mention the 'truncl' module.
30849 2007-10-04 Bruno Haible <bruno@clisp.org>
30851 * modules/truncf-tests: New file.
30852 * tests/test-truncf.c: New file.
30854 * modules/truncf: New file.
30855 * lib/trunc.c: Make paramerizable through USE_* macros.
30856 * lib/truncf.c: New file.
30857 * m4/truncf.m4: New file.
30858 * lib/math.in.h (truncf): New declaration.
30859 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30861 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30863 * doc/functions/truncf.texi: Mention the 'truncf' module.
30865 2007-10-03 Bruno Haible <bruno@clisp.org>
30867 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30868 augmentation also for tests modules.
30869 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30870 * modules/atexit-tests (Makefile.am): Likewise.
30871 * modules/binary-io-tests (Makefile.am): Likewise.
30872 * modules/c-strcase-tests (Makefile.am): Likewise.
30873 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30874 * modules/canonicalize-tests (Makefile.am): Likewise.
30875 * modules/closein-tests (Makefile.am): Likewise.
30876 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30877 * modules/freadahead-tests (Makefile.am): Likewise.
30878 * modules/fseek-tests (Makefile.am): Likewise.
30879 * modules/fseeko-tests (Makefile.am): Likewise.
30880 * modules/ftell-tests (Makefile.am): Likewise.
30881 * modules/ftello-tests (Makefile.am): Likewise.
30882 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30883 * modules/isnanl-tests (Makefile.am): Likewise.
30884 * modules/lseek-tests (Makefile.am): Likewise.
30885 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30886 * modules/mbscasestr-tests (Makefile.am): Likewise.
30887 * modules/mbschr-tests (Makefile.am): Likewise.
30888 * modules/mbscspn-tests (Makefile.am): Likewise.
30889 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30890 * modules/mbspbrk-tests (Makefile.am): Likewise.
30891 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30892 * modules/mbsrchr-tests (Makefile.am): Likewise.
30893 * modules/mbsspn-tests (Makefile.am): Likewise.
30894 * modules/mbsstr-tests (Makefile.am): Likewise.
30895 * modules/printf-posix-tests (Makefile.am): Likewise.
30896 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30897 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30898 * modules/tsearch-tests (Makefile.am): Likewise.
30899 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30900 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30901 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30902 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30903 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30904 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30905 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30906 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30907 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30908 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30909 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30910 * modules/xstrtol-tests (Makefile.am): Likewise.
30911 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30912 * modules/yesno-tests (Makefile.am): Likewise.
30914 2007-10-03 Bruno Haible <bruno@clisp.org>
30916 * modules/trunc-tests: New file.
30917 * tests/test-trunc.c: New file.
30919 * modules/trunc: New file.
30920 * lib/trunc.c: New file.
30921 * m4/trunc.m4: New file.
30922 * lib/math.in.h (trunc): New declaration.
30923 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30925 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30927 * doc/functions/trunc.texi: Mention the 'trunc' module.
30929 2007-10-03 Bruno Haible <bruno@clisp.org>
30931 * tests/test-fpending.c: New file, mostly copied
30932 from coreutils/lib/t-fpending.c.
30933 * modules/fpending-tests: New file.
30935 2007-10-03 Bruno Haible <bruno@clisp.org>
30937 Port the stdio extensions to QNX (untested).
30938 * lib/fseterr.c (fseterr): Add support for QNX.
30939 * lib/fbufmode.c (fbufmode): Likewise.
30940 * lib/freadable.c (freadable): Likewise.
30941 * lib/fwritable.c (fwritable): Likewise.
30942 * lib/freading.c (freading): Likewise.
30943 * lib/fwriting.c (fwriting): Likewise.
30944 * lib/freadahead.c (freadahed): Likewise.
30945 * lib/fpurge.c (fpurge): Likewise.
30946 * lib/fseeko.c (rpl_fseeko): Likewise.
30948 2007-10-03 Bruno Haible <bruno@clisp.org>
30949 Jim Meyering <jim@meyering.net>
30950 Eric Blake <ebb9@byu.net>
30952 * doc/relocatable.texi: Use @command instead of @program.
30954 2007-10-02 Jim Meyering <jim@meyering.net>
30956 Perform one more "_.h" -> ".in.h" substitution.
30957 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30958 instead of unistd_.h here, too.
30960 2007-10-01 Bruno Haible <bruno@clisp.org>
30962 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30963 Needed for the alloca-opt module.
30965 2007-09-30 Bruno Haible <bruno@clisp.org>
30967 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30968 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30970 * lib/argz.in.h: Renamed from lib/argz_.h.
30971 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30972 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30973 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30975 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30976 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30978 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30979 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30981 * lib/float.in.h: Renamed from lib/float_.h.
30982 * modules/float (Files, Makefile.am): Use float.in.h instead of
30984 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30985 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30987 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30988 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30990 * lib/glob.in.h: Renamed from lib/glob_.h.
30991 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30992 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30993 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30995 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30996 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30998 * lib/locale.in.h: Renamed from lib/locale_.h.
30999 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31001 * lib/math.in.h: Renamed from lib/math_.h.
31002 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31003 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31004 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31005 of netinet_in_.h. Add dependency.
31006 * lib/poll.in.h: Renamed from lib/poll_.h.
31007 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31008 * lib/search.in.h: Renamed from lib/search_.h.
31009 * modules/search (Files, Makefile.am): Use search.in.h instead of
31011 * lib/signal.in.h: Renamed from lib/signal_.h.
31012 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31014 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31015 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31017 * lib/stdint.in.h: Renamed from lib/stdint_.h.
31018 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31020 * lib/stdio.in.h: Renamed from lib/stdio_.h.
31021 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31023 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31024 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31026 * lib/string.in.h: Renamed from lib/string_.h.
31027 * modules/string (Files, Makefile.am): Use string.in.h instead of
31029 * doc/gnulib-tool.texi (Initial import): Update.
31030 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31031 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31032 of sys_select_.h. Add dependency.
31033 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31034 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31036 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31037 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31039 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31040 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31042 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31043 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31045 * lib/time.in.h: Renamed from lib/time_.h.
31046 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31047 * lib/unistd.in.h: Renamed from lib/unistd_.h.
31048 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31050 * lib/wchar.in.h: Renamed from lib/wchar_.h.
31051 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31053 * lib/wctype.in.h: Renamed from lib/wctype_.h.
31054 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31056 * build-aux/bootstrap (slurp): Update.
31057 * lib/.cppi-disable: Update.
31059 2007-09-30 Bruno Haible <bruno@clisp.org>
31061 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31064 2007-09-30 Bruno Haible <bruno@clisp.org>
31066 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31068 2007-09-29 Bruno Haible <bruno@clisp.org>
31070 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31072 2007-09-29 Bruno Haible <bruno@clisp.org>
31074 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31075 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31076 * build-aux/install-reloc: Compile also areadlink.c.
31077 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31079 2007-09-29 Bruno Haible <bruno@clisp.org>
31081 * gnulib-tool (func_emit_initmacro_done): Indentation.
31083 2007-09-29 Bruno Haible <bruno@clisp.org>
31085 * README: Add CVS checkout update instructions.
31086 Info from Bob Proulx <bob@proulx.com>.
31088 2007-09-28 Eric Blake <ebb9@byu.net>
31090 Provide move-if-change.
31091 * build-aux/move-if-change: New file, based on best practice
31092 rather than any canonical upstream location.
31094 2007-09-28 Jim Meyering <jim@meyering.net>
31096 Fix canonicalize loop-detection corner case.
31097 Do not attempt to stat the symlink values stored via seen_triple.
31098 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31099 on linux-2.6.18, (but not 2.6.22).
31100 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31101 triple_compare. The former compares dev,ino,filename, while the latter
31102 would actually stat dirname(filename) when dev and ino were equal.
31103 * lib/hash-triple.c: Install <string.h>.
31105 (triple_compare_ino_str): New function.
31106 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31108 2007-09-28 Eric Blake <ebb9@byu.net>
31110 Enforce that AC_REPLACE_FUNCS files exist.
31111 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31112 override check for typos.
31114 Fix test-closein on Solaris 10.
31115 * tests/test-closein.c (main): Don't assume stdin can be inherited
31116 closed on all systems.
31117 * tests/test-closein.sh: Likewise.
31118 Reported by Piotr Tarnowski.
31120 2007-09-28 Jim Meyering <jim@meyering.net>
31122 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31124 2007-09-27 Jim Meyering <jim@meyering.net>
31126 canonicalize: Avoid a false-positive cycle failure.
31127 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31128 Sort. Remove cycle-check.
31129 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31131 (seen_triple): New function.
31132 (canonicalize_filename_mode): Use it instead of cycle-check.
31133 * tests/test-canonicalize.c: Add a test for this bug.
31134 * tests/test-canonicalize.sh: Set up and run the test.
31136 New module, file-set, from coreutils.
31137 * modules/file-set: Define it.
31138 * lib/file-set.c, lib/file-set.h: Implement.
31140 New module, hash-triple, from coreutils.
31141 * modules/hash-triple: Define it.
31142 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31144 2007-09-25 Eric Blake <ebb9@byu.net>
31146 Fix strerror on Interix.
31147 * lib/string_.h (strerror): Declare replacement.
31148 * doc/functions/strerror.texi (strerror): Document the Interix
31150 * modules/string (Makefile.am): Support new hooks.
31151 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31152 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31153 gl_FUNC_STRERROR_SEPARATE.
31154 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31155 * lib/strerror.c (rpl_strerror): Provide replacement.
31156 * modules/strerror (Depends-on): Add string.
31157 (configure.ac): Detect use of module.
31158 * tests/test-strerror.c: New file.
31159 * modules/strerror-tests: New test module.
31160 * modules/argp (Depends-on): Add strerror.
31161 * modules/error (Depends-on): Likewise.
31162 Reported by Martin Koeppe.
31164 2007-09-24 Bruno Haible <bruno@clisp.org>
31166 * README: Update git instructions.
31168 2007-09-24 Eric Blake <ebb9@byu.net>
31170 Revert fpending breakage from 2007-09-08.
31171 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31174 2007-09-24 Jim Meyering <jim@meyering.net>
31176 filenamecat.c: Add a test.
31177 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31178 showing how the function works when DIR is the empty string.
31180 2007-09-21 Simon Josefsson <simon@josefsson.org>
31182 * tests/test-canonicalize.sh: Turn on executable bit.
31184 2007-09-19 Eric Blake <ebb9@byu.net>
31186 * README: Update CVS instructions.
31188 2007-09-18 Bruno Haible <bruno@clisp.org>
31190 * modules/areadlink: New file.
31191 * lib/areadlink.h (areadlink): New declaration.
31192 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31194 2007-09-17 Jim Meyering <jim@meyering.net>
31196 * lib/savewd.c (ESTALE) [!defined]: Define.
31197 Reported to be required on Interix by Martin Koeppe.
31199 2007-09-17 Bruno Haible <bruno@clisp.org>
31201 * gnulib-tool (func_version): Use $version.
31203 2007-09-16 Bruno Haible <bruno@clisp.org>
31205 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31206 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31207 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31208 Reported by Greg Schafer <gschafer@zip.com.au>.
31210 2007-09-15 Bruno Haible <bruno@clisp.org>
31212 * gnulib-tool (sed): Try a little harder to make bash understand the
31214 Reported by Bruce Korb <bruce.korb@gmail.com>.
31216 2007-09-13 Eric Blake <ebb9@byu.net>
31218 * ChangeLog: Remove conflict markers.
31220 2007-09-13 Simon Josefsson <simon@josefsson.org>
31222 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31223 Reported by Bruno Haible <bruno@clisp.org>.
31225 2007-09-12 Bruno Haible <bruno@clisp.org>
31227 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31228 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31231 2007-09-12 Eric Blake <ebb9@byu.net>
31233 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31234 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31235 Autoconf definition.
31236 * modules/euidaccess (Depends-on): Add extensions, for
31237 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31238 * modules/fnmatch (Depends-on): Likewise.
31239 * modules/getaddrinfo (Depends-on): Likewise.
31240 * modules/getdelim (Depends-on): Likewise.
31241 * modules/getline (Depends-on): Likewise.
31242 * modules/getsubopt (Depends-on): Likewise.
31243 * modules/gettext (Depends-on): Likewise.
31244 * modules/group-member (Depends-on): Likewise.
31245 * modules/mbchar (Depends-on): Likewise.
31246 * modules/memmem (Depends-on): Likewise.
31247 * modules/mempcpy (Depends-on): Likewise.
31248 * modules/memrchr (Depends-on): Likewise.
31249 * modules/pagealign_alloc (Depends-on): Likewise.
31250 * modules/readutmp (Depends-on): Likewise.
31251 * modules/stpcpy (Depends-on): Likewise.
31252 * modules/stpncpy (Depends-on): Likewise.
31253 * modules/strchrnul (Depends-on): Likewise.
31254 * modules/strndup (Depends-on): Likewise.
31255 * modules/strsep (Depends-on): Likewise.
31256 * modules/strverscmp (Depends-on): Likewise.
31257 * modules/vasprintf (Depends-on): Likewise.
31258 * modules/wcwidth (Depends-on): Likewise.
31259 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31260 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31261 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31262 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31263 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31264 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31265 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31266 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31267 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31268 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31269 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31270 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31271 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31272 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31273 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31274 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31275 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31276 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31277 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31278 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31279 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31280 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31281 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31282 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31283 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31284 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31285 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31286 so that lock.m4 can be used in gettext without extensions module.
31288 2007-09-11 Bruno Haible <bruno@clisp.org>
31290 * m4/isc-posix.m4: Remove file.
31291 Suggested by Eric Blake.
31293 2007-09-11 Eric Blake <ebb9@byu.net>
31295 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31297 2007-09-10 Bruno Haible <bruno@clisp.org>
31299 * posix-modules: Fix typo in error message.
31300 Reported by Matt <mkraai@beckman.com>.
31302 2007-09-09 Bruno Haible <bruno@clisp.org>
31304 * doc/functions/getdelim.texi: Update list of platforms lacking the
31306 * doc/functions/getline.texi: Likewise.
31308 2007-09-09 Jim Meyering <jim@meyering.net>
31310 * lib/hash.c (hash_initialize): Detect calloc failure.
31311 Reported by Bruno Haible.
31313 2007-09-09 Bruno Haible <bruno@clisp.org>
31315 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31316 malloc or realloc fails.
31318 2007-09-09 Bruno Haible <bruno@clisp.org>
31320 * modules/getcwd (Depends-on): Add malloc-posix.
31321 * modules/glob (Depends-on): Likewise.
31322 * modules/putenv (Depends-on): Likewise.
31323 * modules/strdup (Depends-on): Likewise.
31324 * modules/getdelim (Depends-on): Add realloc-posix.
31325 * modules/read-file (Depends-on): Likewise.
31327 2007-09-09 Bruno Haible <bruno@clisp.org>
31329 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31330 (gl_FUNC_MALLOC_POSIX): Require it.
31331 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31332 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31333 * modules/realloc (Files): Add m4/malloc.m4.
31334 * modules/calloc (Files): Likewise.
31336 2007-09-09 Bruno Haible <bruno@clisp.org>
31338 * modules/malloc-posix: New file.
31339 * modules/malloc (Depends-on): Add malloc-posix.
31340 * lib/malloc.c: Include errno.h.
31341 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31342 and a POSIX-compatible malloc into a single function. Set ENOMEM
31343 when returning NULL.
31344 * m4/malloc.m4: New file.
31345 * doc/functions/malloc.texi: Mention the malloc-posix module.
31346 * lib/stdlib_.h (malloc): New declaration.
31347 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31348 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31349 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31350 and HAVE_MALLOC_POSIX.
31352 2007-09-09 Bruno Haible <bruno@clisp.org>
31354 * modules/realloc-posix: New file.
31355 * modules/realloc (Depends-on): Add realloc-posix.
31356 * lib/realloc.c: Include errno.h.
31357 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31358 and a POSIX-compatible realloc into a single function. Set ENOMEM
31359 when returning NULL.
31360 * m4/realloc.m4: New file.
31361 * doc/functions/realloc.texi: Mention the realloc-posix module.
31362 * lib/stdlib_.h (realloc): New declaration.
31363 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31364 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31365 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31366 and HAVE_REALLOC_POSIX.
31368 2007-09-09 Bruno Haible <bruno@clisp.org>
31370 * modules/calloc-posix: New file.
31371 * modules/calloc (Depends-on): Add calloc-posix.
31372 * lib/calloc.c: Include errno.h.
31373 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31374 and a POSIX-compatible calloc into a single function. Set ENOMEM
31375 when returning NULL.
31376 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31377 * doc/functions/calloc.texi: Mention the calloc-posix module.
31378 * lib/stdlib_.h (calloc): New declaration.
31379 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31380 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31381 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31382 and HAVE_CALLOC_POSIX.
31384 2007-09-09 Bruno Haible <bruno@clisp.org>
31386 Allow for modules to show an arbitrary notice.
31387 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31388 * gnulib-tool: New option --extract-notice.
31389 (func_usage): Document it.
31390 (sed_extract_prog): Update.
31391 (func_get_notice): New function.
31392 (func_modules_notice): New function.
31393 (func_import, func_create_testdir): Invoke it.
31394 Suggested by Jim Meyering.
31396 2007-09-09 Bruno Haible <bruno@clisp.org>
31398 * gnulib-tool: New options --verbose, --quiet.
31399 (func_usage): Document them.
31400 (verbose): New variable.
31401 (func_execute_command): New function.
31402 (func_import): Don't show the module list and the file list if
31404 (func_create_testdir): Likewise. Use func_execute_command.
31405 (func_create_megatestdir): Use func_execute_command.
31407 2007-09-08 Bruno Haible <bruno@clisp.org>
31409 * gnulib-tool (func_import): Prefer rsync over wget when available,
31410 for fetching the PO files.
31412 2007-09-08 Bruno Haible <bruno@clisp.org>
31414 * posix-modules: New file. Portions copied from gnulib-tool.
31415 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31417 2007-09-08 Jim Meyering <jim@meyering.net>
31419 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31420 * lib/fpending.h: Rename from __fpending.h.
31421 * lib/fpending.c: Rename from __fpending.c.
31422 Include "fpending.h", not "__fpending.h".
31423 * lib/__fpending.h, lib/__fpending.c: Remove files.
31424 * modules/fpending (Files): Reflect new file names.
31425 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31427 2007-09-08 Bruno Haible <bruno@clisp.org>
31429 * m4/inttypes-h.m4: Remove stub file.
31431 2007-09-07 Simon Josefsson <simon@josefsson.org>
31433 * doc/headers/stdint.texi: Discuss #include_next issue.
31435 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31437 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31439 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31441 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31444 2007-09-03 Jim Meyering <jim@meyering.net>
31446 New module: git-version-gen.
31447 * modules/git-version-gen: New file.
31449 Import changes from coreutils for bootstrap script.
31451 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31453 bootstrap: uses rsync to download the .po files
31454 * build-aux/bootstrap (po_download_command_format): New global.
31455 (download_po_files): Use rsync.
31456 (update_po_files): Don't remove .po files after download,
31457 so future rsync runs can take advantage of the copies.
31459 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31461 Solve the unnecessary-.po-file-regeneration problem once and for all.
31462 * build-aux/bootstrap (download_po_files): New function, renamed from
31463 get_translations. Now, downloads, but doesn't update LINGUAS.
31464 (update_po_files): New function.
31466 bootstrap: Ignore more.
31467 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31468 uniwidth to e.g., lib/.gitignore.
31469 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31471 * build-aux/bootstrap: New setting: vc_ignore.
31472 (insert_sorted_if_absent): Create $file if absent.
31473 Adapt to new, possibly empty, list: $vc_ignore.
31475 bootstrap: generate more ignorable names
31476 * build-aux/bootstrap (slurp): When generating ignorable names,
31477 also map .sin to .sed, .gperf to .c, and .y to .c.
31479 2007-09-03 Jim Meyering <jim@meyering.net>
31481 * build-aux/git-version-gen: New file, from coreutils. For details, see
31482 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31484 2007-09-02 Bruno Haible <bruno@clisp.org>
31486 Fix mis-recognition of 'mcs' on QNX 6.
31487 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31488 output contains the string "Mono".
31489 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31490 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31492 2007-09-01 Bruno Haible <bruno@clisp.org>
31494 Fix collision between uniwidth/* and linebreak modules.
31495 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31496 u32_width): Remove declarations.
31497 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31498 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31499 streq3, streq2, streq1, streq0): Remove functions.
31500 (STREQ): Remove macro.
31501 (is_cjk_encoding): Remove function.
31502 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31503 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31504 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31505 * NEWS: Document the change.
31507 2007-09-01 Bruno Haible <bruno@clisp.org>
31509 * lib/streq.h: Add double-inclusion guard.
31511 2007-09-01 Karl Berry <karl@gnu.org>
31513 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31515 2007-08-28 Jim Meyering <jim@meyering.net>
31517 Rename mreadlink_with_size to areadlink_with_size.
31518 * NEWS: Document the change.
31519 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31520 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31521 * lib/mreadlink.h: Rename this to...
31522 * lib/areadlink.h: ...this.
31523 * modules/mreadlink-with-size: Rename this to...
31524 * modules/areadlink-with-size: ...this.
31525 * lib/canonicalize.c: Reflect the renaming.
31526 * modules/canonicalize: Likewise.
31528 2007-08-26 Bruno Haible <bruno@clisp.org>
31530 * gnulib-tool (func_import): When deciding which files to remove,
31531 consider also dangling symbolic links.
31532 Reported by Eric Blake.
31534 2007-08-26 Bruno Haible <bruno@clisp.org>
31536 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31538 2007-08-23 Simon Josefsson <simon@josefsson.org>
31540 * lib/readline.c: Don't include getline.h, the prototype is now
31543 2007-08-23 Jim Meyering <jim@meyering.net>
31546 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31547 around the funlockfile call, since funlockfile never sets errno.
31548 Don't set errno upon failed realloc.
31550 2007-08-22 Eric Blake <ebb9@byu.net>
31553 * lib/getdelim.c (getdelim): Revert regression that required *n to
31554 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31555 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31556 getdelim, rather than whether implementation is missing.
31557 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31558 * lib/stdio_.h (getline): Also declare if replacement is
31560 * doc/functions/getdelim.texi: New file.
31561 * doc/functions/getline.texi: Likewise.
31562 * doc/gnulib.texi (Function Substitutes): Add new files.
31563 Reported by Bruno Haible.
31565 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31567 * users.txt: Add Guile.
31569 2007-08-22 Eric Blake <ebb9@byu.net>
31571 * tests/test-getdelim.c (main): Use remove, not unlink.
31572 * tests/test-getline.c (main): Likewise.
31574 Move getline and getdelim into stdio.h, per POSIX 200x.
31575 * modules/getline (Files): Remove getline.h.
31576 (Depends-on): Add stdio.
31577 (configure.ac): Add module indicator.
31578 * modules/getdelim (Files): Remove getdelim.h.
31579 (Depends-on): Add stdio.
31580 (configure.ac): Add module indicator.
31581 * modules/stdio (Makefile.am): Work with new indicators.
31582 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31583 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31584 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31585 * lib/getdelim.h: Delete.
31586 * lib/getline.h: Delete.
31587 * lib/stdio_.h (getdelim, getline): Declare.
31588 * modules/getdelim-tests: New module.
31589 * modules/getline-tests: Likewise.
31590 * tests/test-getdelim.c: New file.
31591 * tests/test-getline.c: Likewise.
31592 * NEWS: Document the change.
31593 * lib/getline.c: Update choice of header.
31594 * lib/csharpcomp.c: Likewise.
31595 * lib/getpass.c: Likewise.
31596 * lib/javacomp.c: Likewise.
31597 * lib/javaversion.c: Likewise.
31598 * lib/yesno.c: Likewise.
31599 * lib/getdelim.c: Likewise.
31600 (getdelim): Set errno on failure, and avoid memory leak.
31602 2007-08-19 Bruno Haible <bruno@clisp.org>
31604 * modules/closein (Depends-on): Add freadahead.
31605 * lib/closein.c: Include freadahead.h.
31606 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31609 2007-08-19 Bruno Haible <bruno@clisp.org>
31611 * modules/freadahead-tests: New file.
31612 * tests/test-freadahead.sh: New file.
31613 * tests/test-freadahead.c: New file.
31615 * modules/freadahead: New file.
31616 * lib/freadahead.h: New file.
31617 * lib/freadahead.c: New file.
31618 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31619 fbufmode, fpurge, freadable, fwritable.
31621 2007-08-19 Eric Blake <ebb9@byu.net>
31623 Test yesno in combination with closein.
31624 * lib/yesno.c (yesno): Document use of stdin.
31625 * modules/yesno-tests (Files): New module.
31626 * tests/test-yesno.c (main): New file.
31627 * tests/test-yesno.sh: Likewise.
31629 2007-08-19 Bruno Haible <bruno@clisp.org>
31631 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31632 * lib/fseeko.c (rpl_fseeko): Likewise.
31633 * lib/fseterr.c (fseterr): Likewise.
31635 2007-08-19 Bruno Haible <bruno@clisp.org>
31637 * tests/test-lseek.c (main): Disable a test for BeOS.
31638 * doc/functions/lseek.texi: Document the BeOS bug.
31640 2007-08-19 Bruno Haible <bruno@clisp.org>
31641 Eric Blake <ebb9@byu.net>
31643 * lib/lseek.c: Include <sys/stat.h>.
31644 (rpl_lseek): Add workaround code also for Unix platforms.
31646 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31647 * doc/functions/lseek.texi: Document BeOS definiency.
31649 2007-08-18 Bruno Haible <bruno@clisp.org>
31651 * modules/fstrcmp-tests: New file.
31652 * tests/test-fstrcmp.c: New file.
31654 2007-08-18 Bruno Haible <bruno@clisp.org>
31656 * modules/fstrcmp: New file, from GNU gettext with modifications.
31657 * lib/fstrcmp.h: New file, from GNU gettext.
31658 * lib/fstrcmp.c: New file, from GNU gettext.
31659 * MODULES.html.sh (String handling): Add fstrcmp.
31661 2007-08-18 Bruno Haible <bruno@clisp.org>
31663 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31665 (diag, compareseq): Remove const from the ctxt argument.
31666 (USE_HEURISTIC): Undefine at the end.
31668 2007-08-18 Jim Meyering <jim@meyering.net>
31670 New file: lib/idcache.h
31671 * NEWS: Mention the addition.
31672 * modules/idcache (Files): Add lib/idcache.h
31673 * lib/idcache.c: Include "idcache.h".
31674 Don't include <sys/types.h>.
31675 Add a FIXME comment.
31676 Move file-scoped "static" declarations to the top.
31677 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31679 2007-08-17 Bruno Haible <bruno@clisp.org>
31680 and Paul Eggert <eggert@cs.ucla.edu>
31682 * MODULES.html.sh: Add diffseq.
31683 * modules/diffseq: New file.
31684 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31685 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31687 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31689 Import changes from coreutils for bootstrap script.
31691 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31693 * build-aux/bootstrap (slurp): Work even in environments where
31694 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31695 current code does not slurp files whose names start with ".", and
31696 this looks like it might be a troublesome area.
31698 2007-07-11 Jim Meyering <jim@meyering.net>
31700 If there's a GPL vN copyright comment, require that N == 3.
31702 2007-07-08 Jim Meyering <jim@meyering.net>
31704 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31705 * build-aux/bootstrap (mam_template): Move definition out of loop.
31707 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31709 * build-aux/bootstrap (symlink_to_dir): Rename function from
31710 symlink_to_gnulib. Add a directory parameter. Update all
31712 (cp_mark_as_generated): Also check for -- and link to -- files in
31715 2007-07-08 Jim Meyering <jim@meyering.net>
31717 Adapt to deeper hierarchy in gnulib.
31718 * build-aux/bootstrap (symlink_to_dir): If the destination
31719 directory doesn't exist, create it. This is required at least for
31720 "lib/uniwidth/cjk.h".
31722 2007-05-15 Jim Meyering <jim@meyering.net>
31724 * build-aux/bootstrap: Now that generated Makefile.am files
31725 are no longer under version control, they must be created at
31728 2007-08-14 Ben Pfaff <blp@gnu.org>
31730 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31732 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31734 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31735 given the changes below.
31736 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31737 even on hosts that have padding bits beyond the supported 64.
31739 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31741 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31742 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31743 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31745 (xstrtol_error): Remove.
31746 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31747 but with a different signature.
31748 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31749 * lib/xstrtol-error.c: Include exitfail.h.
31750 (xstrtol_fatal): New function, with a different signature from the
31751 old xstrtol_error, so that the caller need not worry about passing
31752 in an exit status, or about storage management of the option argument.
31753 (xstrtol_error): Now a static function. Redo signature to
31754 implement xstrtol_fatal. Output the correct number of hyphens in
31755 front of the option so that the caller need not worry about
31756 storage management.
31758 (_): Remove; not used now.
31759 * modules/xstrtol: Depend on getopt.
31760 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31761 of old STRTOL_FATAL_ERROR macro.
31762 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31764 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31765 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31767 2007-08-08 Eric Blake <ebb9@byu.net>
31769 * lib/xstrtol-error.c: Add missing include.
31771 Move xstrtol messages into gnulib domain, when --pobase is used.
31772 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31773 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31774 * modules/xstrtol (Files): Distribute new file.
31775 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31776 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31777 * tests/test-xstrtol.c: ...into new file.
31778 * tests/test-xstrtoul.c: Also test xstrtoul.
31779 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31780 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31781 * tests/test-xstrtol.sh: Drive the tests.
31782 * tests/test-xstrtoimax.sh: Likewise.
31783 * tests/test-xstrtoumax.sh: Likewise.
31784 * modules/xstrtol-tests: New module.
31785 * modules/xstrtoimax-tests: Likewise.
31786 * modules/xstrtoumax-tests: Likewise.
31788 2007-08-08 Jim Meyering <jim@meyering.net>
31790 New function: mfile_name_concat.
31791 * lib/filenamecat.c (mfile_name_concat): New function, just like
31792 file_name_concat, but return NULL upon failure rather than exiting
31794 * lib/filenamecat.h: Declare it.
31796 2007-08-07 Bruno Haible <bruno@clisp.org>
31798 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31799 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31801 Reported by Eric Blake.
31803 2007-08-07 Simon Josefsson <simon@josefsson.org>
31805 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31806 * modules/crypto/arcfour (License): Likewise.
31807 * modules/crypto/des-tests (License): Likewise.
31808 * modules/crypto/gc-arctwo-tests (License): Likewise.
31809 * modules/crypto/gc-des-tests (License): Likewise.
31810 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31811 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31812 * modules/crypto/gc-md2-tests (License): Likewise.
31813 * modules/crypto/gc-md4-tests (License): Likewise.
31814 * modules/crypto/gc-md5-tests (License): Likewise.
31815 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31816 * modules/crypto/gc-rijndael-tests (License): Likewise.
31817 * modules/crypto/gc-sha1-tests (License): Likewise.
31818 * modules/crypto/gc-tests (License): Likewise.
31819 * modules/crypto/hmac-md5 (License): Likewise.
31820 * modules/crypto/hmac-sha1 (License): Likewise.
31821 * modules/crypto/md2-tests (License): Likewise.
31822 * modules/crypto/md4-tests (License): Likewise.
31823 * modules/crypto/md5 (License): Likewise.
31824 * modules/crypto/rijndael (License): Likewise.
31825 * modules/crypto/sha1 (License): Likewise.
31826 * modules/memxor (License): Likewise.
31828 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31829 and Bruno Haible <bruno@clisp.org>
31831 * NEWS: Describe interface changes to human, xstrtol.
31832 * lib/human.h: Include <xstrtol.h>.
31833 (human_options): Return enum strtol_error, not int. Remove
31834 bool arg; take int * instead.
31835 * lib/human.c: Don't include "gettext.h".
31836 (_): Remove; no longer used.
31837 Don't include <xstrtol.h>, since human.h does it.
31838 (human_options): Adjust to abovementioned interface changes.
31839 Do not report error to stderr; that's now the caller's
31841 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31843 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31844 Str, Argument_type_string. All uses changed. Put " argument"
31845 in diagnostics to make them clearer. Change wording of suffix
31846 message for clarity.
31847 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31848 Argument_type_string.
31849 (STRTOL_FATAL_WARN): Remove; no longer used.
31850 * modules/human (Depends-on): Remove gettext-h.
31852 2007-08-06 Simon Josefsson <simon@josefsson.org>
31854 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31856 2007-07-31 Bruno Haible <bruno@clisp.org>
31858 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31859 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31860 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31862 2007-07-31 Bruno Haible <bruno@clisp.org>
31864 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31865 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31867 2007-07-30 Bruno Haible <bruno@clisp.org>
31869 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31870 * modules/c-ctype (License): Likewise.
31871 * modules/c-strcase (License): Likewise.
31872 * modules/check-version (License): Likewise.
31873 * modules/iconv (License): Likewise.
31874 * modules/iconv_open (License): Likewise.
31875 * modules/read-file (License): Likewise.
31876 * modules/striconv (License): Likewise.
31877 * modules/strverscmp (License): Likewise.
31878 * modules/vasprintf (License): Likewise.
31879 * modules/crypto/des (License): Likewise.
31880 * modules/crypto/gc (License): Likewise.
31881 * modules/crypto/gc-arcfour (License): Likewise.
31882 * modules/crypto/gc-arctwo (License): Likewise.
31883 * modules/crypto/gc-des (License): Likewise.
31884 * modules/crypto/gc-hmac-md5 (License): Likewise.
31885 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31886 * modules/crypto/gc-md2 (License): Likewise.
31887 * modules/crypto/gc-md4 (License): Likewise.
31888 * modules/crypto/gc-md5 (License): Likewise.
31889 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31890 * modules/crypto/gc-random (License): Likewise.
31891 * modules/crypto/gc-rijndael (License): Likewise.
31892 * modules/crypto/gc-sha1 (License): Likewise.
31893 * modules/crypto/md2 (License): Likewise.
31894 * modules/crypto/md4 (License): Likewise.
31896 2007-07-30 Jim Meyering <jim@meyering.net>
31898 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31899 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31900 it has valid stat data. This bug would cause du not to count the
31901 sizes of inaccessible directories.
31902 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31903 in <http://bugzilla.redhat.com/250077>.
31905 2007-07-25 Peter O'Gorman <peter@pogma.com>
31906 Bruno Haible <bruno@clisp.org>
31908 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31909 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31910 #include_next, gives a diagnostic about it, but reports no error in
31912 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31914 2007-07-24 Ben Pfaff <blp@gnu.org>
31916 Improve name: "count-one-bits" is better than "popcount".
31917 * MODULES.html.sh: Update name.
31918 * lib/popcount.h: Renamed lib/count-one-bits.h.
31919 (popcount): Renamed count_one_bits.
31920 (popcountl): Renamed count_one_bits_l.
31921 (popcountll): Renamed count_one_bits_ll.
31922 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31923 * modules/popcount: Renamed module/count-one-bits.
31924 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31925 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31927 2007-07-23 Ben Pfaff <blp@gnu.org>
31929 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31930 better code generation, and add U to large constants to avoid
31931 warnings, in non-GCC case.
31932 Suggested by Bruno Haible.
31934 2007-07-23 Ben Pfaff <blp@gnu.org>
31936 * lib/popcount.h: Use verify_true instead of if...abort.
31937 * modules/popcount: Depend on verify module.
31938 Suggested by Jim Meyering.
31940 2007-07-23 Bruno Haible <bruno@clisp.org>
31942 * gnulib-tool (func_import): Create a .cvsignore file also when the
31943 directory is not yet in CVS but the toplevel directory is. When
31944 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31945 Reported by Karl Berry.
31947 2007-07-22 Ben Pfaff <blp@gnu.org>
31949 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31951 Suggested by Eric Blake.
31953 2007-07-22 Ben Pfaff <blp@gnu.org>
31955 New module: popcount.
31956 * MODULES.html.sh: Add popcount.
31957 * modules/popcount: New file.
31958 * modules/popcount-tests: New file.
31959 * tests/test-popcount.c: New file.
31960 * lib/popcount.h: New file.
31961 * m4/popcount.m4: New file.
31963 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31965 * build-aux/announce-gen: Update to GPLv3.
31967 * build-aux/config.guess: Update from config.
31969 2007-07-21 Bruno Haible <bruno@clisp.org>
31971 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31972 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31974 2007-07-20 Jim Meyering <jim@meyering.net>
31976 * check-module: Diagnose a self-dependency.
31978 2007-07-19 Bruno Haible <bruno@clisp.org>
31980 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31982 Reported by Eric Blake.
31984 2007-07-18 Bruno Haible <bruno@clisp.org>
31986 * gnulib-tool: New options --po-base, --po-domain.
31987 (func_usage): Document them.
31988 (pobase, po_domain): New variables.
31989 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31990 DEFAULT_TEXT_DOMAIN.
31991 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31992 (func_import): Consider pobase and po_domain. Create a po/ directory.
31993 (func_create_testdir): Set pobase and po_domain to empty.
31994 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31995 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31997 2007-07-18 Bruno Haible <bruno@clisp.org>
31999 * gnulib-tool (func_get_automake_snippet): Synthesize also an
32000 EXTRA_DIST augmentation for files in build-aux/.
32002 2007-07-16 Bruno Haible <bruno@clisp.org>
32004 * modules/lseek (License): Use the synonymous term "LGPLv2+".
32005 * modules/getdelim (License): Likewise.
32007 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32009 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32010 * modules/d-type (License): Likewise.
32011 * modules/extensions (License): Likewise.
32012 * modules/fnmatch (License): Likewise.
32013 * modules/fseeko (License): Likewise.
32014 * modules/getaddrinfo (License): Likewise.
32015 * modules/getline (License): Likewise.
32016 * modules/getlogin_r (License): Likewise.
32017 * modules/getpass (License): Likewise.
32018 * modules/gettimeofday (License): Likewise.
32019 * modules/glob (License): Likewise.
32020 * modules/inet_ntop (License): Likewise.
32021 * modules/malloc (License): Likewise.
32022 * modules/malloca (License): Likewise.
32023 * modules/memmem (License): Likewise.
32024 * modules/mempcpy (License): Likewise.
32025 * modules/memset (License): Likewise.
32026 * modules/minmax (License): Likewise.
32027 * modules/mktime (License): Likewise.
32028 * modules/netinet_in (License): Likewise.
32029 * modules/pathmax (License): Likewise.
32030 * modules/poll (License): Likewise.
32031 * modules/regex (License): Likewise.
32032 * modules/snprintf (License): Likewise.
32033 * modules/stdbool (License): Likewise.
32034 * modules/stdint (License): Likewise.
32035 * modules/stdio (License): Likewise.
32036 * modules/strcase (License): Likewise.
32037 * modules/strcasestr (License): Likewise.
32038 * modules/strdup (License): Likewise.
32039 * modules/string (License): Likewise.
32040 * modules/strndup (License): Likewise.
32041 * modules/strnlen (License): Likewise.
32042 * modules/strpbrk (License): Likewise.
32043 * modules/strptime (License): Likewise.
32044 * modules/strsep (License): Likewise.
32045 * modules/sys_select (License): Likewise.
32046 * modules/sys_socket (License): Likewise.
32047 * modules/sys_stat (License): Likewise.
32048 * modules/sys_time (License): Likewise.
32049 * modules/time (License): Likewise.
32050 * modules/time_r (License): Likewise.
32051 * modules/timegm (License): Likewise.
32052 * modules/unistd (License): Likewise.
32053 * modules/vsnprintf (License): Likewise.
32054 * modules/wctype (License): Likewise.
32056 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32058 * modules/argz (License): LGPLv2+.
32060 2007-07-15 Karl Berry <karl@gnu.org>
32062 * doc/gnulib.texi: revise node structure per new fdl.texi.
32064 2007-07-14 Bruno Haible <bruno@clisp.org>
32066 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32068 * lib/uniname/uninames.h: Regenerated.
32070 2007-07-14 Karl Berry <karl@gnu.org>
32072 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32073 omitting sectioning and index commands.
32075 2007-07-13 Bruno Haible <bruno@clisp.org>
32077 New gnulib-tool option --more-symlinks.
32078 * gnulib-tool (func_usage): Document --more-symlinks.
32079 (do_copyrights): New variable.
32080 Recognize option --more-symlinks.
32081 (func_import): Don't add a copyright notice transform to
32082 sed_transform_lib_file if do_copyrights is empty.
32084 2007-07-13 Bruno Haible <bruno@clisp.org>
32086 * lib/vasnprintf.c (decimal_point_char): Define also if
32087 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32088 && !NEED_PRINTF_DIRECTIVE_A.
32089 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32090 Gary V. Vaughan <gary@gnu.org>.
32092 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32094 * lib/inttypes_.h: Undo previous change, since it was fixed
32095 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32097 2007-07-13 Bruno Haible <bruno@clisp.org>
32099 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32100 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32102 2007-07-13 Jim Meyering <jim@meyering.net>
32104 df: Don't fail for Tru64's "file-on-file mount".
32105 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32106 so we fall through and use statfs instead. Details here:
32107 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32108 Reported by Albert Chin.
32110 2007-07-13 Bruno Haible <bruno@clisp.org>
32112 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32113 * modules/configmake (License): Likewise.
32114 * modules/gettext (License): Likewise.
32115 * modules/gettext-h (License): Likewise.
32116 * modules/include_next (License): Likewise.
32117 * modules/link-warning (License): Likewise.
32118 * modules/localcharset (License): Likewise.
32119 * modules/localename (License): Likewise.
32120 * modules/lock (License): Likewise.
32121 * modules/relocatable-lib-lgpl (License): Likewise.
32122 * modules/size_max (License): Likewise.
32123 * modules/vasnprintf (License): Likewise.
32124 * modules/wchar (License): Likewise.
32125 * modules/xsize (License): Likewise.
32127 2007-07-13 Bruno Haible <bruno@clisp.org>
32129 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32130 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32132 2007-07-12 Bruno Haible <bruno@clisp.org>
32134 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32135 in the modules files.
32137 2007-07-11 Karl Berry <karl@gnu.org>
32139 * MODULES.html.sh (func_module): use
32140 sed -e '\|^'"${includefile}"'$|d'
32141 instead of /.../d, to avoid errors on $includefile's containing /.
32143 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32145 * gnulib-tool (func_import): Avoid duplication of --avoid
32147 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32148 names to `_' in variable names.
32150 2007-07-10 Eric Blake <ebb9@byu.net>
32152 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32153 * NEWS: Document this change.
32155 2007-07-08 Bruno Haible <bruno@clisp.org>
32157 Update to Unicode 5.0.
32158 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32159 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32160 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32161 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32162 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32163 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32164 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32165 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32166 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32167 U+10A3F, U+1D242..U+1D244.
32168 (nonspacing_table_ind): Update.
32169 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32170 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32172 2007-07-08 Bruno Haible <bruno@clisp.org>
32174 Update to Unicode 5.0.
32175 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32176 code transform. Extend the name index field of unicode_name_to_code and
32177 unicode_code_to_name from 16 to 24 bits.
32178 * lib/uniname/uniname.c (unicode_character_name,
32179 unicode_name_character): Add the range 0x12xxx to the code transform.
32180 * lib/uniname/uninames.h: Regenerated.
32181 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32183 2007-07-07 Bruno Haible <bruno@clisp.org>
32185 * modules/wcwidth-tests: New file.
32186 * tests/test-wcwidth.c: New file.
32188 Work around MacOS X wcwidth() bug.
32189 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32190 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32191 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32192 original wcwidth in non-UTF-8 locales.
32193 * modules/wcwidth (Depends-on): Add localcharset, streq,
32195 * doc/functions/wcwidth.texi: Update.
32197 2007-07-07 Bruno Haible <bruno@clisp.org>
32199 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32200 (wcwidth): New declaration.
32201 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32203 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32204 here. Prepare for creating <wchar.h> unconditionally.
32205 * modules/wchar (Depends-on): Add link-warning.
32206 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32207 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32208 * lib/wcwidth.h: Remove file.
32209 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32210 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32211 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32212 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32213 (Include): Replace wcwidth.h with <wchar.h>.
32214 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32215 * lib/mbchar.h: Don't include wcwidth.h.
32216 * lib/mbswidth.c: Likewise.
32217 * NEWS: Mention the change.
32219 2007-07-07 Bruno Haible <bruno@clisp.org>
32221 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32222 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32223 definition with an external declaration.
32224 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32225 defined as a function. Remove AC_C_INLINE requirement.
32226 * modules/wcwidth (Files): Add lib/wcwidth.c.
32227 (Makefile.am): Remove redundant statement.
32229 2007-07-07 Bruno Haible <bruno@clisp.org>
32231 * MODULES.html.sh (Unicode string functions): Add the new modules.
32233 * tests/uniwidth/test-u32-strwidth.c: New file.
32234 * modules/uniwidth/u32-strwidth-tests: New file.
32236 * lib/uniwidth/u32-strwidth.c: New file.
32237 * modules/uniwidth/u32-strwidth: New file.
32239 * tests/uniwidth/test-u16-strwidth.c: New file.
32240 * modules/uniwidth/u16-strwidth-tests: New file.
32242 * lib/uniwidth/u16-strwidth.c: New file.
32243 * modules/uniwidth/u16-strwidth: New file.
32245 * tests/uniwidth/test-u8-strwidth.c: New file.
32246 * modules/uniwidth/u8-strwidth-tests: New file.
32248 * lib/uniwidth/u8-strwidth.c: New file.
32249 * modules/uniwidth/u8-strwidth: New file.
32251 * tests/uniwidth/test-u32-width.c: New file.
32252 * modules/uniwidth/u32-width-tests: New file.
32254 * lib/uniwidth/u32-width.c: New file.
32255 * modules/uniwidth/u32-width: New file.
32257 * tests/uniwidth/test-u16-width.c: New file.
32258 * modules/uniwidth/u16-width-tests: New file.
32260 * lib/uniwidth/u16-width.c: New file.
32261 * modules/uniwidth/u16-width: New file.
32263 * tests/uniwidth/test-u8-width.c: New file.
32264 * modules/uniwidth/u8-width-tests: New file.
32266 * lib/uniwidth/u8-width.c: New file.
32267 * modules/uniwidth/u8-width: New file.
32269 * tests/uniwidth/test-uc_width.c: New file.
32270 * modules/uniwidth/width-tests: New file.
32272 * lib/uniwidth/width.c: New file, from GNU libiconv.
32273 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32274 * modules/uniwidth/width: New file.
32276 * lib/uniwidth.h: New file, from GNU libiconv.
32277 * modules/uniwidth/base: New file.
32279 2007-07-07 Bruno Haible <bruno@clisp.org>
32281 * lib/uniname.h: New file, from GNU gettext.
32282 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32283 * lib/uniname/uninames.h: New file, from GNU gettext.
32284 * lib/uniname/uniname.c: New file, from GNU gettext.
32285 * tests/uniname/test-uninames.sh: New file.
32286 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32287 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32288 * modules/uniname/base: New file.
32289 * modules/uniname/uniname: New file.
32290 * modules/uniname/uniname-tests: New file.
32291 * MODULES.html.sh (Unicode string functions): Add the new modules.
32293 2007-07-06 Bruno Haible <bruno@clisp.org>
32295 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32297 2007-07-06 Bruno Haible <bruno@clisp.org>
32299 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32300 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32301 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32302 include <sys/time.h>.
32303 Reported by Eric Blake.
32305 2007-07-06 Eric Blake <ebb9@byu.net>
32307 Fix testing canonicalize on cygwin.
32308 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32309 Revert patch from 2007-06-19.
32310 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32311 canonicalize module is also in use.
32312 * tests/test-canonicalize.c: New file.
32313 * tests/test-canonicalize.sh: Likewise.
32314 * modules/canonicalize-tests: Likewise.
32316 2007-07-06 Jim Meyering <jim@meyering.net>
32318 * lib/getugroups.c (getugroups): Detect getgrent failure.
32319 Adjust comment to reflect reality: this function may return -1.
32321 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32323 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32324 the new TP address.
32326 (gnulib_mk): New variable.
32328 2007-07-05 Jim Meyering <jim@meyering.net>
32330 Don't let endgrent clobber errno, no matter how improbable.
32331 * lib/getugroups.c (getugroups): Save and restore errno around
32334 Close the group DB even when failing with 2^31 or more members.
32335 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32337 2007-07-04 Jim Meyering <jim@meyering.net>
32339 * lib/getugroups.h: New file.
32340 * lib/getugroups.c: Include "getugroups.h".
32341 Remove uses of "register" keyword.
32342 Move local variable, "cp", down into scope where used.
32343 Give "username" parameter the "const" attribute.
32344 * modules/getugroups (Files): Add lib/getugroups.h
32346 2007-07-04 Karl Berry <karl@gnu.org>
32348 * MODULES.html.sh (func_all_modules): Complete rename of
32349 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32351 2007-07-02 Bruno Haible <bruno@clisp.org>
32353 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32354 mode, when inttypes.h comes from gnulib.
32355 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32357 2007-07-02 Simon Josefsson <simon@josefsson.org>
32359 * NEWS: Mention lgpl module name change.
32361 * modules/lgpl-2.1: Renamed from lgpl.
32363 * NEWS: Mention gpl module name change.
32365 * modules/gpl-3.0: New file, based on gpl-2.0.
32367 * modules/gpl-2.0: Renamed from gpl.
32369 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32372 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32374 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32375 #define __STDC_LIMIT_MACROS temporarily while including
32376 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32377 Problem reported by Joel E. Denny in
32378 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32380 2007-07-01 Bruno Haible <bruno@clisp.org>
32382 * lib/unistdio.h: New file.
32383 * lib/unistdio/u-asnprintf.h: New file.
32384 * lib/unistdio/u-asprintf.h: New file.
32385 * lib/unistdio/u-printf-args.c: New file.
32386 * lib/unistdio/u-printf-args.h: New file.
32387 * lib/unistdio/u-printf-parse.h: New file.
32388 * lib/unistdio/u-snprintf.h: New file.
32389 * lib/unistdio/u-sprintf.h: New file.
32390 * lib/unistdio/u-vasprintf.h: New file.
32391 * lib/unistdio/u-vsnprintf.h: New file.
32392 * lib/unistdio/u-vsprintf.h: New file.
32393 * lib/unistdio/ulc-asnprintf.c: New file.
32394 * lib/unistdio/ulc-asprintf.c: New file.
32395 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32396 * lib/unistdio/ulc-printf-parse.c: New file.
32397 * lib/unistdio/ulc-snprintf.c: New file.
32398 * lib/unistdio/ulc-sprintf.c: New file.
32399 * lib/unistdio/ulc-vasnprintf.c: New file.
32400 * lib/unistdio/ulc-vasprintf.c: New file.
32401 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32402 * lib/unistdio/ulc-vsnprintf.c: New file.
32403 * lib/unistdio/ulc-vsprintf.c: New file.
32404 * lib/unistdio/u8-asnprintf.c: New file.
32405 * lib/unistdio/u8-asprintf.c: New file.
32406 * lib/unistdio/u8-printf-parse.c: New file.
32407 * lib/unistdio/u8-snprintf.c: New file.
32408 * lib/unistdio/u8-sprintf.c: New file.
32409 * lib/unistdio/u8-vasnprintf.c: New file.
32410 * lib/unistdio/u8-vasprintf.c: New file.
32411 * lib/unistdio/u8-vsnprintf.c: New file.
32412 * lib/unistdio/u8-vsprintf.c: New file.
32413 * lib/unistdio/u8-u8-asnprintf.c: New file.
32414 * lib/unistdio/u8-u8-asprintf.c: New file.
32415 * lib/unistdio/u8-u8-snprintf.c: New file.
32416 * lib/unistdio/u8-u8-sprintf.c: New file.
32417 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32418 * lib/unistdio/u8-u8-vasprintf.c: New file.
32419 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32420 * lib/unistdio/u8-u8-vsprintf.c: New file.
32421 * lib/unistdio/u16-asnprintf.c: New file.
32422 * lib/unistdio/u16-asprintf.c: New file.
32423 * lib/unistdio/u16-printf-parse.c: New file.
32424 * lib/unistdio/u16-snprintf.c: New file.
32425 * lib/unistdio/u16-sprintf.c: New file.
32426 * lib/unistdio/u16-vasnprintf.c: New file.
32427 * lib/unistdio/u16-vasprintf.c: New file.
32428 * lib/unistdio/u16-vsnprintf.c: New file.
32429 * lib/unistdio/u16-vsprintf.c: New file.
32430 * lib/unistdio/u16-u16-asnprintf.c: New file.
32431 * lib/unistdio/u16-u16-asprintf.c: New file.
32432 * lib/unistdio/u16-u16-snprintf.c: New file.
32433 * lib/unistdio/u16-u16-sprintf.c: New file.
32434 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32435 * lib/unistdio/u16-u16-vasprintf.c: New file.
32436 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32437 * lib/unistdio/u16-u16-vsprintf.c: New file.
32438 * lib/unistdio/u32-asnprintf.c: New file.
32439 * lib/unistdio/u32-asprintf.c: New file.
32440 * lib/unistdio/u32-printf-parse.c: New file.
32441 * lib/unistdio/u32-snprintf.c: New file.
32442 * lib/unistdio/u32-sprintf.c: New file.
32443 * lib/unistdio/u32-vasnprintf.c: New file.
32444 * lib/unistdio/u32-vasprintf.c: New file.
32445 * lib/unistdio/u32-vsnprintf.c: New file.
32446 * lib/unistdio/u32-vsprintf.c: New file.
32447 * lib/unistdio/u32-u32-asnprintf.c: New file.
32448 * lib/unistdio/u32-u32-asprintf.c: New file.
32449 * lib/unistdio/u32-u32-snprintf.c: New file.
32450 * lib/unistdio/u32-u32-sprintf.c: New file.
32451 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32452 * lib/unistdio/u32-u32-vasprintf.c: New file.
32453 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32454 * lib/unistdio/u32-u32-vsprintf.c: New file.
32455 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32456 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32457 * tests/unistdio/test-ulc-printf1.h: New file.
32458 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32459 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32460 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32461 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32462 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32463 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32464 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32465 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32466 * tests/unistdio/test-u8-asnprintf1.c: New file.
32467 * tests/unistdio/test-u8-asnprintf1.h: New file.
32468 * tests/unistdio/test-u8-printf1.h: New file.
32469 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32470 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32471 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32472 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32473 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32474 * tests/unistdio/test-u8-vasprintf1.c: New file.
32475 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32476 * tests/unistdio/test-u8-vsprintf1.c: New file.
32477 * tests/unistdio/test-u16-asnprintf1.c: New file.
32478 * tests/unistdio/test-u16-asnprintf1.h: New file.
32479 * tests/unistdio/test-u16-printf1.h: New file.
32480 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32481 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32482 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32483 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32484 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32485 * tests/unistdio/test-u16-vasprintf1.c: New file.
32486 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32487 * tests/unistdio/test-u16-vsprintf1.c: New file.
32488 * tests/unistdio/test-u32-asnprintf1.c: New file.
32489 * tests/unistdio/test-u32-asnprintf1.h: New file.
32490 * tests/unistdio/test-u32-printf1.h: New file.
32491 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32492 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32493 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32494 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32495 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32496 * tests/unistdio/test-u32-vasprintf1.c: New file.
32497 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32498 * tests/unistdio/test-u32-vsprintf1.c: New file.
32499 * modules/unistdio/base: New file.
32500 * modules/unistdio/u-printf-args: New file.
32501 * modules/unistdio/ulc-asnprintf: New file.
32502 * modules/unistdio/ulc-asprintf: New file.
32503 * modules/unistdio/ulc-fprintf: New file.
32504 * modules/unistdio/ulc-printf-parse: New file.
32505 * modules/unistdio/ulc-snprintf: New file.
32506 * modules/unistdio/ulc-sprintf: New file.
32507 * modules/unistdio/ulc-vasnprintf: New file.
32508 * modules/unistdio/ulc-vasprintf: New file.
32509 * modules/unistdio/ulc-vfprintf: New file.
32510 * modules/unistdio/ulc-vsnprintf: New file.
32511 * modules/unistdio/ulc-vsprintf: New file.
32512 * modules/unistdio/u8-asnprintf: New file.
32513 * modules/unistdio/u8-asprintf: New file.
32514 * modules/unistdio/u8-printf-parse: New file.
32515 * modules/unistdio/u8-snprintf: New file.
32516 * modules/unistdio/u8-sprintf: New file.
32517 * modules/unistdio/u8-vasnprintf: New file.
32518 * modules/unistdio/u8-vasprintf: New file.
32519 * modules/unistdio/u8-vsnprintf: New file.
32520 * modules/unistdio/u8-vsprintf: New file.
32521 * modules/unistdio/u8-u8-asnprintf: New file.
32522 * modules/unistdio/u8-u8-asprintf: New file.
32523 * modules/unistdio/u8-u8-snprintf: New file.
32524 * modules/unistdio/u8-u8-sprintf: New file.
32525 * modules/unistdio/u8-u8-vasnprintf: New file.
32526 * modules/unistdio/u8-u8-vasprintf: New file.
32527 * modules/unistdio/u8-u8-vsnprintf: New file.
32528 * modules/unistdio/u8-u8-vsprintf: New file.
32529 * modules/unistdio/u16-asnprintf: New file.
32530 * modules/unistdio/u16-asprintf: New file.
32531 * modules/unistdio/u16-printf-parse: New file.
32532 * modules/unistdio/u16-snprintf: New file.
32533 * modules/unistdio/u16-sprintf: New file.
32534 * modules/unistdio/u16-vasnprintf: New file.
32535 * modules/unistdio/u16-vasprintf: New file.
32536 * modules/unistdio/u16-vsnprintf: New file.
32537 * modules/unistdio/u16-vsprintf: New file.
32538 * modules/unistdio/u16-u16-asnprintf: New file.
32539 * modules/unistdio/u16-u16-asprintf: New file.
32540 * modules/unistdio/u16-u16-snprintf: New file.
32541 * modules/unistdio/u16-u16-sprintf: New file.
32542 * modules/unistdio/u16-u16-vasnprintf: New file.
32543 * modules/unistdio/u16-u16-vasprintf: New file.
32544 * modules/unistdio/u16-u16-vsnprintf: New file.
32545 * modules/unistdio/u16-u16-vsprintf: New file.
32546 * modules/unistdio/u32-asnprintf: New file.
32547 * modules/unistdio/u32-asprintf: New file.
32548 * modules/unistdio/u32-printf-parse: New file.
32549 * modules/unistdio/u32-snprintf: New file.
32550 * modules/unistdio/u32-sprintf: New file.
32551 * modules/unistdio/u32-vasnprintf: New file.
32552 * modules/unistdio/u32-vasprintf: New file.
32553 * modules/unistdio/u32-vsnprintf: New file.
32554 * modules/unistdio/u32-vsprintf: New file.
32555 * modules/unistdio/u32-u32-asnprintf: New file.
32556 * modules/unistdio/u32-u32-asprintf: New file.
32557 * modules/unistdio/u32-u32-snprintf: New file.
32558 * modules/unistdio/u32-u32-sprintf: New file.
32559 * modules/unistdio/u32-u32-vasnprintf: New file.
32560 * modules/unistdio/u32-u32-vasprintf: New file.
32561 * modules/unistdio/u32-u32-vsnprintf: New file.
32562 * modules/unistdio/u32-u32-vsprintf: New file.
32563 * modules/unistdio/ulc-asnprintf-tests: New file.
32564 * modules/unistdio/ulc-vasnprintf-tests: New file.
32565 * modules/unistdio/ulc-vasprintf-tests: New file.
32566 * modules/unistdio/ulc-vsnprintf-tests: New file.
32567 * modules/unistdio/ulc-vsprintf-tests: New file.
32568 * modules/unistdio/u8-asnprintf-tests: New file.
32569 * modules/unistdio/u8-vasnprintf-tests: New file.
32570 * modules/unistdio/u8-vasprintf-tests: New file.
32571 * modules/unistdio/u8-vsnprintf-tests: New file.
32572 * modules/unistdio/u8-vsprintf-tests: New file.
32573 * modules/unistdio/u16-asnprintf-tests: New file.
32574 * modules/unistdio/u16-vasnprintf-tests: New file.
32575 * modules/unistdio/u16-vasprintf-tests: New file.
32576 * modules/unistdio/u16-vsnprintf-tests: New file.
32577 * modules/unistdio/u16-vsprintf-tests: New file.
32578 * modules/unistdio/u32-asnprintf-tests: New file.
32579 * modules/unistdio/u32-vasnprintf-tests: New file.
32580 * modules/unistdio/u32-vasprintf-tests: New file.
32581 * modules/unistdio/u32-vsnprintf-tests: New file.
32582 * modules/unistdio/u32-vsprintf-tests: New file.
32583 * MODULES.html.sh (Unicode string functions): Add the new modules.
32585 2007-07-01 Bruno Haible <bruno@clisp.org>
32587 * lib/sprintf.c (sprintf): Limit the available length estimation,
32588 to avoid address wraparound.
32589 * lib/vsprintf.c (vsprintf): Likewise.
32590 * modules/sprintf-posix (Dependencies): Add stdint.
32591 * modules/vsprintf-posix (Dependencies): Likewise.
32593 2007-07-01 Bruno Haible <bruno@clisp.org>
32595 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32596 Windows PATH as well. Conservative double-quoting. Comments.
32598 2007-07-01 Bruno Haible <bruno@clisp.org>
32599 Eric Blake <ebb9@byu.net>
32600 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32602 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32603 empty components in $PATH, denoting '.'.
32605 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32607 * gnulib-tool: Fix indentation.
32608 (func_create_megatestdir): Likewise.
32609 Report by Bruno Haible.
32611 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32613 Sync from Automake.
32614 * build-aux/gnupload: Fix shell portability issues with for loops.
32615 Report by Karl Berry.
32617 2007-06-29 Simon Josefsson <simon@josefsson.org>
32619 * build-aux/maint.mk (POURL): Use translationproject.org.
32621 2007-06-27 Simon Josefsson <simon@josefsson.org>
32622 Bruno Haible <bruno@clisp.org>
32624 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32625 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32626 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32627 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32628 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32630 2007-06-27 Bruno Haible <bruno@clisp.org>
32632 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32633 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32635 2007-06-26 Karl Berry <karl@gnu.org>
32637 * MODULES.html.sh: remove xreadlink-with-size.
32639 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32641 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32642 method that I hope also handles the double-include problem noted
32644 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32646 2007-06-23 Bruno Haible <bruno@clisp.org>
32648 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32649 Don't let the 'mostlyclean' target fail if the last subdirectory could
32651 Reported by Karl Berry.
32653 2007-06-23 Bruno Haible <bruno@clisp.org>
32655 * gnulib-tool (echo): Add a speedier workaround for ksh.
32656 * tests/test-echo.sh: Likewise.
32658 2007-06-23 Bruno Haible <bruno@clisp.org>
32660 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32661 * tests/test-echo.sh: Likewise.
32663 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32665 * gnulib-tool (IFS): Initialize early, so we don't set it to
32667 (self_abspathname): Rewrite algorithm to set it, reindent.
32668 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32669 (func_create_megatestdir): Merge some sed scripts.
32671 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32673 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32674 exposed by Sun Studio 11 cc on Solaris 8.
32676 2007-06-22 Bruno Haible <bruno@clisp.org>
32678 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32680 * tests/test-echo.sh: New file.
32682 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32684 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32685 simplify `sed_replace_build_aux' scripts, they are portable but
32686 echoing them with `echo' is not.
32687 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32689 2007-06-21 Karl Berry <karl@gnu.org>
32691 * config/srclist.txt: guess we can't handle the licenses via
32692 srclist at the moment.
32694 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32696 * MODULES.html.sh: Add include_next.
32697 * modules/include_next: New file.
32699 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32701 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32703 (gl_CHECK_NEXT_HEADERS): New macro.
32704 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32705 the obsolescent gl_ABSOLUTE_HEADER.
32706 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32707 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32708 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32709 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32710 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32711 * m4/math_h.m4 (gl_MATH_H): Likewise.
32712 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32713 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32714 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32715 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32716 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32717 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32718 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32719 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32720 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32721 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32722 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32723 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32724 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32725 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32726 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32727 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32728 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32729 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32730 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32731 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32732 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32733 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32734 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32735 * lib/float_.h: Likewise.
32736 * lib/inttypes_.h: Likewise.
32737 * lib/math_.h: Likewise.
32738 * lib/search_.h: Likewise.
32739 * lib/signal_.h: Likewise.
32740 * lib/stdint_.h: Likewise.
32741 * lib/stdio_.h: Likewise.
32742 * lib/stdlib_.h: Likewise.
32743 * lib/string_.h: Likewise.
32744 * lib/sys_stat_.h: Likewise.
32745 * lib/sys_time_.h: Likewise.
32746 * lib/time_.h: Likewise.
32747 * lib/unistd_.h: Likewise.
32748 * lib/wchar_.h: Likewise.
32749 * lib/wctype_.h: Likewise.
32750 * lib/dirent_.h: Likewise.
32751 * lib/iconv_.h: Likewise.
32752 * lib/locale_.h: Likewise.
32753 * lib/netinet_in_.h: Likewise.
32754 * lib/sys_select_.h: Likewise.
32755 * lib/sys_socket_.h: Likewise.
32756 * lib/sysexits_.h: Likewise.
32757 * modules/fcntl (Depends-on): Depend on include_next, not
32759 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32760 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32761 * modules/fchdir: Likewise.
32762 * modules/float: Likewise.
32763 * modules/iconv_open: Likewise.
32764 * modules/inttypes: Likewise.
32765 * modules/locale: Likewise.
32766 * modules/math: Likewise.
32767 * modules/netinet_in: Likewise.
32768 * modules/search: Likewise.
32769 * modules/signal: Likewise.
32770 * modules/stdint: Likewise.
32771 * modules/stdio: Likewise.
32772 * modules/stdlib: Likewise.
32773 * modules/string: Likewise.
32774 * modules/sys_select: Likewise.
32775 * modules/sys_socket: Likewise.
32776 * modules/sys_stat: Likewise.
32777 * modules/sys_time: Likewise.
32778 * modules/sysexits: Likewise.
32779 * modules/time: Likewise.
32780 * modules/unistd: Likewise.
32781 * modules/wchar: Likewise.
32782 * modules/wctype: Likewise.
32783 * modules/sys_stat: Change maintainer to "all".
32784 * modules/unistd: Likewise.
32786 2007-06-20 Karl Berry <karl@gnu.org>
32788 * config/srclist.txt: track www changes in license files.
32790 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32792 * build-aux/bootstrap: Remove stray dot.
32793 Make sure build_aux settings are honored when linking
32794 gnulib_extra_files.
32796 2007-06-19 Eric Blake <ebb9@byu.net>
32798 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32799 Allow compilation on cygwin.
32801 2007-06-19 Jim Meyering <jim@meyering.net>
32803 xreadlink-with-size: Remove module. No longer used.
32804 Ex-callers now use xreadlink or mreadlink-with-size.
32805 * modules/xreadlink-with-size: Remove module.
32806 * lib/xreadlink-with-size.c: Remove file.
32807 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32808 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32809 just before the function definition *is* accurate.
32811 Eliminate one way canonicalize_filename_mode could exit.
32812 * lib/canonicalize.c (canonicalize_filename_mode):
32813 Use mreadlink_with_size, not xreadlink_with_size.
32815 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32817 Detect porting problems to FreeBSD/arm, which has time_t wider than
32818 long int. Original problem reported for GNU diff by Xin Li in
32819 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32820 * modules/getdate (Depends-on): Add intprops, verify.
32821 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32822 is an integer type no wider than long int.
32824 2007-06-18 Jim Meyering <jim@meyering.net>
32826 New module: mreadlink-with-size.
32827 * MODULES.html.sh: Add mreadlink-with-size.
32828 * modules/mreadlink-with-size: New module
32829 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32830 not xreadlink-with-size.
32831 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32833 2007-06-16 Bruno Haible <bruno@clisp.org>
32835 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32836 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32837 Reported by Gary V. Vaughan <gary@gnu.org>.
32839 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32841 Revamp lchown so that it lives in unistd.h where it belongs.
32842 * lib/lchown.h: Remove.
32843 * lib/dirchownmod.c: Don't include lib/lchown.h.
32844 * lib/fchownat.c: Likewise.
32845 * lib/openat.c: Likewise.
32846 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32847 does not follow symlinks.
32848 (EOPNOTSUPP): Define if not defined.
32849 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32851 (lchown): New decl.
32852 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32853 Do not check for lchown decl.
32854 Set REPLACE_LCHOWN.
32855 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32857 * modules/chown: Make it clear it follows symlinks.
32858 * modules/lchown: Make it clear it doesn't follow symlinks.
32859 (Files): Remove lib/lchown.h
32860 (Depends-on): Add unistd.
32861 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32862 (Include): Include <unistd.h>, not "lchown.h".
32863 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32866 2007-06-15 Jim Meyering <jim@meyering.net>
32868 Change license (GPL to LGPL) of fsusage and dependents.
32869 * modules/fsusage (License): Change to LGPL.
32870 * modules/full-read (License): Likewise.
32871 * modules/full-write (License): Likewise.
32872 * modules/safe-read (License): Likewise.
32873 * modules/safe-write (License): Likewise.
32875 2007-06-14 Ben Pfaff <blp@gnu.org>
32877 Missing part of allocsa -> malloca transition.
32878 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32881 2007-06-12 Bruno Haible <bruno@clisp.org>
32883 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32884 to ia64, x86_64, i386.
32885 Reported by Eric Blake.
32887 2007-06-12 Bruno Haible <bruno@clisp.org>
32889 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32890 cross-compiling to x86_64.
32892 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32894 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32895 glitch reported by Ralf Wildenhues in
32896 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32898 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32901 2007-06-11 Bruno Haible <bruno@clisp.org>
32903 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32904 replacement string.
32905 Reported by Eric Blake.
32907 2007-06-10 Bruno Haible <bruno@clisp.org>
32909 Prepare vasnprintf code for use with Unicode strings.
32910 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32911 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32913 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32914 a_u32_string variants.
32915 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32916 * lib/printf-args.c: Don't include config.h and the specification
32917 header if PRINTF_FETCHARGS is already defined.
32918 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32919 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32920 TYPE_U16_STRING, TYPE_U32_STRING.
32921 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32922 u16_directive, u16_directives, u32_directive, u32_directives): New
32924 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32926 * lib/printf-parse.c: Don't include config.h and the specification
32927 header if PRINTF_PARSE is already defined. Eliminate the set of
32928 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32929 them now. Include c-ctype.h.
32930 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32931 directive and CHAR_T_ONLY_ASCII.
32932 * lib/vasnprintf.c: Don't include config.h and the specification header
32933 if VASNPRINTF is already defined.
32934 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32935 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32936 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32937 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32938 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32939 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32941 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32942 pad_ourselves also in this case, with the 'c' and 's' directives, and
32943 with a different notion of "width".
32944 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32946 2007-06-10 Bruno Haible <bruno@clisp.org>
32948 * modules/unistr/u32-mbsnlen: New file.
32949 * lib/unistr/u32-mbsnlen.c: New file.
32951 * modules/unistr/u16-mbsnlen: New file.
32952 * lib/unistr/u16-mbsnlen.c: New file.
32954 * modules/unistr/u8-mbsnlen: New file.
32955 * lib/unistr/u8-mbsnlen.c: New file.
32957 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32960 2007-06-10 Bruno Haible <bruno@clisp.org>
32962 * lib/string_.h (mbsnlen): New declaration.
32963 * lib/mbsnlen.c: New file.
32964 * m4/mbsnlen.m4: New file.
32965 * modules/mbsnlen: New file.
32966 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32967 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32968 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32970 2007-06-10 Bruno Haible <bruno@clisp.org>
32972 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32974 2007-06-10 Bruno Haible <bruno@clisp.org>
32976 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32977 * lib/mbuiter.h: Likewise.
32979 2007-06-10 Bruno Haible <bruno@clisp.org>
32981 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32984 2007-06-10 Karl Berry <karl@gnu.org>
32986 * config/srclist.txt: remove gettext entries, Bruno prefers
32987 to update individually.
32989 2007-06-10 Bruno Haible <bruno@clisp.org>
32991 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32992 'maxlen'. Ensure only length + width bytes are allocated, not
32993 length + 1 + width.
32995 2007-06-09 Bruno Haible <bruno@clisp.org>
32997 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32998 (CHAR_T): Remove macro.
32999 (VASNPRINTF): Update.
33001 2007-06-09 Bruno Haible <bruno@clisp.org>
33003 * MODULES.html.sh (Unicode string functions): Add the new modules.
33005 * modules/uniconv/u32-conv-to-enc: New file.
33006 * lib/uniconv/u32-conv-to-enc.c: New file.
33007 * modules/uniconv/u32-conv-to-enc-tests: New file.
33008 * tests/uniconv/test-u32-conv-to-enc.c: New file.
33010 * modules/uniconv/u16-conv-to-enc: New file.
33011 * lib/uniconv/u16-conv-to-enc.c: New file.
33012 * lib/uniconv/u-conv-to-enc.h: New file.
33013 * modules/uniconv/u16-conv-to-enc-tests: New file.
33014 * tests/uniconv/test-u16-conv-to-enc.c: New file.
33016 * modules/uniconv/u8-conv-to-enc: New file.
33017 * lib/uniconv/u8-conv-to-enc.c: New file.
33018 * modules/uniconv/u8-conv-to-enc-tests: New file.
33019 * tests/uniconv/test-u8-conv-to-enc.c: New file.
33021 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33022 u32_conv_to_encoding): New declarations.
33024 2007-06-09 Bruno Haible <bruno@clisp.org>
33026 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33028 2007-06-09 Bruno Haible <bruno@clisp.org>
33030 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33031 * modules/malloca: Renamed from modules/allocsa, updated.
33032 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33033 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33034 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33035 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33036 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33037 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33038 * modules/xmalloca: Renamed from modules/xallocsa, updated.
33039 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33040 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33041 * modules/c-strcasestr (Depends-on): Update.
33042 * lib/c-strcasestr.c: Update.
33043 * modules/c-strstr (Depends-on): Update.
33044 * lib/c-strstr.c: Update.
33045 * modules/canonicalize-lgpl (Depends-on): Update.
33046 * lib/canonicalize-lgpl.c: Update.
33047 * modules/clean-temp (Depends-on): Update.
33048 * lib/clean-temp.c: Update.
33049 * modules/csharpcomp (Depends-on): Update.
33050 * lib/csharpcomp.c: Update.
33051 * modules/csharpexec (Depends-on): Update.
33052 * lib/csharpexec.c: Update.
33053 * modules/javacomp (Depends-on): Update.
33054 * lib/javacomp.c: Update.
33055 * modules/javaexec (Depends-on): Update.
33056 * lib/javaexec.c: Update.
33057 * modules/mbscasestr (Depends-on): Update.
33058 * lib/mbscasestr.c: Update.
33059 * modules/mbsstr (Depends-on): Update.
33060 * lib/mbsstr.c: Update.
33061 * modules/setenv (Depends-on): Update.
33062 * lib/setenv.c: Update.
33063 * modules/strcasestr (Depends-on): Update.
33064 * lib/strcasestr.c: Update.
33065 * modules/striconveha (Depends-on): Update.
33066 * lib/striconveha.c: Update.
33067 * modules/relocatable-prog-wrapper (Files): Update.
33068 * lib/relocwrapper.c: Update.
33069 * build-aux/install-reloc: Update.
33070 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33072 2007-06-08 Bruno Haible <bruno@clisp.org>
33075 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33076 * lib/fpurge.c (fpurge): Likewise.
33077 * lib/freading.c (freading): Likewise.
33078 * lib/fseeko.c (rpl_fseeko): Likewise.
33079 * lib/fseterr.c (fseterr): Likewise.
33080 * lib/fwriting.c (fwriting): Likewise.
33081 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33083 2007-06-08 Bruno Haible <bruno@clisp.org>
33085 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33086 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33087 * modules/gettext (Files): Add m4/intlmacosx.m4.
33089 2007-06-07 Bruno Haible <bruno@clisp.org>
33091 * modules/localename-tests: New file.
33092 * tests/test-localename.c: New file.
33094 New module 'localename'.
33095 * lib/localename.h: New file.
33096 * lib/localename.c: New file, from GNU gettext.
33097 * m4/localename.m4: New file.
33098 * modules/localename: New file.
33100 2007-06-07 Bruno Haible <bruno@clisp.org>
33102 Work around the lack of <wchar.h> on some builds of uClibc.
33103 * doc/headers/wchar.texi: Update.
33104 * lib/wchar_.h: Include <wchar.h> only if it exists.
33105 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33106 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33107 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33109 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33110 * modules/mbfile (Depends-on): Add wchar.
33111 * modules/mbiter (Depends-on): Likewise.
33112 * modules/mbuiter (Depends-on): Likewise.
33113 Reported by Simon Josefsson.
33115 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33117 Work around problem reported by Steven M. Schweda in
33118 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33119 Tru64 5.1B with the Compaq compiler environment installed declares
33120 an 'isblank' function but does not define it in the C library.
33121 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33122 * lib/regex_internal.h (isblank): Likewise.
33123 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33124 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33126 2007-06-05 Bruno Haible <bruno@clisp.org>
33128 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33130 * modules/printf-safe: New file.
33131 * modules/fprintf-posix (Depends-on): Add printf-safe.
33132 * modules/printf-posix (Depends-on): Likewise.
33133 * modules/snprintf-posix (Depends-on): Likewise.
33134 * modules/sprintf-posix (Depends-on): Likewise.
33135 * modules/vasnprintf-posix (Depends-on): Likewise.
33136 * modules/vasprintf-posix (Depends-on): Likewise.
33137 * modules/vfprintf-posix (Depends-on): Likewise.
33138 * modules/vprintf-posix (Depends-on): Likewise.
33139 * modules/vsnprintf-posix (Depends-on): Likewise.
33140 * modules/vsprintf-posix (Depends-on): Likewise.
33141 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33142 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33143 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33144 "no" on i386, x86_64, ia64.
33145 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33146 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33147 on i386, x86_64, ia64.
33148 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33149 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33150 on i386, x86_64, ia64.
33151 * tests/test-vasnprintf-posix.c: Include float.h.
33152 (LDBL80_WORDS): New macro.
33153 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33154 on i386, x86_64, ia64.
33155 * tests/test-vasprintf-posix.c: Include float.h.
33156 (LDBL80_WORDS): New macro.
33157 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33158 on i386, x86_64, ia64.
33159 * tests/test-snprintf-posix.c: Include float.h.
33160 * tests/test-sprintf-posix.c: Likewise.
33161 * tests/test-vsnprintf-posix.c: Likewise.
33162 * tests/test-vsprintf-posix.c: Likewise.
33164 2007-06-05 Bruno Haible <bruno@clisp.org>
33166 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33167 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33168 non-IEEE numbers on i386, x86_64, ia64.
33169 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33170 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33171 * tests/test-isnanl.h: Include float.h.
33172 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33174 2007-06-05 Bruno Haible <bruno@clisp.org>
33176 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33177 also the %a / %A. Handle the %a / %A code before this extra handling.
33179 2007-06-05 Bruno Haible <bruno@clisp.org>
33181 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33182 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33184 2007-06-05 Bruno Haible <bruno@clisp.org>
33186 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33187 typo in variable name.
33189 2007-06-05 Eric Blake <ebb9@byu.net>
33191 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33192 Reported by Simon Josefsson.
33194 2007-06-04 Bruno Haible <bruno@clisp.org>
33196 Avoid test failures on some PowerPC platforms.
33197 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33198 Define differently for PowerPC.
33199 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33200 Reported by Gary V. Vaughan <gary@gnu.org>.
33202 2007-06-02 Bruno Haible <bruno@clisp.org>
33204 Fix test-stdint failure on FreeBSD/ia64.
33205 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33206 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33207 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33208 * doc/headers/stdint.texi: Update.
33210 2007-06-01 Bruno Haible <bruno@clisp.org>
33212 * tests/test-binary-io.c (main): Pass a third argument to open().
33213 Reported by Gary V. Vaughan <gary@gnu.org>.
33215 2007-06-01 Bruno Haible <bruno@clisp.org>
33217 * doc/functions/frexpl.texi: Update for mingw.
33219 2007-06-01 Bruno Haible <bruno@clisp.org>
33221 * tests/test-lseek.c (main): Disable test of errno for invalid third
33223 * doc/functions/lseek.texi: Update.
33224 Reported by Gary V. Vaughan <gary@gnu.org>.
33226 2007-05-28 Bruno Haible <bruno@clisp.org>
33228 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33230 2007-05-31 Eric Blake <ebb9@byu.net>
33232 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33235 2007-05-30 Eric Blake <ebb9@byu.net>
33236 and Bruno Haible <bruno@clisp.org>
33238 Work around mingw test failures exposed by m4-1.4.9b.
33239 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33240 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33243 2007-05-30 Bruno Haible <bruno@clisp.org>
33245 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33246 assuming that they are closed. Needed on HP-UX 11.
33248 2007-05-29 Bruno Haible <bruno@clisp.org>
33250 Fix a problem with #include_next.
33251 * lib/dirent_.h: Split the double-inclusion guard.
33252 * lib/fcntl_.h: Likewise.
33253 * lib/float_.h: Likewise.
33254 * lib/iconv_.h: Likewise.
33255 * lib/inttypes_.h: Likewise.
33256 * lib/locale_.h: Likewise.
33257 * lib/math_.h: Likewise.
33258 * lib/netinet_in_.h: Likewise.
33259 * lib/search_.h: Likewise.
33260 * lib/signal_.h: Likewise.
33261 * lib/stdint_.h: Likewise.
33262 * lib/stdio_.h: Likewise.
33263 * lib/stdlib_.h: Likewise.
33264 * lib/string_.h: Likewise.
33265 * lib/sys_select_.h: Likewise.
33266 * lib/sys_socket_.h: Likewise.
33267 * lib/sys_stat_.h: Likewise.
33268 * lib/sys_time_.h: Likewise.
33269 * lib/sysexits_.h: Likewise.
33270 * lib/time_.h: Likewise.
33271 * lib/unistd_.h: Likewise.
33272 * lib/wchar_.h: Likewise.
33273 * lib/wctype_.h: Likewise.
33275 2007-05-29 Bruno Haible <bruno@clisp.org>
33277 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33280 2007-05-29 Bruno Haible <bruno@clisp.org>
33282 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33284 Reported by Eric Blake.
33286 2007-05-29 Bruno Haible <bruno@clisp.org>
33288 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33291 2007-05-29 Eric Blake <ebb9@byu.net>
33292 Bruno Haible <bruno@clisp.org>
33294 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33297 2007-05-28 Eric Blake <ebb9@byu.net>
33299 * modules/closein-tests (test_closein_LDADD): Support test on
33300 cygwin with libtool.
33302 2007-05-28 Bruno Haible <bruno@clisp.org>
33304 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33305 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33306 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33307 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33308 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33309 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33310 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33311 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33312 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33314 2007-05-28 Eric Blake <ebb9@byu.net>
33316 Unconditionally include <config.h> in unit tests.
33317 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33318 * tests/test-allocsa.c, tests/test-arcfour.c,
33319 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33320 tests/test-array_list.c, tests/test-array_oset.c,
33321 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33322 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33323 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33324 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33325 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33326 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33327 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33328 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33329 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33330 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33331 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33332 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33333 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33334 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33335 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33336 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33337 test-md5.c, test-memmem.c, test-printf-posix.c,
33338 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33339 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33340 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33341 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33342 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33343 test-vasnprintf-posix2.c, test-vasnprintf.c,
33344 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33345 test-vfprintf-posix.c, test-vprintf-posix.c,
33346 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33347 test-xvasprintf.c: Likewise.
33349 2007-05-28 Bruno Haible <bruno@clisp.org>
33351 * gnulib-tool (func_import): Remember the --with-tests command-line
33352 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33353 Reported by Eric Blake.
33355 2007-05-28 Bruno Haible <bruno@clisp.org>
33357 * modules/ftell-tests: New file.
33358 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33359 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33361 * lib/ftell.c: New file.
33362 * modules/ftell: New file.
33363 * m4/ftell.m4: New file.
33364 * doc/functions/ftell.texi: Update.
33365 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33367 * lib/stdio_.h (rpl_ftell): New declaration.
33368 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33371 2007-05-28 Eric Blake <ebb9@byu.net>
33373 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33375 2007-05-28 Bruno Haible <bruno@clisp.org>
33377 * modules/fseek-tests: New file.
33378 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33379 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33381 * lib/fseek.c: New file.
33382 * modules/fseek: New file.
33383 * m4/fseek.m4: New file.
33384 * doc/functions/fseek.texi: Update.
33385 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33387 * lib/stdio_.h (rpl_fseek): New declaration.
33388 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33391 2007-05-28 Bruno Haible <bruno@clisp.org>
33393 * lib/stdio_.h (fflush): More comments.
33395 2007-05-28 Bruno Haible <bruno@clisp.org>
33397 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33400 2007-05-28 Eric Blake <ebb9@byu.net>
33402 Improve lseek module.
33403 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33404 * lib/unistd_.h (lseek): Scale back link warning message.
33405 * tests/test-lseek.c: Beef up test.
33406 * tests/test-lseek.sh: Exercise more facets of lseek.
33407 Reported by Bruno Haible.
33409 2007-05-28 Bruno Haible <bruno@clisp.org>
33411 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33414 2007-05-27 Bruno Haible <bruno@clisp.org>
33416 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33418 2007-05-27 Bruno Haible <bruno@clisp.org>
33420 * modules/openmp: New file.
33421 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33424 2007-05-26 Bruno Haible <bruno@clisp.org>
33426 * modules/chdir-long (Depends-on): Add fchdir.
33427 * modules/chdir-safer (Depends-on): Likewise.
33428 * modules/fts (Depends-on): Likewise.
33429 * modules/fts-lgpl (Depends-on): Likewise.
33430 * modules/openat (Depends-on): Likewise.
33431 * modules/savewd (Depends-on): Likewise.
33433 2007-05-24 Eric Blake <ebb9@byu.net>
33435 Fix lseek on mingw.
33436 * modules/lseek: New module.
33437 * m4/lseek.m4: New file.
33438 * lib/lseek.c: New file.
33439 * modules/lseek-tests: New file.
33440 * tests/test-lseek.c: New file.
33441 * tests/test-lseek.sh: New file.
33442 * MODULES.html.sh: Document lseek module.
33443 * modules/fflush (Depends-on): Add lseek, fseeko.
33444 * modules/fseeko (Depends-on): Likewise.
33445 * modules/ftello (Depends-on): Likewise.
33446 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33448 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33450 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33451 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33452 * lib/ftello.c (rpl_ftello): Likewise.
33453 * tests/test-fseeko.c (main): Test this.
33454 * tests/test-fseeko.sh: Likewise.
33455 * tests/test-ftello.c (main): Likewise.
33456 * tests/test-ftello.sh: Likewise.
33457 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33458 implies replacing fseek.
33459 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33461 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33462 * modules/unistd (Makefile.am): Likewise.
33463 * lib/unistd_.h (lseek): Declare a replacement.
33464 * doc/functions/lseek.texi (lseek): Document this fix.
33465 * doc/functions/fseek.texi (fseek): Likewise.
33466 * doc/functions/ftell.texi (ftell): Likewise.
33468 2007-05-24 Bruno Haible <bruno@clisp.org>
33470 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33471 in the printed representation of a NaN.
33472 * tests/test-vasprintf-posix.c (test_function): Likewise.
33473 * tests/test-snprintf-posix.h (test_function): Likewise.
33474 * tests/test-sprintf-posix.h (test_function): Likewise.
33475 Reported by Eric Blake.
33477 2007-05-23 Eric Blake <ebb9@byu.net>
33479 Fix fseeko/ftello on cygwin 1.5.24.
33480 * doc/functions/fseeko.texi (fseeko): Document the fix.
33481 * doc/functions/ftello.texi (ftello): Document the fix.
33482 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33483 * doc/functions/stdout.text (stdout): New file.
33484 * doc/functions/stderr.text (stderr): New file.
33485 * doc/gnulib.texi (Function Substitutes): Use new files.
33486 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33488 * tests/test-ftello.c (main): Likewise for ftello.
33489 * tests/test-fseeko.sh: New file.
33490 * tests/test-ftello.sh: New file.
33491 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33492 with seekable stdin.
33493 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33494 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33495 (gl_REPLACE_FSEEKO): New macro.
33496 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33497 * modules/fseeko (Files): Distribute fseeko.c.
33498 * modules/ftello (Files): Distribute ftello.c.
33499 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33501 * lib/ftello.c (rpl_ftello): New file.
33502 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33504 (gl_STDIN_LARGE_OFFSET): New macro.
33505 * modules/stdio (Makefile.am): Perform the replacement.
33506 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33508 2007-05-23 Bruno Haible <bruno@clisp.org>
33510 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33511 GNULIB_POSIXCHECK is defined.
33513 2007-05-21 Bruno Haible <bruno@clisp.org>
33515 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33516 Check also the output for NaN arguments. When cross-compiling, guess
33518 * lib/vasnprintf.c: Update comments.
33519 * tests/test-vasnprintf-posix.c (strisnan): New function.
33520 (test_function): Use it.
33521 * tests/test-vasprintf-posix.c (strisnan): New function.
33522 (test_function): Use it.
33523 * tests/test-snprintf-posix.h (strisnan): New function.
33524 (test_function): Use it.
33525 * tests/test-sprintf-posix.h (strisnan): New function.
33526 (test_function): Use it.
33527 Reported by Eric Blake.
33529 2007-05-20 Bruno Haible <bruno@clisp.org>
33531 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33532 numbers that fails on BeOS.
33533 * doc/functions/frexpl.texi: Update.
33535 2007-05-20 Jim Meyering <jim@meyering.net>
33537 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33538 forced upon us by glibc-2.6.
33540 2007-05-20 Bruno Haible <bruno@clisp.org>
33542 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33543 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33544 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33545 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33546 NEED_PRINTF_INFINITE.
33547 (is_infinitel): New function.
33548 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33549 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33550 gl_PREREQ_VASNPRINTF_INFINITE.
33551 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33552 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33553 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33554 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33555 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33556 gl_PREREQ_VASNPRINTF_INFINITE.
33557 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33558 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33559 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33560 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33561 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33562 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33563 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33564 * doc/functions/fprintf.texi: Update.
33565 * doc/functions/printf.texi: Update.
33566 * doc/functions/snprintf.texi: Update.
33567 * doc/functions/sprintf.texi: Update.
33568 * doc/functions/vfprintf.texi: Update.
33569 * doc/functions/vprintf.texi: Update.
33570 * doc/functions/vsnprintf.texi: Update.
33571 * doc/functions/vsprintf.texi: Update.
33573 2007-05-20 Bruno Haible <bruno@clisp.org>
33575 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33576 was not found in libc.
33577 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33579 2007-05-20 Bruno Haible <bruno@clisp.org>
33581 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33582 printed as "-nan" instead of "nan".
33583 * tests/test-vasprintf-posix.c (test_function): Likewise.
33584 * tests/test-snprintf-posix.h (test_function): Likewise.
33585 * tests/test-sprintf-posix.h (test_function): Likewise.
33586 Needed for HP-UX 11.
33588 2007-05-20 Jim Meyering <jim@meyering.net>
33590 Fix buggy test for the fchownat-deref bug.
33591 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33592 symlink required for the run-test. Without it, this test would
33593 always declare that fchownat doesn't work, and client code would
33594 unnecessarily use the replacement function with fixed libc.
33595 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33596 Reported by Greg Schafer.
33598 2007-05-19 Bruno Haible <bruno@clisp.org>
33600 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33601 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33602 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33603 Needed for IRIX 6.5 and Solaris 2.5.1.
33605 2007-05-19 Bruno Haible <bruno@clisp.org>
33607 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33608 (test_function): Skip tests involving -0.0 on platforms where
33610 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33611 (test_function): Skip tests involving -0.0 on platforms where
33613 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33614 (test_function): Skip tests involving -0.0 on platforms where
33616 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33617 (test_function): Skip tests involving -0.0 on platforms where
33619 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33621 * tests/test-printf-posix.h (test_function): Likewise.
33622 * tests/test-printf-posix.output: Remove all -0.0 related results.
33623 Needed for IRIX 6.5.
33625 2007-05-19 Bruno Haible <bruno@clisp.org>
33627 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33628 printed as "nan0x7fffffff" instead of "nan".
33629 * tests/test-vasprintf-posix.c (test_function): Likewise.
33630 * tests/test-snprintf-posix.h (test_function): Likewise.
33631 * tests/test-sprintf-posix.h (test_function): Likewise.
33632 * tests/test-fprintf-posix.h (NaN): Remove macro.
33633 (test_function): Remove all NaN related tests.
33634 * tests/test-printf-posix.h (NaN): Remove macro.
33635 (test_function): Remove all NaN related tests.
33636 * tests/test-printf-posix.output: Remove all NaN related results.
33637 Needed for IRIX 6.5.
33639 2007-05-19 Bruno Haible <bruno@clisp.org>
33641 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33642 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33644 2007-05-19 Bruno Haible <bruno@clisp.org>
33646 * lib/float_.h: New file.
33647 * m4/float_h.m4: New file.
33648 * modules/float: New file.
33649 * modules/isnanl (Dependencies): Add float.
33650 * modules/isnanl-nolibm (Dependencies): Likewise.
33651 * modules/mathl (Dependencies): Likewise.
33652 * modules/printf-frexpl (Dependencies): Likewise.
33653 * modules/signbit (Dependencies): Likewise.
33654 * modules/vasnprintf (Dependencies): Likewise.
33655 * doc/headers/float.texi: Update.
33657 2007-05-19 Jim Meyering <jim@meyering.net>
33659 * lib/utimens.c (gl_futimens): Rename from futimens,
33660 now that glibc-2.6 declares futimens.
33661 * lib/utimens.h: Likewise.
33663 2007-05-19 Bruno Haible <bruno@clisp.org>
33665 Avoid test failures on mingw.
33666 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33667 * tests/test-printf-posix.sh: Likewise.
33668 * tests/test-vfprintf-posix.sh: Likewise.
33669 * tests/test-vprintf-posix.sh: Likewise.
33671 2007-05-19 Bruno Haible <bruno@clisp.org>
33673 Fix *printf result for NaN, Inf, -0.0 on mingw.
33674 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33675 * lib/vasnprintf.c: Include math.h and isnan.h.
33676 (is_infinite_or_zero): New function.
33677 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33678 values in the %f, %F, %e, %E, %g, %G directives.
33679 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33680 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33681 gl_PRINTF_INFINITE and test its result. Invoke
33682 gl_PREREQ_VASNPRINTF_INFINITE.
33683 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33684 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33685 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33686 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33687 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33688 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33689 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33690 * doc/functions/fprintf.texi: Update.
33691 * doc/functions/printf.texi: Update.
33692 * doc/functions/snprintf.texi: Update.
33693 * doc/functions/sprintf.texi: Update.
33694 * doc/functions/vfprintf.texi: Update.
33695 * doc/functions/vprintf.texi: Update.
33696 * doc/functions/vsnprintf.texi: Update.
33697 * doc/functions/vsprintf.texi: Update.
33699 2007-05-19 Bruno Haible <bruno@clisp.org>
33701 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33702 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33703 Instead of multiplying with 10^k, set extra_zeroes to k.
33704 (scale10_round_long_double): Remove function.
33706 2007-05-18 Bruno Haible <bruno@clisp.org>
33708 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33709 introduced on 2007-05-06.
33711 2007-05-18 Bruno Haible <bruno@clisp.org>
33713 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33715 * tests/test-vasprintf-posix.c (test_function): Likewise.
33716 * tests/test-snprintf-posix.h (test_function): Likewise.
33717 * tests/test-sprintf-posix.h (test_function): Likewise.
33719 2007-05-18 Bruno Haible <bruno@clisp.org>
33721 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33722 (strmatch): New function.
33723 (test_function): Test the %f directive on numbers of various exponents.
33724 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33725 (strmatch): New function.
33726 (test_function): Test the %f directive on numbers of various exponents.
33727 * tests/test-snprintf-posix.h (strmatch): New function.
33728 (test_function): Test the %f directive on numbers of various exponents.
33729 * tests/test-sprintf-posix.h (strmatch): New function.
33730 (test_function): Test the %f directive on numbers of various exponents.
33731 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33732 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33733 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33734 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33736 2007-05-18 Bruno Haible <bruno@clisp.org>
33738 Add support for 'long double' number output.
33739 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33740 * lib/vasnprintf.c: Include math.h and float+.h.
33741 (mp_limb_t): New type.
33742 (GMP_LIMB_BITS): New macro.
33743 (mp_twolimb_t): New type.
33744 (GMP_TWOLIMB_BITS): New macro.
33746 (multiply, divide, convert_to_decimal, decode_long_double,
33747 scale10_round_long_double, scale10_round_decimal_long_double,
33748 floorlog10l): New functions.
33749 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33750 for the %f, %F, %e, %E, %g, %G directives.
33751 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33752 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33753 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33754 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33755 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33756 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33757 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33758 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33759 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33760 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33761 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33762 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33763 * modules/snprintf-posix (Depends-on): Likewise.
33764 * modules/sprintf-posix (Depends-on): Likewise.
33765 * modules/vasnprintf-posix (Depends-on): Likewise.
33766 * modules/vasprintf-posix (Depends-on): Likewise.
33767 * modules/vfprintf-posix (Depends-on): Likewise.
33768 * modules/vsnprintf-posix (Depends-on): Likewise.
33769 * modules/vsprintf-posix (Depends-on): Likewise.
33770 * modules/vasnprintf (Files): Add lib/float+.h.
33771 * doc/functions/fprintf.texi: Update.
33772 * doc/functions/printf.texi: Update.
33773 * doc/functions/snprintf.texi: Update.
33774 * doc/functions/sprintf.texi: Update.
33775 * doc/functions/vfprintf.texi: Update.
33776 * doc/functions/vprintf.texi: Update.
33777 * doc/functions/vsnprintf.texi: Update.
33778 * doc/functions/vsprintf.texi: Update.
33780 2007-05-18 Bruno Haible <bruno@clisp.org>
33782 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33784 2007-05-18 Bruno Haible <bruno@clisp.org>
33786 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33787 for printing 64-bit integers. Needed for mingw.
33789 2007-05-18 Bruno Haible <bruno@clisp.org>
33791 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33792 gl_FUNC_FREXPL_WORKS.
33793 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33795 2007-05-18 Bruno Haible <bruno@clisp.org>
33797 * modules/frexpl-nolibm-tests: New file.
33799 * modules/frexpl-nolibm: New file.
33800 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33802 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33804 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33805 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33806 GCC 4.2, which otherwise issues a lot of warnings.
33807 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33808 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33810 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33811 * modules/iconv_open (iconv.h): Likewise.
33812 * modules/locale (locale.h): Likewise.
33813 * modules/netinet_in (netinet/in.h): Likewise.
33814 * modules/sys_select (sys_select.h): Likewise.
33815 * modules/sys_socket (sys/socket.h): Likewise.
33816 * modules/sys_stat (sys/stat.h): Likewise.
33817 * modules/sysexits (sysexits.h): Likewise.
33818 * modules/unistd (unistd.h): Likewise.
33820 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33822 * modules/closein-tests (Makefile.am): Distribute
33825 2007-05-17 Bruno Haible <bruno@clisp.org>
33827 * tests/test-printf-posix.output: Renamed from
33828 tests/test-fprintf-posix.out.
33829 * modules/fprintf-posix-tests: Update.
33830 * modules/printf-posix-tests: Update.
33831 * modules/vfprintf-posix-tests: Update.
33832 * modules/vprintf-posix-tests: Update.
33833 * tests/test-fprintf-posix.sh: Update.
33834 * tests/test-printf-posix.sh: Update.
33835 * tests/test-vfprintf-posix.sh: Update.
33836 * tests/test-vprintf-posix.sh: Update.
33837 Reported by Ralf Wildenhues.
33839 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33841 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33842 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33843 GCC 4.2, which otherwise issues a lot of warnings.
33844 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33845 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33846 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33847 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33848 it should no longer be needed.
33849 * lib/string_.h: Likewise.
33850 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33851 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33852 * modules/inttypes (inttypes.h): Likewise.
33853 * modules/math (math.h): Likewise.
33854 * modules/search (search.h): Likewise.
33855 * modules/signal (signal.h): Likewise.
33856 * modules/stdint (stdint.h): Likewise.
33857 * modules/stdio (stdio.h): Likewise.
33858 * modules/stdlib (stdlib.h): Likewise.
33859 * modules/string (string.h): Likewise.
33860 * modules/sys_time (sys/time.h): Likewise.
33861 * modules/time (time.h): Likewise.
33862 * modules/wchar (wchar.h): Likewise.
33863 * modules/wctype (wtype.h): Likewise.
33865 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33867 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33869 2007-05-13 Bruno Haible <bruno@clisp.org>
33871 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33872 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33873 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33874 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33875 (gl_PREREQ_STRTOK_R): Don't require it here.
33877 2007-05-13 Bruno Haible <bruno@clisp.org>
33879 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33880 when used in C++ mode.
33882 2007-05-12 Bruno Haible <bruno@clisp.org>
33884 * lib/linebuffer.h: Tweak doc.
33885 * lib/linebuffer.c: Likewise.
33887 2007-05-12 James Youngman <jay@gnu.org>
33889 * lib/linebuffer.c (readlinebuffer_delim): New function,
33890 like readlinebuffer, but use a caller-specified delimiter.
33891 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33893 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33895 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33897 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33898 * modules/openat (Files): Remove openat-die.c.
33899 (Depends-on): Add openat-die.
33900 * modules/openat-die: New module.
33902 2007-05-06 Bruno Haible <bruno@clisp.org>
33904 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33905 Update with info about Cygwin.
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.
33914 Reported by Eric Blake.
33916 2007-05-06 Bruno Haible <bruno@clisp.org>
33918 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33919 padding ourselves for the floating-point directives.
33920 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33921 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33922 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33923 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33924 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33925 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33926 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33927 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33928 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33929 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33930 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33931 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33932 * tests/test-snprintf-posix.h (test_function): Also check the width
33933 and some flags in the %f directive.
33934 * tests/test-sprintf-posix.h (test_function): Likewise.
33935 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33936 * tests/test-vasprintf-posix.c (test_function): Likewise.
33937 * doc/functions/fprintf.texi: Update.
33938 * doc/functions/printf.texi: Update.
33939 * doc/functions/snprintf.texi: Update.
33940 * doc/functions/sprintf.texi: Update.
33941 * doc/functions/vfprintf.texi: Update.
33942 * doc/functions/vprintf.texi: Update.
33943 * doc/functions/vsnprintf.texi: Update.
33944 * doc/functions/vsprintf.texi: Update.
33946 2007-05-06 Bruno Haible <bruno@clisp.org>
33948 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33949 pass the ' flag character to sprintf or snprintf.
33950 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33951 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33952 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33953 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33954 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33955 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33956 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33957 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33958 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33959 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33960 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33961 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33962 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33964 * tests/test-sprintf-posix.h (test_function): Likewise.
33965 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33966 * tests/test-vasprintf-posix.c (test_function): Likewise.
33967 * doc/functions/fprintf.texi: Update.
33968 * doc/functions/printf.texi: Update.
33969 * doc/functions/snprintf.texi: Update.
33970 * doc/functions/sprintf.texi: Update.
33971 * doc/functions/vfprintf.texi: Update.
33972 * doc/functions/vprintf.texi: Update.
33973 * doc/functions/vsnprintf.texi: Update.
33974 * doc/functions/vsprintf.texi: Update.
33976 2007-05-01 Bruno Haible <bruno@clisp.org>
33978 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33980 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33982 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33983 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33985 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33987 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33988 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33989 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33991 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33993 * lib/argp-help.c (struct hol_entry): New member `ord'.
33994 (HOL_ENTRY_PTRCMP): Use ord for comparison
33995 (hol_sort): Initialize ord.
33997 2007-05-01 Bruno Haible <bruno@clisp.org>
33999 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34000 Reported by Eric Blake.
34001 * doc/gnulib.texi (Function Substitutes): Update.
34003 2007-05-01 Bruno Haible <bruno@clisp.org>
34005 * doc/functions.texi: Remove file, now redundant through
34006 doc/functions/*.texi.
34008 2007-05-01 Bruno Haible <bruno@clisp.org>
34010 * modules/argp (Depends-on): Add sleep.
34012 2007-05-01 Bruno Haible <bruno@clisp.org>
34014 * modules/sleep-tests: New file.
34015 * tests/test-sleep.c: New file.
34017 * modules/sleep: New file.
34018 * lib/sleep.c: New file.
34019 * m4/sleep.m4: New file.
34020 * lib/unistd_.h (sleep): New declaration.
34021 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34023 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34024 * doc/functions/sleep.texi: Document the sleep module.
34026 2007-05-01 Bruno Haible <bruno@clisp.org>
34028 * lib/sigprocmask.h: Remove file.
34029 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34030 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34031 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34032 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34033 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34034 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34035 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34036 HAVE_SIGSET_T as a shell variable.
34037 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34038 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34039 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34040 (Depends-on): Add signal. Remove verify.
34041 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34042 (Include): Mention <signal.h> instead of sigprocmask.h.
34043 * NEWS: Mention the change.
34044 * lib/fatal-signal.c: Don't include sigprocmask.h.
34046 2007-05-01 Bruno Haible <bruno@clisp.org>
34048 * modules/signal: New file.
34049 * lib/signal_.h: New file.
34050 * m4/signal_h.m4: New file.
34052 2007-05-01 Bruno Haible <bruno@clisp.org>
34054 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34055 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34056 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34057 HAVE_WCTYPE_CTMP_BUG into wctype.h.
34059 2007-05-01 Bruno Haible <bruno@clisp.org>
34061 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34063 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34064 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34065 * modules/sys_stat (Makefile.am): Substitute their values into
34068 2007-05-01 Bruno Haible <bruno@clisp.org>
34070 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34071 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34072 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34074 2007-05-01 Bruno Haible <bruno@clisp.org>
34076 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34077 'assert' module here.
34079 2007-05-01 Bruno Haible <bruno@clisp.org>
34081 * doc/functions/*.texi: New files.
34082 * doc/functions/google-ranking.txt: New file.
34083 * doc/gnulib.texi (Function Substitutes): New chapter.
34084 (ctime, inet_ntoa): Remove sections.
34085 * doc/ctime.texi: Remove file.
34086 * doc/inet_ntoa.texi: Remove file.
34087 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34089 (%.info): New rule, specifying a --reference-limit.
34091 2007-05-01 Bruno Haible <bruno@clisp.org>
34093 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34095 2007-05-01 Bruno Haible <bruno@clisp.org>
34097 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34098 the portability of 'mkdir' to mingw systems.
34100 2007-05-01 Bruno Haible <bruno@clisp.org>
34102 * doc/headers/google-ranking.txt: New file.
34104 2007-04-30 Eric Blake <ebb9@byu.net>
34106 Prefer fseeko to fseek.
34107 * modules/getpass (Depends-on): Add fseeko.
34108 * lib/getpass.c (getpass): Use fseeko, not fseek.
34110 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34112 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34113 assumes the sorting is stable, while most qsort implementations
34114 are not. Use argument addresses to ensure they never compare as
34117 * tests/test-argp-2.sh (usage-indent test): Fix output
34118 (func_compare): Restore diff options
34119 * tests/test-argp.c: Restore #include "progname.h"
34121 2007-04-29 Bruno Haible <bruno@clisp.org>
34123 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34124 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34125 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34126 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34127 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34128 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34129 (TESTS, check_PROGRAMS): Add test-snprintf.
34130 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34131 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34132 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34133 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34134 assertions that fail on HP-UX, OSF/1, or IRIX.
34135 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34137 2007-04-29 Bruno Haible <bruno@clisp.org>
34139 * MODULES.html.sh (posix_functions): Remove 'contents'.
34141 2007-04-29 Karl Berry <karl@gnu.org>
34143 * config/srclist.txt (gendocs_template_min): new entry.
34145 2007-04-29 Bruno Haible <bruno@clisp.org>
34147 Work around fpurge bug on BSD systems.
34148 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34149 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34150 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34151 fpurge to rpl_fpurge if the system already has this function.
34152 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34153 the case where the system already has this function. Correct invariants
34155 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34158 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34160 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34161 proposed by Sven Verdoolaege.
34163 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34165 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34166 (usage and help tests): Update
34168 2007-04-29 Bruno Haible <bruno@clisp.org>
34170 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34171 Print more information in case of failure. Disable a test on BeOS.
34173 2007-04-29 Bruno Haible <bruno@clisp.org>
34175 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34176 This helps debugging on systems on which no gdb is available.
34178 2007-04-29 Bruno Haible <bruno@clisp.org>
34180 * lib/freading.h: Improve comments.
34181 * lib/fwriting.h: Likewise.
34182 * tests/test-freading.c (main): Don't check freading immediately after
34183 repositioning. Needed for glibc.
34185 2007-04-29 Bruno Haible <bruno@clisp.org>
34187 * lib/freading.c (freading): Trivial simplification.
34189 2007-04-28 Bruno Haible <bruno@clisp.org>
34191 * tests/test-fwriting.c (main): Also test the interaction between
34192 fflush and fwriting.
34193 * modules/fwriting-tests (Depends-on): Add fflush.
34195 * tests/test-freading.c (main): Also test the interaction between
34196 fflush and freading.
34197 * modules/freading-tests (Depends-on): Add fflush.
34199 2007-04-28 Bruno Haible <bruno@clisp.org>
34201 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34203 Suggested by Eric Blake.
34205 2007-04-28 Jim Meyering <jim@meyering.net>
34207 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34208 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34209 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34211 2007-04-27 Eric Blake <ebb9@byu.net>
34213 * doc/headers/assert.texi (assert.h): Document assert module use.
34215 2007-04-27 Bruno Haible <bruno@clisp.org>
34217 * doc/headers/*.texi: New files.
34218 * doc/gnulib.texi (Header File Substitutes): New chapter.
34219 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34221 (standards.info ,standards.html, standards.dvi): Update dependencies.
34222 (mostlyclean, clean): New targets.
34224 2007-04-27 Bruno Haible <bruno@clisp.org>
34226 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34227 * modules/sysexits (Files, Makefile.am): Update.
34229 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34230 * modules/sys_socket (Files, Makefile.am): Update.
34232 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34233 * modules/sys_stat (Files, Makefile.am): Update.
34235 2007-04-27 Eric Blake <ebb9@byu.net>
34237 * lib/freading.h: Improve comments.
34238 * lib/fwriting.h: Likewise.
34239 * lib/fflush.c: Likewise.
34241 Fix closein for mingw.
34242 * modules/closein-tests: Add tests for closein.
34243 * tests/test-closein.c: New file.
34244 * tests/test-closein.sh: Likewise.
34245 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34246 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34248 2007-04-27 Bruno Haible <bruno@clisp.org>
34250 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34252 * lib/math_.h [__DECC]: Likewise.
34253 * lib/stdio_.h [__DECC]: Likewise.
34254 * lib/stdlib_.h [__DECC]: Likewise.
34255 * lib/string_.h [__DECC]: Likewise.
34256 * lib/time_.h [__DECC]: Likewise.
34257 * lib/wchar_.h [__DECC]: Likewise.
34258 * lib/wctype_.h [__DECC]: Likewise.
34260 2007-04-27 Bruno Haible <bruno@clisp.org>
34262 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34264 2007-04-27 Bruno Haible <bruno@clisp.org>
34266 * lib/fflush.c: Add comments.
34267 * modules/fpurge-tests (Depends-on): Add fflush.
34268 * modules/freadable-tests (Depends-on): Likewise.
34269 * modules/fwritable-tests (Depends-on): Likewise.
34271 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34273 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34274 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34275 Report by Bruno Haible <bruno@clisp.org>.
34277 2007-04-26 Eric Blake <ebb9@byu.net>
34279 Fix fflush on mingw.
34280 * modules/fflush (Depends-on): Add freading.
34281 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34284 2007-04-26 Eric Blake <ebb9@byu.net>
34285 and Bruno Haible <bruno@clisp.org>
34287 Implement freading and fwriting.
34288 * lib/freading.c: New file.
34289 * lib/freading.h: Likewise.
34290 * m4/freading.m4: Likewise.
34291 * modules/freading: Likewise.
34292 * modules/freading-tests: Likewise.
34293 * tests/test-freading.c: Likewise.
34294 * lib/fwriting.c: New file.
34295 * lib/fwriting.h: Likewise.
34296 * m4/fwriting.m4: Likewise.
34297 * modules/fwriting: Likewise.
34298 * modules/fwriting-tests: Likewise.
34299 * tests/test-fwriting.c: Likewise.
34300 * MODULES.html.sh (File stream based Input/Output): Mention them.
34302 2007-04-26 Bruno Haible <bruno@clisp.org>
34304 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34305 'long' when we assume it.
34306 Suggested by Eric Blake.
34308 2007-04-26 Bruno Haible <bruno@clisp.org>
34310 Ensure fseeko, ftello are declared on glibc systems.
34311 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34312 * modules/fseeko (configure.ac-early): Likewise.
34313 * modules/ftello (configure.ac-early): Likewise.
34314 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34315 AC_FUNC_FSEEKO for this.
34316 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34317 (gl_CHECK_FSEEKO): Remove macro.
34319 2007-04-26 Bruno Haible <bruno@clisp.org>
34321 * tests/test-fflush.c (main): Also check the ftell result after
34322 fflush and fseek/fseeko.
34323 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34324 file descriptor position cache in the stream.
34325 * lib/fseeko.c (rpl_fseeko): Likewise.
34327 2007-04-26 Bruno Haible <bruno@clisp.org>
34329 * modules/fflush-tests (Depends-on): Add fseeko.
34331 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34332 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34334 * lib/argz_.h: ensure error_t definition is obtained in same
34335 mechanism system argz.h would have.
34336 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34337 argz facilities are known bad. Err on the side of caution if
34340 2007-04-25 Eric Blake <ebb9@byu.net>
34342 * lib/fpurge.c (includes): Use stdlib.h for free.
34343 * tests/test-fflush.c (main): Also test fflush-fseeko.
34345 2007-04-25 Bruno Haible <bruno@clisp.org>
34347 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34348 * lib/fseeko.c: New file.
34349 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34350 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34351 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34353 (gl_FUNC_FSEEKO): Invoke it.
34354 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34355 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34356 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34358 2007-04-25 Bruno Haible <bruno@clisp.org>
34360 * modules/fflush (Depends-on): Add ftello.
34362 2007-04-25 Bruno Haible <bruno@clisp.org>
34364 * modules/ftello-tests: New file.
34365 * tests/test-ftello.c: New file.
34367 * modules/ftello: New file.
34368 * m4/ftello.m4: New file.
34369 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34371 * lib/stdio_.h (ftello): New declaration.
34372 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34375 2007-04-25 Bruno Haible <bruno@clisp.org>
34377 * modules/fseeko-tests: New file.
34378 * tests/test-fseeko.c: New file.
34380 * modules/fseeko: New file.
34381 * m4/fseeko.m4: New file.
34382 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34384 * lib/stdio_.h (fseeko): New declaration.
34385 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34388 2007-04-25 Bruno Haible <bruno@clisp.org>
34390 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34392 2007-04-25 Bruno Haible <bruno@clisp.org>
34394 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34395 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34396 * tests/test-unistd.c: Likewise.
34397 * tests/test-fcntl.c: Likewise.
34399 2007-04-23 Eric Blake <ebb9@byu.net>
34401 * lib/fflush.c: Fix missing include.
34402 Reported by Bruno Haible.
34404 2007-04-23 Bruno Haible <bruno@clisp.org>
34406 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34407 Reported by Eric Blake.
34409 2007-04-23 Bruno Haible <bruno@clisp.org>
34411 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34413 2007-04-23 Bruno Haible <bruno@clisp.org>
34415 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34417 2007-04-23 Bruno Haible <bruno@clisp.org>
34419 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34420 Needed on HP-UX 11.
34422 2007-04-16 Eric Blake <ebb9@byu.net>
34424 Make fflush rely on fpurge.
34425 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34426 open coding all variants.
34427 * modules/fflush (Depends-on): Add fpurge and unistd.
34428 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34429 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34431 Fix --with-tests compilation on cygwin.
34432 * modules/argmatch-tests (Makefile.am): List gnulib library first
34434 * modules/argp-tests (Makefile.am): Likewise.
34435 * modules/array-list-tests (Makefile.am): Likewise.
34436 * modules/array-oset-tests (Makefile.am): Likewise.
34437 * modules/avltree-list-tests (Makefile.am): Likewise.
34438 * modules/avltree-oset-tests (Makefile.am): Likewise.
34439 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34440 * modules/carray-list-tests (Makefile.am): Likewise.
34441 * modules/dirname-tests (Makefile.am): Likewise.
34442 * modules/frexp-tests (Makefile.am): Likewise.
34443 * modules/isnanl-tests (Makefile.am): Likewise.
34444 * modules/linked-list-tests (Makefile.am): Likewise.
34445 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34446 * modules/lock-tests (Makefile.am): Likewise.
34447 * modules/rbtree-list-tests (Makefile.am): Likewise.
34448 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34449 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34450 * modules/tls-tests (Makefile.am): Likewise.
34451 * modules/tsearch-tests (Makefile.am): Likewise.
34452 * modules/xvasprintf-tests (Makefile.am): Likewise.
34454 Fix fpurge for cygwin.
34455 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34457 * modules/fpurge-tests (Depends-on): Clean up trash.
34459 2007-04-16 Simon Josefsson <simon@josefsson.org>
34461 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34463 * m4/autobuild.m4: Re-indent.
34465 2007-04-13 Bruno Haible <bruno@clisp.org>
34467 * modules/fpurge-tests: New file.
34468 * tests/test-fpurge.c: New file.
34470 * modules/fpurge: New file.
34471 * lib/fpurge.h: New file.
34472 * lib/fpurge.c: New file.
34473 * m4/fpurge.m4: New file.
34475 2007-04-13 Bruno Haible <bruno@clisp.org>
34477 * modules/fbufmode-tests: New file.
34478 * tests/test-fbufmode.c: New file.
34480 * modules/fbufmode: New file.
34481 * lib/fbufmode.h: New file.
34482 * lib/fbufmode.c: New file.
34483 * m4/fbufmode.m4: New file.
34485 2007-04-13 Bruno Haible <bruno@clisp.org>
34487 * modules/fwritable-tests: New file.
34488 * tests/test-fwritable.c: New file.
34490 * modules/fwritable: New file.
34491 * lib/fwritable.h: New file.
34492 * lib/fwritable.c: New file.
34493 * m4/fwritable.m4: New file.
34495 2007-04-13 Bruno Haible <bruno@clisp.org>
34497 * modules/freadable-tests: New file.
34498 * tests/test-freadable.c: New file.
34500 * modules/freadable: New file.
34501 * lib/freadable.h: New file.
34502 * lib/freadable.c: New file.
34503 * m4/freadable.m4: New file.
34505 2007-04-13 Bruno Haible <bruno@clisp.org>
34507 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34510 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34512 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34513 gzip bootstrap.conf to avoid dragging in i18n machinery.
34514 (gnulib_tool_option): Use it.
34516 2007-04-13 Bruno Haible <bruno@clisp.org>
34518 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34520 * tests/test-vasprintf-posix.c (test_function): Likewise.
34521 * tests/test-snprintf-posix.h (test_function): Likewise.
34522 * tests/test-sprintf-posix.h (test_function): Likewise.
34523 * tests/test-fprintf-posix.h (test_function): Likewise.
34524 * tests/test-printf-posix.h (test_function): Likewise.
34525 * tests/test-fprintf-posix.out: Likewise.
34527 2007-04-13 Bruno Haible <bruno@clisp.org>
34529 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34530 * modules/tls-tests (configure.ac): Likewise.
34531 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34533 2007-04-13 Bruno Haible <bruno@clisp.org>
34535 * lib/tls.c (glthread_tls_get): Fix return type.
34536 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34538 2007-04-12 Eric Blake <ebb9@byu.net>
34540 * modules/gettime (Depends-on): Remove gettime.
34541 Reported by Dmitry V. Levin.
34543 2007-04-12 Bruno Haible <bruno@clisp.org>
34545 * modules/fflush (Include): Mention <stdio.h>.
34546 * modules/strtoimax (Include): Mention <inttypes.h>.
34547 * modules/strtoumax (Include): Likewise.
34549 2007-04-12 Eric Blake <ebb9@byu.net>
34551 * .cvsignore: New file.
34552 * .gitignore: Likewise.
34554 2007-04-12 Bruno Haible <bruno@clisp.org>
34556 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34557 not before, since $(LDADD) often contains libgnu.a.
34558 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34559 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34560 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34563 2007-04-12 Eric Blake <ebb9@byu.net>
34565 Work around glibc's failure to flush stdin on fclose.
34566 * lib/closein.c (close_stdin): Flush stdin before closing.
34568 Work around glibc's failure to reset seekable stdin on exit.
34569 * modules/closein: New module.
34570 * lib/closein.c: New file.
34571 * lib/closein.h: Likewise.
34572 * m4/closein.m4: Likewise.
34573 * MODULES.html.sh (File stream based Input/Output): Document it.
34575 2007-04-12 Simon Josefsson <simon@josefsson.org>
34577 * gnulib-tool: Rename generated 'autobuild' script to
34578 'do-autobuild' in --create-megatestdir output.
34580 * doc/gnulib.texi (Build robot for gnulib): Fix.
34582 2007-04-12 Simon Josefsson <simon@josefsson.org>
34584 * modules/sysexits (Depends-on): Add absolute-header.
34586 2007-04-12 Eric Blake <ebb9@byu.net>
34588 No need to preserve errno on success.
34589 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34590 Reported by Bruno Haible.
34592 2007-04-12 Simon Josefsson <simon@josefsson.org>
34594 * MODULES.html.sh (Support for maintaining and releasing
34595 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34597 2007-04-12 Simon Josefsson <simon@josefsson.org>
34599 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34601 2007-04-12 Simon Josefsson <simon@josefsson.org>
34603 * modules/autobuild: New module.
34605 * m4/autobuild.m4: New file.
34607 2007-04-11 Bruno Haible <bruno@clisp.org>
34609 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34610 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34611 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34612 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34613 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34614 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34615 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34616 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34617 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34618 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34619 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34620 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34621 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34622 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34623 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34624 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34625 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34626 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34627 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34628 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34629 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34630 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34631 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34632 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34633 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34634 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34635 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34636 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34637 Reported by Eric Blake.
34639 2007-04-11 Bruno Haible <bruno@clisp.org>
34641 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34643 2007-04-10 Bruno Haible <bruno@clisp.org>
34645 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34646 for NaN and Infinity. Needed on FreeBSD 6.1.
34647 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34648 regarding results for "%010a" of Infinity and NaN.
34649 * tests/test-vasprintf-posix.c (test_function): Likewise.
34650 * tests/test-snprintf-posix.h (test_function): Likewise.
34651 * tests/test-sprintf-posix.h (test_function): Likewise.
34652 * tests/test-fprintf-posix.h (test_function): Likewise.
34653 * tests/test-printf-posix.h (test_function): Likewise.
34654 * tests/test-fprintf-posix.out: Likewise.
34656 2007-04-10 Bruno Haible <bruno@clisp.org>
34658 * modules/locale-tests: New file.
34659 * tests/test-locale.c: New file.
34661 * modules/locale: New file.
34662 * lib/locale_.h: New file.
34663 * m4/locale_h.m4: New file.
34665 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34666 Bruno Haible <bruno@clisp.org>
34668 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34669 be determined, test for availability of the copysignf, copysign,
34670 copysignl functions.
34671 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34672 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34673 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34675 2007-04-09 Eric Blake <ebb9@byu.net>
34677 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34678 * modules/stdio (Makefile.am): Support fflush.
34679 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34680 * modules/fflush: New file.
34681 * lib/fflush.c: Likewise.
34682 * m4/fflush.m4: Likewise.
34683 * modules/fflush-tests: New test.
34684 * tests/test-fflush.c: Likewise.
34685 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34687 2007-04-06 Bruno Haible <bruno@clisp.org>
34689 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34690 (VASNPRINTF): Use signbit for faster determination whether to print a
34692 * modules/vasnprintf (Files): Remove lib/float+.h.
34693 * modules/fprintf-posix (Depends-on): Add signbit.
34694 * modules/snprintf-posix (Depends-on): Likewise.
34695 * modules/sprintf-posix (Depends-on): Likewise.
34696 * modules/vasnprintf-posix (Depends-on): Likewise.
34697 * modules/vasprintf-posix (Depends-on): Likewise.
34698 * modules/vfprintf-posix (Depends-on): Likewise.
34699 * modules/vsnprintf-posix (Depends-on): Likewise.
34700 * modules/vsprintf-posix (Depends-on): Likewise.
34702 2007-04-06 Bruno Haible <bruno@clisp.org>
34704 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34705 * tests/test-frexpl.c (main): Likewise.
34706 * tests/test-ldexpl.c (main): Likewise.
34707 * modules/frexp-tests (Depends-on): Add signbit.
34708 * modules/frexpl-tests (Depdends-on): Likewise.
34709 * modules/ldexpl-tests (Depdends-on): Likewise.
34711 2007-04-06 Bruno Haible <bruno@clisp.org>
34713 * modules/signbit-tests: New file.
34714 * tests/test-signbit.c: New file.
34716 * modules/signbit: New file.
34717 * lib/signbitf.c: New file.
34718 * lib/signbitd.c: New file.
34719 * lib/signbitl.c: New file.
34720 * m4/signbit.m4: New file.
34721 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34722 (signbit): New macro.
34723 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34725 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34726 REPLACE_FREXPL into math.h.
34728 2007-04-06 Bruno Haible <bruno@clisp.org>
34730 * modules/isnanf-nolibm-tests: New file.
34731 * tests/test-isnanf.c: New file.
34733 * modules/isnanf-nolibm: New file.
34734 * lib/isnanf.h: New file.
34735 * lib/isnanf.c: New file.
34736 * lib/isnan.c: Consider the USE_FLOAT macro.
34737 * m4/isnanf.m4: New file.
34739 2007-04-06 Bruno Haible <bruno@clisp.org>
34741 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34742 (Link): New section.
34744 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34746 2007-04-06 Bruno Haible <bruno@clisp.org>
34748 Assume the 'long double' type.
34749 * m4/longdouble.m4: Remove file.
34750 * config/srclist.txt: Don't mention longdouble.m4.
34751 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34752 * lib/float+.h: Likewise.
34753 * lib/frexp.c: Likewise.
34754 * lib/printf-args.h: Likewise.
34755 * lib/printf-args.c: Likewise.
34756 * lib/printf-frexp.c: Likewise.
34757 * lib/printf-parse.c: Likewise.
34758 * lib/vasnprintf.c: Likewise.
34759 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34760 * m4/intl.m4: Likewise.
34761 * m4/isnanl.m4: Likewise.
34762 * m4/printf.m4: Likewise.
34763 * m4/printf-frexpl.m4: Likewise.
34764 * m4/vasnprintf.m4: Likewise.
34765 * modules/allocsa (Files): Remove m4/longdouble.m4.
34766 * modules/gettext (Files): Likewise.
34767 * modules/relocatable-prog-wrapper (Files): Likewise.
34768 * modules/vasnprintf (Files): Likewise.
34769 * modules/isnanl (Files): Likewise.
34770 (Include): Simplify.
34771 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34772 (Include): Simplify.
34773 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34774 (Include): Simplify.
34775 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34776 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34777 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34778 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34779 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34780 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34781 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34782 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34783 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34784 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34785 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34786 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34787 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34788 * tests/test-isnanl.c: Likewise.
34789 * tests/test-snprintf-posix.h: Likewise.
34790 * tests/test-sprintf-posix.h: Likewise.
34791 * tests/test-vasnprintf-posix.c: Likewise.
34792 * tests/test-vasnprintf-posix2.c: Likewise.
34793 * tests/test-vasprintf-posix.c: Likewise.
34795 2007-04-06 Bruno Haible <bruno@clisp.org>
34797 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34798 * lib/math_.h [__DECC]: Include the overridden include file through
34799 #include_next, outside the double-inclusion guard.
34800 * lib/stdio_.h [__DECC]: Likewise.
34801 * lib/stdlib_.h [__DECC]: Likewise.
34802 * lib/string_.h [__DECC]: Likewise.
34803 * lib/time_.h [__DECC]: Likewise.
34804 * lib/wchar_.h [__DECC]: Likewise.
34805 * lib/wctype_.h [__DECC]: Likewise.
34806 * lib/inttypes_.h [__DECC]: Likewise.
34807 Reported by Albert Chin <china@thewrittenword.com> in
34808 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34810 2007-04-04 Eric Blake <ebb9@byu.net>
34812 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34815 2007-04-04 Bruno Haible <bruno@clisp.org>
34817 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34818 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34820 2007-04-04 Bruno Haible <bruno@clisp.org>
34822 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34823 results for "%010a" of Infinity and NaN.
34824 * tests/test-vasprintf-posix.c (test_function): Likewise.
34825 * tests/test-snprintf-posix.h (test_function): Likewise.
34826 * tests/test-sprintf-posix.h (test_function): Likewise.
34827 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34828 * tests/test-printf-posix.h (test_function): Likewise.
34829 * tests/test-fprintf-posix.out: Update.
34830 Needed for FreeBSD 6.1.
34832 2007-04-04 Bruno Haible <bruno@clisp.org>
34834 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34835 directly used by the gnulib modules nor by gnulib-tool.
34837 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34839 * DEPENDENCIES: Give overall description of version dependency
34840 desirability. Use more-typical names for apps.
34841 Add shell, coreutils, diffutils, grep, tar, gzip.
34843 2007-04-04 Simon Josefsson <simon@josefsson.org>
34845 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34847 2007-04-04 Karl Berry <karl@gnu.org>
34849 * MODULES.html.sh (func_module): missing '.
34851 2007-04-03 Bruno Haible <bruno@clisp.org>
34853 * modules/argmatch-tests (Makefile.am): New variable
34854 test_argmatch_LDADD.
34855 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34856 * modules/array-list-tests (Makefile.am): New variable
34857 test_array_list_LDADD.
34858 * modules/array-oset-tests (Makefile.am): New variable
34859 test_array_oset_LDADD.
34860 * modules/avltree-list-tests (Makefile.am): New variable
34861 test_avltree_list_LDADD.
34862 * modules/avltree-oset-tests (Makefile.am): New variable
34863 test_avltree_oset_LDADD.
34864 * modules/avltreehash-list-tests (Makefile.am): New variable
34865 test_avltreehash_list_LDADD.
34866 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34867 test_canonicalize_lgpl_LDADD.
34868 * modules/carray-list-tests (Makefile.am): New variable
34869 test_carray_list_LDADD.
34870 * modules/dirname-tests (Makefile.am): New variable
34871 test_dirname_LDADD.
34872 * modules/linked-list-tests (Makefile.am): New variable
34873 test_linked_list_LDADD.
34874 * modules/linkedhash-list-tests (Makefile.am): New variable
34875 test_linkedhash_list_LDADD.
34876 * modules/rbtree-list-tests (Makefile.am): New variable
34877 test_rbtree_list_LDADD.
34878 * modules/rbtree-oset-tests (Makefile.am): New variable
34879 test_rbtree_oset_LDADD.
34880 * modules/rbtreehash-list-tests (Makefile.am): New variable
34881 test_rbtreehash_list_LDADD.
34882 * modules/xvasprintf-tests (Makefile.am): New variable
34883 test_xvasprintf_LDADD.
34884 Reported by Eric Blake.
34886 2007-04-03 Eric Blake <ebb9@byu.net>
34888 * DEPENDENCIES: Weaken m4 requirements.
34890 2007-04-03 Bruno Haible <bruno@clisp.org>
34892 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34893 * modules/isnanl-tests (configure.ac): Likewise.
34895 2007-04-03 Ben Pfaff <blp@gnu.org>
34897 * modules/iconv_open: Add $(srcdir)/ to source directory
34898 references in Makefile fragments that call gperf, to fix VPATH
34901 2007-04-03 Bruno Haible <bruno@clisp.org>
34903 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34904 * lib/ldexpl.c: Undo last change.
34906 2007-04-03 Bruno Haible <bruno@clisp.org>
34908 * modules/printf-frexpl (Depends-on): Undo last change.
34909 (Files): Add m4/ldexpl.m4.
34911 2007-04-03 Bruno Haible <bruno@clisp.org>
34913 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34914 * modules/isnanl (Link): New section.
34916 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34917 * modules/frexp (Link): New section.
34919 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34920 * modules/frexpl (Link): New section.
34922 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34923 * modules/ldexpl (Link): New section.
34925 2007-04-03 Bruno Haible <bruno@clisp.org>
34927 * modules/TEMPLATE-EXTENDED: New file.
34928 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34930 2007-04-03 Bruno Haible <bruno@clisp.org>
34932 * DEPENDENCIES: New file.
34933 Suggested by Simon Josefsson.
34935 2007-04-03 Bruno Haible <bruno@clisp.org>
34937 * doc/gnulib.texi: Escape @.
34939 2007-04-03 James Youngman <jay@gnu.org>
34940 and Paul Eggert <eggert@cs.ucla.edu>
34942 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34943 birthtime on all systems that have birthtime, not just those which
34944 use st_birthtimensec rather than st_birthtim. Putting zero in
34945 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34946 that the birth time is not available for files on an NFS mount.
34948 2007-04-03 Simon Josefsson <simon@josefsson.org>
34950 * modules/memxor: Move back from crypto/, suggested by Bruno.
34951 * modules/crypto/hmac-sha1: Fix memxor dependency.
34953 * modules/crypto/gc: Moved from ../.
34955 2007-04-02 Eric Blake <ebb9@byu.net>
34957 * lib/ldexpl.c (includes): Avoid libm.
34959 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34961 2007-04-02 Bruno Haible <bruno@clisp.org>
34963 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34966 2007-04-02 Bruno Haible <bruno@clisp.org>
34968 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34969 x86 or x86_64 platforms running MacOS X.
34970 Reported by Ryan Schmidt <@ryandesign.com>.
34972 2007-04-02 Bruno Haible <bruno@clisp.org>
34974 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34977 2007-04-01 Simon Josefsson <simon@josefsson.org>
34979 * modules/crypto/arcfour: Moved from ../.
34980 * modules/crypto/arcfour-tests: Moved from ../.
34981 * modules/crypto/arctwo: Moved from ../.
34982 * modules/crypto/arctwo-tests: Moved from ../.
34983 * modules/crypto/des: Moved from ../.
34984 * modules/crypto/des-tests: Moved from ../.
34985 * modules/crypto/gc-arcfour: Moved from ../.
34986 * modules/crypto/gc-arcfour-tests: Moved from ../.
34987 * modules/crypto/gc-arctwo: Moved from ../.
34988 * modules/crypto/gc-arctwo-tests: Moved from ../.
34989 * modules/crypto/gc-des: Moved from ../.
34990 * modules/crypto/gc-des-tests: Moved from ../.
34991 * modules/crypto/gc-hmac-md5: Moved from ../.
34992 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34993 * modules/crypto/gc-hmac-sha1: Moved from ../.
34994 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34995 * modules/crypto/gc-md2: Moved from ../.
34996 * modules/crypto/gc-md2-tests: Moved from ../.
34997 * modules/crypto/gc-md4: Moved from ../.
34998 * modules/crypto/gc-md4-tests: Moved from ../.
34999 * modules/crypto/gc-md5: Moved from ../.
35000 * modules/crypto/gc-md5-tests: Moved from ../.
35001 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35002 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35003 * modules/crypto/gc-random: Moved from ../.
35004 * modules/crypto/gc-rijndael: Moved from ../.
35005 * modules/crypto/gc-rijndael-tests: Moved from ../.
35006 * modules/crypto/gc-sha1: Moved from ../.
35007 * modules/crypto/gc-sha1-tests: Moved from ../.
35008 * modules/crypto/gc-tests: Moved from ../.
35009 * modules/crypto/hmac-md5: Moved from ../.
35010 * modules/crypto/hmac-md5-tests: Moved from ../.
35011 * modules/crypto/hmac-sha1: Moved from ../.
35012 * modules/crypto/hmac-sha1-tests: Moved from ../.
35013 * modules/crypto/md2: Moved from ../.
35014 * modules/crypto/md2-tests: Moved from ../.
35015 * modules/crypto/md4: Moved from ../.
35016 * modules/crypto/md4-tests: Moved from ../.
35017 * modules/crypto/md5: Moved from ../.
35018 * modules/crypto/md5-tests: Moved from ../.
35019 * modules/crypto/memxor: Moved from ../.
35020 * modules/crypto/rijndael: Moved from ../.
35021 * modules/crypto/rijndael-tests: Moved from ../.
35022 * modules/crypto/sha1: Moved from ../.
35024 2007-03-30 James Youngman <jay@gnu.org>
35026 * tests/test-stat-time.c (prepare_test): use chmod() rather than
35027 rename() to change the ctime of a file (because ctime is unaffected
35028 by rename on jfs2 on AIX 5.1).
35029 (main): Start by doing cleanup, in case a previous run failed leaving
35032 2007-03-31 Bruno Haible <bruno@clisp.org>
35034 Support old proprietary implementations of iconv.
35035 * modules/iconv_open: New file.
35036 * lib/iconv_.h: New file.
35037 * m4/iconv_h.m4: New file.
35038 * lib/iconv_open.c: New file.
35039 * lib/iconv_open-aix.gperf: New file.
35040 * lib/iconv_open-hpux.gperf: New file.
35041 * lib/iconv_open-irix.gperf: New file.
35042 * lib/iconv_open-osf.gperf: New file.
35043 * m4/iconv_open.m4: New file.
35044 * modules/linebreak (Depends-on): Add iconv_open.
35045 * modules/striconv (Depends-on): Likewise.
35046 * modules/striconveh (Depends-on): Likewise.
35047 * modules/unicodeio (Depends-on): Likewise.
35048 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35050 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35051 conversion if cd is (iconv_t)(-1).
35052 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35055 2007-03-31 Bruno Haible <bruno@clisp.org>
35057 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35058 work on Solaris either. Protect also second use of "autodetect_jp".
35060 2007-03-31 Bruno Haible <bruno@clisp.org>
35062 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35063 the function is not present.
35065 2007-03-31 Bruno Haible <bruno@clisp.org>
35067 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35068 the function is not present.
35070 2007-03-31 Bruno Haible <bruno@clisp.org>
35072 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35073 a bug in HP-UX iconv_open().
35075 2007-03-31 Bruno Haible <bruno@clisp.org>
35077 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35078 (Mathematics <math.h>): New section, add fpieee.
35079 (Input/output <stdio.h>): Add fseterr.
35080 (Mathematics <math.h>): New section, add printf-frexp.
35081 (Container data structures): Add sublist.
35082 (Core language properties): Add fpucw, inline.
35083 (Functions for greatest-width integer types <inttypes.h>): Add
35084 imaxabs, imaxdiv, inttypes.
35085 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35086 isnanl-nolibm, ldexp.
35087 (Mathematics <math.h>): New section, add printf-frexpl.
35088 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35089 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35090 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35091 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35092 (Unicode string functions): Add unistr/u*-mbtoucr.
35093 (Java): Add javacomp-script, javaexec-script.
35094 (C#): Add csharpcomp-script, csharpexec-script.
35095 (Support for building libraries and executables): Add havelib,
35097 (Support for maintaining and releasing projects): Renamed from
35098 'Support for maintaining and release projects'. Add announce-gen.
35100 2007-03-31 Bruno Haible <bruno@clisp.org>
35102 * README: Talk primarily about git.
35103 (git and CVS): Renamed from CVS.
35104 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35105 gnulib is available through git.
35106 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35108 2007-03-30 Bruno Haible <bruno@clisp.org>
35110 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35111 * lib/poll_.h: Likewise.
35112 * lib/stat_.h: Likewise.
35113 * lib/sys_time_.h: Likewise.
35114 * lib/sysexit_.h: Likewise.
35115 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35116 * lib/stdbool_.h: Likewise.
35117 * lib/byteswap_.h: Add double-inclusion guard.
35119 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35121 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35123 2007-03-30 Karl Berry <karl@gnu.org>
35125 * config/srclist-update: double space after USA in the license
35126 substitution, since that's how it's usually (?) written.
35128 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35130 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35131 reported by Bruno Haible.
35133 2007-03-29 Bruno Haible <bruno@clisp.org>
35135 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35136 a bug in AIX iconv().
35138 2007-03-29 Bruno Haible <bruno@clisp.org>
35140 * modules/ldexpl-tests: New file.
35141 * tests/test-ldexpl.c: New file.
35143 2007-03-29 Bruno Haible <bruno@clisp.org>
35145 * lib/ldexpl.c: Include fpucw.h.
35146 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35148 * modules/ldexpl (Depends-on): Add fpucw.
35150 2007-03-29 Bruno Haible <bruno@clisp.org>
35152 * modules/ldexpl: New file.
35153 * m4/ldexpl.m4: New file.
35154 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35156 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35158 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35160 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35161 gl_FUNC_LDEXPL_WORKS.
35162 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35163 * modules/mathl (Files): Remove lib/ldexpl.c.
35164 (Depends-on): Add ldexpl.
35166 2007-03-29 Bruno Haible <bruno@clisp.org>
35168 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35170 2007-03-29 Bruno Haible <bruno@clisp.org>
35172 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35173 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35174 and possibly also HP-UX.
35175 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35176 work on AIX, IRIX, HP-UX, OSF/1.
35177 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35178 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35179 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35180 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35181 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35182 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35184 2007-03-29 Bruno Haible <bruno@clisp.org>
35186 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35188 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35190 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35191 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35193 2007-03-29 Eric Blake <ebb9@byu.net>
35195 * lib/acl-internal.h: Remove redundant include.
35196 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35197 Cygwin when a file is locked.
35199 2007-03-29 Bruno Haible <bruno@clisp.org>
35201 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35203 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35205 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35207 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35208 try to remove a parent directory if the child couldn't be removed
35209 (except for the first rmdir, which could fail because the child
35210 doesn't exist). Problem reported by Jeff Blaine in
35211 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35213 2007-03-28 Bruno Haible <bruno@clisp.org>
35215 * lib/striconveh.c (utf8conv_carefully): New function.
35216 (mem_cd_iconveh_internal): Invoke it.
35218 2007-03-28 Bruno Haible <bruno@clisp.org>
35220 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35221 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35223 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35224 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35227 2007-03-28 Bruno Haible <bruno@clisp.org>
35229 * modules/unistr/u8-mbtoucr: New file.
35230 * lib/unistr/u8-mbtoucr.c: New file.
35231 * modules/unistr/u16-mbtoucr: New file.
35232 * lib/unistr/u16-mbtoucr.c: New file.
35233 * modules/unistr/u16-mbtoucr: New file.
35234 * lib/unistr/u16-mbtoucr.c: New file.
35235 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35237 2007-03-27 Simon Josefsson <simon@josefsson.org>
35238 Bruno Haible <bruno@clisp.org>
35240 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35241 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35242 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35244 * m4/stdio_h.m4: Add stubs for vasprintf too.
35246 * modules/stdio: Support vasprintf in sed command.
35248 * modules/vasprintf: Depend on stdio for prototypes. Remove
35249 vasprintf.h. Add stdio module indicator.
35251 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35254 * lib/vasprintf.h: File removed.
35256 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35257 * lib/vasprintf.c: Ditto.
35258 * lib/xvasprintf.c: Ditto.
35259 * tests/test-vasprintf-posix.c: Ditto.
35260 * tests/test-vasprintf.c: Ditto.
35262 2007-03-27 Bruno Haible <bruno@clisp.org>
35264 Make vasnprintf multithread-safe.
35265 * lib/vasnprintf.c (decimal_point_char): New function.
35266 (VASNPRINTF): Use it.
35267 Suggested by Simon Josefsson.
35269 2007-03-27 Eric Blake <ebb9@byu.net>
35271 Support sub-second birthtime on cygwin.
35272 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35273 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35274 (get_stat_birthtime): Also work with st_birthtim.
35276 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35278 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35279 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35280 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35281 (get_stat_birthtime_ns): Simplify compile-time tests.
35282 (get_stat_birthtime): Change the API to look like
35283 get_stat_mtime etc., except return a negative tv_nsec on error.
35284 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35285 Don't check for "spare" fields.
35286 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35287 or for struct stat.st_birthtime, as these tests aren't used.
35288 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35290 2007-03-27 Bruno Haible <bruno@clisp.org>
35292 * lib/stat-time.h: Include <sys/stat.h>.
35294 2007-03-27 James Youngman <jay@gnu.org>
35296 * lib/stat-time.h (get_stat_birthtime): New function for
35297 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35298 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35300 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35301 * modules/stat-time-test: New file.
35302 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35304 2007-03-26 Bruno Haible <bruno@clisp.org>
35306 Better support of signalling NaNs.
35307 * lib/atanl.c: Include isnanl.h.
35308 (atanl): Perform test for NaN at the beginning of the function and
35309 through a call to isnanl.
35310 * lib/cosl.c: Include isnanl.h.
35311 (cosl): Perform test for NaN at the beginning of the function and
35312 through a call to isnanl.
35313 * lib/ldexpl.c: Include isnanl.h.
35314 (ldexpl): Perform test for NaN through a call to isnanl.
35315 * lib/logl.c: Include isnanl.h.
35316 (logl): Perform test for NaN at the beginning of the function and
35317 through a call to isnanl.
35318 * lib/sinl.c: Include isnanl.h.
35319 (sinl): Perform test for NaN at the beginning of the function and
35320 through a call to isnanl.
35321 * lib/sqrtl.c: Include isnanl.h.
35322 (sqrtl): Perform test for NaN at the beginning of the function and
35323 through a call to isnanl.
35324 * lib/tanl.c: Include isnanl.h.
35325 (tanl): Perform test for NaN at the beginning of the function and
35326 through a call to isnanl.
35327 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35328 * modules/mathl (Depends-on): Add isnanl.
35330 2007-03-26 Eric Blake <ebb9@byu.net>
35332 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35333 regression in logic sense of previous patch.
35335 2007-03-26 Bruno Haible <bruno@clisp.org>
35337 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35338 unportable shell command "if ! ...".
35339 Reported by Ralf Wildenhues.
35341 2007-03-25 Bruno Haible <bruno@clisp.org>
35343 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35344 <sysexits.h> file, and only add EX_CONFIG.
35345 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35346 absolute file name and whether it is sufficient. Substitute also
35347 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35348 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35349 ABSOLUTE_SYSEXITS_H into sysexits.h.
35351 2007-03-25 Bruno Haible <bruno@clisp.org>
35353 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35356 2007-03-25 Bruno Haible <bruno@clisp.org>
35358 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35359 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35361 2007-03-25 Bruno Haible <bruno@clisp.org>
35363 * lib/vasnprintf.c: Include langinfo.h.
35364 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35366 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35367 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35368 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35369 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35370 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35371 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35372 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35373 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35374 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35375 Reported by Simon Josefsson.
35377 2007-03-25 Bruno Haible <bruno@clisp.org>
35379 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35380 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35381 * modules/vasnprintf (Depends-on): Add stdint.
35383 2007-03-25 Bruno Haible <bruno@clisp.org>
35385 * modules/fpieee: New file.
35386 * m4/fpieee.m4: New file.
35387 * modules/isnan-nolibm (Depends-on): Add fpieee.
35388 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35389 * modules/isnanl (Depends-on): Add fpieee.
35391 2007-03-25 Bruno Haible <bruno@clisp.org>
35393 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35395 2007-03-25 Bruno Haible <bruno@clisp.org>
35397 Avoid test failures on IRIX 6.5.
35398 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35400 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35404 2007-03-25 Bruno Haible <bruno@clisp.org>
35406 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35407 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35408 exists but doesn't work.
35409 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35410 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35411 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35412 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35414 2007-03-25 Bruno Haible <bruno@clisp.org>
35416 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35417 returns inf. Needed on IRIX 6.5.
35419 2007-03-25 Bruno Haible <bruno@clisp.org>
35421 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35422 (main): Use isnanl instead of x != x idiom.
35423 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35425 * tests/test-frexp.c: Include isnan.h.
35426 (main): Use isnan instead of x != x idiom.
35427 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35429 2007-03-25 Bruno Haible <bruno@clisp.org>
35431 * tests/test-frexp.c (NaN): New function/macro.
35432 (main): Use it instead of 0.0 / 0.0.
35433 * tests/test-isnan.c (NaN): New function/macro.
35434 (main): Use it instead of 0.0 / 0.0.
35435 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35436 (test_function): Use it instead of 0.0 / 0.0.
35437 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35438 (test_function): Use it instead of 0.0 / 0.0.
35439 * tests/test-snprintf-posix.h (NaN): New function/macro.
35440 (test_function): Use it instead of 0.0 / 0.0.
35441 * tests/test-sprintf-posix.h (NaN): New function/macro.
35442 (test_function): Use it instead of 0.0 / 0.0.
35443 * tests/test-fprintf-posix.h (NaN): New function/macro.
35444 (test_function): Use it instead of 0.0 / 0.0.
35445 * tests/test-printf-posix.h (NaN): New function/macro.
35446 (test_function): Use it instead of 0.0 / 0.0.
35448 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35450 2007-03-25 Bruno Haible <bruno@clisp.org>
35452 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35454 2007-03-25 Bruno Haible <bruno@clisp.org>
35456 * lib/regexec.c (merge_state_with_log): Make static.
35458 2007-03-25 Bruno Haible <bruno@clisp.org>
35460 * lib/trigl.c (kernel_rem_pio2): Make static.
35462 2007-03-25 Bruno Haible <bruno@clisp.org>
35464 * lib/sincosl.c (sincosl_table): Make static.
35466 2007-03-25 Bruno Haible <bruno@clisp.org>
35468 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35469 if the compiler does not support C99.
35471 2007-03-25 Bruno Haible <bruno@clisp.org>
35473 * modules/time (Makefile.am): Ensure all rule action lines start with a
35476 2007-03-24 Bruno Haible <bruno@clisp.org>
35478 * modules/tsearch-tests: New file.
35479 * tests/test-tsearch.sh: New file.
35480 * tests/test-tsearch.c: New file, mostly copied from glibc.
35482 * modules/search-tests: New file.
35483 * tests/test-search.c: New file.
35485 * modules/search: New file.
35486 * lib/search_.h: New file, incorporating lib/tsearch.h.
35487 * m4/search_h.m4: New file.
35488 * lib/tsearch.h: Remove file.
35489 * lib/tsearch.c: Include search.h instead of tsearch.h.
35490 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35492 * modules/tsearch (Files): Remove lib/tsearch.h.
35493 (Depends-on): Add search.
35494 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35495 (Include): Change tsearch.h into search.h.
35497 2007-03-24 Bruno Haible <bruno@clisp.org>
35499 * modules/fpucw: New file.
35500 * lib/fpucw.h: New file.
35501 * lib/frexp.c: Include fpucw.h.
35502 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35504 * lib/printf-frexp.c: Include fpucw.h.
35505 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35507 * lib/vasnprintf.c: Include fpucw.h.
35508 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35509 'long double' calculations.
35510 * tests/test-frexpl.c: Include fpucw.h.
35511 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35512 * tests/test-printf-frexpl.c: Include fpucw.h.
35513 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35514 * modules/frexpl (Depends-on): Add fpucw.
35515 * modules/printf-frexpl (Depends-on): Likewise.
35516 * modules/fprintf-posix (Depends-on): Likewise.
35517 * modules/snprintf-posix (Depends-on): Likewise.
35518 * modules/sprintf-posix (Depends-on): Likewise.
35519 * modules/vasnprintf-posix (Depends-on): Likewise.
35520 * modules/vasprintf-posix (Depends-on): Likewise.
35521 * modules/vfprintf-posix (Depends-on): Likewise.
35522 * modules/vsnprintf-posix (Depends-on): Likewise.
35523 * modules/vsprintf-posix (Depends-on): Likewise.
35524 * modules/frexpl-tests (Depends-on): Likewise.
35525 * modules/printf-frexpl-tests (Depends-on): Likewise.
35527 2007-03-24 Bruno Haible <bruno@clisp.org>
35529 * lib/float+.h: New file.
35530 * lib/isnan.c: Include float+.h.
35532 (FUNC): Compare only SIZE bytes of the value.
35533 * lib/vasnprintf.c: Include float+.h.
35534 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35535 SIZEOF_LDBL or SIZEOF_DBL bytes.
35536 * modules/isnan-nolibm (Files): Add lib/float+.h.
35537 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35538 * modules/isnanl (Files): Add lib/float+.h.
35539 * modules/vasnprintf (Files): Add lib/float+.h.
35541 2007-03-24 Bruno Haible <bruno@clisp.org>
35543 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35544 include isnanl-nolibm.h.
35546 2007-03-24 Bruno Haible <bruno@clisp.org>
35548 * tests/test-read-file.c (main): Don't produce spurious output for
35549 expected situations. Make the test fail if it encountered unexpected
35552 2007-03-24 Bruno Haible <bruno@clisp.org>
35554 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35555 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35557 2007-03-24 Bruno Haible <bruno@clisp.org>
35559 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35561 2007-03-24 Bruno Haible <bruno@clisp.org>
35563 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35564 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35566 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35567 * modules/utf8-ucs4: Turn into a symbolic link to module
35570 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35572 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35573 unistr/u8-mbtouc-unsafe.
35575 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35576 * modules/utf16-ucs4: Turn into a symbolic link to module
35579 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35581 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35582 unistr/u16-mbtouc-unsafe.
35584 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35585 * modules/ucs4-utf8: Turn into a symbolic link to module
35588 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35589 * modules/ucs4-utf16: Turn into a symbolic link to module
35592 2007-03-24 Bruno Haible <bruno@clisp.org>
35594 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35595 Enable the function only if HAVE_INLINE.
35596 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35597 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35598 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35599 Enable the function only if HAVE_INLINE.
35600 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35601 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35602 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35603 Enable the function only if HAVE_INLINE.
35604 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35605 Enable the function only if HAVE_INLINE.
35606 * modules/utf8-ucs4: Update.
35607 * modules/utf8-ucs4-unsafe: Update.
35608 * modules/utf16-ucs4: Update.
35609 * modules/utf16-ucs4-unsafe: Update.
35610 * modules/ucs4-utf8: Update.
35611 * modules/ucs4-utf16: Update.
35613 2007-03-24 Bruno Haible <bruno@clisp.org>
35615 * lib/utf8-ucs4.h: Remove file.
35616 * lib/utf8-ucs4-unsafe.h: Remove file.
35617 * lib/utf16-ucs4.h: Remove file.
35618 * lib/utf16-ucs4-unsafe.h: Remove file.
35619 * lib/ucs4-utf8.h: Remove file.
35620 * lib/ucs4-utf16.h: Remove file.
35621 * lib/unistr.h: Include their previous contents.
35622 * m4/utf-ucs4.m4: Remove file.
35623 * m4/ucs4-utf.m4: Remove file.
35624 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35625 (Depends-on): Add unistr/base.
35626 (configure.ac): Remove gl_UTF_UCS4.
35627 (Makefile.am): Update.
35628 (Include): Change to unistr.h.
35629 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35630 (Depends-on): Add unistr/base.
35631 (configure.ac): Remove gl_UTF_UCS4.
35632 (Makefile.am): Update.
35633 (Include): Change to unistr.h.
35634 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35635 (Depends-on): Add unistr/base.
35636 (configure.ac): Remove gl_UTF_UCS4.
35637 (Makefile.am): Update.
35638 (Include): Change to unistr.h.
35639 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35640 (Depends-on): Add unistr/base.
35641 (configure.ac): Remove gl_UTF_UCS4.
35642 (Makefile.am): Update.
35643 (Include): Change to unistr.h.
35644 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35645 (Depends-on): Add unistr/base.
35646 (configure.ac): Remove gl_UCS4_UTF.
35647 (Makefile.am): Update.
35648 (Include): Change to unistr.h.
35649 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35650 (Depends-on): Add unistr/base.
35651 (configure.ac): Remove gl_UCS4_UTF.
35652 (Makefile.am): Update.
35653 (Include): Change to unistr.h.
35654 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35655 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35656 utf8-ucs4-unsafe.h.
35657 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35658 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35659 utf16-ucs4-unsafe.h.
35660 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35661 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35662 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35663 * lib/unistr/u8-strchr.c: Likewise.
35664 * lib/unistr/u8-strrchr.c: Likewise.
35665 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35666 * lib/unistr/u16-strchr.c: Likewise.
35667 * lib/unistr/u16-strrchr.c: Likewise.
35668 * lib/striconveh.c: Update.
35669 * lib/linebreak.c: Update.
35671 2007-03-24 Bruno Haible <bruno@clisp.org>
35673 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35674 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35676 2007-03-22 Bruno Haible <bruno@clisp.org>
35678 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35680 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35682 * MODULES.html.sh (File system functions): New module write-any-file.
35683 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35684 * m4/write-any-file.m4: New files.
35686 2007-03-23 Eric Blake <ebb9@byu.net>
35688 * gnulib-tool: Rearrange space-tab sequences, since some editors
35691 2007-03-23 Eric Blake <ebb9@byu.net>
35693 * lib/version-etc.c (version_etc_va): Update license wording to
35694 be more concise. Recommended by Richard Stallman.
35696 2007-03-22 Bruno Haible <bruno@clisp.org>
35698 * lib/poll.c (MSG_PEEK): New fallback definition.
35700 2007-03-22 Bruno Haible <bruno@clisp.org>
35702 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35703 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35705 Fixes a compilation error on BeOS.
35707 2007-03-22 Bruno Haible <bruno@clisp.org>
35709 * modules/frexpl-tests: New file.
35710 * tests/test-frexpl.c: New file.
35712 * modules/frexpl: New file.
35713 * m4/frexpl.m4: New file.
35714 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35715 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35716 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35717 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35718 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35719 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35721 2007-03-22 Bruno Haible <bruno@clisp.org>
35723 * lib/frexpl.c: Share code with lib/frexp.c.
35724 * modules/mathl (Files): Add lib/frexp.c.
35725 (Depends-on): Add isnanl-nolibm.
35727 2007-03-22 Bruno Haible <bruno@clisp.org>
35729 * modules/printf-frexp (Files): Add m4/frexp.m4.
35730 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35731 only if the found frexp function actually works.
35733 2007-03-22 Bruno Haible <bruno@clisp.org>
35735 * lib/frexp.c: Remove older implementation that uses divisions.
35737 2007-03-21 Bruno Haible <bruno@clisp.org>
35739 * modules/frexp-tests: New file.
35740 * tests/test-frexp.c: New file.
35742 * modules/frexp: New file.
35743 * lib/frexp.c: New file.
35744 * m4/frexp.m4: New file.
35745 * lib/math_.h (frexp): New declaration.
35746 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35748 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35750 2007-03-21 Bruno Haible <bruno@clisp.org>
35752 * modules/isnanl-tests: New file.
35753 * tests/test-isnanl.c: New file.
35755 * modules/isnanl: New file.
35756 * lib/isnanl.h: New file.
35757 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35758 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35759 gl_FUNC_ISNANL_WORKS.
35760 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35763 2007-03-21 Bruno Haible <bruno@clisp.org>
35765 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35768 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35769 * lib/vasnprintf.c: Update.
35770 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35771 tests/test-isnanl.h, remove tests/test-isnanl.c.
35772 (Makefile.am): Update.
35773 * tests/test-isnanl-nolibm.c: New file.
35774 * tests/test-isnanl.h: New file.
35775 * tests/test-isnanl.c: Remove file.
35777 2007-03-21 Jim Meyering <jim@meyering.net>
35779 When trying to open ".", treat ESTALE like EACCES.
35780 * lib/savewd.c (savewd_save): Resort to forking not just upon
35781 failure with EACCES, but also when errno is ESTALE.
35783 2007-03-20 Bruno Haible <bruno@clisp.org>
35785 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35786 Needed on AIX 5.1. Reported by Matthew Woehlke.
35788 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35790 Suggestions by Bruno Haible:
35791 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35793 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35794 * modules/acl (Depends-on): Add gettext.
35796 2007-03-19 Bruno Haible <bruno@clisp.org>
35798 * modules/iconvme: Remove file.
35799 * lib/iconvme.h: Remove file.
35800 * lib/iconvme.c: Remove file.
35801 * m4/iconvme.m4: Remove file.
35803 2007-03-19 Bruno Haible <bruno@clisp.org>
35805 * doc/relocatable-maint.texi: Break long shell script line.
35806 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35808 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35810 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35811 handle file_has_acl.
35812 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35813 * lib/acl.c: Move header inclusions and related macro defns into
35814 lib/acl-internal.h.
35815 (S_ISLNK): Remove defn, since that's now done for us.
35816 (file_has_acl): Move to lib/file-has-acl.c.
35817 Call acl_trivial if available. This is the crucial part of the fix.
35818 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35819 shared within the library. Rewrite a bit, partly to make it compatible
35820 with the GNU coding style.
35821 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35822 Remove unnecessary double-quotes.
35823 Don't test for acl_to_text; the build will catch that.
35824 Replace acl_entries if it doesn't exist and it is needed.
35825 Check for -lsec and acl_trivial (as used on Solaris 10).
35826 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35827 lib/file-has-acl.c.
35828 (Depends-on): Add sys_stat, for S_ISLNK.
35830 2007-03-19 Ben Pfaff <blp@gnu.org>
35832 * doc/gnulib.texi: Fix typos.
35833 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35835 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35837 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35838 If size is zero here, buf must be zero.
35840 2007-03-19 Simon Josefsson <simon@josefsson.org>
35842 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35845 2007-03-18 Bruno Haible <bruno@clisp.org>
35847 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35848 Suggested by Eric Blake.
35850 2007-03-18 Ben Pfaff <blp@gnu.org>
35852 * doc/relocatable.texi: Recommend using as prefix a directory
35853 that does not exist and will never be created. Based on
35854 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35857 2007-03-17 Bruno Haible <bruno@clisp.org>
35859 * lib/fchownat.c: Include lchown.h.
35861 2007-03-17 Bruno Haible <bruno@clisp.org>
35863 Fix endless loop when the given allocated size was > INT_MAX.
35864 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35865 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35866 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35867 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35868 * lib/sprintf.c (sprintf): Likewise.
35870 2007-03-17 Bruno Haible <bruno@clisp.org>
35872 * tests/test-argp-2.sh (func_compare): Output a context diff.
35874 2007-03-17 Bruno Haible <bruno@clisp.org>
35876 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35877 locale's decimal-point character.
35879 2007-03-17 Bruno Haible <bruno@clisp.org>
35881 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35882 before comparing it. Needed because on some platforms (e.g. x86) a
35883 'long double' occupies less bytes than sizeof (long double).
35885 2007-03-17 Bruno Haible <bruno@clisp.org>
35887 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35888 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35889 * tests/test-getaddrinfo.c (simple): Likewise.
35890 * tests/test-read-file.c (main): Likewise.
35892 2007-03-17 Bruno Haible <bruno@clisp.org>
35894 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35896 2007-03-17 Bruno Haible <bruno@clisp.org>
35898 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35901 2007-03-17 Bruno Haible <bruno@clisp.org>
35903 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35904 * tests/test-c-strncasecmp.c: Likewise.
35906 2007-03-17 Bruno Haible <bruno@clisp.org>
35908 * modules/stdlib (Depends-on): Add unistd.
35909 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35910 Needed for MacOS X 10.3.
35912 2007-03-17 Bruno Haible <bruno@clisp.org>
35914 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35916 2007-03-17 Bruno Haible <bruno@clisp.org>
35918 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35920 2007-03-17 Bruno Haible <bruno@clisp.org>
35922 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35923 to reflect files copied from gnulib (with or without modifications).
35924 Suggested by Jim Meyering.
35926 2007-03-17 Eric Blake <ebb9@byu.net>
35928 * NEWS: Document stdlib change from 2007-02-18.
35930 2007-03-17 Jim Meyering <jim@meyering.net>
35932 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35933 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35934 someone uses a name containing shell meta-characters.
35935 Reported by Alfred M. Szmidt.
35937 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35939 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35941 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35942 and copy gettext configuration files only if configure.ac contains
35943 a use of AM_GNU_GETTEXT_VERSION.
35945 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35947 * build-aux/bootstrap (gnulib_name): New variable.
35948 (gnulib_tool_options): Use it.
35950 2007-03-13 Simon Josefsson <simon@josefsson.org>
35952 * tests/test-des.c: Use new namespace.
35954 2007-03-15 Bruno Haible <bruno@clisp.org>
35956 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35957 Reported by James Youngman <jay@gnu.org>.
35959 2007-03-15 Bruno Haible <bruno@clisp.org>
35961 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35962 declared prototype. Needed with cc on OSF/1 5.1.
35964 2007-03-15 Bruno Haible <bruno@clisp.org>
35966 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35967 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35968 (struct gl_list_implementation): Add dispose_fn argument to the
35969 'create_empty', 'create' methods.
35970 (struct gl_list_impl_base): Add field 'dispose_fn'.
35971 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35973 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35974 dispose_fn argument.
35975 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35976 dispose_fn on the dropped values.
35977 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35978 dispose_fn argument.
35979 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35981 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35982 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35983 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35984 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35985 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35987 (gl_tree_list_free): Call dispose_fn on the dropped values.
35988 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35989 the dropped values.
35990 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35991 Add dispose_fn argument.
35992 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35993 Call dispose_fn on the dropped values.
35994 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35995 Add dispose_fn argument.
35996 (gl_sublist_create): Initialize the 'dispose_fn' field.
35997 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35998 * tests/test-array_list.c (main): Update.
35999 * tests/test-carray_list.c (main): Update.
36000 * tests/test-avltree_list.c (main): Update.
36001 * tests/test-rbtree_list.c (main): Update.
36002 * tests/test-avltreehash_list.c (main): Update.
36003 * tests/test-rbtreehash_list.c (main): Update.
36004 * tests/test-linked_list.c (main): Update.
36005 * tests/test-linkedhash_list.c (main): Update.
36006 * tests/test-array_oset.c (main): Update.
36008 2007-03-15 Bruno Haible <bruno@clisp.org>
36010 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36011 (gl_oset_create_empty): Add dispose_fn argument.
36012 (struct gl_oset_implementation): Add dispose_fn argument to
36013 'create_empty' method.
36014 (struct gl_oset_impl_base): Add dispose_fn field.
36015 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36016 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36017 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36019 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36020 (gl_tree_oset_free): Call dispose_fn on the dropped values.
36021 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36023 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36025 * tests/test-array_oset.c (main): Update.
36026 * tests/test-avltree_oset.c (main): Update.
36027 * tests/test-rbtree_oset.c (main): Update.
36028 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36030 2007-03-13 Bruno Haible <bruno@clisp.org>
36032 * tests/test-stdbool.c (i): Update after last patch.
36034 2007-03-12 Bruno Haible <bruno@clisp.org>
36036 * lib/quotearg.c: Include <wctype.h> early, before the definition of
36037 the iswprint macro. Needed on Solaris 2.5.1.
36039 2007-03-12 Bruno Haible <bruno@clisp.org>
36041 * tests/test-printf-frexp.c (main): Declare x as volatile.
36043 2007-03-12 Simon Josefsson <simon@josefsson.org>
36045 * doc/gnulib.texi (Build robot for gnulib): New section.
36047 2007-03-12 Jim Meyering <jim@meyering.net>
36049 * build-aux/bootstrap: New file.
36050 * build-aux/bootstrap.conf: New file, from coreutils.
36052 2007-03-11 Bruno Haible <bruno@clisp.org>
36054 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36056 2007-03-12 Simon Josefsson <simon@josefsson.org>
36058 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36059 avoid collisions with 'des_setkey'. Reported by Bruno Haible
36060 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36062 2007-03-11 Bruno Haible <bruno@clisp.org>
36064 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36065 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36067 2007-03-11 Bruno Haible <bruno@clisp.org>
36069 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36070 formula. Needed for SunPRO C 5.0.
36072 2007-03-11 Bruno Haible <bruno@clisp.org>
36074 * modules/long-options (Depends-on): Add getopt.
36076 2007-03-11 Bruno Haible <bruno@clisp.org>
36078 * modules/modechange (Depends-on): Add stdbool.
36080 2007-03-11 Bruno Haible <bruno@clisp.org>
36082 * modules/i-ring (Depends-on): Add stdbool.
36084 2007-03-11 Bruno Haible <bruno@clisp.org>
36086 * modules/gc-des (Depends-on): Add stdbool.
36088 2007-03-11 Bruno Haible <bruno@clisp.org>
36090 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36092 2007-03-11 Bruno Haible <bruno@clisp.org>
36094 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36096 2007-03-11 Bruno Haible <bruno@clisp.org>
36098 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36100 2007-03-11 Bruno Haible <bruno@clisp.org>
36102 * lib/vasnprintf.c (sprintf): Undefine.
36104 2007-03-11 Bruno Haible <bruno@clisp.org>
36106 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36107 initializers in SunPRO C and Compaq C compilers.
36109 2007-03-11 Bruno Haible <bruno@clisp.org>
36111 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36112 decrementing code ANSI C compliant.
36114 2007-03-11 Bruno Haible <bruno@clisp.org>
36116 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36117 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36119 2007-03-11 Bruno Haible <bruno@clisp.org>
36121 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36122 <stdbool.h> substitute doesn't pass.
36124 2007-03-11 Bruno Haible <bruno@clisp.org>
36126 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36128 2007-03-11 Bruno Haible <bruno@clisp.org>
36130 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36131 script, for submission to autobuild.josefsson.org.
36133 2007-03-10 Bruno Haible <bruno@clisp.org>
36135 * modules/canonicalize-lgpl-tests: New file.
36136 * tests/test-canonicalize-lgpl.sh: New file.
36137 * tests/test-canonicalize-lgpl.c: New file.
36139 * modules/c-strcase-tests: New file.
36140 * tests/test-c-strcase.sh: New file.
36141 * tests/test-c-strcasecmp.c: New file.
36142 * tests/test-c-strncasecmp.c: New file.
36144 * modules/atexit-tests: New file.
36145 * tests/test-atexit.sh: New file.
36146 * tests/test-atexit.c: New file.
36148 2007-03-10 Bruno Haible <bruno@clisp.org>
36150 * tests/test-binary-io.sh: Use temporary filenames that are not so
36151 likely to clash with those of other tests (in a parallel make).
36152 * tests/test-binary-io.c: Likewise.
36154 2007-03-10 Bruno Haible <bruno@clisp.org>
36156 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36157 fallback; use #error instead.
36158 Suggested by Simon Josefsson.
36160 2007-03-10 Bruno Haible <bruno@clisp.org>
36162 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36163 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36164 first and the last.
36166 2007-03-10 Bruno Haible <bruno@clisp.org>
36168 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36170 2007-03-10 Bruno Haible <bruno@clisp.org>
36172 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36174 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36175 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36176 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36178 2007-03-10 Bruno Haible <bruno@clisp.org>
36180 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36182 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36185 2007-03-09 Eric Blake <ebb9@byu.net>
36186 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36188 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36189 types are not being provided by gnulib.
36190 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36191 types are supported.
36193 2007-03-10 Bruno Haible <bruno@clisp.org>
36195 * lib/stdio_.h (__attribute__): New macro.
36196 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36197 vsprintf): Specify __attribute__ __format__ for GCC.
36198 Suggested by Eric Blake.
36200 2007-03-09 Bruno Haible <bruno@clisp.org>
36202 * modules/printf-posix-tests: New file.
36203 * tests/test-printf-posix.sh: New file.
36204 * tests/test-printf-posix.c: New file.
36206 * modules/printf-posix: New file.
36207 * lib/printf.c: New file.
36208 * m4/printf-posix-rpl.m4: New file.
36209 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36211 * lib/stdio_.h (printf): New declaration.
36212 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36213 ____strfmon____): New macros.
36214 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36217 2007-03-09 Bruno Haible <bruno@clisp.org>
36219 * tests/test-vasnprintf-posix2.sh: New file.
36220 * tests/test-vasnprintf-posix2.c: New file.
36221 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36222 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36223 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36225 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36226 a locale dependent decimal point, rather than always '.'.
36228 2007-03-09 Eric Blake <ebb9@byu.net>
36230 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36231 spite of platforms like Tandem/NSK that define it to -1.
36233 2007-03-08 Bruno Haible <bruno@clisp.org>
36235 * modules/vprintf-posix-tests: New file.
36236 * tests/test-vprintf-posix.sh: New file.
36237 * tests/test-vprintf-posix.c: New file.
36238 * tests/test-printf-posix.h: New file.
36240 * modules/vprintf-posix: New file.
36241 * lib/vprintf.c: New file.
36242 * m4/vprintf-posix.m4: New file.
36243 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36245 * lib/stdio_.h (vprintf): New declaration.
36246 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36249 2007-03-08 Bruno Haible <bruno@clisp.org>
36251 * modules/fprintf-posix-tests: New file.
36252 * tests/test-fprintf-posix.sh: New file.
36253 * tests/test-fprintf-posix.c: New file.
36255 * modules/fprintf-posix: New file.
36256 * lib/fprintf.c: New file.
36257 * m4/fprintf-posix.m4: New file.
36258 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36260 * lib/stdio_.h (fprintf): New declaration.
36261 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36264 2007-03-08 Bruno Haible <bruno@clisp.org>
36266 * modules/vfprintf-posix-tests: New file.
36267 * tests/test-vfprintf-posix.sh: New file.
36268 * tests/test-vfprintf-posix.c: New file.
36269 * tests/test-fprintf-posix.h: New file.
36270 * tests/test-fprintf-posix.out: New file.
36272 * modules/vfprintf-posix: New file.
36273 * lib/vfprintf.c: New file.
36274 * m4/vfprintf-posix.m4: New file.
36275 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36277 * lib/stdio_.h (vfprintf): New declaration.
36278 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36281 2007-03-08 Bruno Haible <bruno@clisp.org>
36283 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36285 2007-03-08 Bruno Haible <bruno@clisp.org>
36287 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36288 instead of 'expr' invocations.
36289 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36290 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36291 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36292 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36293 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36294 Suggested by Paul Eggert.
36296 2007-03-08 Bruno Haible <bruno@clisp.org>
36298 * modules/fseterr-tests: New file.
36299 * tests/test-fseterr.c: New file.
36301 * modules/fseterr: New file.
36302 * lib/fseterr.h: New file.
36303 * lib/fseterr.c: New file.
36305 2007-03-08 Bruno Haible <bruno@clisp.org>
36307 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36308 * lib/getopt_.h: Likewise.
36309 * lib/mbswidth.h: Likewise.
36310 * lib/setenv.h: Likewise.
36311 * lib/vasnprintf.h: Likewise.
36312 * lib/vasprintf.h: Likewise.
36313 * lib/verror.h: Likewise.
36314 * lib/xsetenv.h: Likewise.
36315 * lib/xvasprintf.h: Likewise.
36317 2007-03-08 Jim Meyering <jim@meyering.net>
36319 * users.txt: Add parted.
36321 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36323 2007-03-07 Bruno Haible <bruno@clisp.org>
36325 * m4/printf.m4: Make the shell script snippets copy&pastable.
36327 2007-03-02 Bruno Haible <bruno@clisp.org>
36329 * lib/netinet_in_.h: New file.
36330 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36331 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36332 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36333 (Depends-on): Add absolute-header.
36334 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36337 2007-03-03 Bruno Haible <bruno@clisp.org>
36339 * lib/sys_select_.h: New file.
36340 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36341 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36342 * modules/sys_select (Files): Add lib/sys_select_.h.
36343 (Depends-on): Add absolute-header.
36344 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36347 2007-03-02 Bruno Haible <bruno@clisp.org>
36349 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36350 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36352 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36353 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36354 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36355 * modules/sys_socket (Depends-on): Add absolute-header.
36356 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36357 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36358 (Include): Remove requirement of inclusion of <sys/types.h>.
36360 2007-03-02 Bruno Haible <bruno@clisp.org>
36362 * lib/byteswap_.h (bswap_32): Fix formula.
36364 2007-03-06 Bruno Haible <bruno@clisp.org>
36366 * modules/sprintf-posix-tests: New file.
36367 * tests/test-sprintf-posix.c: New file.
36369 * modules/sprintf-posix: New file.
36370 * lib/sprintf.c: New file.
36371 * m4/sprintf-posix.m4: New file.
36372 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36374 * lib/stdio_.h (sprintf): New declaration.
36375 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36378 2007-03-06 Bruno Haible <bruno@clisp.org>
36380 * modules/vsprintf-posix-tests: New file.
36381 * tests/test-vsprintf-posix.c: New file.
36382 * tests/test-sprintf-posix.h: New file.
36384 * modules/vsprintf-posix: New file.
36385 * lib/vsprintf.c: New file.
36386 * m4/vsprintf-posix.m4: New file.
36387 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36389 * lib/stdio_.h (vsprintf): New declaration.
36390 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36393 2007-03-06 Bruno Haible <bruno@clisp.org>
36395 * modules/vsnprintf (Depend-on): Remove minmax.
36397 2007-03-06 Bruno Haible <bruno@clisp.org>
36399 * modules/snprintf-posix-tests: New file.
36400 * tests/test-snprintf-posix.c: New file.
36402 * modules/snprintf-posix: New file.
36403 * m4/snprintf-posix.m4: New file.
36404 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36406 (gl_FUNC_SNPRINTF): Invoke it.
36407 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36408 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36410 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36412 2007-03-06 Bruno Haible <bruno@clisp.org>
36414 * modules/vsnprintf-posix-tests: New file.
36415 * tests/test-vsnprintf-posix.c: New file.
36416 * tests/test-snprintf-posix.h: New file.
36418 * modules/vsnprintf-posix: New file.
36419 * m4/vsnprintf-posix.m4: New file.
36420 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36422 (gl_FUNC_VSNPRINTF): Invoke it.
36423 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36424 * lib/stdio_.h (vsnprintf): Define as a replacement if
36425 REPLACE_VSNPRINTF is set.
36426 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36428 2007-03-06 Bruno Haible <bruno@clisp.org>
36430 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36431 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36433 2007-03-06 Bruno Haible <bruno@clisp.org>
36435 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36436 (asinl): Declare also if HAVE_DECL_ASINL is set.
36437 (atanl): Declare also if HAVE_DECL_ATANL is set.
36438 (ceill): Declare also if HAVE_DECL_CEILL is set.
36439 (cosl): Declare also if HAVE_DECL_COSL is set.
36440 (expl): Declare also if HAVE_DECL_EXPL is set.
36441 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36442 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36443 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36444 (logl): Declare also if HAVE_DECL_LOGL is set.
36445 (sinl): Declare also if HAVE_DECL_SINL is set.
36446 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36447 (tanl): Declare also if HAVE_DECL_TANL is set.
36448 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36449 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36450 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36451 declaration of frexpl, ldexpl.
36452 * modules/printf-frexpl (Depends-on): Add math.
36453 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36455 2007-03-05 Bruno Haible <bruno@clisp.org>
36457 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36458 frexpl and ldexpl are declared.
36459 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36461 2007-03-05 Bruno Haible <bruno@clisp.org>
36463 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36464 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36466 2007-03-05 Bruno Haible <bruno@clisp.org>
36468 * lib/stdio_.h: Include <stddef.h>.
36470 2007-03-05 Bruno Haible <bruno@clisp.org>
36472 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36474 2007-03-05 Bruno Haible <bruno@clisp.org>
36476 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36477 NetBSD 4, from Ralf Wildenhues.
36479 2007-03-04 Bruno Haible <bruno@clisp.org>
36481 * lib/vasprintf.h: Update #if logic for the case when the functions
36482 exist but are overridden.
36484 2007-03-04 Bruno Haible <bruno@clisp.org>
36486 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36487 implementations: glibc-2.4 and MacOS X 10.3.
36488 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36489 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36490 * tests/test-vasprintf-posix.c (test_function): Likewise.
36492 2007-03-04 Bruno Haible <bruno@clisp.org>
36494 * modules/vasprintf-posix-tests: New file.
36495 * tests/test-vasprintf-posix.c: New file.
36497 * modules/vasprintf-posix: New file.
36498 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36500 * m4/vasprintf-posix.m4: New file.
36501 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36503 (gl_FUNC_VASPRINTF): Invoke it.
36504 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36506 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36508 2007-03-04 Bruno Haible <bruno@clisp.org>
36510 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36511 REPLACE_GETTIMEOFDAY.
36512 * modules/sys_time (Makefile.am): Likewise.
36513 * m4/sys_time_h.m4: Likewise.
36514 * m4/gettimeofday.m4: Likewise.
36516 2007-03-04 Bruno Haible <bruno@clisp.org>
36518 * modules/vasnprintf-posix-tests: New file.
36519 * tests/test-vasnprintf-posix.c: New file.
36521 * modules/vasnprintf-posix: New file.
36522 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36524 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36525 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36526 REPLACE_VASNPRINTF is defined.
36527 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36528 gl_FUNC_VASNPRINTF.
36529 (gl_FUNC_VASNPRINTF): Invoke it.
36530 * m4/vasnprintf-posix.m4: New file.
36531 * m4/printf.m4: New file.
36533 2007-03-04 Bruno Haible <bruno@clisp.org>
36535 Compile progreloc.c only if --enable-relocatable is specified.
36536 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36537 if --enable-relocatable was specified.
36538 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36541 2007-03-04 Jim Meyering <jim@meyering.net>
36543 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36544 Use it consistently, rather than enumerating errno constants.
36546 2007-03-04 Bruno Haible <bruno@clisp.org>
36548 * modules/xvasprintf-tests: New file.
36549 * tests/test-xvasprintf.c: New file.
36551 * modules/vasprintf-tests: New file.
36552 * tests/test-vasprintf.c: New file.
36554 * modules/vasnprintf-tests: New file.
36555 * tests/test-vasnprintf.c: New file.
36557 * modules/vsnprintf-tests: New file.
36558 * tests/test-vsnprintf.c: New file.
36560 * modules/snprintf-tests: New file.
36561 * tests/test-snprintf.c: New file.
36563 2007-03-04 Bruno Haible <bruno@clisp.org>
36565 Compile relocatable.c only if --enable-relocatable is specified.
36566 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36567 gl_RELOCATABLE_LIBRARY.
36568 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36569 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36570 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36571 gl_RELOCATABLE_LIBRARY.
36572 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36573 (Makefile.am): Remove lib_SOURCES.
36574 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36575 gl_RELOCATABLE_LIBRARY.
36576 (Makefile.am): Remove lib_SOURCES.
36577 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36579 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36580 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36582 2007-03-04 Bruno Haible <bruno@clisp.org>
36584 * modules/argmatch-tests: New file.
36585 * tests/test-argmatch.c: New file.
36587 * tests/test-allocsa.c (main): Halve the number of loop runs.
36589 * modules/alloca-opt-tests: New file.
36590 * tests/test-alloca-opt.c: New file.
36592 2007-03-04 Jim Meyering <jim@meyering.net>
36594 Work around difference between Linux ACLs and Solaris 10 ZFS.
36595 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36598 2007-03-03 Bruno Haible <bruno@clisp.org>
36600 * modules/relocatable-prog (Depends-on): Add back progreloc's
36601 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36603 2007-03-03 Bruno Haible <bruno@clisp.org>
36605 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36606 * modules/relocatable-lib: New file.
36608 2007-03-03 Bruno Haible <bruno@clisp.org>
36610 * modules/relocatable-prog: Renamed from modules/relocatable.
36611 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36613 2007-03-03 Bruno Haible <bruno@clisp.org>
36615 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36616 m4/relocatable-lib.m4.
36617 (Depends-on): Remove 'relocatable'.
36618 (configure.ac): Add gl_RELOCATABLE_NOP.
36620 2007-03-03 Bruno Haible <bruno@clisp.org>
36622 * modules/relocatable-prog-wrapper: New file.
36623 * modules/relocatable (Depends-on): Add it. Remove all other
36624 dependencies except progname.
36625 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36627 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36628 (gl_FUNC_STRERROR): Nop.
36629 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36631 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36632 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36634 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36635 (gl_FUNC_READLINK): Update.
36637 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36639 2007-03-03 Bruno Haible <bruno@clisp.org>
36641 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36642 * modules/xreadlink (Depends-on): Add unistd.
36643 * modules/xreadlink-with-size (Depends-on): Likewise.
36645 2007-03-03 Bruno Haible <bruno@clisp.org>
36647 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36648 extracted from gt_FUNC_SETENV.
36649 (gt_FUNC_SETENV): Remove macro.
36650 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36651 remove gt_FUNC_SETENV.
36653 2007-03-03 Bruno Haible <bruno@clisp.org>
36655 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36656 ENABLE_RELOCATABLE here.
36657 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36659 2007-03-03 Bruno Haible <bruno@clisp.org>
36661 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36662 * tests/test-rbtreehash_list.c: Include progname.h.
36663 (main): Call set_program_name.
36665 * modules/rbtree-oset-tests (Depends-on): Add progname.
36666 * tests/test-rbtree_oset.c: Include progname.h.
36667 (main): Call set_program_name.
36669 * modules/rbtree-list-tests (Depends-on): Add progname.
36670 * tests/test-rbtree_list.c: Include progname.h.
36671 (main): Call set_program_name.
36673 * modules/linked-list-tests (Depends-on): Add progname.
36674 * tests/test-linked_list.c: Include progname.h.
36675 (main): Call set_program_name.
36677 2007-03-03 Bruno Haible <bruno@clisp.org>
36679 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36680 All uses of __restrict changed to _Restrict_.
36681 * lib/glob_.h (__restrict): Remove macro.
36683 2007-03-02 Bruno Haible <bruno@clisp.org>
36685 * modules/gettext (configure.ac): Require gettext infrastructure
36686 from version 0.16.1.
36688 2007-03-02 Bruno Haible <bruno@clisp.org>
36690 * modules/linkedhash-list-tests (Depends-on): Add progname.
36691 * tests/test-linkedhash_list.c: Include progname.h.
36692 (main): Call set_program_name.
36694 * modules/carray-list-tests (Depends-on): Add progname.
36695 * tests/test-carray_list.c: Include progname.h.
36696 (main): Call set_program_name.
36698 * modules/avltreehash-list-tests (Depends-on): Add progname.
36699 * tests/test-avltreehash_list.c: Include progname.h.
36700 (main): Call set_program_name.
36702 * modules/avltree-oset-tests (Depends-on): Add progname.
36703 * tests/test-avltree_oset.c: Include progname.h.
36704 (main): Call set_program_name.
36706 * modules/avltree-list-tests (Depends-on): Add progname.
36707 * tests/test-avltree_list.c: Include progname.h.
36708 (main): Call set_program_name.
36710 * modules/array-oset-tests (Depends-on): Add progname.
36711 * tests/test-array_oset.c: Include progname.h.
36712 (main): Call set_program_name.
36714 * modules/array-list-tests (Depends-on): Add progname.
36715 * tests/test-array_list.c: Include progname.h.
36716 (main): Call set_program_name.
36718 * modules/argp-tests (Depends-on): Add progname.
36719 * tests/test-argp.c: Include argp.h first. Include progname.h.
36720 (main): Call set_program_name.
36722 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36724 * doc/gnulib-tool.texi (Initial import): Reword description of
36725 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36726 limited effect even if defined after the first system include.
36728 2007-03-01 Bruno Haible <bruno@clisp.org>
36730 * build-aux/config.libpath: Update to libtool-1.5.22.
36731 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36733 2007-03-01 Bruno Haible <bruno@clisp.org>
36735 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36737 Reported by Ralf Wildenhues.
36739 2007-03-01 Bruno Haible <bruno@clisp.org>
36741 * build-aux/install-reloc: Remove object files left over by some
36743 Reported by Ralf Wildenhues.
36745 2007-03-01 Bruno Haible <bruno@clisp.org>
36747 * build-aux/install-reloc: Break long lines.
36749 2007-03-01 Bruno Haible <bruno@clisp.org>
36751 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36752 Reported by Ralf Wildenhues.
36754 2007-03-01 Bruno Haible <bruno@clisp.org>
36756 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36757 include ordering constraints.
36759 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36761 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36762 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36763 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36764 as another example.
36765 * lib/time_.h: Fix misspelling.
36766 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36767 Require gl_HEADER_TIME_H_DEFAULTS.
36768 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36769 * m4/time_r.m4 (gl_TIME_R): Likewise.
36770 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36772 2007-03-01 Bruno Haible <bruno@clisp.org>
36774 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36775 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36777 2007-03-01 Jim Meyering <jim@meyering.net>
36779 * modules/xreadlink (Maintainer): Add my name.
36780 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36782 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36783 Bruno Haible <bruno@clisp.org>
36785 * build-aux/install-reloc: Compile also c-ctype.c.
36786 * build-aux/relocatable.sh.in: New file.
36787 * doc/relocatable.texi: New file.
36788 * doc/relocatable-maint.texi: New file.
36789 * doc/gnulib.texi: Include relocatable-maint.texi.
36790 * lib/progreloc.c: Include unistd.h unconditionally.
36791 * lib/relocwrapper.c: Include unistd.h unconditionally.
36793 (add_dotbin): Use c_tolower.
36794 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36795 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36796 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36797 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36798 to m4/relocatable-lib.m4.
36799 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36800 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36801 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36802 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36803 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36804 * modules/relocatable: New file.
36805 * modules/relocatable-lib: New file.
36806 * modules/relocatable-script: New file.
36808 2007-02-28 Bruno Haible <bruno@clisp.org>
36810 Import --enable-relocatable infrastructure.
36811 * build-aux/config.libpath: New file, from GNU gettext.
36812 * build-aux/install-reloc: New file, from GNU gettext.
36813 * build-aux/reloc-ldflags: New file, from GNU gettext.
36814 * lib/relocatable.h: New file, from GNU gettext.
36815 * lib/relocatable.c: New file, from GNU gettext.
36816 * lib/relocwrapper.c: New file, from GNU gettext.
36817 * m4/relocatable.m4: New file, from GNU gettext.
36819 2007-02-28 Bruno Haible <bruno@clisp.org>
36821 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36823 * modules/xreadlink: New file, from GNU gettext with modifications.
36824 * lib/xreadlink.c: New file, from GNU gettext.
36825 * lib/xreadlink.h: Add comments.
36826 (xreadlink): New declaration.
36828 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36829 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36830 lib/xreadlink-with-size.c.
36831 (configure.ac): Remove gl_XREADLINK invocation.
36832 (Makefile.am): Augment lib_SOURCES.
36833 * m4/xreadlink.m4: Remove file.
36834 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36835 (xreadlink_with_size): Renamed from xreadink.
36836 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36837 * modules/canonicalize (Depends-on): Replace xreadlink with
36838 xreadlink-with-size.
36839 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36841 2007-02-25 Jim Meyering <jim@meyering.net>
36843 * build-aux/announce-gen: When complaining about excess arguments,
36846 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36848 * README: Document signed integer overflow situation more
36851 2007-02-25 Bruno Haible <bruno@clisp.org>
36853 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36854 'a' or 'A' conversion.
36856 2007-02-25 Bruno Haible <bruno@clisp.org>
36858 * modules/filename: Renamed from modules/pathname.
36859 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36860 lib/concatpath.c with lib/concat-filename.c.
36861 (Makefile.am): Update.
36862 (Include): Replace pathname.h with filename.h.
36863 * lib/filename.h: Renamed from lib/pathname.h.
36864 (concatenated_filename): Renamed from concatenated_pathname.
36865 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36866 (concatenated_filename): Renamed from concatenated_pathname.
36867 * lib/findprog.c: Include filename.h instead of pathname.h.
36868 (find_in_path): Update.
36869 * lib/javacomp.c: Include filename.h instead of pathname.h.
36870 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36871 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36872 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36873 is_oldgcj_14_13_usable, is_javac_usable): Update.
36874 * lib/javaexec.c: Include filename.h instead of pathname.h.
36875 (execute_java_class): Update.
36876 * modules/findprog: Update.
36877 * modules/javacomp: Update.
36878 * modules/javaexec: Update.
36879 * MODULES.html.sh (File system functions): Add 'filename', remove
36882 2007-02-25 Bruno Haible <bruno@clisp.org>
36884 * modules/printf-frexpl-tests: New file.
36885 * tests/test-printf-frexpl.c: New file.
36887 * modules/printf-frexpl: New file.
36888 * lib/printf-frexpl.h: New file.
36889 * lib/printf-frexpl.c: New file.
36890 * m4/printf-frexpl.m4: New file.
36892 2007-02-25 Bruno Haible <bruno@clisp.org>
36894 * modules/printf-frexp-tests: New file.
36895 * tests/test-printf-frexp.c: New file.
36897 * modules/printf-frexp: New file.
36898 * lib/printf-frexp.h: New file.
36899 * lib/printf-frexp.c: New file.
36900 * m4/printf-frexp.m4: New file.
36902 2007-02-25 Bruno Haible <bruno@clisp.org>
36904 Assume automake >= 1.10 for the tests.
36905 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36906 * modules/arctwo-tests: Likewise.
36907 * modules/argp-tests: Likewise.
36908 * modules/avltree-list-tests: Likewise.
36909 * modules/avltree-oset-tests: Likewise.
36910 * modules/avltreehash-list-tests: Likewise.
36911 * modules/carray-list-tests: Likewise.
36912 * modules/crc-tests: Likewise.
36913 * modules/des-tests: Likewise.
36914 * modules/gc-arcfour-tests: Likewise.
36915 * modules/gc-arctwo-tests: Likewise.
36916 * modules/gc-des-tests: Likewise.
36917 * modules/gc-hmac-md5-tests: Likewise.
36918 * modules/gc-hmac-sha1-tests: Likewise.
36919 * modules/gc-md2-tests: Likewise.
36920 * modules/gc-md4-tests: Likewise.
36921 * modules/gc-md5-tests: Likewise.
36922 * modules/gc-pbkdf2-sha1-tests: Likewise.
36923 * modules/gc-rijndael-tests: Likewise.
36924 * modules/gc-sha1-tests: Likewise.
36925 * modules/gc-tests: Likewise.
36926 * modules/getaddrinfo-tests: Likewise.
36927 * modules/hmac-md5-tests: Likewise.
36928 * modules/hmac-sha1-tests: Likewise.
36929 * modules/linked-list-tests: Likewise.
36930 * modules/linkedhash-list-tests: Likewise.
36931 * modules/lock-tests: Likewise.
36932 * modules/md2-tests: Likewise.
36933 * modules/md4-tests: Likewise.
36934 * modules/md5-tests: Likewise.
36935 * modules/rbtree-list-tests: Likewise.
36936 * modules/rbtree-oset-tests: Likewise.
36937 * modules/rbtreehash-list-tests: Likewise.
36938 * modules/read-file-tests: Likewise.
36939 * modules/rijndael-tests: Likewise.
36940 * modules/stdint-tests: Likewise.
36941 * modules/tls-tests: Likewise.
36943 2007-02-24 Bruno Haible <bruno@clisp.org>
36945 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36946 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36947 function; instead check whether isnan with a double argument links.
36948 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36949 function; instead check whether isnan with a 'long double' argument
36951 Reported by Eric Blake <ebb9@byu.net>.
36953 2007-02-24 Bruno Haible <bruno@clisp.org>
36955 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36957 * lib/isnanl.c: Remove all code. Just include isnan.c.
36958 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36960 2007-02-25 Jim Meyering <jim@meyering.net>
36962 Avoid conflicting types for 'unsetenv' on FreeBSD.
36963 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36964 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36967 2007-02-24 Bruno Haible <bruno@clisp.org>
36969 * modules/isnanl-nolibm-tests: New file.
36970 * tests/test-isnanl.c: New file.
36972 * modules/isnanl-nolibm: New file.
36973 * lib/isnanl.h: New file.
36974 * lib/isnanl.c: New file.
36975 * m4/isnanl.m4: New file.
36977 2007-02-24 Bruno Haible <bruno@clisp.org>
36979 * modules/isnan-nolibm-tests: New file.
36980 * tests/test-isnan.c: New file.
36982 * modules/isnan-nolibm: New file.
36983 * lib/isnan.h: New file.
36984 * lib/isnan.c: New file.
36985 * m4/isnan.m4: New file.
36987 2007-02-24 Bruno Haible <bruno@clisp.org>
36989 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36990 assume that an exponent fits in 20 bits.
36992 2007-02-24 Jim Meyering <jim@meyering.net>
36994 * m4/regex.m4: Update the description of the configure-time option,
36995 --without-included-regex, to state accurately what the defaults are,
36996 and perhaps to give people an idea why using this option is risky.
36998 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
37000 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37001 loops on small arguments. This attempts to avoid the problem
37002 Bruno Haible reported for AIX 4.3.2 in
37003 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37005 2007-02-23 Bruno Haible <bruno@clisp.org>
37007 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37008 Needed for help2man.
37010 2007-02-23 Karl Berry <karl@gnu.org>
37012 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37013 exists, foo.h should be cvs-ignored, not committed.
37015 2007-02-23 Eric Blake <ebb9@byu.net>
37017 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
37018 * lib/stat-time.h (includes): Likewise.
37019 * lib/utimecmp.c (includes): Likewise.
37020 * lib/utimens.h (includes): Likewise.
37021 * lib/getdate.y (includes): Also include "timespec.h" for use
37022 internal to the module.
37023 * modules/utimens (Depends-on): Revert yesterday's patch.
37024 * modules/nanosleep (Depends-on): Add missing dependency.
37026 2007-02-22 Bruno Haible <bruno@clisp.org>
37028 * lib/glob.c: Don't include getlogin_r.h.
37030 2007-02-22 Jim Meyering <jim@meyering.net>
37032 * modules/utimens (Depends-on): Add timespec, required for
37033 utimens.h's inclusion of timespec.h.
37035 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
37037 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37038 long unreadable paths in GNU/Linux. Problem reported by Andreas
37040 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37041 I'll try to think of a better way to fix the Solaris problem.
37043 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37044 like glibc; on Solaris 10, it fails with errno == EINVAL.
37045 POSIX says the behavior is unspecified if the first argument is NULL,
37046 so play it safe and never pass NULL to the system getcwd.
37048 2007-02-21 Jim Meyering <jim@meyering.net>
37050 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37051 of gettimeofday. It would conflict with the one now always
37052 provided via sys_time_.h. Reported by Matthew Woehlke, as
37053 an IRIX 6.5 build failure.
37055 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
37057 Minor fixups to port to Solaris 10 with Sun C 5.8.
37058 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37059 * modules/getcwd (Depends-on): Add dirfd.
37060 * lib/putenv.c (putenv): #undef it.
37061 (rpl_putenv): New decl.
37062 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37064 2007-02-20 Bruno Haible <bruno@clisp.org>
37066 * modules/stdio-tests: New file.
37067 * tests/test-stdio.c: New file.
37069 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37070 (Depends-on): Add stdio.
37071 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37072 (Include): Use <stdio.h> instead of vsnprintf.h.
37073 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37074 HAVE_DECL_VSNPRINTF.
37075 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37077 * modules/snprintf (Files): Remove lib/snprintf.h.
37078 (Depends-on): Add stdio.
37079 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37080 (Include): Use <stdio.h> instead of snprintf.h.
37081 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37082 HAVE_DECL_SNPRINTF.
37083 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37084 * lib/getaddrinfo.c: Likewise.
37086 * modules/stdio: New file.
37087 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37088 * lib/snprintf.h: Remove file.
37089 * lib/vsnprintf.h: Remove file.
37090 * lib/.cppi-disable: Remove snprintf.h.
37091 * m4/stdio_h.m4: New file.
37092 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37094 2007-02-20 Jim Meyering <jim@meyering.net>
37096 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37097 used by e.g., mingw. From Bruno Haible.
37099 2007-02-19 Bruno Haible <bruno@clisp.org>
37101 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37103 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37105 2007-02-19 Bruno Haible <bruno@clisp.org>
37107 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37110 2007-02-19 Bruno Haible <bruno@clisp.org>
37112 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37114 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37116 2007-02-19 Jim Meyering <jim@meyering.net>
37118 Don't use FD after a successful "fdopendir (fd)".
37119 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37120 Reset it by calling dirfd on the just-obtained DIR*.
37122 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37123 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37125 2007-02-18 Bruno Haible <bruno@clisp.org>
37127 * lib/readlink.c: Include <unistd.h>.
37128 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37130 * modules/readlink (Depends-on): Add unistd.
37131 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37132 (Include): Add <unistd.h>.
37134 * lib/getlogin_r.h: Remove file.
37135 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37136 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37137 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37138 HAVE_DECL_GETLOGIN_R.
37139 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37140 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37141 (Include): Use <unistd.h> instead of getlogin_r.h.
37143 * lib/getcwd.h: Remove file.
37144 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37145 * lib/xgetcwd.c: Likewise.
37146 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37147 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37148 * modules/getcwd (Files): Remove lib/getcwd.h.
37149 (Depends-on): Add unistd.
37150 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37151 (Include): Use <unistd.h> instad of getcwd.h.
37153 * lib/ftruncate.c: Include <unistd.h> first.
37154 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37155 Set HAVE_FTRUNCATE.
37156 * modules/ftruncate (Depends-on): Add unistd.
37157 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37159 * lib/fchdir.c: Include <unistd.h> first.
37160 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37161 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37162 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37163 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37164 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37166 * lib/dup2.c: Include <unistd.h> first.
37167 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37169 * modules/dup2 (Depends-on): Add unistd.
37170 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37172 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37173 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37174 REPLACE_CHOWN. Don't define chown as a macro here.
37175 * modules/chown (Depends-on): Add unistd.
37176 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37178 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37179 Add definition for GL_LINK_WARNING.
37180 (chown, dup2): New declarations.
37181 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37183 (ftruncate): New declaration.
37184 (getcwd): New declaration, taken from old getcwd.h.
37185 (getlogin_r): New declaration, taken from old getlogin_r.h.
37186 (readlink): New declaration.
37187 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37188 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37189 (gl_PREREQ_UNISTD): Remove macro.
37190 (gl_UNISTD_MODULE_INDICATOR): New macro.
37191 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37192 many new variables. Don't set UNISTD_H.
37193 * modules/unistd (Description): Change.
37194 (Depends-on): Add link-warning.
37195 (configure.ac): Update.
37196 (Makefile.am): Create unistd.h always. Substitute many new variables
37199 2007-02-18 Bruno Haible <bruno@clisp.org>
37201 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37202 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37204 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37205 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37206 * lib/getsubopt.h: Remove file.
37207 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37208 (Depends-on): Add stdlib.
37209 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37210 (Includes): Use <stdlib.h> instead of getsubopt.h.
37211 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37212 Set HAVE_GETSUBOPT.
37213 * lib/getsubopt.c: Don't include getsubopt.h.
37215 2007-02-18 Bruno Haible <bruno@clisp.org>
37217 * modules/fchdir (Depends-on): Add dup2.
37219 2007-02-18 Bruno Haible <bruno@clisp.org>
37221 * lib/stdlib_.h: Handle glibc's special invocation convention
37224 2007-02-18 Bruno Haible <bruno@clisp.org>
37226 * modules/stdlib-tests: New file.
37227 * tests/test-stdlib.c: New file.
37229 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37230 (Depends-on): Add stdlib.
37231 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37232 (Includes): Use <stdlib.h> instead of mkstemp.h.
37233 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37234 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37235 * lib/mkstemp.c: Don't include mkstemp.h.
37236 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37237 * lib/stdlib--.h: Don't include mkstemp.h.
37239 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37240 (Depends-on): Add stdlib.
37241 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37242 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37243 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37245 * lib/mkdtemp.c: Don't include mkdtemp.h.
37246 * lib/clean-temp.c: Don't include mkdtemp.h.
37248 * modules/exit (Files): Remove lib/exit.h.
37249 (Depends-on): Add stdlib.
37250 (Makefile.am): Remove lib_SOURCES.
37251 (Include): Use <stdlib.h> instead of exit.h.
37252 * lib/argmatch.c: Don't include exit.h.
37253 * lib/execute.c: Likewise.
37254 * lib/pagealign_alloc.c: Likewise.
37255 * lib/pipe.c: Likewise.
37256 * lib/wait-process.c: Likewise.
37257 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37258 * lib/exitfail.c: Likewise.
37259 * lib/savewd.c: Likewise.
37260 * lib/xsetenv.c: Likewise.
37262 * modules/stdlib: New file.
37263 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37264 and extra comments about mkstemp().
37265 * lib/exit.h: Remove file.
37266 * lib/mkdtemp.h: Remove file.
37267 * lib/mkstemp.h: Remove file.
37268 * m4/stdlib_h.m4: New file.
37269 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37271 2007-02-18 Bruno Haible <bruno@clisp.org>
37273 * modules/math-tests: New file.
37274 * tests/test-math.c: New file.
37276 * modules/math: New file.
37277 * modules/mathl (Files): Remove lib/mathl.h.
37278 (Depends-on): Add math.
37279 (Makefile.am): Don't mention mathl.h.
37280 (Include): Use <math.h> instead of mathl.h.
37281 * lib/math_.h: New file.
37282 * lib/mathl.h: Remove file.
37283 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37285 * lib/asinl.c: Likewise.
37286 * lib/atanl.c: Likewise.
37287 * lib/ceill.c: Likewise.
37288 * lib/cosl.c: Likewise.
37289 * lib/expl.c: Likewise.
37290 * lib/floorl.c: Likewise.
37291 * lib/frexpl.c: Likewise.
37292 * lib/ldexpl.c: Likewise.
37293 * lib/logl.c: Likewise.
37294 * lib/sincosl.c: Likewise.
37295 * lib/sinl.c: Likewise.
37296 * lib/sqrtl.c: Likewise.
37297 * lib/tanl.c: Likewise.
37298 * lib/trigl.c: Likewise.
37299 * m4/math_h.m4: New file.
37300 * MODULES.html.sh (Mathematics): Add math.
37302 2007-02-17 Bruno Haible <bruno@clisp.org>
37304 * modules/wctype-tests: New file.
37305 * tests/test-wctype.c: New file.
37307 * modules/wchar-tests: New file.
37308 * tests/test-wchar.c: New file.
37310 * modules/unistd-tests: New file.
37311 * tests/test-unistd.c: New file.
37313 * modules/time-tests: New file.
37314 * tests/test-time.c: New file.
37316 * modules/sysexits-tests: New file.
37317 * tests/test-sysexits.c: New file.
37319 * modules/sys_time-tests: New file.
37320 * tests/test-sys_time.c: New file.
37322 * modules/sys_stat-tests: New file.
37323 * tests/test-sys_stat.c: New file.
37325 * modules/sys_socket-tests: New file.
37326 * tests/test-sys_socket.c: New file.
37328 * modules/sys_select-tests: New file.
37329 * tests/test-sys_select.c: New file.
37331 * modules/string-tests: New file.
37332 * tests/test-string.c: New file.
37334 * modules/stdbool-tests: New file.
37335 * tests/test-stdbool.c: New file.
37337 * modules/netinet_in-tests: New file.
37338 * tests/test-netinet_in.c: New file.
37340 * modules/inttypes-tests: New file.
37341 * tests/test-inttypes.c: New file.
37343 * modules/fcntl-tests: New file.
37344 * tests/test-fcntl.c: New file.
37346 * modules/byteswap-tests: New file.
37347 * tests/test-byteswap.c: New file.
37349 * modules/arpa_inet-tests: New file.
37350 * tests/test-arpa_inet.c: New file.
37352 2007-02-17 Bruno Haible <bruno@clisp.org>
37354 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37355 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37356 if the corresponding module is not enabled. Emit link warnings if
37357 the function is used nevertheless.
37358 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37359 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37360 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37361 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37362 * modules/inttypes (Depends-on): Add link-warning.
37363 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37364 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37365 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37366 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37367 * modules/imaxdiv (configure.ac): Likewise.
37368 * modules/strtoimax (configure.ac): Likewise.
37369 * modules/strtoumax (configure.ac): Likewise.
37371 2007-02-17 Bruno Haible <bruno@clisp.org>
37373 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37374 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37375 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37376 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37378 2007-02-17 Bruno Haible <bruno@clisp.org>
37380 * modules/link-warning: New file.
37381 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37382 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37383 * modules/string (Depends-on): Add link-warning.
37384 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37386 * MODULES.html.sh (Support for building libraries and executables): Add
37389 2007-02-17 Bruno Haible <bruno@clisp.org>
37391 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37392 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37393 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37396 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37397 Bruno Haible <bruno@clisp.org>
37399 * modules/tmpfile: New file.
37400 * lib/tmpfile.c: New file.
37401 * m4/tmpfile.m4: New file.
37402 * MODULES.html.sh (func_all_modules): New section "Input/output".
37404 2007-02-15 Bruno Haible <bruno@clisp.org>
37406 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37407 (supports_delete_on_close): New function.
37408 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37410 2007-02-14 Bruno Haible <bruno@clisp.org>
37412 * modules/mbspcasecmp-tests: New file.
37413 * tests/test-mbspcasecmp.sh: New file.
37414 * tests/test-mbspcasecmp.c: New file.
37416 New module mbspcasecmp.
37417 * modules/mbspcasecmp: New file.
37418 * lib/mbspcasecmp.c: New file.
37419 * lib/string_.h (strncasecmp): Change warning message.
37420 (mbspcasecmp): New declaration.
37421 * m4/mbspcasecmp.m4: New file.
37422 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37423 GNULIB_MBSPCASECMP.
37424 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37425 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37427 2007-02-14 Bruno Haible <bruno@clisp.org>
37429 * modules/mbsncasecmp-tests: New file.
37430 * tests/test-mbsncasecmp.sh: New file.
37431 * tests/test-mbsncasecmp.c: New file.
37433 New module mbsncasecmp.
37434 * modules/mbsncasecmp: New file.
37435 * lib/mbsncasecmp.c: New file.
37436 * lib/string_.h (mbsncasecmp): New declaration.
37437 * m4/mbsncasecmp.m4: New file.
37438 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37439 GNULIB_MBSNCASECMP.
37440 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37441 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37443 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37445 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37446 Verify that it doesn't overlap with our flags.
37447 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37448 do not have the desired effect in multibyte locales; instead, use
37450 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37451 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37452 we don't require GNU fnmatch ourselves (if our users require it, they
37453 should do so explicitly).
37455 Fix regex code so it doesn't rely on strcasecmp.
37456 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37457 Otherwise, include gnulib's langinfo.h.
37458 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37459 undesirable behavior in non-C locales. Instead, rely on localecharset.
37460 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37461 * modules/regex (FILES): Remove m4/codeset.m4.
37462 (Depends-on): Add localcharset. Remove strcase.
37464 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37466 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37467 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37469 2007-02-13 Bruno Haible <bruno@clisp.org>
37471 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37472 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37474 2007-02-12 Bruno Haible <bruno@clisp.org>
37476 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37477 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37478 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37479 time warning rather than a link error.
37481 2007-02-12 Bruno Haible <bruno@clisp.org>
37483 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37484 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37485 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37487 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37489 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37492 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37494 New module 'time', so that apps can include <time.h> as per
37495 POSIX and GNU instead of separate include files like time_r.h
37496 and timegm.h. This implementation tries out a simpler approach
37497 for replacing decls in standard include files (as compared to
37498 the string module), somewhat as an experiment.
37500 * config/srclist.txt: Comment out mktime.c for now.
37501 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37502 since it doesn't apply any more. Use generic wording instead.
37503 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37505 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37506 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37507 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37508 Don't include <sys/types.h>; no longer needed since we assume C89.
37509 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37510 * lib/strftime.c: Likewise.
37511 * lib/time_r.c: Likewise.
37512 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37513 * lib/nanosleep.c: Include <time.h> first, to check interface.
37514 * lib/strptime.c: Likewise.
37515 * lib/time_r.c: Likewise.
37516 * lib/timegm.c: Likewise.
37517 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37519 * lib/timegm.c: Don't include timegm.h; no longer needed.
37520 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37521 time.h now handles any problems in that area.
37522 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37523 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37524 that time.h defines struct timespec.
37525 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37526 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37528 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37529 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37530 needed. Set REPLACE_LOCALTIME.
37531 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37532 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37533 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37534 nanosleep; time_h.m4 now does that. Don't require
37535 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37536 module handles this now.
37537 * modules/getdate (Depends-on): Remove timespec. Add time.
37538 * modules/nanosleep (Depends-on): Likewise.
37539 * modules/stat-time (Depends-on): Likewise.
37540 * modules/nanosleep (Include): Include time.h, not timespec.h.
37541 * modules/strptime (Files): Remove lib/strptime.h.
37542 (Depends-on): Add extensions, time.
37543 (Include): Include time.h, not strptime.h.
37544 * modules/time_r (Files): Remove lib/time_r.h.
37545 (Depends-on): Add time.
37546 (Include): Include time.h, not time_r.h.
37547 * modules/timegm: Likewise.
37548 * modules/timespec (Description): Now does timespec-related decls
37549 of our own, instead of struct timespec itself.
37550 (Depends-on): Add time; remove extensions.
37551 (Maintainer): Add self.
37552 * modules/utimecmp (Depends-on): Add time; remove timespec.
37553 * modules/utimens (Depends-on): Likewise.
37554 * modules/xnanosleep (Depends-on): Likewise.
37556 2007-02-11 Bruno Haible <bruno@clisp.org>
37558 * lib/c-strstr.c: Include allocsa.h.
37559 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37560 * lib/c-strcasestr.c: Include allocsa.h.
37561 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37562 * lib/strcasestr.c: Include allocsa.h.
37563 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37564 * lib/mbsstr.c: Include allocsa.h.
37565 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37566 allocsa/freesa instead of malloc/free.
37567 * lib/mbscasestr.c: Include allocsa.h.
37568 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37569 allocsa/freesa instead of malloc/free.
37570 * modules/c-strstr (Depends-on): Add allocsa.
37571 * modules/c-strcasestr (Depends-on): Likewise.
37572 * modules/strcasestr (Depends-on): Likewise.
37573 * modules/mbsstr (Depends-on): Likewise.
37574 * modules/mbscasestr (Depends-on): Likewise.
37576 2007-02-11 Bruno Haible <bruno@clisp.org>
37578 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37580 * modules/mbsspn-tests: New file.
37581 * tests/test-mbsspn.sh: New file.
37582 * tests/test-mbsspn.c: New file.
37584 2007-02-11 Bruno Haible <bruno@clisp.org>
37586 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37588 * modules/mbspbrk-tests: New file.
37589 * tests/test-mbspbrk.sh: New file.
37590 * tests/test-mbspbrk.c: New file.
37592 2007-02-11 Bruno Haible <bruno@clisp.org>
37594 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37597 * modules/mbscspn-tests: New file.
37598 * tests/test-mbscspn.sh: New file.
37599 * tests/test-mbscspn.c: New file.
37601 2007-02-11 Bruno Haible <bruno@clisp.org>
37603 * modules/mbscasecmp-tests: New file.
37604 * tests/test-mbscasecmp.sh: New file.
37605 * tests/test-mbscasecmp.c: New file.
37607 2007-02-11 Bruno Haible <bruno@clisp.org>
37609 Ensure O(n) worst-case complexity of mbscasestr.
37610 * lib/mbscasestr.c: Include stdbool.h.
37611 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37613 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37614 the bookkeeping indicates that it's worth it.
37615 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37617 * modules/mbscasestr-tests: New file.
37618 * tests/test-mbscasestr1.c: New file.
37619 * tests/test-mbscasestr2.sh: New file.
37620 * tests/test-mbscasestr2.c: New file.
37621 * tests/test-mbscasestr3.sh: New file.
37622 * tests/test-mbscasestr3.c: New file.
37623 * tests/test-mbscasestr4.sh: New file.
37624 * tests/test-mbscasestr4.c: New file.
37625 * m4/locale-tr.m4: New file.
37627 2007-02-11 Bruno Haible <bruno@clisp.org>
37629 Ensure O(n) worst-case complexity of mbsstr.
37630 * lib/mbsstr.c: Include stdbool.h.
37631 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37633 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37634 bookkeeping indicates that it's worth it.
37635 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37637 * modules/mbsstr-tests: New file.
37638 * tests/test-mbsstr1.c: New file.
37639 * tests/test-mbsstr2.sh: New file.
37640 * tests/test-mbsstr2.c: New file.
37641 * tests/test-mbsstr3.sh: New file.
37642 * tests/test-mbsstr3.c: New file.
37643 * m4/locale-fr.m4: New file.
37645 2007-02-11 Bruno Haible <bruno@clisp.org>
37647 * lib/mbsrchr.c (mbsrchr): Fix bug.
37649 * modules/mbsrchr-tests: New file.
37650 * tests/test-mbsrchr.sh: New file.
37651 * tests/test-mbsrchr.c: New file.
37653 2007-02-11 Bruno Haible <bruno@clisp.org>
37655 * lib/mbschr.c (mbschr): Fix bug.
37657 * modules/mbschr-tests: New file.
37658 * tests/test-mbschr.sh: New file.
37659 * tests/test-mbschr.c: New file.
37660 * m4/locale-zh.m4: New file.
37662 2007-02-11 Bruno Haible <bruno@clisp.org>
37664 Support for copying multibyte string iterators.
37665 * lib/mbiter.h: Include <string.h>.
37666 (mbiter_multi_copy): New function.
37667 (mbi_copy): New macro.
37668 * lib/mbuiter.h: Include <string.h>.
37669 (mbuiter_multi_copy): New function.
37670 (mbui_copy): New macro.
37672 2007-02-11 Bruno Haible <bruno@clisp.org>
37675 * modules/mbslen: New file.
37676 * lib/mbslen.c: New file.
37677 * lib/string_.h (mbslen): New declaration.
37678 * m4/mbslen.m4: New file.
37679 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37681 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37682 * MODULES.html.sh (Internationalization functions): Add mbslen.
37684 2007-02-11 Bruno Haible <bruno@clisp.org>
37686 Ensure O(n) worst-case complexity of strcasestr substitute.
37687 * lib/strcasestr.c: Include stdbool.h.
37688 (knuth_morris_pratt): New function.
37689 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37690 bookkeeping indicates that it's worth it.
37691 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37693 * modules/strcasestr-tests: New file.
37694 * tests/test-strcasestr.c: New file.
37696 2007-02-11 Bruno Haible <bruno@clisp.org>
37698 Ensure O(n) worst-case complexity of c_strcasestr.
37699 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37700 (knuth_morris_pratt): New function.
37701 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37702 the bookkeeping indicates that it's worth it.
37703 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37705 * modules/c-strcasestr-tests: New file.
37706 * tests/test-c-strcasestr.c: New file.
37708 2007-02-11 Bruno Haible <bruno@clisp.org>
37710 Ensure O(n) worst-case complexity of c_strstr.
37711 * lib/c-strstr.c: Include stdbool.h, string.h.
37712 (knuth_morris_pratt): New function.
37713 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37714 bookkeeping indicates that it's worth it.
37715 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37717 * lib/c-strstr.c: Complete rewrite for maintainability.
37719 * modules/c-strstr-tests: New file.
37720 * tests/test-c-strstr.c: New file.
37722 2007-02-11 Bruno Haible <bruno@clisp.org>
37724 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37725 5.2.1 and earlier, whereby \055 was treated just like the range
37727 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37729 2007-02-08 Bruno Haible <bruno@clisp.org>
37731 * modules/regex (Depends-on): Add stdbool.
37732 Reported by Dalibor Topic <robilad@kaffe.org>.
37734 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37736 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37737 Prefer returning from main to exiting from it.
37738 Remove unnecessary parens after sizeof.
37740 2007-02-05 Bruno Haible <bruno@clisp.org>
37743 * modules/mbssep: New file.
37744 * lib/mbssep.c: New file.
37745 * lib/string_.h (strsep): Add a conditional link warning.
37746 (mbssep): New declaration.
37747 * m4/mbssep.m4: New file.
37748 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37750 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37751 * MODULES.html.sh (Internationalization functions): Add mbssep.
37753 2007-02-05 Bruno Haible <bruno@clisp.org>
37755 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37756 Optimize search in case of 1 delimiter.
37758 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37760 * lib/acl.h: Include sys/types.h before sys/acl.h.
37762 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37764 Merge upstream fix for glibc bugzilla #3957:
37766 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37768 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37769 bit for RE_HAT_LISTS_NOT_NEWLINE.
37770 (build_charclass_op): Remove bogus comment.
37772 2007-02-05 Simon Josefsson <simon@josefsson.org>
37774 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37776 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37778 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37779 * lib/memmem.c [!defined _LIBC]: Include config.h.
37781 2007-02-04 Bruno Haible <bruno@clisp.org>
37783 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37786 2007-02-04 Bruno Haible <bruno@clisp.org>
37788 New module mbstok_r.
37789 * modules/mbstok_r: New file.
37790 * lib/mbstok_r.c: New file.
37791 * lib/string_.h (strtok_r): Change argument names to match the
37792 comments. Add a conditional link warning.
37793 (mbstok_r): New declaration.
37794 * m4/mbstok_r.m4: New file.
37795 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37797 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37798 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37800 2007-02-04 Bruno Haible <bruno@clisp.org>
37803 * modules/mbsspn: New file.
37804 * lib/mbsspn.c: New file.
37805 * lib/string_.h (strspn): Add a conditional link warning.
37806 (mbsspn): New declaration.
37807 * m4/mbsspn.m4: New file.
37808 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37810 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37811 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37813 2007-02-04 Bruno Haible <bruno@clisp.org>
37815 New module mbspbrk.
37816 * modules/mbspbrk: New file.
37817 * lib/mbspbrk.c: New file.
37818 * lib/string_.h (strpbrk): Add a conditional link warning.
37819 (mbspbrk): New declaration.
37820 * m4/mbspbrk.m4: New file.
37821 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37823 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37824 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37826 2007-02-04 Bruno Haible <bruno@clisp.org>
37828 New module mbscspn.
37829 * modules/mbscspn: New file.
37830 * lib/mbscspn.c: New file.
37831 * lib/string_.h (strcspn): Add a conditional link warning.
37832 (mbscspn): New declaration.
37833 * m4/mbscspn.m4: New file.
37834 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37836 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37837 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37839 2007-02-04 Bruno Haible <bruno@clisp.org>
37841 New module mbscasestr, reduced goal of strcasestr.
37842 * modules/mbscasestr: New file.
37843 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37844 (mbscasestr): Renamed from strcasestr.
37845 * lib/strcasestr.c: Don't include mbuiter.h.
37846 (strcasestr): Remove support for multibyte locales.
37847 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37848 Change the conditional link warning.
37849 (mbscasestr): New declaration.
37850 * m4/mbscasestr.m4: New file.
37851 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37852 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37853 REPLACE_STRCASESTR.
37854 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37855 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37856 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37857 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37858 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37859 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37860 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37861 (Depends-on): Remove mbuiter.
37862 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37864 2007-02-04 Bruno Haible <bruno@clisp.org>
37866 Simplify handling of strncasecmp.
37867 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37868 the conditional link warning.
37869 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37870 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37871 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37872 * modules/strcase (configure.ac): Don't invoke
37873 gl_STRING_MODULE_INDICATOR.
37874 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37876 2007-02-04 Bruno Haible <bruno@clisp.org>
37878 New module mbscasecmp, reduced goal of strcasecmp.
37879 * modules/mbscasecmp: New file.
37880 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37881 (mbscasecmp): Renamed from strcasecmp.
37882 * lib/strcasecmp.c: Don't include mbuiter.h.
37883 (strcasecmp): Remove support for multibyte locales.
37884 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37885 Change the conditional link warning.
37886 (mbscasecmp): New declaration.
37887 * m4/mbscasecmp.m4: New file.
37888 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37889 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37890 REPLACE_STRCASECMP.
37891 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37892 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37894 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37895 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37896 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37897 (Depends-on): Remove mbuiter.
37898 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37900 2007-02-04 Bruno Haible <bruno@clisp.org>
37902 New module mbsstr. Remove module strstr.
37903 * modules/mbsstr: New file.
37904 * modules/strstr: Remove file.
37905 * lib/mbsstr.c: Renamed from lib/strstr.c.
37906 (mbsstr): Renamed from strstr.
37907 * lib/string_.h (strstr): Remove declaration. Change the conditional
37909 (mbsstr): New declaration.
37910 * m4/mbsstr.m4: New file.
37911 * m4/strstr.m4: Remove file.
37912 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37914 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37915 Don't initialize GNULIB_STRSTR.
37916 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37917 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37918 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37919 (Support for systems lacking ANSI C 89): Remove strstr.
37921 2007-02-04 Bruno Haible <bruno@clisp.org>
37923 New module mbsrchr.
37924 * modules/mbsrchr: New file.
37925 * lib/mbsrchr.c: New file.
37926 * lib/string_.h (strrchr): Add a conditional link warning.
37927 (mbsrchr): New declaration.
37928 * m4/mbsrchr.m4: New file.
37929 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37931 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37932 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37934 2007-02-04 Bruno Haible <bruno@clisp.org>
37937 * modules/mbschr: New file.
37938 * lib/mbschr.c: New file.
37939 * lib/string_.h (strchr): Add a conditional link warning.
37940 (mbschr): New declaration.
37941 * m4/mbschr.m4: New file.
37942 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37944 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37945 * MODULES.html.sh (Internationalization functions): Add mbschr.
37947 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37949 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37951 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37953 2007-02-04 Bruno Haible <bruno@clisp.org>
37955 New module description section 'configure.ac-early'.
37956 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37957 (func_get_autoconf_early_snippet): New function.
37958 (func_import, func_create_testdir): Use it. Remove special cases for
37959 modules 'extensions' and 'lock'.
37960 * modules/extensions (configure.ac-early): Require
37961 gl_USE_SYSTEM_EXTENSIONS.
37962 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37964 2007-02-04 Bruno Haible <bruno@clisp.org>
37966 Make use of gcj-4.3's -fsource and -ftarget option.
37967 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37968 and if so try the options -fsource and -ftarget.
37969 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37970 source_version, ftarget_option, target_version arguments.
37971 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37972 (is_envjavac_oldgcj_14_14_usable): Renamed from
37973 is_envjavac_gcj_14_14_usable.
37974 (is_envjavac_oldgcj_14_13_usable): Renamed from
37975 is_envjavac_gcj_14_13_usable.
37976 (is_gcj_present): Update.
37977 (is_gcj_43, is_gcj43_usable): New functions.
37978 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37979 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37980 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37981 try the options -fsource and -ftarget.
37983 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37985 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37986 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37989 2007-02-03 Jim Meyering <jim@meyering.net>
37991 Give tools a better chance to allocate space for very large buffers.
37992 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37994 Make pwd and readlink work also when run with an unreadable parent dir
37995 on systems with openat support.
37996 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37997 provided getcwd function, even when we have openat support.
37998 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38000 2007-02-02 Bruno Haible <bruno@clisp.org>
38002 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38003 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38004 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38005 portability problems if one of these functions is only used on specific
38007 Reported by Paul Eggert.
38009 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
38011 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38012 is causing more trouble than it's curing.
38013 * lib/regex_internal.h (__mempcpy): Remove.
38014 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38015 (and make the code a tad smaller to boot).
38016 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38018 2007-02-02 Jim Meyering <jim@meyering.net>
38020 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38021 section, not in the Makefile.am: one.
38023 2007-02-02 Eric Blake <ebb9@byu.net>
38025 * lib/strchrnul.c: Always include config.h first.
38027 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38028 gnulib strstr is not necessary here.
38030 2007-02-02 Simon Josefsson <simon@josefsson.org>
38032 * m4/socklen.m4: Fix typo.
38034 2007-02-02 Eric Blake <ebb9@byu.net>
38036 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38037 * modules/netinet_in (Makefile.am): Likewise.
38039 2007-02-01 Bruno Haible <bruno@clisp.org>
38041 * lib/string_.h (GL_LINK_WARNING): New macro.
38042 (strcasecmp, strstr, strcasestr): If provided by the system,
38043 conditionally define as a macro that leads to a warning instead of to
38045 (strncasecmp): Conditionally define as a macro that leads to a warning.
38047 2007-02-01 Karl Berry <karl@gnu.org>
38049 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38051 2007-02-01 Bruno Haible <bruno@clisp.org>
38053 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38056 2007-02-01 Eric Blake <ebb9@byu.net>
38058 * modules/regex (Depends-on): Revert dependence on mempcpy.
38059 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38060 module's definition of mempcpy.
38061 Reported by Paul Eggert.
38063 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38065 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38066 the symbol XYZ before redefining it. This fixes a problem with
38067 programs that don't use XYZ, when compiled on systems that define
38068 XYZ to something else.
38070 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38072 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38073 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38074 writeable to group or other and (2) is intended to have a special
38075 mode bit that is set or cleared. In such a case, the directory
38076 should be neither group- nor other-writeable until the special
38077 mode bits are right.
38079 2007-01-31 Eric Blake <ebb9@byu.net>
38081 * modules/mountlist (Depends-on): Add strstr.
38083 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38085 * modules/string (Makefile.am): Remove redundant replacement.
38086 * modules/regex (Depends-on): Add mempcpy.
38088 2007-01-31 Bruno Haible <bruno@clisp.org>
38090 New module description field 'Link'.
38091 * gnulib-tool (func_usage): Document --extract-link-directive.
38092 (sed_extract_prog): Recognize 'Link' directive.
38093 (func_get_link_directive): New function.
38094 (func_import): Show summary of link directives.
38095 Handle --extract-link-directive option.
38096 * modules/acl (Link): New section.
38097 * modules/clock-time (Link): New section.
38098 * modules/euidaccess (Link): New section.
38099 * modules/gettext (Link): New section.
38100 * modules/iconv (Link): New section.
38101 * modules/lock (Link): New section.
38102 * modules/nanosleep (Link): New section.
38103 * modules/readline (Link): New section.
38105 2007-01-27 Bruno Haible <bruno@clisp.org>
38107 Enforce the use of gnulib modules for unportable <string.h> functions.
38108 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38109 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38110 (gl_HEADER_STRING_H_BODY): Require it.
38111 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38112 the symbol XYZ to one that gives a link error.
38113 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38114 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38115 * modules/mempcpy (configure.ac): Likewise.
38116 * modules/memrchr (configure.ac): Likewise.
38117 * modules/stpcpy (configure.ac): Likewise.
38118 * modules/stpncpy (configure.ac): Likewise.
38119 * modules/strcase (configure.ac): Likewise.
38120 * modules/strcasestr (configure.ac): Likewise.
38121 * modules/strchrnul (configure.ac): Likewise.
38122 * modules/strdup (configure.ac): Likewise.
38123 * modules/strndup (configure.ac): Likewise.
38124 * modules/strnlen (configure.ac): Likewise.
38125 * modules/strpbrk (configure.ac): Likewise.
38126 * modules/strsep (configure.ac): Likewise.
38127 * modules/strstr (configure.ac): Likewise.
38128 * modules/strtok_r (configure.ac): Likewise.
38130 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38132 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38134 2007-01-30 Jim Meyering <jim@meyering.net>
38136 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38138 2007-01-29 Bruno Haible <bruno@clisp.org>
38140 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38141 * lib/execute.c: Likewise.
38142 * lib/pipe.c: Likewise.
38143 * lib/printf-args.h: Likewise.
38144 * lib/printf-args.c: Likewise.
38145 * lib/printf-parse.c: Likewise.
38146 * lib/vasnprintf.c: Likewise.
38148 2007-01-29 Eric Blake <ebb9@byu.net>
38150 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38153 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38155 * lib/strptime.h (strptime): Use 'restrict' for args where
38156 POSIX requires this.
38157 * lib/strptime.c (strptime): Likewise.
38158 Change license notice from LGPL to GPL, since gnulib-tool will
38159 change this as needed.
38160 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38162 Include "strptime.h" first, to check interface.
38163 Do not #undef _LIBC and _NL_CURRENT.
38164 Do not include <stdlib.h>; no longer needed.
38165 Include "time_r.h" and declare ptime_locale_status
38166 only if _LIBC is not defined.
38167 (__P): Remove unused macro.
38168 (match_string): Bring back glibc version, but use it only if _LIBC
38170 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38171 Remove unnecessary assertion and abort() call.
38172 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38173 * m4/strptime.m4: Fix serial number comment.
38174 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38175 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38176 (Depends-on): Add time_r.
38178 2007-01-29 Bruno Haible <bruno@clisp.org>
38180 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38182 * modules/strptime (Depends-on): Add stdbool.
38183 * lib/strptime.h: Include <time.h> always. Add comments.
38185 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38187 * modules/strptime: New file.
38188 * lib/strptime.h: New file.
38189 * lib/strptime.c: New file.
38190 * m4/strptime.m4: New file.
38192 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38194 * MODULES.html.sh: New module mpsort.
38195 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38197 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38198 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38199 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38201 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38203 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38205 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38206 the parameter matches the prototype.
38208 2007-01-28 Jim Meyering <jim@meyering.net>
38210 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38211 sys/time.h here, reverting that part of the previous patch:
38212 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38214 2007-01-28 Bruno Haible <bruno@clisp.org>
38216 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38217 value of $(SYS_TIME_H).
38218 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38219 remove it conditionally, too. [added by Jim Meyering]
38220 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38221 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38222 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38223 GETTIMEOFDAY_REPLACEMENT to 1.
38225 2007-01-28 Bruno Haible <bruno@clisp.org>
38227 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38228 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38229 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38230 Set UNISTD_H instead of UNISTD_H2.
38231 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38233 2007-01-28 Bruno Haible <bruno@clisp.org>
38235 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38236 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38238 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38240 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38241 (func_create_testdir): Ensure C locale for `grep' and `tr'
38243 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38244 ACLOCAL_AMFLAGS parsing state machine.
38246 2007-01-27 Bruno Haible <bruno@clisp.org>
38248 * modules/unistr/base: Update.
38250 2007-01-27 Bruno Haible <bruno@clisp.org>
38252 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38253 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38254 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38255 modules/unistr/u32-mbtouc.
38256 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38257 * lib/unistr.h: Update.
38258 * lib/linebreak.c: Update.
38259 * modules/unistr/u32-mbtouc: Renamed from
38260 modules/unistr/u32-mbtouc-safe.
38261 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38262 * lib/unistr.h: Update.
38263 * lib/unistr/u32-to-u8.c: Update.
38264 * lib/unistr/u32-to-u16.c: Update.
38266 2007-01-27 Bruno Haible <bruno@clisp.org>
38268 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38269 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38270 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38271 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38272 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38273 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38274 modules/unistr/u16-mbtouc.
38275 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38276 * lib/unistr.h: Update.
38277 * lib/linebreak.c: Update.
38278 * modules/linebreak: Update.
38279 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38280 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38281 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38282 * modules/unistr/u16-mbtouc: Renamed from
38283 modules/unistr/u16-mbtouc-safe.
38284 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38285 * lib/unistr.h: Update.
38286 * lib/unistr/u16-to-u8.c: Update.
38287 * modules/unistr/u16-to-u8: Update.
38288 * lib/unistr/u16-to-u32.c: Update.
38289 * modules/unistr/u16-to-u32: Update.
38291 2007-01-27 Bruno Haible <bruno@clisp.org>
38293 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38294 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38295 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38296 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38297 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38298 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38299 modules/unistr/u8-mbtouc.
38300 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38301 * lib/unistr.h: Update.
38302 * lib/striconveh.c: Update.
38303 * modules/striconveh: Update.
38304 * lib/linebreak.c: Update.
38305 * modules/linebreak: Update.
38306 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38307 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38308 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38309 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38310 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38311 * lib/unistr.h: Update.
38312 * lib/striconveh.c: Update.
38313 * modules/striconveh: Update.
38314 * lib/unistr/u8-to-u16.c: Update.
38315 * modules/unistr/u8-to-u16: Update.
38316 * lib/unistr/u8-to-u32.c: Update.
38317 * modules/unistr/u8-to-u32: Update.
38319 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38322 * lib/argz.c: Do not include strings.h nor memory.h, include
38323 string.h unconditionally. Patch by Simon Josefsson.
38325 2007-01-27 Bruno Haible <bruno@clisp.org>
38327 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38328 from gl_HEADER_STRING_H_BODY.
38329 (gl_HEADER_STRING_H_BODY): Require it.
38330 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38331 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38332 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38333 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38334 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38335 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38336 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38337 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38338 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38339 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38340 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38341 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38342 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38343 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38344 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38346 2007-01-27 Bruno Haible <bruno@clisp.org>
38348 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38349 check_PROGRAMS into noinst_PROGRAMS.
38350 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38351 check_PROGRAMS in this case.
38352 (func_import): Set for_test to false.
38353 (func_create_testdir): Set for_test to true.
38355 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38356 Bruno Haible <bruno@clisp.org>
38358 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38359 (Depends-on): Add string.
38360 (Includes): Use <string.h> instead of strcasestr.h.
38361 * modules/string (Makefile.am): Also substitute the value of
38362 REPLACE_STRCASESTR.
38363 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38364 assume strcasestr is declared in <string.h> not <strings.h>. Also
38365 set REPLACE_STRCASESTR.
38366 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38367 REPLACE_STRCASESTR.
38368 * lib/strcasestr.h: Remove file.
38369 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38370 * lib/string_.h (strcasestr): New declaration.
38372 2007-01-27 Bruno Haible <bruno@clisp.org>
38374 * lib/string_.h: Use 'extern'.
38376 2007-01-27 Jim Meyering <jim@meyering.net>
38378 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38379 of set-but-not-used local, "q".
38381 * lib/mempcpy.c: Include <config.h> before <string.h>.
38382 This fixes a compilation error on HP-UX, due to the system's
38383 "restrict"-using mempcpy prototype.
38385 2007-01-26 Bruno Haible <bruno@clisp.org>
38387 Small optimization.
38388 * lib/javacomp.c: Include c-strstr.h.
38389 (is_envjavac_gcj): Use c_strstr instead of strstr.
38390 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38392 2007-01-26 Bruno Haible <bruno@clisp.org>
38394 * MODULES.html.sh (Unicode string functions): Add the new modules.
38396 * modules/uniconv/u32-strconv-to-locale: New file.
38397 * lib/uniconv/u32-strconv-to-locale.c: New file.
38399 * modules/uniconv/u16-strconv-to-locale: New file.
38400 * lib/uniconv/u16-strconv-to-locale.c: New file.
38402 * modules/uniconv/u8-strconv-to-locale: New file.
38403 * lib/uniconv/u8-strconv-to-locale.c: New file.
38405 * modules/uniconv/u32-strconv-from-locale: New file.
38406 * lib/uniconv/u32-strconv-from-locale.c: New file.
38408 * modules/uniconv/u16-strconv-from-locale: New file.
38409 * lib/uniconv/u16-strconv-from-locale.c: New file.
38411 * modules/uniconv/u8-strconv-from-locale: New file.
38412 * lib/uniconv/u8-strconv-from-locale.c: New file.
38414 * modules/uniconv/u32-strconv-to-enc: New file.
38415 * lib/uniconv/u32-strconv-to-enc.c: New file.
38416 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38417 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38419 * modules/uniconv/u16-strconv-to-enc: New file.
38420 * lib/uniconv/u16-strconv-to-enc.c: New file.
38421 * lib/uniconv/u-strconv-to-enc.h: New file.
38422 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38423 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38425 * modules/uniconv/u8-strconv-to-enc: New file.
38426 * lib/uniconv/u8-strconv-to-enc.c: New file.
38427 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38428 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38430 * modules/uniconv/u32-strconv-from-enc: New file.
38431 * lib/uniconv/u32-strconv-from-enc.c: New file.
38432 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38433 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38435 * modules/uniconv/u16-strconv-from-enc: New file.
38436 * lib/uniconv/u16-strconv-from-enc.c: New file.
38437 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38438 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38440 * modules/uniconv/u8-strconv-from-enc: New file.
38441 * lib/uniconv/u8-strconv-from-enc.c: New file.
38442 * lib/uniconv/u-strconv-from-enc.h: New file.
38443 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38444 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38446 * modules/uniconv/u32-conv-from-enc: New file.
38447 * lib/uniconv/u32-conv-from-enc.c: New file.
38448 * modules/uniconv/u32-conv-from-enc-tests: New file.
38449 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38451 * modules/uniconv/u16-conv-from-enc: New file.
38452 * lib/uniconv/u16-conv-from-enc.c: New file.
38453 * lib/uniconv/u-conv-from-enc.h: New file.
38454 * modules/uniconv/u16-conv-from-enc-tests: New file.
38455 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38457 * modules/uniconv/u8-conv-from-enc: New file.
38458 * lib/uniconv/u8-conv-from-enc.c: New file.
38459 * modules/uniconv/u8-conv-from-enc-tests: New file.
38460 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38462 * modules/uniconv/base: New file.
38463 * lib/uniconv.h: New file.
38465 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38467 * doc/gnulib-tool.texi (Initial import): Update to match current
38468 behavior with strdup module.
38469 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38470 * lib/memmem.h: Remove; all uses removed. This is now done
38472 * lib/mempcpy.h: Likewise.
38473 * lib/memrchr.h: Likewise.
38474 * lib/stpcpy.h: Likewise.
38475 * lib/stpncpy.h: Likewise.
38476 * lib/strcase.h: Likewise.
38477 * lib/strchrnul.h: Likewise.
38478 * lib/strdup.h: Likewise.
38479 * lib/strndup.h: Likewise.
38480 * lib/strnlen.h: Likewise.
38481 * lib/strpbrk.h: Likewise.
38482 * lib/strsep.h: Likewise.
38483 * lib/strstr.h: Likewise.
38484 * lib/strtok_r.h: Likewise.
38485 * lib/string_.h: New file.
38486 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38487 Rely on <string.h> instead.
38488 * lib/canon-host.c: Likewise.
38489 * lib/chdir-long.c: Likewise.
38490 * lib/concatpath.c: Likewise.
38491 * lib/exclude.c: Likewise.
38492 * lib/fchdir.c: Likewise.
38493 * lib/getaddrinfo.c: Likewise.
38494 * lib/getcwd.c: Likewise.
38495 * lib/getsubopt.c: Likewise.
38496 * lib/glob.c: Likewise.
38497 * lib/hard-locale.c: Likewise.
38498 * lib/iconvme.c: Likewise.
38499 * lib/javacomp.c: Likewise.
38500 * lib/mempcpy.c: Likewise.
38501 * lib/memrchr.c: Likewise.
38502 * lib/regex_internal.h: Likewise.
38503 * lib/stpncpy.c: Likewise.
38504 * lib/strcasecmp.c: Likewise.
38505 * lib/strchrnul.c: Likewise.
38506 * lib/strdup.c: Likewise.
38507 * lib/striconv.c: Likewise.
38508 * lib/striconveh.c: Likewise.
38509 * lib/striconveha.c: Likewise.
38510 * lib/strncasecmp.c: Likewise.
38511 * lib/strndup.c: Likewise.
38512 * lib/strnlen.c: Likewise.
38513 * lib/strsep.c: Likewise.
38514 * lib/strstr.c: Likewise.
38515 * lib/strtok_r.c: Likewise.
38516 * lib/userspec.c: Likewise.
38517 * lib/w32spawn.h: Likewise.
38518 * lib/xstrndup.c: Likewise.
38519 * lib/mountlist.c (strstr): Remove decl.
38520 * m4/string_h.m4: New file.
38521 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38522 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38523 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38524 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38525 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38526 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38527 Set REPLACE_STRCASECMP if necessary.
38528 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38529 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38530 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38531 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38532 HAVE_DECL_STRDUP if necessary.
38533 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38534 since gl_FUNC_STRNDUP does that now.
38535 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38536 Check for decl here...
38537 (gl_PREREQ_STRNLEN): ... not here.
38538 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38539 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38540 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38541 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38543 * modules/string: New file.
38544 * modules/memmem (Files): Remove special-purpose include file.
38545 (Depends-on): Add string.
38546 (Include): Include <string.h>, not the removed file.
38547 * modules/mempcpy: Likewise.
38548 * modules/memrchr: Likewise.
38549 * modules/stpcpy: Likewise.
38550 * modules/stpncpy: Likewise.
38551 * modules/strcase: Likewise.
38552 * modules/strchrnul: Likewise.
38553 * modules/strdup: Likewise.
38554 * modules/strndup: Likewise.
38555 * modules/strnlen: Likewise.
38556 * modules/strpbrk: Likewise.
38557 * modules/strsep: Likewise.
38558 * modules/strstr: Likewise.
38559 * modules/strtok_r: Likewise.
38560 * tests/test-dirname.c: Don't include "strdup.h", since
38561 <string.h> now suffices.
38562 * tests/test-memmem.c: Don't include "memmem.h", since
38563 <string.h> now suffices.
38565 2007-01-25 Bruno Haible <bruno@clisp.org>
38567 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38570 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38571 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38572 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38573 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38575 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38576 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38577 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38578 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38579 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38580 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38582 2007-01-24 Bruno Haible <bruno@clisp.org>
38584 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38585 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38586 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38587 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38589 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38590 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38591 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38592 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38593 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38594 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38596 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38598 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38599 Reported by Ralf Wildenhues.
38601 2007-01-24 Bruno Haible <bruno@clisp.org>
38603 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38604 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38606 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38607 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38608 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38610 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38612 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38613 Don't use 'exit'; just return from 'main'.
38614 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38616 * lib/fnmatch_.h: Readjust white space and comments to match
38617 glibc, to avoid spurious diffs.
38619 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38621 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38622 2004-12-01 change by Jakub Jelinek, since this code won't compile
38623 if !LIBC. Problem reported by Bob Proulx.
38625 2007-01-23 Bruno Haible <bruno@clisp.org>
38627 * lib/striconveh.c: Include c-strcaseeq.h.
38628 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38629 * modules/striconveh (Depends-on): Add c-strcaseeq.
38631 2007-01-23 Bruno Haible <bruno@clisp.org>
38633 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38635 * modules/c-strcaseeq: New file.
38636 * lib/c-strcaseeq.h: New file.
38638 * modules/streq: New file.
38639 * lib/streq.h: New file.
38641 2007-01-23 Bruno Haible <bruno@clisp.org>
38643 * modules/striconveha-tests: New file.
38644 * tests/test-striconveha.c: New file.
38646 * lib/striconveha.h: Include <stdbool.h>.
38647 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38648 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38649 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38650 (mem_iconveha): New function.
38651 (str_iconveha_notranslit): Renamed from str_iconveha.
38652 (str_iconveha): New function.
38653 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38656 2007-01-23 Bruno Haible <bruno@clisp.org>
38658 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38659 encodings without forgiving before trying any encoding with handler.
38660 (str_iconveha): Try all encodings without forgiving before trying any
38661 encoding with handler.
38663 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38665 Import the following changes from libc.
38667 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38669 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38671 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38673 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38674 normal_bracket label.
38676 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38679 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38680 to normal_bracket after fetching the next character.
38682 2007-01-22 Bruno Haible <bruno@clisp.org>
38684 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38686 * lib/striconveh.c (iconv_carefully_1): New function.
38687 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38689 (str_cd_iconveh): Update.
38690 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38691 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38692 * tests/test-striconveh.c (MAGIC): New macro.
38693 (new_offsets): New function.
38694 (main): Test call with and without offsets.
38696 2007-01-22 Bruno Haible <bruno@clisp.org>
38698 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38699 * modules/sys_select (Makefile.am): Likewise.
38700 * modules/sys_socket (Makefile.am): Likewise.
38701 * modules/sys_time (Makefile.am): Likewise.
38703 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38705 * modules/gettimeofday (License): Change from GPL to LGPL, since
38706 gettimeofday is a library function.
38708 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38710 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38712 2007-01-21 Bruno Haible <bruno@clisp.org>
38714 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38716 2007-01-21 Bruno Haible <bruno@clisp.org>
38718 * modules/striconveha: New file.
38719 * lib/striconveha.h: New file.
38720 * lib/striconveha.c: New file.
38721 * MODULES.html.sh (Internationalization functions): Add striconveha.
38722 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38724 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38726 2007-01-21 Bruno Haible <bruno@clisp.org>
38728 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38729 * lib/striconveh.c (str_iconveh): Likewise.
38731 2007-01-21 Bruno Haible <bruno@clisp.org>
38733 * lib/striconveh.h (mem_iconveh): New declaration.
38734 * lib/striconveh.c (mem_iconveh): New function.
38735 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38737 2007-01-21 Bruno Haible <bruno@clisp.org>
38739 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38741 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38742 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38743 original result buffer.
38744 (str_cd_iconveh): Update.
38745 * tests/test-striconveh.c (main): Update.
38747 * lib/striconv.h (mem_cd_iconv): Change specification.
38748 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38750 (str_cd_iconv): Update.
38751 * tests/test-striconv.c (main): Update.
38753 2007-01-21 Bruno Haible <bruno@clisp.org>
38755 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38757 2007-01-20 Jim Meyering <jim@meyering.net>
38759 * lib/userspec.c (parse_with_separator): If a user or group string
38760 starts with "+", skip the corresponding name-to-ID look-up, since
38761 such a look-up must fail: user and group names may not include "+".
38763 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38765 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38766 since we now assume the sys_time module.
38767 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38768 check for sys/time.h; no longer needed.
38769 * modules/poll (Depends-on): Depend on sys_time.
38771 2007-01-18 Bruno Haible <bruno@clisp.org>
38773 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38774 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38776 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38779 * tests/test-gettimeofday.c: Include <time.h>.
38780 (dummy): Remove variable.
38782 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38783 gl_HEADER_SYS_TIME_H.
38784 (gl_HEADER_SYS_TIME_H): New macro.
38786 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38787 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38788 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38789 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38790 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38791 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38792 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38793 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38794 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38795 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38796 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38798 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38799 last change; it caused a compilation error when cross-compiling to
38802 2007-01-18 Jim Meyering <jim@meyering.net>
38804 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38805 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38806 than the race-prone "test -d sys || mkdir sys".
38807 (configure.ac): Use AC_PROG_MKDIR_P.
38808 * modules/sys_select: Likewise.
38809 * modules/sys_socket: Likewise.
38810 * modules/sys_time: Likewise.
38812 2007-01-18 Eric Blake <ebb9@byu.net>
38814 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38815 replace gettimeofday.
38816 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38817 name, to avoid infinite recursion.
38819 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38821 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38823 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38824 assume timespec.h defines struct timeval.
38825 * lib/settime.c: Likewise.
38826 * lib/utimens.c: Likewise.
38827 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38828 since we now assume the gettimeofday module.
38829 * lib/tempname.c (__gen_tempname): Likewise.
38830 * lib/gettimeofday.h: Remove.
38831 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38832 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38833 Include <time.h>, for 'time()'.
38834 (localtime_buffer_addr): Also use this workaround if
38835 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38836 to simplify the uses. All uses changed.
38837 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38838 that #undef is inside {}, and 'const' follows type name consistently.
38839 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38840 (gettimeofday): Do not use the maximum possible value for
38841 tv->tv_usec, since that might break usages other than ls.c.
38842 Instead, we'll leave ls.c alone. This undoes today's patch
38843 by Bruno. Add a compile-time warning for 1s-clock resolution;
38844 we've never observed the problem but might as well keep the
38846 * lib/nanosleep.c: Include timespec.h first, for interface check.
38847 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38848 now assume the sys_time module.
38849 * lib/tempname.c: Likewise.
38850 * lib/timespec.h: Likewise.
38851 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38853 * lib/strftime.c: Likewise.
38854 * lib/timespec.h: Likewise.
38855 * lib/posixtm.c: Include posixtm.h first, for interface check.
38856 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38857 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38858 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38859 * lib/sys_time_.h: New file.
38860 * lib/timespec.h (struct timespec): Use long int, not long.
38861 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38862 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38863 Remove obsolescent call to AC_HEADER_TIME.
38864 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38865 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38866 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38867 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38869 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38870 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38871 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38872 into the sys_time module. Check for gettimeofday just once.
38873 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38874 for gettimeofday signature to just check the signature. Merely
38875 compile it, since linking doesn't test signature. Improve test for
38876 whether gettimeofday.o is actually needed.
38877 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38878 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38879 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38880 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38881 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38882 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38883 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38884 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38885 than worrying about sys/time.h.
38886 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38887 Don't bother worrying about TIME_WITH_SYS_TIME.
38888 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38889 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38890 * m4/sys_time_h.m4: New file.
38891 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38892 Don't include sys/time.h. Return from main rather than exiting.
38893 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38895 * modules/gethrxtime (Depends-on): Add sys_time.
38896 * modules/gettime (Depends-on): Likewise.
38897 * modules/gettimeofday (Depends-on): Likewise.
38898 * modules/nanosleep (Depends-on): Likewise.
38899 * modules/settime (Depends-on): Likewise.
38900 * modules/tempname (Depends-on): Likewise.
38901 * modules/utimens (Depends-on): Likewise.
38902 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38903 (Include:) Change back to <sys/time.h>.
38904 (Maintainer:) Add self.
38905 * modules/sys_time: New file.
38906 * modules/tempname (Depends-on): Add gettimeofday.
38907 * tests/test-gettimeofday.c: Include <sys/time.h>
38908 rather than gettimeofday.h.
38910 2007-01-17 Bruno Haible <bruno@clisp.org>
38912 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38913 the license default to GPL.
38914 (func_create_testdir): Don't complain if a module is LGPL and its
38915 tests module depends on GPLed modules.
38917 2007-01-17 Bruno Haible <bruno@clisp.org>
38919 * lib/gettimeofday.c (gettimeofday): Add code for the case
38920 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38921 maximum possible value for tv->tv_usec, rather than the minimum one.
38923 2005-10-08 Martin Lambers <marlam@marlam.de>
38924 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38925 2007-01-16 Bruno Haible <bruno@clisp.org>
38927 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38928 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38929 gl_FUNC_GETTIMEOFDAY.
38930 (Include): Add gettimeofday.h.
38931 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38932 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38933 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38934 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38935 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38936 * lib/gettimeofday.h: New file.
38937 * lib/gettimeofday.c: Include <sys/timeb.h>.
38938 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38939 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38940 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38941 fall back on time().
38943 * tests/test-gettimeofday.c: New file.
38944 * modules/gettimeofday-tests: New file.
38946 2007-01-16 Eric Blake <ebb9@byu.net>
38948 * modules/fnmatch (Depends-on): Depend on wchar.
38949 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38950 * m4/fnmatch.m4: Likewise.
38951 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38952 * m4/mbchar.m4: Likewise.
38953 * modules/mbswidth (Depends-on): Depend on wchar.
38954 * lib/mbswidth.c: Assume <wchar.h>.
38955 * m4/mbswidth.m4: Likewise.
38956 * modules/quotearg (Depends-on): Depend on wchar.
38957 * lib/quotearg.c: Assume <wchar.h>.
38958 * m4/quotearg.m4: Likewise.
38959 * modules/regex (Depends-on): Depend on wchar.
38960 * lib/regex_internal.h: Assume <wchar.h>.
38961 * m4/regex.m4: Likewise.
38962 * modules/stdint (Depends-on): Depend on wchar.
38963 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38964 * m4/stdint.m4: Likewise.
38965 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38966 * modules/strftime (Depends-on): Depend on wchar.
38967 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38968 * modules/strtol (Depends-on): Depend on wchar.
38969 * lib/strtol.c: Assume <wchar.h>.
38970 * modules/wcwidth (Depends-on): Depend on wchar.
38971 * lib/wcwidth.h: Assume <wchar.h>.
38972 * m4/wcwidth.m4: Likewise.
38974 2007-01-16 Bruno Haible <bruno@clisp.org>
38976 * modules/csharpexec-script: New, created from...
38977 * modules/csharpexec: ... this.
38979 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38981 * modules/javaexec-script: New, created from...
38982 * modules/javaexec: ... this.
38984 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38986 * modules/poll (Dependencies): Add sys_select.
38988 2007-01-15 Jim Meyering <jim@meyering.net>
38990 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38991 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38992 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38993 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38995 2007-01-15 Bruno Haible <bruno@clisp.org>
38997 * modules/striconveh: New file.
38998 * lib/striconveh.h: New file.
38999 * lib/striconveh.c: New file.
39000 * MODULES.html.sh (Internationalization functions): Add striconveh.
39002 * modules/striconveh-tests: New file.
39003 * tests/test-striconveh.c: New file.
39005 2007-01-15 Bruno Haible <bruno@clisp.org>
39007 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39008 not from GNU libiconv or GNU libc.
39010 2007-01-15 Bruno Haible <bruno@clisp.org>
39012 * doc/gnulib-intro.texi (Copyright): Explain the different license
39013 terms for module descriptions, autoconf macros, tests, documentation.
39015 2007-01-14 Bruno Haible <bruno@clisp.org>
39017 * modules/striconv-tests: New file.
39018 * tests/test-striconv.c: New file.
39020 2007-01-14 Bruno Haible <bruno@clisp.org>
39022 * modules/iconv-tests: New file.
39023 * tests/test-iconv.c: New file.
39025 2007-01-14 Bruno Haible <bruno@clisp.org>
39027 * gnulib-tool (func_get_license): For test modules, use the license of
39030 2007-01-14 Bruno Haible <bruno@clisp.org>
39032 * modules/iconv (Include): Clarify that <iconv.h> can only be included
39033 if iconv is found to exist.
39035 2007-01-14 Bruno Haible <bruno@clisp.org>
39037 * modules/c-ctype-tests: New file.
39038 * tests/test-c-ctype.c: New file.
39040 2007-01-14 Bruno Haible <bruno@clisp.org>
39042 * modules/binary-io-tests: New file.
39043 * tests/test-binary-io.sh: New file.
39044 * tests/test-binary-io.c: New file.
39046 2007-01-14 Bruno Haible <bruno@clisp.org>
39048 * modules/array-oset-tests: New file.
39049 * tests/test-array_oset.c: New file.
39051 2007-01-14 Bruno Haible <bruno@clisp.org>
39053 * modules/array-list-tests: New file.
39054 * tests/test-array_list.c: New file.
39056 2007-01-14 Bruno Haible <bruno@clisp.org>
39058 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39060 Reported by Simon Josefsson in
39061 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39063 2007-01-14 Bruno Haible <bruno@clisp.org>
39065 * modules/allocsa-tests: New file.
39066 * tests/test-allocsa.c: New file.
39068 2007-01-14 Bruno Haible <bruno@clisp.org>
39070 * modules/fchdir (Depends-on): Add absolute-header.
39071 * modules/unistd (Depends-on): Likewise.
39073 2006-12-30 Bruno Haible <bruno@clisp.org>
39075 * modules/fchdir: New file.
39076 * modules/unistd (Files): Add lib/unistd_.h.
39077 (Makefile.am): Generate unistd.h from unistd_.h.
39078 * lib/fchdir.c: New file.
39079 * lib/dirent_.h: New file.
39080 * lib/unistd_.h: New file.
39081 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39082 * m4/fchdir.m4: New file.
39083 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39084 (gl_HEADER_UNISTD): Invoke it.
39085 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39087 * lib/backupfile.c (opendir, closedir): Undefine.
39088 * lib/chown.c (open, close): Undefine.
39089 * lib/clean-temp.c (open, close): Undefine.
39090 * lib/copy-file.c (open, close): Undefine.
39091 * lib/execute.c (open, close): Undefine.
39092 * lib/fsusage.c (open, close): Undefine.
39093 * lib/gc-gnulib.c (open, close): Undefine.
39094 * lib/getcwd.c (opendir, closedir): Undefine.
39095 * lib/glob.c (opendir, closedir): Undefine.
39096 * lib/javacomp.c (open, close): Undefine.
39097 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39098 * lib/openat-proc.c (open, close): Undefine.
39099 * lib/pagealign_alloc.c (open, close): Undefine.
39100 * lib/pipe.c (open, close): Undefine.
39101 * lib/progreloc.c (open, close): Undefine.
39102 * lib/savedir.c (opendir, closedir): Undefine.
39103 * lib/utime.c (open, close): Undefine.
39104 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39106 2007-01-10 Bruno Haible <bruno@clisp.org>
39108 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39110 2007-01-12 Eric Blake <ebb9@byu.net>
39112 Provide a robust <wchar.h>. Further simplifications are now
39113 possible in other modules, but not included here.
39114 * modules/wchar: New module.
39115 * m4/wchar.m4: New file.
39116 * lib/wchar_.h: Likewise.
39117 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39119 * MODULES.html.sh (Extended multibyte and wide character utilities):
39122 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39124 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39125 to a reasonable default for memory allocation.
39126 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39127 file system that reports garbage st_size values for symlinks.
39128 Problem reported by Liyang Hu.
39130 2007-01-11 Simon Josefsson <simon@josefsson.org>
39132 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39133 Emacs .#* auto-save files).
39135 2007-01-11 Bruno Haible <bruno@clisp.org>
39137 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39140 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39142 Use @...@ consistently in lib/wctype_.h.
39143 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39144 on it being set to 1 or 0.
39145 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39146 go back to AC_SUBSTing it.
39147 * modules/wctype (Makefile.am): Undo previous change.
39149 2007-01-10 Eric Blake <ebb9@byu.net>
39151 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39152 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39153 * modules/wctype (Makefile.am): Likewise.
39154 Reported by Chris McGuire.
39156 2007-01-10 Jim Meyering <jim@meyering.net>
39158 fts.c: a small readability/maintainability improvement
39159 * lib/fts.c (fts_read): Make this code slightly more readable and
39160 maintainable by hoisting the "sp->fts_cur = p" assignments to
39161 immediately follow the statements that set P. Derived from
39162 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39164 2007-01-10 Eric Blake <ebb9@byu.net>
39166 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39167 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39168 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39169 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39170 Reported by Chris McGuire.
39172 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39174 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39177 2007-01-09 Bruno Haible <bruno@clisp.org>
39179 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39180 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39182 (func_module): Use them.
39184 2007-01-09 Bruno Haible <bruno@clisp.org>
39186 * modules/unistr/base: New file.
39187 * lib/unistr.h: New file.
39189 * modules/unistr/u8-to-u16: New file.
39190 * lib/unistr/u8-to-u16.c: New file.
39192 * modules/unistr/u8-to-u32: New file.
39193 * lib/unistr/u8-to-u32.c: New file.
39195 * modules/unistr/u16-to-u8: New file.
39196 * lib/unistr/u16-to-u8.c: New file.
39198 * modules/unistr/u16-to-u32: New file.
39199 * lib/unistr/u16-to-u32.c: New file.
39201 * modules/unistr/u32-to-u8: New file.
39202 * lib/unistr/u32-to-u8.c: New file.
39204 * modules/unistr/u32-to-u16: New file.
39205 * lib/unistr/u32-to-u16.c: New file.
39207 * modules/unistr/u8-check: New file.
39208 * modules/unistr/u16-check: New file.
39209 * modules/unistr/u32-check: New file.
39210 * lib/unistr/u8-check.c: New file.
39211 * lib/unistr/u16-check.c: New file.
39212 * lib/unistr/u32-check.c: New file.
39214 * modules/unistr/u8-chr: New file.
39215 * modules/unistr/u16-chr: New file.
39216 * modules/unistr/u32-chr: New file.
39217 * lib/unistr/u8-chr.c: New file.
39218 * lib/unistr/u16-chr.c: New file.
39219 * lib/unistr/u32-chr.c: New file.
39221 * modules/unistr/u8-cmp: New file.
39222 * modules/unistr/u16-cmp: New file.
39223 * modules/unistr/u32-cmp: New file.
39224 * lib/unistr/u8-cmp.c: New file.
39225 * lib/unistr/u16-cmp.c: New file.
39226 * lib/unistr/u32-cmp.c: New file.
39228 * modules/unistr/u8-cpy: New file.
39229 * modules/unistr/u16-cpy: New file.
39230 * modules/unistr/u32-cpy: New file.
39231 * lib/unistr/u8-cpy.c: New file.
39232 * lib/unistr/u16-cpy.c: New file.
39233 * lib/unistr/u32-cpy.c: New file.
39234 * lib/unistr/u-cpy.h: New file.
39236 * modules/unistr/u8-cpy-alloc: New file.
39237 * modules/unistr/u16-cpy-alloc: New file.
39238 * modules/unistr/u32-cpy-alloc: New file.
39239 * lib/unistr/u8-cpy-alloc.c: New file.
39240 * lib/unistr/u16-cpy-alloc.c: New file.
39241 * lib/unistr/u32-cpy-alloc.c: New file.
39242 * lib/unistr/u-cpy-alloc.h: New file.
39244 * modules/unistr/u8-endswith: New file.
39245 * modules/unistr/u16-endswith: New file.
39246 * modules/unistr/u32-endswith: New file.
39247 * lib/unistr/u8-endswith.c: New file.
39248 * lib/unistr/u16-endswith.c: New file.
39249 * lib/unistr/u32-endswith.c: New file.
39250 * lib/unistr/u-endswith.h: New file.
39252 * modules/unistr/u8-mblen: New file.
39253 * modules/unistr/u16-mblen: New file.
39254 * modules/unistr/u32-mblen: New file.
39255 * lib/unistr/u8-mblen.c: New file.
39256 * lib/unistr/u16-mblen.c: New file.
39257 * lib/unistr/u32-mblen.c: New file.
39259 * modules/unistr/u8-mbtouc: New file.
39260 * modules/unistr/u16-mbtouc: New file.
39261 * modules/unistr/u32-mbtouc: New file.
39262 * lib/unistr/u8-mbtouc.c: New file.
39263 * lib/unistr/u16-mbtouc.c: New file.
39264 * lib/unistr/u32-mbtouc.c: New file.
39266 * modules/unistr/u8-mbtouc-safe: New file.
39267 * modules/unistr/u16-mbtouc-safe: New file.
39268 * modules/unistr/u32-mbtouc-safe: New file.
39269 * lib/unistr/u8-mbtouc-safe.c: New file.
39270 * lib/unistr/u16-mbtouc-safe.c: New file.
39271 * lib/unistr/u32-mbtouc-safe.c: New file.
39273 * modules/unistr/u8-move: New file.
39274 * modules/unistr/u16-move: New file.
39275 * modules/unistr/u32-move: New file.
39276 * lib/unistr/u8-move.c: New file.
39277 * lib/unistr/u16-move.c: New file.
39278 * lib/unistr/u32-move.c: New file.
39279 * lib/unistr/u-move.h: New file.
39281 * modules/unistr/u8-next: New file.
39282 * modules/unistr/u16-next: New file.
39283 * modules/unistr/u32-next: New file.
39284 * lib/unistr/u8-next.c: New file.
39285 * lib/unistr/u16-next.c: New file.
39286 * lib/unistr/u32-next.c: New file.
39288 * modules/unistr/u8-prev: New file.
39289 * modules/unistr/u16-prev: New file.
39290 * modules/unistr/u32-prev: New file.
39291 * lib/unistr/u8-prev.c: New file.
39292 * lib/unistr/u16-prev.c: New file.
39293 * lib/unistr/u32-prev.c: New file.
39295 * modules/unistr/u8-set: New file.
39296 * modules/unistr/u16-set: New file.
39297 * modules/unistr/u32-set: New file.
39298 * lib/unistr/u8-set.c: New file.
39299 * lib/unistr/u16-set.c: New file.
39300 * lib/unistr/u32-set.c: New file.
39301 * lib/unistr/u-set.h: New file.
39303 * modules/unistr/u8-startswith: New file.
39304 * modules/unistr/u16-startswith: New file.
39305 * modules/unistr/u32-startswith: New file.
39306 * lib/unistr/u8-startswith.c: New file.
39307 * lib/unistr/u16-startswith.c: New file.
39308 * lib/unistr/u32-startswith.c: New file.
39309 * lib/unistr/u-startswith.h: New file.
39311 * modules/unistr/u8-stpcpy: New file.
39312 * modules/unistr/u16-stpcpy: New file.
39313 * modules/unistr/u32-stpcpy: New file.
39314 * lib/unistr/u8-stpcpy.c: New file.
39315 * lib/unistr/u16-stpcpy.c: New file.
39316 * lib/unistr/u32-stpcpy.c: New file.
39317 * lib/unistr/u-stpcpy.h: New file.
39319 * modules/unistr/u8-stpncpy: New file.
39320 * modules/unistr/u16-stpncpy: New file.
39321 * modules/unistr/u32-stpncpy: New file.
39322 * lib/unistr/u8-stpncpy.c: New file.
39323 * lib/unistr/u16-stpncpy.c: New file.
39324 * lib/unistr/u32-stpncpy.c: New file.
39325 * lib/unistr/u-stpncpy.h: New file.
39327 * modules/unistr/u8-strcat: New file.
39328 * modules/unistr/u16-strcat: New file.
39329 * modules/unistr/u32-strcat: New file.
39330 * lib/unistr/u8-strcat.c: New file.
39331 * lib/unistr/u16-strcat.c: New file.
39332 * lib/unistr/u32-strcat.c: New file.
39333 * lib/unistr/u-strcat.h: New file.
39335 * modules/unistr/u8-strchr: New file.
39336 * modules/unistr/u16-strchr: New file.
39337 * modules/unistr/u32-strchr: New file.
39338 * lib/unistr/u8-strchr.c: New file.
39339 * lib/unistr/u16-strchr.c: New file.
39340 * lib/unistr/u32-strchr.c: New file.
39342 * modules/unistr/u8-strcmp: New file.
39343 * modules/unistr/u16-strcmp: New file.
39344 * modules/unistr/u32-strcmp: New file.
39345 * lib/unistr/u8-strcmp.c: New file.
39346 * lib/unistr/u16-strcmp.c: New file.
39347 * lib/unistr/u32-strcmp.c: New file.
39349 * modules/unistr/u8-strcpy: New file.
39350 * modules/unistr/u16-strcpy: New file.
39351 * modules/unistr/u32-strcpy: New file.
39352 * lib/unistr/u8-strcpy.c: New file.
39353 * lib/unistr/u16-strcpy.c: New file.
39354 * lib/unistr/u32-strcpy.c: New file.
39355 * lib/unistr/u-strcpy.h: New file.
39357 * modules/unistr/u8-strcspn: New file.
39358 * modules/unistr/u16-strcspn: New file.
39359 * modules/unistr/u32-strcspn: New file.
39360 * lib/unistr/u8-strcspn.c: New file.
39361 * lib/unistr/u16-strcspn.c: New file.
39362 * lib/unistr/u32-strcspn.c: New file.
39363 * lib/unistr/u-strcspn.h: New file.
39365 * modules/unistr/u8-strdup: New file.
39366 * modules/unistr/u16-strdup: New file.
39367 * modules/unistr/u32-strdup: New file.
39368 * lib/unistr/u8-strdup.c: New file.
39369 * lib/unistr/u16-strdup.c: New file.
39370 * lib/unistr/u32-strdup.c: New file.
39371 * lib/unistr/u-strdup.h: New file.
39373 * modules/unistr/u8-strlen: New file.
39374 * modules/unistr/u16-strlen: New file.
39375 * modules/unistr/u32-strlen: New file.
39376 * lib/unistr/u8-strlen.c: New file.
39377 * lib/unistr/u16-strlen.c: New file.
39378 * lib/unistr/u32-strlen.c: New file.
39379 * lib/unistr/u-strlen.h: New file.
39381 * modules/unistr/u8-strmblen: New file.
39382 * modules/unistr/u16-strmblen: New file.
39383 * modules/unistr/u32-strmblen: New file.
39384 * lib/unistr/u8-strmblen.c: New file.
39385 * lib/unistr/u16-strmblen.c: New file.
39386 * lib/unistr/u32-strmblen.c: New file.
39388 * modules/unistr/u8-strmbtouc: New file.
39389 * modules/unistr/u16-strmbtouc: New file.
39390 * modules/unistr/u32-strmbtouc: New file.
39391 * lib/unistr/u8-strmbtouc.c: New file.
39392 * lib/unistr/u16-strmbtouc.c: New file.
39393 * lib/unistr/u32-strmbtouc.c: New file.
39395 * modules/unistr/u8-strncat: New file.
39396 * modules/unistr/u16-strncat: New file.
39397 * modules/unistr/u32-strncat: New file.
39398 * lib/unistr/u8-strncat.c: New file.
39399 * lib/unistr/u16-strncat.c: New file.
39400 * lib/unistr/u32-strncat.c: New file.
39401 * lib/unistr/u-strncat.h: New file.
39403 * modules/unistr/u8-strncmp: New file.
39404 * modules/unistr/u16-strncmp: New file.
39405 * modules/unistr/u32-strncmp: New file.
39406 * lib/unistr/u8-strncmp.c: New file.
39407 * lib/unistr/u16-strncmp.c: New file.
39408 * lib/unistr/u32-strncmp.c: New file.
39410 * modules/unistr/u8-strncpy: New file.
39411 * modules/unistr/u16-strncpy: New file.
39412 * modules/unistr/u32-strncpy: New file.
39413 * lib/unistr/u8-strncpy.c: New file.
39414 * lib/unistr/u16-strncpy.c: New file.
39415 * lib/unistr/u32-strncpy.c: New file.
39416 * lib/unistr/u-strncpy.h: New file.
39418 * modules/unistr/u8-strnlen: New file.
39419 * modules/unistr/u16-strnlen: New file.
39420 * modules/unistr/u32-strnlen: New file.
39421 * lib/unistr/u8-strnlen.c: New file.
39422 * lib/unistr/u16-strnlen.c: New file.
39423 * lib/unistr/u32-strnlen.c: New file.
39424 * lib/unistr/u-strnlen.h: New file.
39426 * modules/unistr/u8-strpbrk: New file.
39427 * modules/unistr/u16-strpbrk: New file.
39428 * modules/unistr/u32-strpbrk: New file.
39429 * lib/unistr/u8-strpbrk.c: New file.
39430 * lib/unistr/u16-strpbrk.c: New file.
39431 * lib/unistr/u32-strpbrk.c: New file.
39432 * lib/unistr/u-strpbrk.h: New file.
39434 * modules/unistr/u8-strrchr: New file.
39435 * modules/unistr/u16-strrchr: New file.
39436 * modules/unistr/u32-strrchr: New file.
39437 * lib/unistr/u8-strrchr.c: New file.
39438 * lib/unistr/u16-strrchr.c: New file.
39439 * lib/unistr/u32-strrchr.c: New file.
39441 * modules/unistr/u8-strspn: New file.
39442 * modules/unistr/u16-strspn: New file.
39443 * modules/unistr/u32-strspn: New file.
39444 * lib/unistr/u8-strspn.c: New file.
39445 * lib/unistr/u16-strspn.c: New file.
39446 * lib/unistr/u32-strspn.c: New file.
39447 * lib/unistr/u-strspn.h: New file.
39449 * modules/unistr/u8-strstr: New file.
39450 * modules/unistr/u16-strstr: New file.
39451 * modules/unistr/u32-strstr: New file.
39452 * lib/unistr/u8-strstr.c: New file.
39453 * lib/unistr/u16-strstr.c: New file.
39454 * lib/unistr/u32-strstr.c: New file.
39455 * lib/unistr/u-strstr.h: New file.
39457 * modules/unistr/u8-strtok: New file.
39458 * modules/unistr/u16-strtok: New file.
39459 * modules/unistr/u32-strtok: New file.
39460 * lib/unistr/u8-strtok.c: New file.
39461 * lib/unistr/u16-strtok.c: New file.
39462 * lib/unistr/u32-strtok.c: New file.
39463 * lib/unistr/u-strtok.h: New file.
39465 * modules/unistr/u8-uctomb: New file.
39466 * modules/unistr/u16-uctomb: New file.
39467 * modules/unistr/u32-uctomb: New file.
39468 * lib/unistr/u8-uctomb.c: New file.
39469 * lib/unistr/u16-uctomb.c: New file.
39470 * lib/unistr/u32-uctomb.c: New file.
39472 * MODULES.html.sh (Unicode string functions): Add the new modules.
39474 2007-01-08 Bruno Haible <bruno@clisp.org>
39476 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39477 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39480 2007-01-08 Karl Berry <karl@gnu.org>
39482 * doc/error.texi: mention that main() fns must set program_name
39483 when progname is used.
39485 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39487 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39488 WCTYPE_H is empty, for the benefit of builds from non-distclean
39489 directories. Problem reported by Eric Blake in
39490 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39492 2007-01-08 Bruno Haible <bruno@clisp.org>
39494 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39495 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39496 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39497 PROVIDE_CANONICALIZE_FILENAME_MODE.
39498 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39500 2007-01-08 Bruno Haible <bruno@clisp.org>
39502 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39503 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39504 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39505 * lib/fts.c: Likewise.
39506 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39508 2006-12-25 Bruno Haible <bruno@clisp.org>
39510 * modules/utf8-ucs4-safe: New file.
39511 * lib/utf8-ucs4-safe.h: New file.
39512 * lib/unistr/utf8-ucs4-safe.c: New file.
39514 * modules/utf16-ucs4-safe: New file.
39515 * lib/utf16-ucs4-safe.h: New file.
39516 * lib/unistr/utf16-ucs4-safe.c: New file.
39518 * MODULES.html.sh (Unicode string functions): Add the new modules.
39520 2007-01-08 Bruno Haible <bruno@clisp.org>
39522 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39523 (Depends-on): Add unitypes.
39524 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39525 (u8_mbtouc_aux): Move out to separate file.
39526 (u8_mbtouc): Use ucs4_t, uint8_t types.
39527 * lib/unistr/utf8-ucs4.c: New file.
39529 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39530 (Depends-on): Add unitypes.
39531 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39532 (u16_mbtouc_aux): Move out to separate file.
39533 (u16_mbtouc): Use ucs4_t, uint16_t types.
39534 * lib/unistr/utf16-ucs4.c: New file.
39536 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39537 (Depends-on): Add unitypes.
39538 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39539 (u8_uctomb_aux): Move out to separate file.
39540 (u8_uctomb): Use ucs4_t, uint8_t types.
39541 * lib/unistr/ucs4-utf8.c: New file.
39543 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39544 (Depends-on): Add unitypes.
39545 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39546 (u16_uctomb_aux): Move out to separate file.
39547 (u16_uctomb): Use ucs4_t, uint16_t types.
39548 * lib/unistr/ucs4-utf16.c: New file.
39550 2006-12-25 Bruno Haible <bruno@clisp.org>
39552 * modules/unitypes: New file.
39553 * lib/unitypes.h: New file.
39554 * MODULES.html.sh (func_all_modules): New section "Unicode string
39555 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39556 this section. Add unitypes.
39558 2007-01-08 Bruno Haible <bruno@clisp.org>
39560 Avoid variable names that conflict with those from libtool.
39561 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39562 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39563 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39564 library_names_spec to acl_library_names_spec, hardcode_* to
39566 Reported by Ralf Wildenhues.
39568 2007-01-08 Bruno Haible <bruno@clisp.org>
39570 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39572 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39574 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39575 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39577 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39579 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39580 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39581 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39582 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39584 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39586 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39587 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39588 GC_USE_<algorithm>.
39589 * lib/gc-libgcrypt.c: Likewise.
39590 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39591 * modules/gc-arctwo (configure.ac): Likewise.
39592 * modules/gc-des (configure.ac): Likewise.
39593 * modules/gc-hmac-md5 (configure.ac): Likewise.
39594 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39595 * modules/gc-md2 (configure.ac): Likewise.
39596 * modules/gc-md4 (configure.ac): Likewise.
39597 * modules/gc-md5 (configure.ac): Likewise.
39598 * modules/gc-random (configure.ac): Likewise.
39599 * modules/gc-rijndael (configure.ac): Likewise.
39600 * modules/gc-sha1 (configure.ac): Likewise.
39602 2007-01-08 Bruno Haible <bruno@clisp.org>
39604 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39606 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39608 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39610 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39611 * modules/fcntl-safer (configure.ac): Likewise.
39612 * modules/fopen-safer (configure.ac): Likewise.
39613 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39614 GNULIB_FWRITEERROR macro definition.
39616 2007-01-08 Bruno Haible <bruno@clisp.org>
39618 * m4/gnulib-common.m4: New file.
39619 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39620 (func_get_filelist): Add m4/gnulib-common.m4.
39622 2007-01-08 Bruno Haible <bruno@clisp.org>
39624 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39627 2007-01-08 Jim Meyering <jim@meyering.net>
39629 Use a more robust test for a "can't happen" condition.
39630 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39631 narrowed the st_size value. Presuming the "can't happen" condition
39632 is true, that narrowing could conceivably convert an invalid st_size
39633 value into a valid one. Instead, use a change based on Matthew
39634 Woehlke's original patch.
39636 Slight readability improvement: use an assert-like macro
39637 in place of literal "abort ()" uses.
39638 * lib/fts.c (fts_assert): Define.
39639 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39640 Use this macro instead of a bare 'abort'.
39642 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39644 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39645 simply work around them.
39646 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39647 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39648 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39650 Don't bother to define as macros, since the standard doesn't require it.
39651 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39652 longer worry about IRIX 5.3.
39653 (HAVE_WCTYPE_CTMP_BUG): Remove.
39655 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39657 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39658 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39659 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39660 Problems reported by Georg Schwarz for IRIX 5.3.
39662 * gnulib-tool (autoconf_minversion): Take the maximum version number
39663 found, not the minimum. Problem reported by James Youngman.
39665 2007-01-03 Karl Berry <karl@gnu.org>
39667 * doc/error.texi: new file, explaining interaction with progname.
39668 * doc/gnulib.texi: include it. Update copyright.
39670 2007-01-03 Simon Josefsson <simon@josefsson.org>
39672 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39673 AC_CANONICAL_HOST, to improve autobuild outputs.
39675 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39676 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39678 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39679 sockets, server sockets, and other file descriptors. Count errors
39680 to compute the return value. Reorder the code a bit to be easier
39681 to follow. Don't set event bits that were not requested (except
39682 POLLERR and POLLHUP).
39684 2007-01-01 Bruno Haible <bruno@clisp.org>
39686 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39688 2007-01-03 Jim Meyering <jim@meyering.net>
39690 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39692 2007-01-02 Bruno Haible <bruno@clisp.org>
39694 * modules/settime (Include): Require timespec.h.
39695 * modules/nanosleep (Include): Likewise.
39697 2007-01-01 Bruno Haible <bruno@clisp.org>
39699 * gnulib-tool (func_emit_copyright_notice): Bump year.
39700 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39702 2007-01-01 Bruno Haible <bruno@clisp.org>
39704 Improve support for OpenBSD.
39705 * build-aux/config.rpath (libname_spec): Export.
39706 (library_names_spec): New variable. Export.
39707 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39708 library_names_spec from the config.rpath output. Locate shared library
39709 through the name pattern in library_names_spec.
39711 2007-01-01 Eric Blake <ebb9@byu.net>
39713 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39715 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39717 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39718 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39719 assume the C locale, and avoid an "eval" that could cause trouble.
39720 Problem with SORT reported by Bob Proulx.
39722 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39723 Define. Trivial patch from Henning Nielsen Lund, originally
39724 sent to bug-grep@gnu.org today.
39726 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39728 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39729 struct stat. Problem reported by Henning Nielsen Lund.
39730 * lib/acl.c: Include acl.h first, to check interface. Don't
39731 bother to include sys/types.h and sys/stat.h again.
39733 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39735 Import the following change from libc; problem reported by
39738 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39741 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39743 2006-12-28 Jim Meyering <jim@meyering.net>
39745 * build-aux/announce-gen: Do not assume that the package
39746 builds any of tar.gz, tar.bz2, and .xdelta files.
39747 Suggestion from Simon Josefsson.
39749 2006-12-28 Simon Josefsson <simon@josefsson.org>
39751 * modules/announce-gen: New file.
39753 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39755 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39756 handles its gotchas now.
39757 * lib/mbswidth.c: Likewise.
39758 * lib/wcwidth.h: Likewise.
39759 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39760 and iswcntrl; the wctype module does this stuff now.
39761 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39762 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39763 * modules/mbchar (Depends-on): Add wctype.
39764 * modules/mbswidth (Depends-on): Likewise.
39765 * modules/wcwidth (Depends-on): Likewise.
39767 2006-12-27 Eric Blake <ebb9@byu.net>
39769 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39770 module uses more than what <wctype.h> is required to provide.
39772 2006-12-26 Eric Blake <ebb9@byu.net>
39774 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39776 2006-12-26 Eric Blake <ebb9@byu.net>
39778 * modules/absolute-header: New module.
39779 * modules/fcntl (Depends-on): Depend on it.
39780 * modules/inttypes (Depends-on): Likewise.
39781 * modules/stdint (Depends-on): Likewise.
39782 * modules/sys_stat (Depends-on): Likewise.
39783 * modules/wctype (Depends-on): Likewise.
39784 * MODULES.html.sh (Support for building libraries and
39785 executables): Document it.
39787 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39789 * gnulib-tool (SED): Remove, undoing previous change.
39790 The problem was that it broke coreutils on Solaris, because
39791 "sed --posix" leaked into a makefile.
39792 (sed): New alias, if 'alias' and GNU sed.
39794 2006-12-24 Jim Meyering <jim@meyering.net>
39796 Work around an fchownat bug in glibc-2.4:
39797 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39798 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39799 in spite of the -P option.
39800 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39802 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39803 * modules/openat (Files): Add lib/fchownat.c.
39804 * lib/openat.c (fchownat): Don't define here. Move to...
39805 * lib/fchownat.c: ...this new file.
39807 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39809 Fix bug reported by Bruno Haible in
39810 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39811 where quotearg.c didn't compile on Mac OS X 10.2 because it
39812 lacks <wchar.h> and wint_t.
39813 * lib/wctype_.h (__wctype_wint_t): New type.
39814 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39815 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39816 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39817 Arg is now of type __wctype_wint_t, not wint_t.
39818 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39819 substitute HAVE_WINT_T.
39820 * modules/wctype (Files): Add m4/wint_t.m4.
39821 (wctype.h): Substitute HAVE_WINT_T.
39823 2006-12-23 Bruno Haible <bruno@clisp.org>
39825 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39827 2006-12-23 Bruno Haible <bruno@clisp.org>
39829 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39831 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39834 2006-12-22 Bruno Haible <bruno@clisp.org>
39836 * lib/copy-file.c: Include acl.h.
39837 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39838 Close the file descriptors only after being done with copy_acl.
39839 * modules/copy-file (Depends-on): Add acl.
39841 2006-12-22 Bruno Haible <bruno@clisp.org>
39843 * gnulib-tool (SED): New variable.
39844 Use $SED instead of sed everywhere.
39846 2006-12-22 Bruno Haible <bruno@clisp.org>
39848 * modules/no-c++: New file.
39849 * m4/no-c++.m4: New file.
39850 * MODULES.html.sh (Support for building libraries and executables):
39853 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39855 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39856 Include <limits.h>, and use its INT_MAX to rewrite the
39857 j loop so that it does not overflow 'int'. Problem reported by
39859 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39860 Play it safe by shifting left by 1 rather than multiplying by 2,
39861 as GCC is less likely to optimize this away when the value
39862 is signed (when it assumes overflow leads to undefined behavior).
39863 Also, don't assume time_t uses two's complement.
39865 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39867 * MODULES.html.sh: New module wctype.
39868 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39869 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39870 <wctype.h>, since the new wctype module should fix this.
39871 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39872 the wctype module should arrange for it.
39873 * lib/regex_internal.h: Likewise.
39874 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39875 since the wctype module should handle this now.
39876 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39877 * modules/fnmatch (Depends-on): Add wctype.
39878 * modules/quotearg (Depends-on): Likewise.
39879 * modules/regex (Depends-on): Likewise.
39881 2006-12-19 Bruno Haible <bruno@clisp.org>
39883 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39884 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39886 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39888 * modules/savewd (Depends-on): Fix dependency on fcntl.
39890 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39892 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39893 conforms to C99, rather than relying on the user's environment
39894 setting of STDINT_H.
39896 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39897 and Eric Blake <ebb9@byu.net>
39899 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39900 This is more consistent with the other defines here.
39901 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39902 Port to z/OS. Problem reported by Paul Gilmartin.
39903 Change local vars to use gl_ prefix rather than ac_.
39904 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39905 with other defines.
39906 * modules/double-slash-root: New module.
39907 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39908 (Depends-on): Add double-slash-root.
39909 * MODULES.html.sh (File system functions): Mention new module.
39911 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39913 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39914 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39915 This is for the benefit of gzip, which doesn't do i18n.
39917 2006-12-12 Jim Meyering <jim@meyering.net>
39919 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39920 Reported by Andreas Schwab <schwab@suse.de>.
39922 2006-12-12 Bruno Haible <bruno@clisp.org>
39924 Merge these changes.
39925 2006-09-05 Bruno Haible <bruno@clisp.org>
39926 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39927 iconv_alloc succeeded.
39928 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39929 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39930 test for " && dest " at the end - dest is always != NULL there. Call
39931 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39932 with 2xNULL arguments, also to flush the state storage. Handle the
39933 IRIX iconv behaviour. Realloc the final result, to throw away unused
39936 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39938 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39939 and fchmodat unconditionally, since glibc 2.4 has them.
39940 Problem reported by Arkadiusz Miskiewicz.
39942 2006-12-10 Bruno Haible <bruno@clisp.org>
39944 * gnulib-tool (func_import): Show the include files only for those
39945 modules that are copied and specified.
39946 Reported by Karl Berry.
39948 2006-12-08 Jim Meyering <jim@meyering.net>
39950 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39951 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39953 * build-aux/announce-gen: Add two new options, both optional:
39954 --bootstrap-tools=TOOL_LIST
39955 a comma-separated list of tools, e.g.,
39956 autoconf,automake,bison,gnulib
39957 --gnulib-snapshot-date=DATE
39958 if gnulib is in the bootstrap tool list,
39959 then report this as the snapshot date.
39960 If not specified, use the current date/time.
39961 If you specify a date here, be sure it's UTC.
39963 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39965 * tests/test-argp-2.sh: Fix test to match actual output.
39966 (func_compare): Fix sed script to be portable.
39968 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39970 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39971 workaround for this case. It is not autoconfigured now; offhand
39972 it's hard to see how to autoconfigure it.
39974 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39976 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39977 a directory that is about to be chowned. Such a directory's
39978 initial file permissions should permit the owner only and this
39979 should not be changed until after the chown, since the group and
39980 other bits would be incorrect if they granted permission before
39983 Fix porting problem for iswctype reported by Georg Schwarz in:
39984 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39985 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39986 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39987 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39988 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39990 2006-12-03 Jim Meyering <jim@meyering.net>
39992 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39993 p->fts_statp may not yet be defined.
39994 (fts_read): Instead, set it in the caller, once p->fts_statp is
39995 sure to be defined, and corresponds to a top-level directory.
39996 This bug made du -x fail. Here's the coreutils test case:
39997 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39998 Reported by Mike Frysinger.
40000 2006-12-01 Jim Meyering <jim@meyering.net>
40002 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40003 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40004 Reported by Simon Josefsson.
40006 2006-11-30 Jim Meyering <jim@meyering.net>
40008 * m4/warning.m4: Use the all-permissive copyright notice
40009 recommended by RMS (rather than LGPL).
40010 * m4/vararrays.m4: Likewise.
40011 * m4/flexmember.m4: Likewise.
40013 2006-11-29 Bruno Haible <bruno@clisp.org>
40015 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40016 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40018 Reported by Simon Josefsson <simon@josefsson.org>.
40020 2006-11-28 James Youngman <jay@gnu.org>
40022 * README: Advise users that they might find the bug-gnulib@gnu.org
40023 and autotools-announce@gnu.org mailing lists useful.
40025 2006-11-28 Bruno Haible <bruno@clisp.org>
40027 * m4/ptrdiff_max.m4: Remove file.
40029 2006-11-21 Bruno Haible <bruno@clisp.org>
40031 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40033 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40034 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40036 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40037 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40039 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40041 2006-11-28 Jim Meyering <jim@meyering.net>
40043 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40044 warning from "gcc -Wshadow" about shadowing the builtin.
40046 2006-11-27 Bruno Haible <bruno@clisp.org>
40048 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40050 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40052 2006-11-27 Bruno Haible <bruno@clisp.org>
40053 Paul Eggert <eggert@cs.ucla.edu>
40055 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40057 2006-11-26 Bruno Haible <bruno@clisp.org>
40059 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40060 noinst_LTLIBRARIES.
40062 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40063 Bruno Haible <bruno@clisp.org>
40065 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40066 if compiling with "gcc -ansi".
40068 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40070 Fix some incompatibilities with gcc -ansi -pedantic.
40071 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40072 if compiling pedantically with GCC, unless it's C99 or later.
40073 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40074 it mishandles gcc -ansi -pedantic as well.
40075 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40077 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40078 initializers for struct if -pedantic, unless it's C99 or later.
40080 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40082 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40083 Don't close an fd more than once. Identical atimes indicate
40084 success, not failure.
40086 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40088 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40090 2006-11-23 Jim Meyering <jim@meyering.net>
40092 * build-aux/announce-gen: New file. From coreutils.
40094 2006-11-22 Jim Meyering <jim@meyering.net>
40096 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40097 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40098 (fts_read): Use a temporary to narrow the overused st_size member
40099 before using it in a switch statement. Reported by Matthew Woehlke.
40101 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40102 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40104 2006-11-20 Bruno Haible <bruno@clisp.org>
40106 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40107 changequote instead of pairs of brackets.
40108 Reported by Andreas Schwab <schwab@suse.de>.
40110 2006-11-21 Jim Meyering <jim@meyering.net>
40112 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40113 so as to remain compatible with older compilers.
40114 Patch from Michael Deutschmann.
40116 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40118 * MODULES.html.sh (File system functions): Add openat.
40120 * lib/openat.h (rpl_fstatat): New macro, if
40121 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40122 (fstatat): Define to rpl_fstatat under the same conditions,
40123 unless COMPILING_FSTATAT.
40124 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40125 seems to have the bug.
40126 * lib/fstatat.c: New file.
40127 * modules/openat (Files): Add it.
40129 2006-11-20 Bruno Haible <bruno@clisp.org>
40131 * Makefile: New file.
40133 2006-11-20 Jim Meyering <jim@meyering.net>
40135 The beginnings of syntax-related checks for gnulib.
40136 * lib/Makefile: New file.
40137 * lib/t-idcache: New script. Ensure that the two halves of
40138 idcache.c stay in sync.
40140 * lib/idcache.c: Adjust comments in user- and group- portions to
40141 be more accurate, and to be consistent with one another.
40143 2006-11-20 Jim Meyering <jim@meyering.net>
40145 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40146 continue using the flexible array member (thus, this module performs
40147 half as many malloc calls), with the addition that...
40148 (getgroup, getuser): Consistently record a non-match via an empty
40149 "name" string, and map an empty string match to a NULL return value.
40150 * modules/idcache (Depends-on): Re-add flexmember.
40152 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40153 (getuidbyname, getgroup, getgidbyname): Likewise.
40155 Use cleaner syntax: NULL rather than 0.
40156 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40158 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40160 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40161 It mishandled the case where the group was missing.
40162 Problem reported by Greg Schafer.
40163 * modules/idcache: Likewise.
40165 2006-11-18 Jim Meyering <jim@meyering.net>
40167 * check-module (%exempt_header): Add exception for some
40168 conditionally-included headers.
40170 * modules/i-ring (Depends-on): Add verify.
40171 (License): Change to LGPL.
40173 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40175 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40176 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40177 and inttostr.h. Use snprintf rather than uinttostr, so that
40178 LGPLed code doesn't depend on GPLed.
40180 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40182 * modules/inline (License): Change from GPL to LGPL.
40184 2006-11-17 Jim Meyering <jim@meyering.net>
40186 * modules/d-type (License): Switch to LGPL.
40188 2006-11-15 Bruno Haible <bruno@clisp.org>
40190 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40192 2006-11-15 Eric Blake <ebb9@byu.net>
40194 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40195 the module dependency.
40197 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40198 Bruno Haible <bruno@clisp.org>
40200 * gnulib-tool (func_create_testdir): Add license consistency check.
40202 2006-11-15 Eric Blake <ebb9@byu.net>
40204 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40205 random "(cached)" in configure output.
40207 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40209 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40210 test for conforming inttypes.h is both announced and cached.
40212 * MODULES.html.sh (seen_modules, seen_files): New variables.
40213 (func_module): Rewrite to use a few less gnulib-tool and sed
40214 invocations. Avoid a couple of quadratic algorithms for ...
40215 (missed_modules, missed_files): ... these, with ...
40216 (func_append, func_tmpdir): ... these new functions, from
40217 gnulib-tool. Analogously, install traps for cleanup.
40219 * tests/test-gc.c (main): Remove unused variables.
40220 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40222 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40224 * modules/inttostr (License): Change to LGPL.
40226 2006-11-14 Eric Blake <ebb9@byu.net>
40228 * modules/tempname (License): Change to LGPL.
40230 2006-11-14 Eric Blake <ebb9@byu.net>
40232 * doc/functions.texi (Function Portability): *printf functions on
40233 Cygwin now understand all POSIX size specifiers.
40235 2006-11-14 Bruno Haible <bruno@clisp.org>
40237 * modules/c-ctype (License): Change to LGPL.
40239 2006-11-12 Bruno Haible <bruno@clisp.org>
40241 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40242 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40243 for GNOME libraries, for which the include files are installed in
40244 subdirectories of $prefix/include.
40246 2006-11-12 Bruno Haible <bruno@clisp.org>
40248 * m4/lib-link.m4: Require at least autoconf-2.54.
40249 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40250 name to underscores for the --with option.
40252 2006-11-13 Bruno Haible <bruno@clisp.org>
40254 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40255 the tests directory.
40256 Reported by Ralf Wildenhues.
40258 2006-11-13 Bruno Haible <bruno@clisp.org>
40260 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40261 (func_emit_initmacro_end): Undo the override here.
40262 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40263 Works around the famous automake error in coreutils.
40265 2006-11-13 Eric Blake <ebb9@byu.net>
40267 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40268 element, not its node.
40270 2006-11-12 Bruno Haible <bruno@clisp.org>
40272 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40273 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40275 2006-11-12 Bruno Haible <bruno@clisp.org>
40277 * gnulib-tool: New option --local-symlink.
40278 (func_usage): Document it.
40279 (lsymbolic): New variable.
40280 (func_import, func_create_testdir): If --symlink was not specified,
40281 test whether --local-symlink was specified and the file comes from
40282 the local_gnulib_dir.
40284 2006-11-12 Bruno Haible <bruno@clisp.org>
40286 * gnulib-tool (func_ln): New function.
40287 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40289 2006-11-12 Bruno Haible <bruno@clisp.org>
40291 Finish support for source files in subdirectories.
40292 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40293 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40295 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40297 2006-11-12 Bruno Haible <bruno@clisp.org>
40299 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40300 EXTRA_lib_SOURCES augmentation.
40301 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40303 2006-11-12 Jim Meyering <jim@meyering.net>
40305 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40306 file descriptors. This also averts a failure on systems with
40307 native openat support when a traversed directory lacks "x" access.
40308 * lib/fts_.h: Include "i-ring.h"
40309 (struct FTS) [fts_fd_ring]: New member.
40310 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40311 (FCHDIR): Add parentheses.
40312 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40313 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40314 When descending, rather than simply closing the previous
40315 fts_cwd_fd value, push that file descriptor onto the ring.
40316 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40317 (fts_open): Initialize the new fd_ring member.
40318 (fts_close): Clear the ring.
40319 (fts_safe_changedir): When possible, use our new fd_ring to skip
40320 the diropen and fstat and dev/ino comparison that would normally
40321 accompany a virtual `chdir ("..")'.
40323 * modules/fts (Depends-on): Add i-ring.
40324 * modules/i-ring: New module.
40325 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40326 * m4/i-ring.m4: New file.
40328 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40330 * gnulib-tool (func_create_testdir): Fix replacement of
40331 `build-aux' in configure.ac. Run autotools in gltests
40333 (func_create_testdir, func_create_megatestdir, test): There is
40334 no need for '--force' in most autotool invocations in a new
40335 tree. Actually fail the whole test if any of the tools, or the
40336 configure or make stages fail.
40338 Sync from Automake.
40339 * build-aux/gnupload: Revert last change. Add pointer to upload
40340 instructions of the GNU Maintenance Instructions.
40341 Suggestion by Karl Berry.
40343 2006-11-10 Jim Meyering <jim@meyering.net>
40345 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40347 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40349 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40350 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40351 (bind_textdomain_codeset) [! ENABLE_NLS]:
40352 Evaluate all the arguments. That way, callers get compatible behavior
40353 if the arguments have side effects. Also, it avoids some GCC
40354 diagnostics in some cases; Joel E. Denny reported problems when Bison
40355 was configured with --enable-gcc-warnigs.
40357 2006-11-10 Jim Meyering <jim@meyering.net>
40359 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40360 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40363 2006-11-10 Jim Meyering <jim@meyering.net>
40365 * modules/inline: New file/module.
40366 * modules/xalloc (Files): Remove m4/inline.m4.
40367 (Depends-on): Add inline, instead.
40368 * modules/oset: Likewise.
40369 * modules/list: Likewise.
40371 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40373 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40374 Problem reported by Matthew Woehlke.
40376 2006-11-09 Bruno Haible <bruno@clisp.org>
40378 * lib/tempname.c (gen_tempname): Remove variant that invokes
40380 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40383 2006-11-08 Bruno Haible <bruno@clisp.org>
40385 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40386 to 'yes' instead of 'cross-compiling'.
40388 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40390 * lib/quotearg.h (quotearg_free): New decl.
40391 * lib/quotearg.c (quotearg_free): New function.
40392 (slot0, nslots, slotvec0, slotvec):
40393 Now file-scope so that quotearg_free can get at them.
40395 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40397 Sync from Automake.
40398 * build-aux/gnupload: Add missing 'gnu' to example URL.
40399 Report by Karl Berry.
40401 2006-11-08 Bruno Haible <bruno@clisp.org>
40403 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40404 Suggested by Paul Eggert.
40406 2006-11-08 Jim Meyering <jim@meyering.net>
40408 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40409 It's already included if !_LIBC.
40410 (fts_safe_changedir): Add a comment.
40412 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40414 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40415 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40418 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40419 definitions up, to avoid colliding with change below.
40420 (static_inline) [HAVE_INLINE]: New macro.
40421 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40422 Provide extern decls when !HAVE_INLINE. Do not define unless
40423 static_inline is defined, either by us or by xmalloc.c. Use
40424 static_inline rather than static inline.
40425 (XCALLOC): Optimize sizeof(T) = 1 case.
40426 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40428 2006-11-07 Bruno Haible <bruno@clisp.org>
40430 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40431 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40433 * modules/xalloc (Files): Add m4/inline.m4.
40435 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40437 * README: Fix typo.
40438 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40439 (Miscellanous Notes): ...from this.
40441 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40443 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40444 Mention that offsetof should be used instead of sizeof.
40447 2006-11-07 Bruno Haible <bruno@clisp.org>
40449 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40451 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40453 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40454 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40455 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40456 (gl_tree_add_before, gl_tree_add_after):
40457 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40458 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40459 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40460 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40461 (gl_linked_add_after, gl_linked_add_at): Likewise.
40462 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40463 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40464 (gl_tree_add_before, gl_tree_add_after): Likewise.
40465 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40466 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40467 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40469 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40471 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40473 2006-11-06 Bruno Haible <bruno@clisp.org>
40475 * m4/inline.m4: New file.
40476 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40477 * modules/list (Files): Add m4/inline.m4.
40478 * modules/oset (Files): Likewise.
40480 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40482 * lib/idcache.c: Include <stddef.h>, for offsetof.
40483 (struct userid.name): Change from char * to a flexible array member.
40485 * modules/idcache (Depends-on): Add flexmember.
40487 * MODULES.html.sh (Core language properties): New module flexmember.
40488 * modules/flexmember, m4/flexmember.m4: New files.
40490 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40491 inline functions that are identical with the old xnmalloc_inline,
40492 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40493 that we can avoid some unnecessary integer multiplications and
40494 divisions in the common case where the element size is known at
40496 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40498 (xnboundedmalloc): Remove.
40499 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40500 arguments, for consistency with rest of this header.
40501 (xcharalloc): Rewrite using XNMALLOC.
40502 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40503 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40504 versions have been moved to lib/xalloc.h and renamed to be the
40505 non-*_inline versions.
40506 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40507 and xnrealloc functions, since those functions are now inline and
40509 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40510 renaming described above.
40511 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40512 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40513 captures the dependency in AC_C_INLINE.
40515 New module canonicalize-lgpl, proposed by Charles Wilson in
40516 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40517 with a few small changes afterwards.
40518 * MODULES.html.sh (File system functions): New module
40520 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40521 and canonicalize_file_name.
40522 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40523 * modules/canonicalize-lgpl: New files.
40525 2006-11-05 Bruno Haible <bruno@clisp.org>
40527 * gnulib-tool (func_import, func_create_testdir): Create directories
40528 also for files in subdirectories of lib/.
40530 2006-11-05 Bruno Haible <bruno@clisp.org>
40532 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40535 2006-11-03 Bruno Haible <bruno@clisp.org>
40537 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40538 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40539 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40540 (xnboundedmalloc): New inline function.
40541 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40542 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40544 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40546 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40547 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40548 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40550 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40551 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40553 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40554 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40555 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40557 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40558 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40559 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40560 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40561 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40562 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40563 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40565 2006-11-03 Bruno Haible <bruno@clisp.org>
40567 * lib/c-ctype.h [C++]: Define functions without name mangling.
40568 * lib/fwriteerror.h [C++]: Likewise.
40569 * lib/gcd.h [C++]: Likewise.
40570 * lib/linebreak.h [C++]: Likewise.
40572 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40574 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40575 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40576 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40577 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40578 Check for functions and headers just once.
40579 Check for declaration of canonicalize_file_name.
40580 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40582 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40584 * gnulib-tool (func_import): Fix typo in actioncmd.
40586 2006-11-02 Bruno Haible <bruno@clisp.org>
40588 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40589 newline sequence in the Makefile.am snippet as a space, like "make"
40591 Reported by Roger Persson <perrog@gmail.com>.
40593 2006-11-01 Bruno Haible <bruno@clisp.org>
40595 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40596 already declared in <string.h>.
40597 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40599 2006-11-01 Bruno Haible <bruno@clisp.org>
40601 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40602 * lib/strcase.h: Include <string.h>.
40603 (strcasecmp): Define to rpl_strcasecmp here.
40605 2006-11-01 Bruno Haible <bruno@clisp.org>
40607 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40609 2006-11-01 Eric Blake <ebb9@byu.net>
40611 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40613 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40615 2006-10-29 Bruno Haible <bruno@clisp.org>
40617 Make it compile in C++ mode.
40618 * lib/full-write.c (full_rw): Add a cast.
40620 2006-11-01 Bruno Haible <bruno@clisp.org>
40622 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40623 be POSIX compliant.
40624 Reported by Roger Persson <perrog@gmail.com>.
40626 2006-11-01 Eric Blake <ebb9@byu.net>
40628 * lib/getopt_.h: Fix comments.
40630 2006-10-31 Eric Blake <ebb9@byu.net>
40632 * modules/tmpdir (Depends-on): Add sys_stat.
40633 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40634 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40635 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40636 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40639 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40641 Avoid some C++ diagnostics reported by Bruno Haible.
40642 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40644 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40645 (struct slotvec): Move to top level.
40646 (quotearg_n_options): Rewrite to avoid xmalloc.
40647 * lib/xalloc.h (xcharalloc): New function.
40648 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40649 [defined __cplusplus]: Add function template that provides result
40650 type propagation. This part of the change is from Bruno Haible.
40652 2006-10-29 Bruno Haible <bruno@clisp.org>
40654 Make it compile in C++ mode.
40655 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40656 * lib/strnlen1.c (strnlen1): Cast memchr result.
40657 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40658 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40659 (create_temp_dir): Rename local variable 'template'.
40660 (compile_csharp_using_sscli): Add cast.
40661 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40662 * lib/findprog.c (find_in_path): Likewise.
40663 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40664 * lib/wait-process.c (register_slave_subprocess): Likewise.
40666 2006-10-22 Bruno Haible <bruno@clisp.org>
40668 * modules/tsearch: New file.
40669 * lib/tsearch.h: New file.
40670 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40671 * m4/tsearch.m4: New file.
40672 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40674 2006-10-29 Eric Blake <ebb9@byu.net>
40676 * lib/arcfour.c: Assume config.h.
40677 * lib/arctwo.c: Likewise.
40678 * lib/base64.c: Likewise.
40679 * lib/check-version.c: Likewise.
40680 * lib/crc.c: Likewise.
40681 * lib/des.c: Likewise.
40682 * lib/gc-gnulib.c: Likewise.
40683 * lib/gc-libgcrypt.c: Likewise.
40684 * lib/gc-pbkdf2-sha1.c: Likewise.
40685 * lib/getaddrinfo.c: Likewise.
40686 * lib/getdelim.c: Likewise.
40687 * lib/getline.c: Likewise.
40688 * lib/hmac-md5.c: Likewise.
40689 * lib/hmac-sha1.c: Likewise.
40690 * lib/iconvme.c: Likewise.
40691 * lib/md2.c: Likewise.
40692 * lib/md4.c: Likewise.
40693 * lib/memxor.c: Likewise.
40694 * lib/read-file.c: Likewise.
40695 * lib/readline.c: Likewise.
40696 * lib/rijndael-alg-fst.c: Likewise.
40697 * lib/rijndael-api-fst.c: Likewise.
40698 * lib/xgetdomainname.c: Likewise.
40700 2006-10-28 Eric Blake <ebb9@byu.net>
40702 * lib/xstrndup.c: Assume config.h.
40704 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40706 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40707 stat-macros.h is now for our own macros, whereas stat_h is for
40708 macros in the <sys/stat.h> name space.
40709 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40710 (STAT_MACROS_H): Remove.
40711 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40712 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40713 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40714 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40715 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40716 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40717 Move these macros to ...
40718 * lib/stat_.h: here. Don't include stat-macros.h.
40719 * lib/canonicalize.c: Don't include stat-macros.h.
40720 * lib/chown.c: Likewise.
40721 * lib/euidaccess.c: Likewise.
40722 * lib/file-type.c: Likewise.
40723 * lib/filemode.c: Likewise.
40724 * lib/glob.c: Likewise.
40725 * lib/isapipe.c: Likewise.
40726 * lib/lchown.c: Likewise.
40727 * lib/lstat.c: Likewise.
40728 * lib/mkdir-p.c: Likewise.
40729 * lib/rmdir.c: Likewise.
40730 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40731 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40732 unless mkdir isn't declared, to speed up 'configure'.
40733 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40734 would define all the S_* symbols.
40735 * modules/canonicalize (Depends-on):
40736 Depend on sys_stat, not stat-macros.
40737 * modules/chown: Likewise.
40738 * modules/euidaccess: Likewise.
40739 * modules/filemode: Likewise.
40740 * modules/file-type: Likewise.
40741 * modules/glob: Likewise.
40742 * modules/isapipe: Likewise.
40743 * modules/lchown: Likewise.
40744 * modules/lstat: Likewise.
40745 * modules/mkancesdirs: Likewise.
40746 * modules/rmdir: Likewise.
40747 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40748 * modules/modechange: Likewise.
40749 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40750 (configure.ac): Remove gl_STAT_MACROS.
40751 * modules/sys_stat (Depends-on): Remove stat-macros.
40753 2006-10-27 Bruno Haible <bruno@clisp.org>
40755 * m4/signed.m4: Remove file.
40756 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40758 * modules/vasnprintf (Files): Remove m4/signed.m4.
40760 2006-10-27 Bruno Haible <bruno@clisp.org>
40762 Update to GNU gettext 0.16.
40763 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40764 m4/inttypes-h.m4, m4/signed.m4.
40765 * m4/gettext.m4: Update to GNU gettext 0.16.
40766 * m4/intl.m4: New file, from GNU gettext.
40767 * m4/intldir.m4: New file, from GNU gettext.
40768 * config/srclist.txt: Update
40770 2006-10-27 Eric Blake <ebb9@byu.net>
40772 * MODULES.html.sh: Document tempname.
40773 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40775 (Files): Move lib/tempname.c...
40776 * modules/tempname: ...to this new module.
40777 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40778 (gl_PREREQ_TEMPNAME): Move...
40779 * m4/tempname.m4: ...to this new file.
40780 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40781 * modules/sys_stat (Depends-on): Add stat-macros.
40782 * lib/stat_.h (includes): Pick up stat macros.
40783 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40784 if stat macros are broken.
40785 * lib/tempname.c (includes): No need to include "stat-macros.h".
40786 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40787 (direxists, __path_search) [!_LIBC]: Don't compile these in
40788 gnulib; the tmpdir module covers that.
40789 * lib/tempname.h: New file.
40791 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40793 * COPYING: Explain how gnulib-tool converts licence headers.
40794 Almost all wording by Eric Blake.
40796 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40798 * lib/mbchar.h (is_basic_table): Make read-only.
40799 * lib/mbchar.c (is_basic_table): Likewise.
40800 Reported by John Darrington.
40802 2006-10-25 Bruno Haible <bruno@clisp.org>
40804 * lib/progname.h (set_program_name): Undefine before defining.
40806 2006-10-25 Bruno Haible <bruno@clisp.org>
40808 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40809 false for non-gcc C++ compilers.
40810 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40812 2006-10-24 Bruno Haible <bruno@clisp.org>
40814 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40815 iconv implementations like Irix iconv.
40817 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40819 * modules/vararrays: New file.
40820 * m4/vararrays.m4: New file, taken from diffutils.
40821 * MODULES.html.sh: New module vararrays.
40823 2006-10-24 Karl Berry <karl@gnu.org>
40825 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40826 Don't call GNU Unix.
40828 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40830 * users.txt: Add Libtool.
40834 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40836 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40837 to gnulib's policy of including config.h unconditionally.
40839 2006-10-24 Bruno Haible <bruno@clisp.org>
40841 * modules/wcwidth (Files): Add m4/wint_t.m4.
40842 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40843 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40845 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40847 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40848 to pacify GCC with some -W flags enabled. Problem reported by
40851 2006-10-24 Jim Meyering <jim@meyering.net>
40853 * MODULES.html.sh: Remove uinttostr. It's not a module.
40854 Reported by Karl Berry.
40856 2006-10-23 Bruno Haible <bruno@clisp.org>
40858 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40860 2006-10-24 Bruno Haible <bruno@clisp.org>
40862 * lib/gl_list.h: Use C comment style, not C++ comment style.
40864 2006-10-23 Eric Blake <ebb9@byu.net>
40866 * lib/getaddrinfo.c (includes): Add missing include.
40868 2006-10-23 Bruno Haible <bruno@clisp.org>
40869 Paul Eggert <eggert@cs.ucla.edu>
40871 Ability to rename obstack_free.
40872 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40874 (obstack_free): Invoke the __obstack_free macro.
40875 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40877 2006-10-23 Bruno Haible <bruno@clisp.org>
40878 Paul Eggert <eggert@cs.ucla.edu>
40880 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40881 __argc, __argv from the declaration. (They are defined as macros on
40884 2006-10-22 Bruno Haible <bruno@clisp.org>
40886 * doc/gnulib-intro.texi: New file.
40887 * doc/gnulib.texi: Include it.
40889 2006-10-21 Bruno Haible <bruno@clisp.org>
40891 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40892 "Introduction", "Miscellanous Notes", "Particular Modules".
40894 2006-10-21 Bruno Haible <bruno@clisp.org>
40896 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40897 Change mostlyclean-local rule to avoid sh syntax error from bash
40898 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40900 2006-10-23 Jim Meyering <jim@meyering.net>
40902 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40903 in place of snprintf.
40905 * modules/inttostr (Files): Add lib/uinttostr.c.
40906 * lib/uinttostr.c (inttostr): New file/function.
40907 * lib/inttostr.h (uinttostr): Declare.
40908 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40909 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40911 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40913 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40915 * lib/canonicalize.c (ELOOP): Define if not already defined.
40916 Problem reported by Bruno Haible in
40917 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40919 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40921 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40922 Problem reported by Perry Smith and Ville Laurikari.
40924 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40927 2006-10-19 Bruno Haible <bruno@clisp.org>
40929 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40932 2006-10-19 Bruno Haible <bruno@clisp.org>
40934 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40937 2006-10-19 Bruno Haible <bruno@clisp.org>
40939 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40941 2006-10-19 Bruno Haible <bruno@clisp.org>
40943 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40946 2006-10-19 Bruno Haible <bruno@clisp.org>
40948 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40951 2006-10-19 Bruno Haible <bruno@clisp.org>
40953 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40954 mountlist by default.
40956 2006-10-16 Bruno Haible <bruno@clisp.org>
40958 * lib/c-strstr.c: Include c-strstr.h.
40960 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40962 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40965 2006-10-18 Bruno Haible <bruno@clisp.org>
40967 * lib/lock.h [C++]: Wrap definitions in extern "C".
40969 2006-10-18 Bruno Haible <bruno@clisp.org>
40971 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40974 2006-10-18 Bruno Haible <bruno@clisp.org>
40976 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40978 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40980 * lib/xstrtol.h: Include gettext.h.
40981 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40982 Problem reported by Eric Blake.
40983 * modules/xstrtol (Depends-on): Add gettext-h.
40985 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40987 * lib/strftime.c (advance): New macro.
40988 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40989 incomplete type, so you can't add 0 to it. Problem and patch
40990 reported by Eelco Dolstra for dietlibc.
40992 2006-10-18 Jim Meyering <jim@meyering.net>
40994 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40995 type for a local, and rename it: s/up/user_proc/.
40997 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40999 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41000 READ_UTMP_USER_PROCESS.
41001 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41003 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
41005 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41006 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41008 2006-10-17 Eric Blake <ebb9@byu.net>
41010 * lib/sigprocmask.c (sigprocmask): Fix typo.
41012 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41014 * modules/clean-temp (Makefile.am): Don't add to make output...
41015 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41018 2006-10-17 Bruno Haible <bruno@clisp.org>
41020 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41021 differently if DEFAULT_TEXT_DOMAIN is set.
41023 2006-10-16 Bruno Haible <bruno@clisp.org>
41025 * lib/clean-temp.c: Include fwriteerror.h.
41027 2006-10-16 Bruno Haible <bruno@clisp.org>
41029 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41031 2006-10-16 Bruno Haible <bruno@clisp.org>
41033 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41034 * lib/sigprocmask.h: Include <sys/types.h>.
41035 (sigset_t): Use the system's definition if present.
41037 2006-10-17 Eric Blake <ebb9@byu.net>
41039 * lib/xvasprintf.c (includes): Assume config.h.
41040 * lib/xasprintf.c (includes): Likewise.
41042 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
41044 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41045 at least as wide as intmax_t.
41047 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
41049 (Imported from Automake.)
41050 * build-aux/gnupload: Update to version 1.1 of directive file.
41052 2006-10-16 Eric Blake <ebb9@byu.net>
41054 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41055 match Automake 1.10a.
41057 2006-10-14 Bruno Haible <bruno@clisp.org>
41059 * modules/sigprocmask: New file.
41060 * lib/sigprocmask.h: New file.
41061 * lib/sigprocmask.c: New file.
41062 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41063 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41064 request sigprocmask.o.
41065 (gl_PREREQ_SIGPROCMASK): New macro.
41066 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41067 (Depends-on): Add sigprocmask.
41068 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41069 gt_SIGNALBLOCKING. Test for 'raise' only once.
41070 * lib/fatal-signal.c: Include sigprocmask.h.
41071 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41072 unblock_fatal_signals): Define always.
41073 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41076 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41078 Sync from Automake.
41079 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41080 which incorrectly sets the mode of an existing destination
41081 directory. In some cases the unpatched install-sh could do the
41082 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41083 system. We hope this is rare in practice, but it's clearly worth
41084 fixing. Problem reported by Alex Unleashed in
41085 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41086 Also, don't bother to check for -m bugs unless we're using -m;
41087 suggested by Stepan Kasal.
41089 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41091 Sync from Automake.
41092 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41093 `-c' flag, so they appear at the same position as in %FASTDEP%
41094 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41095 which ignores unknown options only after the first non-option.
41096 Bug report against M4 by Nelson H. F. Beebe.
41098 2006-10-13 Jim Meyering <jim@meyering.net>
41100 Fix a bug in yesterday's change.
41101 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41102 p->fts_statp->st_dev would be used uninitialized.
41103 Ensures that we always call fts_stat on the very first entry.
41104 Miklos Szeredi reported that find -xdev stopped working.
41106 2006-10-12 Bruno Haible <bruno@clisp.org>
41108 * gnulib-tool (func_get_automake_snippet): Append an automatically
41109 computed EXTRA_DIST augmentation.
41110 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41111 * modules/alloca-opt (Makefile.am): Likewise.
41112 * modules/allocsa (Makefile.am): Likewise.
41113 * modules/arcfour (Makefile.am): Likewise.
41114 * modules/arctwo (Makefile.am): Likewise.
41115 * modules/argmatch (Makefile.am): Likewise.
41116 * modules/argz (Makefile.am): Likewise.
41117 * modules/atexit (Makefile.am): Likewise.
41118 * modules/backupfile (Makefile.am): Likewise.
41119 * modules/byteswap (Makefile.am): Likewise.
41120 * modules/c-strtod (Makefile.am): Likewise.
41121 * modules/c-strtold (Makefile.am): Likewise.
41122 * modules/calloc (Makefile.am): Likewise.
41123 * modules/canon-host (Makefile.am): Likewise.
41124 * modules/canonicalize (Makefile.am): Likewise.
41125 * modules/chdir-long (Makefile.am): Likewise.
41126 * modules/chdir-safer (Makefile.am): Likewise.
41127 * modules/check-version (Makefile.am): Likewise.
41128 * modules/chown (Makefile.am): Likewise.
41129 * modules/cloexec (Makefile.am): Likewise.
41130 * modules/close-stream (Makefile.am): Likewise.
41131 * modules/closeout (Makefile.am): Likewise.
41132 * modules/crc (Makefile.am): Likewise.
41133 * modules/csharpexec (Makefile.am): Likewise.
41134 * modules/cycle-check (Makefile.am): Likewise.
41135 * modules/des (Makefile.am): Likewise.
41136 * modules/dev-ino (Makefile.am): Likewise.
41137 * modules/dirfd (Makefile.am): Likewise.
41138 * modules/dirname (Makefile.am): Likewise.
41139 * modules/dup2 (Makefile.am): Likewise.
41140 * modules/eealloc (Makefile.am): Likewise.
41141 * modules/error (Makefile.am): Likewise.
41142 * modules/euidaccess (Makefile.am): Likewise.
41143 * modules/exclude (Makefile.am): Likewise.
41144 * modules/exitfail (Makefile.am): Likewise.
41145 * modules/fcntl-safer (Makefile.am): Likewise.
41146 * modules/fcntl (Makefile.am): Likewise.
41147 * modules/file-type (Makefile.am): Likewise.
41148 * modules/fileblocks (Makefile.am): Likewise.
41149 * modules/filemode (Makefile.am): Likewise.
41150 * modules/filenamecat (Makefile.am): Likewise.
41151 * modules/fnmatch (Makefile.am): Likewise.
41152 * modules/fopen-safer (Makefile.am): Likewise.
41153 * modules/fpending (Makefile.am): Likewise.
41154 * modules/fprintftime (Makefile.am): Likewise.
41155 * modules/free (Makefile.am): Likewise.
41156 * modules/fsusage (Makefile.am): Likewise.
41157 * modules/ftruncate (Makefile.am): Likewise.
41158 * modules/fts (Makefile.am): Likewise.
41159 * modules/gc-arcfour (Makefile.am): Likewise.
41160 * modules/gc-des (Makefile.am): Likewise.
41161 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41162 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41163 * modules/gc-md4 (Makefile.am): Likewise.
41164 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41165 * modules/gc-sha1 (Makefile.am): Likewise.
41166 * modules/gc (Makefile.am): Likewise.
41167 * modules/getaddrinfo (Makefile.am): Likewise.
41168 * modules/getcwd (Makefile.am): Likewise.
41169 * modules/getdelim (Makefile.am): Likewise.
41170 * modules/getdomainname (Makefile.am): Likewise.
41171 * modules/getgroups (Makefile.am): Likewise.
41172 * modules/gethostname (Makefile.am): Likewise.
41173 * modules/gethrxtime (Makefile.am): Likewise.
41174 * modules/getline (Makefile.am): Likewise.
41175 * modules/getloadavg (Makefile.am): Likewise.
41176 * modules/getlogin_r (Makefile.am): Likewise.
41177 * modules/getndelim2 (Makefile.am): Likewise.
41178 * modules/getopt (Makefile.am): Likewise.
41179 * modules/getpagesize (Makefile.am): Likewise.
41180 * modules/getpass-gnu (Makefile.am): Likewise.
41181 * modules/getpass (Makefile.am): Likewise.
41182 * modules/getsubopt (Makefile.am): Likewise.
41183 * modules/gettime (Makefile.am): Likewise.
41184 * modules/gettimeofday (Makefile.am): Likewise.
41185 * modules/getugroups (Makefile.am): Likewise.
41186 * modules/getusershell (Makefile.am): Likewise.
41187 * modules/glob (Makefile.am): Likewise.
41188 * modules/group-member (Makefile.am): Likewise.
41189 * modules/hard-locale (Makefile.am): Likewise.
41190 * modules/hash (Makefile.am): Likewise.
41191 * modules/hmac-md5 (Makefile.am): Likewise.
41192 * modules/hmac-sha1 (Makefile.am): Likewise.
41193 * modules/human (Makefile.am): Likewise.
41194 * modules/idcache (Makefile.am): Likewise.
41195 * modules/imaxabs (Makefile.am): Likewise.
41196 * modules/imaxdiv (Makefile.am): Likewise.
41197 * modules/inet_ntop (Makefile.am): Likewise.
41198 * modules/inet_pton (Makefile.am): Likewise.
41199 * modules/intprops (Makefile.am): Likewise.
41200 * modules/inttostr (Makefile.am): Likewise.
41201 * modules/inttypes (Makefile.am): Likewise.
41202 * modules/isapipe (Makefile.am): Likewise.
41203 * modules/javaversion (Makefile.am): Likewise.
41204 * modules/lchmod (Makefile.am): Likewise.
41205 * modules/lchown (Makefile.am): Likewise.
41206 * modules/localcharset (Makefile.am): Likewise.
41207 * modules/long-options (Makefile.am): Likewise.
41208 * modules/lstat (Makefile.am): Likewise.
41209 * modules/malloc (Makefile.am): Likewise.
41210 * modules/mathl (Makefile.am): Likewise.
41211 * modules/mbchar (Makefile.am): Likewise.
41212 * modules/md2 (Makefile.am): Likewise.
41213 * modules/md4 (Makefile.am): Likewise.
41214 * modules/md5 (Makefile.am): Likewise.
41215 * modules/memcasecmp (Makefile.am): Likewise.
41216 * modules/memchr (Makefile.am): Likewise.
41217 * modules/memcmp (Makefile.am): Likewise.
41218 * modules/memcoll (Makefile.am): Likewise.
41219 * modules/memcpy (Makefile.am): Likewise.
41220 * modules/memmem (Makefile.am): Likewise.
41221 * modules/memmove (Makefile.am): Likewise.
41222 * modules/mempcpy (Makefile.am): Likewise.
41223 * modules/memrchr (Makefile.am): Likewise.
41224 * modules/memset (Makefile.am): Likewise.
41225 * modules/memxor (Makefile.am): Likewise.
41226 * modules/mkancesdirs (Makefile.am): Likewise.
41227 * modules/mkdir-p (Makefile.am): Likewise.
41228 * modules/mkdir (Makefile.am): Likewise.
41229 * modules/mkdtemp (Makefile.am): Likewise.
41230 * modules/mkstemp (Makefile.am): Likewise.
41231 * modules/mktime (Makefile.am): Likewise.
41232 * modules/modechange (Makefile.am): Likewise.
41233 * modules/mountlist (Makefile.am): Likewise.
41234 * modules/nanosleep (Makefile.am): Likewise.
41235 * modules/obstack (Makefile.am): Likewise.
41236 * modules/openat (Makefile.am): Likewise.
41237 * modules/pagealign_alloc (Makefile.am): Likewise.
41238 * modules/pathmax (Makefile.am): Likewise.
41239 * modules/physmem (Makefile.am): Likewise.
41240 * modules/poll (Makefile.am): Likewise.
41241 * modules/posixtm (Makefile.am): Likewise.
41242 * modules/posixver (Makefile.am): Likewise.
41243 * modules/putenv (Makefile.am): Likewise.
41244 * modules/quote (Makefile.am): Likewise.
41245 * modules/quotearg (Makefile.am): Likewise.
41246 * modules/raise (Makefile.am): Likewise.
41247 * modules/read-file (Makefile.am): Likewise.
41248 * modules/readline (Makefile.am): Likewise.
41249 * modules/readlink (Makefile.am): Likewise.
41250 * modules/readtokens (Makefile.am): Likewise.
41251 * modules/readutmp (Makefile.am): Likewise.
41252 * modules/realloc (Makefile.am): Likewise.
41253 * modules/regex (Makefile.am): Likewise.
41254 * modules/rename-dest-slash (Makefile.am): Likewise.
41255 * modules/rename (Makefile.am): Likewise.
41256 * modules/rijndael (Makefile.am): Likewise.
41257 * modules/rmdir (Makefile.am): Likewise.
41258 * modules/rpmatch (Makefile.am): Likewise.
41259 * modules/safe-read (Makefile.am): Likewise.
41260 * modules/safe-write (Makefile.am): Likewise.
41261 * modules/same-inode (Makefile.am): Likewise.
41262 * modules/same (Makefile.am): Likewise.
41263 * modules/save-cwd (Makefile.am): Likewise.
41264 * modules/savedir (Makefile.am): Likewise.
41265 * modules/setenv (Makefile.am): Likewise.
41266 * modules/settime (Makefile.am): Likewise.
41267 * modules/sha1 (Makefile.am): Likewise.
41268 * modules/sig2str (Makefile.am): Likewise.
41269 * modules/snprintf (Makefile.am): Likewise.
41270 * modules/stat-macros (Makefile.am): Likewise.
41271 * modules/stat-time (Makefile.am): Likewise.
41272 * modules/stdbool (Makefile.am): Likewise.
41273 * modules/stdint (Makefile.am): Likewise.
41274 * modules/stdlib-safer (Makefile.am): Likewise.
41275 * modules/stpcpy (Makefile.am): Likewise.
41276 * modules/stpncpy (Makefile.am): Likewise.
41277 * modules/strcase (Makefile.am): Likewise.
41278 * modules/strcasestr (Makefile.am): Likewise.
41279 * modules/strchrnul (Makefile.am): Likewise.
41280 * modules/strcspn (Makefile.am): Likewise.
41281 * modules/strdup (Makefile.am): Likewise.
41282 * modules/strerror (Makefile.am): Likewise.
41283 * modules/strftime (Makefile.am): Likewise.
41284 * modules/strndup (Makefile.am): Likewise.
41285 * modules/strnlen (Makefile.am): Likewise.
41286 * modules/strpbrk (Makefile.am): Likewise.
41287 * modules/strsep (Makefile.am): Likewise.
41288 * modules/strstr (Makefile.am): Likewise.
41289 * modules/strtod (Makefile.am): Likewise.
41290 * modules/strtoimax (Makefile.am): Likewise.
41291 * modules/strtok_r (Makefile.am): Likewise.
41292 * modules/strtol (Makefile.am): Likewise.
41293 * modules/strtoll (Makefile.am): Likewise.
41294 * modules/strtoul (Makefile.am): Likewise.
41295 * modules/strtoull (Makefile.am): Likewise.
41296 * modules/strtoumax (Makefile.am): Likewise.
41297 * modules/strverscmp (Makefile.am): Likewise.
41298 * modules/sys_socket (Makefile.am): Likewise.
41299 * modules/sys_stat (Makefile.am): Likewise.
41300 * modules/sysexits (Makefile.am): Likewise.
41301 * modules/time_r (Makefile.am): Likewise.
41302 * modules/timegm (Makefile.am): Likewise.
41303 * modules/timespec (Makefile.am): Likewise.
41304 * modules/tmpfile-safer (Makefile.am): Likewise.
41305 * modules/trim (Makefile.am): Likewise.
41306 * modules/unistd-safer (Makefile.am): Likewise.
41307 * modules/unlinkdir (Makefile.am): Likewise.
41308 * modules/unlocked-io (Makefile.am): Likewise.
41309 * modules/userspec (Makefile.am): Likewise.
41310 * modules/utime (Makefile.am): Likewise.
41311 * modules/utimecmp (Makefile.am): Likewise.
41312 * modules/utimens (Makefile.am): Likewise.
41313 * modules/vasnprintf (Makefile.am): Likewise.
41314 * modules/vasprintf (Makefile.am): Likewise.
41315 * modules/vsnprintf (Makefile.am): Likewise.
41316 * modules/xalloc (Makefile.am): Likewise.
41317 * modules/xgetcwd (Makefile.am): Likewise.
41318 * modules/xnanosleep (Makefile.am): Likewise.
41319 * modules/xreadlink (Makefile.am): Likewise.
41320 * modules/xstrtod (Makefile.am): Likewise.
41321 * modules/xstrtol (Makefile.am): Likewise.
41322 * modules/xstrtold (Makefile.am): Likewise.
41323 * modules/yesno (Makefile.am): Likewise.
41324 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41326 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41328 * modules/error (Makefile.am): Distribute files through
41329 EXTRA_DIST, not lib_SOURCES.
41331 2006-10-12 Eric Blake <ebb9@byu.net>
41333 * modules/error (Makefile.am): Distribute files in /lib.
41334 * modules/obstack (Makefile.am): Likewise.
41336 2006-10-12 Bruno Haible <bruno@clisp.org>
41338 * modules/acl (Makefile.am): Distribute all files in lib/ through
41340 * modules/arcfour (Makefile.am): Likewise.
41341 * modules/arctwo (Makefile.am): Likewise.
41342 * modules/argmatch (Makefile.am): Likewise.
41343 * modules/argz (Makefile.am): Likewise.
41344 * modules/atexit (Makefile.am): Likewise.
41345 * modules/backupfile (Makefile.am): Likewise.
41346 * modules/c-strtod (Makefile.am): Likewise.
41347 * modules/c-strtold (Makefile.am): Likewise.
41348 * modules/calloc (Makefile.am): Likewise.
41349 * modules/canon-host (Makefile.am): Likewise.
41350 * modules/canonicalize (Makefile.am): Likewise.
41351 * modules/chdir-long (Makefile.am): Likewise.
41352 * modules/chdir-safer (Makefile.am): Likewise.
41353 * modules/check-version (Makefile.am): Likewise.
41354 * modules/chown (Makefile.am): Likewise.
41355 * modules/cloexec (Makefile.am): Likewise.
41356 * modules/close-stream (Makefile.am): Likewise.
41357 * modules/closeout (Makefile.am): Likewise.
41358 * modules/crc (Makefile.am): Likewise.
41359 * modules/cycle-check (Makefile.am): Likewise.
41360 * modules/des (Makefile.am): Likewise.
41361 * modules/dirfd (Makefile.am): Likewise.
41362 * modules/dirname (Makefile.am): Likewise.
41363 * modules/dup2 (Makefile.am): Likewise.
41364 * modules/euidaccess (Makefile.am): Likewise.
41365 * modules/exclude (Makefile.am): Likewise.
41366 * modules/exitfail (Makefile.am): Likewise.
41367 * modules/fcntl-safer (Makefile.am): Likewise.
41368 * modules/file-type (Makefile.am): Likewise.
41369 * modules/fileblocks (Makefile.am): Likewise.
41370 * modules/filemode (Makefile.am): Likewise.
41371 * modules/filenamecat (Makefile.am): Likewise.
41372 * modules/fnmatch (Makefile.am): Likewise.
41373 * modules/fopen-safer (Makefile.am): Likewise.
41374 * modules/fpending (Makefile.am): Likewise.
41375 * modules/fprintftime (Makefile.am): Likewise.
41376 * modules/free (Makefile.am): Likewise.
41377 * modules/fsusage (Makefile.am): Likewise.
41378 * modules/ftruncate (Makefile.am): Likewise.
41379 * modules/fts (Makefile.am): Likewise.
41380 * modules/gc (Makefile.am): Likewise.
41381 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41382 * modules/getaddrinfo (Makefile.am): Likewise.
41383 * modules/getcwd (Makefile.am): Likewise.
41384 * modules/getdelim (Makefile.am): Likewise.
41385 * modules/getdomainname (Makefile.am): Likewise.
41386 * modules/getgroups (Makefile.am): Likewise.
41387 * modules/gethostname (Makefile.am): Likewise.
41388 * modules/gethrxtime (Makefile.am): Likewise.
41389 * modules/getline (Makefile.am): Likewise.
41390 * modules/getloadavg (Makefile.am): Likewise.
41391 * modules/getlogin_r (Makefile.am): Likewise.
41392 * modules/getopt (Makefile.am): Likewise.
41393 * modules/getpass (Makefile.am): Likewise.
41394 * modules/getpass-gnu (Makefile.am): Likewise.
41395 * modules/getsubopt (Makefile.am): Likewise.
41396 * modules/gettime (Makefile.am): Likewise.
41397 * modules/gettimeofday (Makefile.am): Likewise.
41398 * modules/getugroups (Makefile.am): Likewise.
41399 * modules/getusershell (Makefile.am): Likewise.
41400 * modules/glob (Makefile.am): Likewise.
41401 * modules/group-member (Makefile.am): Likewise.
41402 * modules/hard-locale (Makefile.am): Likewise.
41403 * modules/hash (Makefile.am): Likewise.
41404 * modules/hmac-md5 (Makefile.am): Likewise.
41405 * modules/hmac-sha1 (Makefile.am): Likewise.
41406 * modules/human (Makefile.am): Likewise.
41407 * modules/idcache (Makefile.am): Likewise.
41408 * modules/imaxabs (Makefile.am): Likewise.
41409 * modules/imaxdiv (Makefile.am): Likewise.
41410 * modules/inet_ntop (Makefile.am): Likewise.
41411 * modules/inet_pton (Makefile.am): Likewise.
41412 * modules/inttostr (Makefile.am): Likewise.
41413 * modules/isapipe (Makefile.am): Likewise.
41414 * modules/lchown (Makefile.am): Likewise.
41415 * modules/long-options (Makefile.am): Likewise.
41416 * modules/lstat (Makefile.am): Likewise.
41417 * modules/malloc (Makefile.am): Likewise.
41418 * modules/mathl (Makefile.am): Likewise.
41419 * modules/mbchar (Makefile.am): Likewise.
41420 * modules/md2 (Makefile.am): Likewise.
41421 * modules/md4 (Makefile.am): Likewise.
41422 * modules/md5 (Makefile.am): Likewise.
41423 * modules/memcasecmp (Makefile.am): Likewise.
41424 * modules/memchr (Makefile.am): Likewise.
41425 * modules/memcmp (Makefile.am): Likewise.
41426 * modules/memcoll (Makefile.am): Likewise.
41427 * modules/memcpy (Makefile.am): Likewise.
41428 * modules/memmem (Makefile.am): Likewise.
41429 * modules/memmove (Makefile.am): Likewise.
41430 * modules/mempcpy (Makefile.am): Likewise.
41431 * modules/memrchr (Makefile.am): Likewise.
41432 * modules/memset (Makefile.am): Likewise.
41433 * modules/memxor (Makefile.am): Likewise.
41434 * modules/mkancesdirs (Makefile.am): Likewise.
41435 * modules/mkdir (Makefile.am): Likewise.
41436 * modules/mkdir-p (Makefile.am): Likewise.
41437 * modules/mkdtemp (Makefile.am): Likewise.
41438 * modules/mkstemp (Makefile.am): Likewise.
41439 * modules/mktime (Makefile.am): Likewise.
41440 * modules/modechange (Makefile.am): Likewise.
41441 * modules/mountlist (Makefile.am): Likewise.
41442 * modules/nanosleep (Makefile.am): Likewise.
41443 * modules/openat (Makefile.am): Likewise.
41444 * modules/pagealign_alloc (Makefile.am): Likewise.
41445 * modules/physmem (Makefile.am): Likewise.
41446 * modules/poll (Makefile.am): Likewise.
41447 * modules/posixtm (Makefile.am): Likewise.
41448 * modules/posixver (Makefile.am): Likewise.
41449 * modules/putenv (Makefile.am): Likewise.
41450 * modules/quote (Makefile.am): Likewise.
41451 * modules/quotearg (Makefile.am): Likewise.
41452 * modules/raise (Makefile.am): Likewise.
41453 * modules/read-file (Makefile.am): Likewise.
41454 * modules/readline (Makefile.am): Likewise.
41455 * modules/readlink (Makefile.am): Likewise.
41456 * modules/readtokens (Makefile.am): Likewise.
41457 * modules/readutmp (Makefile.am): Likewise.
41458 * modules/realloc (Makefile.am): Likewise.
41459 * modules/regex (Makefile.am): Likewise.
41460 * modules/rename (Makefile.am): Likewise.
41461 * modules/rename-dest-slash (Makefile.am): Likewise.
41462 * modules/rijndael (Makefile.am): Likewise.
41463 * modules/rmdir (Makefile.am): Likewise.
41464 * modules/rpmatch (Makefile.am): Likewise.
41465 * modules/safe-read (Makefile.am): Likewise.
41466 * modules/safe-write (Makefile.am): Likewise.
41467 * modules/same (Makefile.am): Likewise.
41468 * modules/save-cwd (Makefile.am): Likewise.
41469 * modules/savedir (Makefile.am): Likewise.
41470 * modules/setenv (Makefile.am): Likewise.
41471 * modules/settime (Makefile.am): Likewise.
41472 * modules/sha1 (Makefile.am): Likewise.
41473 * modules/sig2str (Makefile.am): Likewise.
41474 * modules/snprintf (Makefile.am): Likewise.
41475 * modules/stdlib-safer (Makefile.am): Likewise.
41476 * modules/stpcpy (Makefile.am): Likewise.
41477 * modules/stpncpy (Makefile.am): Likewise.
41478 * modules/strcase (Makefile.am): Likewise.
41479 * modules/strcasestr (Makefile.am): Likewise.
41480 * modules/strchrnul (Makefile.am): Likewise.
41481 * modules/strcspn (Makefile.am): Likewise.
41482 * modules/strdup (Makefile.am): Likewise.
41483 * modules/strerror (Makefile.am): Likewise.
41484 * modules/strftime (Makefile.am): Likewise.
41485 * modules/strndup (Makefile.am): Likewise.
41486 * modules/strnlen (Makefile.am): Likewise.
41487 * modules/strpbrk (Makefile.am): Likewise.
41488 * modules/strsep (Makefile.am): Likewise.
41489 * modules/strstr (Makefile.am): Likewise.
41490 * modules/strtod (Makefile.am): Likewise.
41491 * modules/strtoimax (Makefile.am): Likewise.
41492 * modules/strtok_r (Makefile.am): Likewise.
41493 * modules/strtol (Makefile.am): Likewise.
41494 * modules/strtoll (Makefile.am): Likewise.
41495 * modules/strtoul (Makefile.am): Likewise.
41496 * modules/strtoull (Makefile.am): Likewise.
41497 * modules/strtoumax (Makefile.am): Likewise.
41498 * modules/strverscmp (Makefile.am): Likewise.
41499 * modules/time_r (Makefile.am): Likewise.
41500 * modules/timegm (Makefile.am): Likewise.
41501 * modules/tmpfile-safer (Makefile.am): Likewise.
41502 * modules/unistd-safer (Makefile.am): Likewise.
41503 * modules/unlinkdir (Makefile.am): Likewise.
41504 * modules/userspec (Makefile.am): Likewise.
41505 * modules/utime (Makefile.am): Likewise.
41506 * modules/utimecmp (Makefile.am): Likewise.
41507 * modules/utimens (Makefile.am): Likewise.
41508 * modules/vasnprintf (Makefile.am): Likewise.
41509 * modules/vasprintf (Makefile.am): Likewise.
41510 * modules/vsnprintf (Makefile.am): Likewise.
41511 * modules/xalloc (Makefile.am): Likewise.
41512 * modules/xgetcwd (Makefile.am): Likewise.
41513 * modules/xnanosleep (Makefile.am): Likewise.
41514 * modules/xreadlink (Makefile.am): Likewise.
41515 * modules/xstrtod (Makefile.am): Likewise.
41516 * modules/xstrtol (Makefile.am): Likewise.
41517 * modules/xstrtold (Makefile.am): Likewise.
41518 * modules/yesno (Makefile.am): Likewise.
41520 2006-10-12 Jim Meyering <jim@meyering.net>
41522 * m4/getloadavg.m4: Revert the change below.
41524 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41525 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41526 fail with a symlink, which is what coreutils' ./bootstrap now
41527 creates by default.
41529 2006-10-12 Bruno Haible <bruno@clisp.org>
41531 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41533 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41534 MSVC and mingw explicitly.
41536 2006-10-11 Simon Josefsson <jas@extundo.com>
41537 Bruno Haible <bruno@clisp.org>
41539 Add support for multiple gnulib-tool invocations in the scope of a
41540 single configure.ac file.
41541 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41542 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41543 with the same contents as the _LIBADD variable.
41544 (func_emit_initmacro_start, func_emit_initmacro_end,
41545 func_emit_initmacro_done): New functions.
41546 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41547 gl_LIBOBJS and gl_LTLIBOBJS.
41549 2006-10-11 Bruno Haible <bruno@clisp.org>
41551 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41552 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41553 autoreconf. Instead, invoke autopoint explicitly but move back the
41554 *.m4 files from gnulib.
41556 2006-10-11 Bruno Haible <bruno@clisp.org>
41558 * gnulib-tool (func_usage): Make module names after --create-testdir
41560 (func_create_testdir): If no module was specified, use nearly all
41563 2006-10-12 Jim Meyering <jim@meyering.net>
41565 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41566 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41567 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41568 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41569 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41570 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41571 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41572 (fts_set_stat_required): New function.
41573 (fts_open): Defer the calls to fts_stat, if possible or requested.
41574 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41575 into fts_stat itself.
41576 (fts_read): Perform any required (deferred) fts_stat call.
41577 (fts_build): Likewise, for the directory we're about to open and read.
41578 In the readdir loop, carefully decide whether each entry will require
41579 an eventual call to fts_stat, using dirent.d_type info if available.
41580 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41581 a command line argument into this function. Update all callers.
41582 Map a return value of FTS_DOT to FTS_D for a command line argument.
41583 * modules/fts (Depends-on): Add d-type. Alphabetize.
41584 Thanks to Miklos Szeredi for his tenacity and for the initial
41585 bug report about "find" failing on a FUSE-based file system.
41587 * lib/fts.c (fts_open): Use consistent indentation.
41589 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41591 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41592 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41593 reported by Jim Meyering. All uses of cache variables renamed
41594 to match Autoconf's.
41595 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41598 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41599 Fix misspelling in diagnostic.
41601 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41603 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41604 defined. Problem reported by Matthew Woehlke.
41606 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41607 Add support for Tandem NonStop R series.
41608 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41611 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41612 (has_trailing_slash): Omit size arg; all callers changed.
41613 Omit 'inline', since it doesn't help performance and we'd
41614 need to configure it.
41615 Don't count //, ///, etc. as having a trailing slash.
41616 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41617 (rpl_rename_dest_slash): On failure, use rename's errno rather
41618 than (in some cases) an incorrect or junk errno.
41619 Simplify code by removing need to compute length; this does
41620 cause it to make two passes instead of one over the file name,
41623 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41624 change, since Autoconf's version may no longer be appropriate now
41625 that we are using CVS Autoconf's version. Add support for Tandem.
41627 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41628 Bruno Haible <bruno@clisp.org>
41630 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41631 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41632 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41633 gl_AC_TYPE_LONG_LONG.
41635 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41636 instead of HAVE_LONG_LONG.
41637 * lib/printf-args.c (printf_fetchargs): Likewise.
41638 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41639 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41640 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41641 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41642 gl_AC_TYPE_LONG_LONG.
41644 2006-10-11 Bruno Haible <bruno@clisp.org>
41646 * m4/longlong.m4: Add comments.
41647 * m4/ulonglong.m4: Likewise.
41649 2006-10-10 Bruno Haible <bruno@clisp.org>
41651 Make it possible to #define stpcpy, strdup to aliases.
41652 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41653 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41655 2006-10-10 Bruno Haible <bruno@clisp.org>
41657 Make it possible to #define gcd to an alias.
41658 * lib/gcd.c: Include config.h.
41660 2006-10-10 Bruno Haible <bruno@clisp.org>
41662 Make it possible to #define c_isascii to an alias.
41663 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41664 defined. Undefine the macros before defining them, to avoid gcc
41666 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41667 define NO_C_CTYPE_MACROS early.
41669 2006-10-10 Bruno Haible <bruno@clisp.org>
41671 Make it possible to #define set_program_name to an alias.
41672 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41673 ENABLE_RELOCATABLE early.
41675 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41677 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41678 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41679 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41680 More generally, don't assume that 64-bit signed int is available
41681 if unsigned int is, and vice versa.
41682 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41683 unsigned symbols, not on their signed counterparts.
41684 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41685 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41686 (UINT64_C, UINTMAX_C):
41688 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41689 unsigned counterparts.
41690 (Have_long_long, Unsigned): New macros.
41691 (Int): Renamed from INT.
41692 (strtoimax): Use the new macros.
41693 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41694 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41695 * modules/inttypes (inttypes.h): Substitute
41696 HAVE_UNSIGNED_LONG_LONG_INT.
41697 * modules/stdint (stdint.h): Likewise.
41698 (Files): Add m4/ulonglong.m4.
41700 2006-10-10 Bruno Haible <bruno@clisp.org>
41702 Fix a gcc -Wshadow warning.
41703 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41705 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41706 gl_linked_indexof_from_to): Likewise.
41707 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41709 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41711 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41712 Reported by Eric Blake.
41714 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41716 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41717 for NetBSD. Problem reported by Bruno Haible.
41719 2006-10-09 Jim Meyering <jim@meyering.net>
41721 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41722 Patch from Bruno Haible.
41724 2006-10-09 Jim Meyering <jim@meyering.net>
41726 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41727 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41728 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41730 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41732 Don't include <config.h> twice; this doesn't work in some cases,
41733 e.g., when config.h has "#define intmax_t long long int" and
41734 we include <config.h>, <inttypes.h>, <config.h> in that order.
41735 Problem reported by Matthew Woehlke in:
41736 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41737 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41738 * lib/fts-cycle.c: Don't include config.h.
41739 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41740 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41741 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41742 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41744 * lib/xstrtoumax.c: Likewise.
41745 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41746 __strtol and the like, so that this module is more like its siblings.
41747 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41748 Remove; no longer needed now that we assume gnulib inttypes.h.
41750 2006-10-08 Bruno Haible <bruno@clisp.org>
41752 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41755 2006-10-07 Jim Meyering <jim@meyering.net>
41757 * modules/inttypes (inttypes.h): Revert what seems to have been
41758 an inadvertent part of today's change: use "|", not "/" in the
41759 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41761 2006-10-07 Bruno Haible <bruno@clisp.org>
41763 * modules/sublist: New file.
41765 2006-10-07 Bruno Haible <bruno@clisp.org>
41767 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41768 * modules/argz (argz.h): Likewise.
41769 * modules/arpa_inet (arpa/inet.h): Likewise.
41770 * modules/byteswap (byteswap.h): Likewise.
41771 * modules/configmake (configmake.h): Likewise.
41772 * modules/fcntl (fcntl.h): Likewise.
41773 * modules/fnmatch (fnmatch.h): Likewise.
41774 * modules/getopt (getopt.h): Likewise.
41775 * modules/glob (glob.h): Likewise.
41776 * modules/inttypes (inttypes.h): Likewise.
41777 * modules/netinet_in (netinet/in.h): Likewise.
41778 * modules/poll (poll.h): Likewise.
41779 * modules/stdbool (stdbool.h): Likewise.
41780 * modules/stdint (stdint.h): Likewise.
41781 * modules/sys_select (sys/select.h): Likewise.
41782 * modules/sys_socket (sys/socket.h): Likewise.
41783 * modules/sys_stat (sys/stat.h): Likewise.
41784 * modules/sysexits (sysexits.h): Likewise.
41785 * modules/unistd (unistd.h): Likewise.
41786 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41787 Add a "DO NOT EDIT" comment to the generated file.
41788 (func_import): Likewise for gnulib-comp.m4.
41790 2006-10-07 Bruno Haible <bruno@clisp.org>
41792 * lib/gl_sublist.h: New file.
41793 * lib/gl_sublist.c: New file.
41795 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41797 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41798 name (relative to the original working directory) and the file
41799 name component (relative to the temporary working directory). All
41801 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41802 * lib/mkdir-p.c (make_dir_parents): Likewise.
41803 * lib/mkdir-p.h (make_dir_parents): Likewise.
41805 2006-10-06 Eric Blake <ebb9@byu.net>
41807 Define several macros for use by the clean-temp module.
41808 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41809 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41810 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41812 * lib/clean-temp.h (close_stream_temp): New declaration.
41813 * lib/clean-temp.c (includes): Pull in headers according to what
41814 other modules are in use.
41815 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41817 2006-10-06 Bruno Haible <bruno@clisp.org>
41819 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41820 instead of fopen, fwriteerror.
41822 2006-10-06 Bruno Haible <bruno@clisp.org>
41824 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41825 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41827 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41828 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41829 Return an error indicator.
41830 Suggested by Eric Blake.
41832 2006-10-06 Bruno Haible <bruno@clisp.org>
41834 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41835 Reported by Eric Blake.
41837 2006-10-06 Bruno Haible <bruno@clisp.org>
41839 * modules/closeout (Description): Mention stderr too.
41841 2006-10-06 Bruno Haible <bruno@clisp.org>
41842 and Paul Eggert <eggert@cs.ucla.edu>
41844 * lib/closeout.c (close_stdout): Also close stderr.
41845 * lib/closeout.h: Update comment.
41847 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41849 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41850 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41851 * lib/dirchownmod.c: Include lchown.h.
41852 * lib/lchown.c: Don't include files that lchown.h now includes.
41853 Don't declare chown, since lchown.h now does that.
41854 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41855 (lchown): Define to rpl_chown if lchown is declared but
41856 does not exist. Declare using a prototype if lchown is not
41857 declared. Add a copyright notice.
41858 * lib/mkstemp.h: Include <unistd.h>.
41859 * lib/openat.c: Include lchown.h.
41861 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41862 we now test for that separately.
41863 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41864 rather than O_NOFOLLOW, when testing whether it's possible to
41865 avoid a race condition reliably.
41866 * lib/savewd.c (savewd_chdir): Likewise.
41868 Remove macros that are no longer needed now that stdint.h is
41870 * lib/fsusage.c (UINTMAX_MAX): Remove.
41871 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41872 * lib/utimecmp.c (SIZE_MAX): Remove.
41874 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41876 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41877 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41880 2006-10-05 Bruno Haible <bruno@clisp.org>
41882 * lib/gl_list.h (gl_sortedlist_search_from_to,
41883 gl_sortedlist_indexof_from_to): New declarations.
41884 (gl_list_implementation): New fields sortedlist_search_from_to,
41885 sortedlist_indexof_from_to.
41886 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41888 * lib/gl_list.c (gl_sortedlist_search_from_to,
41889 gl_sortedlist_indexof_from_to): New functions.
41890 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41892 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41893 (gl_array_sortedlist_search_from_to): New function.
41894 (gl_array_list_implementation): Update.
41895 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41897 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41898 (gl_carray_sortedlist_search_from_to): New function.
41899 (gl_carray_list_implementation): Update.
41900 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41901 gl_linked_sortedlist_indexof_from_to): New functions.
41902 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41903 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41904 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41905 gl_tree_sortedlist_indexof_from_to): New functions.
41906 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41907 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41909 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41910 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41913 2006-10-05 Bruno Haible <bruno@clisp.org>
41915 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41916 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41917 (struct gl_list_implementation): Add fields search_from_to,
41918 indexof_from_to. Remove fields search, indexof.
41919 (gl_list_search): Use the search_from_to method.
41920 (gl_list_search_from, gl_list_search_from_to): New functions.
41921 (gl_list_indexof): Use the indexof_from_to method.
41922 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41923 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41924 (gl_list_search_from, gl_list_search_from_to): New functions.
41925 (gl_list_indexof): Use the indexof_from_to method.
41926 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41927 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41928 gl_array_indexof. Add start_index, end_index arguments.
41929 (gl_array_search_from_to): Renamed from gl_array_search. Add
41930 start_index, end_index arguments.
41931 (gl_array_remove, gl_array_list_implementation): Update.
41932 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41933 gl_carray_indexof. Add start_index, end_index arguments.
41934 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41935 start_index, end_index arguments.
41936 (gl_carray_remove, gl_carray_list_implementation): Update.
41937 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41938 gl_linked_search. Add start_index, end_index arguments.
41939 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41940 start_index, end_index arguments.
41941 (gl_linked_remove): Update.
41942 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41943 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41944 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41946 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41947 gl_tree_search. Add start_index, end_index arguments.
41948 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41949 start_index, end_index arguments.
41950 (gl_tree_remove): Update.
41951 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41952 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41953 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41955 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41956 gl_tree_search. Add start_index, end_index arguments.
41957 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41958 start_index, end_index arguments.
41959 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41961 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41963 2006-10-05 Bruno Haible <bruno@clisp.org>
41965 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41967 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41968 fwriteerror_temp): New declarations.
41969 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41970 (descriptors): New variable.
41971 (cleanup): First, close the descriptors.
41972 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41973 fclose_temp, fwriteerror_temp): New functions.
41975 2006-10-04 Jim Meyering <jim@meyering.net>
41977 * lib/fts.c (fts_open): Tiny comment change.
41979 2006-10-04 Bruno Haible <bruno@clisp.org>
41981 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41982 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41984 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41985 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41986 gl_LOCK_EARLY_BODY.
41987 (gl_LOCK): Require gl_LOCK_BODY.
41989 2006-10-04 Bruno Haible <bruno@clisp.org>
41991 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41992 (gl_oset_search_atleast): New declaration.
41993 (struct gl_oset_implementation): Add field 'search_atleast'.
41994 (gl_oset_search_atleast): New inline function.
41995 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41996 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41997 (gl_array_oset_implementation): Update.
41998 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41999 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42000 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42002 2006-10-04 Bruno Haible <bruno@clisp.org>
42004 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42006 2006-10-03 Bruno Haible <bruno@clisp.org>
42008 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42009 from gl_avltreehash_list_implementation.
42011 2006-10-03 Bruno Haible <bruno@clisp.org>
42013 * lib/gl_oset.c (gl_oset_add): Fix return type.
42015 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
42017 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42019 2006-10-02 Eric Blake <ebb9@byu.net>
42021 * modules/strnlen (Depends-on): Add extensions.
42023 2006-10-02 Eric Blake <ebb9@byu.net>
42025 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42026 definition in 2.60+.
42028 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
42030 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42033 2006-10-02 Bruno Haible <bruno@clisp.org>
42035 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42036 to the AUTOMAKE_OPTIONS.
42037 Reported by Jim Meyering.
42039 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
42041 Work around bug in Solaris 10 /proc file system:
42042 /proc/self/fd/NNN/.. isn't the parent directory of
42043 the directory whose file descriptor is NNN. This needs to
42044 be worked around at run time, not compile time, since a
42045 program might be built on Solaris 8, where things work, and
42047 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
42048 to use the following interface instead:
42049 (OPENAT_BUFFER_SIZE): New macro.
42050 (openat_proc_name): New function.
42051 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42052 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42054 * lib/openat-proc.c: New file.
42055 * modules/openat (Files): Add lib/openat-proc.c.
42056 (Depends-on): Add same-inode, stdbool.
42057 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42059 2006-09-29 Bruno Haible <bruno@clisp.org>
42061 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42062 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42063 argument. Set stdout_closed before testing for ferror, not after.
42064 (fwriteerror, fwriteerror_no_ebadf): New functions.
42066 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42068 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42070 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42072 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42073 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42075 2006-09-28 Jim Meyering <jim@meyering.net>
42077 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42078 Include <unistd.h>.
42080 2006-09-28 Bruno Haible <bruno@clisp.org>
42082 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42083 * modules/linkedhash-list (Depends-on): Likewise.
42084 * modules/rbtreehash-list (Depends-on): Likewise.
42086 2006-09-28 Bruno Haible <bruno@clisp.org>
42088 * lib/strndup.h: Simplify the redefinition of strndup.
42089 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42090 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42092 2006-09-28 Bruno Haible <bruno@clisp.org>
42094 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42095 * lib/gl_linkedhash_list.c: Likewise.
42096 * lib/gl_rbtreehash_list.c: Likewise.
42098 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42100 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42103 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42104 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42105 it causes <stdio_ext.h> to cause a compile-time error.
42106 Problem reported by Nelson H. F. Beebe.
42107 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42108 of HAVE_DECL___PENDING.
42110 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42111 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42114 2006-09-27 Jim Meyering <jim@meyering.net>
42116 This file could end up with a definition for a function
42117 named __strndup, rather than rpl_strndup on a system with
42118 incomplete weak_alias support.
42119 * lib/strndup.c (strndup): Rename from __strndup.
42120 Remove #defines that used to map __strndup to strndup.
42121 Don't use K&R prototypes.
42122 Remove LIBC-related code, since this file is not sync'd with glibc.
42123 * lib/strndup.h: Revamp, accordingly.
42124 * m4/strndup.m4: Modernize.
42126 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42128 * modules/savewd (Depends-on): Add 'raise'.
42129 * lib/savewd.c: Include <signal.h>, for 'raise'.
42131 2006-09-26 Jim Meyering <jim@meyering.net>
42133 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42134 when we detect Darwin 8.7.0's acl_get_file bug.
42135 Rearrange to perform the new (below) run-test while $LIBS
42136 contains any acl-related library. Set USE_ACL at the end.
42137 (gl_ACL_GET_FILE): New function.
42139 2006-09-26 Eric Blake <ebb9@byu.net>
42141 * lib/verror.c: Include <config.h> unconditionally.
42143 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42145 * modules/clock-time (Maintainer): Add self.
42146 * modules/getlogin_r (Depends-on): Add extensions.
42148 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42150 * modules/clock-time: New module.
42151 * modules/nanosleep (Depends-on): Add clock-time.
42152 * modules/gethrxtime (Depends-on): Likewise.
42153 * modules/gettime (Depends-on): Likewise.
42154 * modules/settime (Depends-on): Likewise.
42156 * modules/fts-lgpl: Depend on openat.
42157 * modules/mkancesdirs: Depend on savewd.
42158 * modules/mkdir-p: Likewise.
42160 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42162 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42164 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42165 `gl_have_arbitrary_file_name_length_limit' to
42166 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42167 actually works between configure runs.
42169 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42170 Bruno Haible <bruno@clisp.org>
42172 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42174 2006-09-25 Jim Meyering <jim@meyering.net>
42176 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42177 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42179 2006-09-25 Eric Blake <ebb9@byu.net>
42181 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42182 exec's in 2006-09-18 patch when shuffling fds.
42184 2006-09-25 Bruno Haible <bruno@clisp.org>
42186 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42187 Reported by Jim Meyering.
42189 2006-09-24 Jim Meyering <jim@meyering.net>
42191 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42192 compare a pointer against a literal "0". That caused failures with
42193 at least HP-UX's hpcc.
42195 2006-09-22 Simon Josefsson <jas@extundo.com>
42199 * modules/gc-hmac-sha1:
42200 * modules/gc-hmac-md5:
42202 * modules/gc-arcfour: Distribute more files.
42204 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42206 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42207 (gl_linked_iterator_from_to): Initialize struct completely.
42208 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42209 (gl_tree_iterator_from_to): Likewise
42210 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42211 * lib/gl_array_list.c [lint] (gl_array_iterator)
42212 (gl_array_iterator_from_to): Likewise.
42213 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42214 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42215 (gl_carray_iterator_from_to): Likewise.
42217 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42218 * lib/md4.c (md4_process_block): Remove unused variable.
42219 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42220 parentheses for clarity.
42222 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42224 * modules/bison-i18n (Depends-on): Add gettext.
42226 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42228 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42229 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42230 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42231 also add missing comma that caused broken test.
42232 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42233 stdlib.h, for `abort'.
42234 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42236 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42237 include unistd.h if present, for `rmdir'.
42238 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42240 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42241 in the process include standard headers for prototypes.
42242 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42243 gets declared on GNU/Linux.
42244 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42245 unistd.h, for `rmdir'.
42246 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42248 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42250 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42252 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42254 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42256 * gnulib-tool (func_version): Create output all at once. This
42257 may help avoid triggering unnecessary SIGPIPEs, and at any
42258 rate it doesn't hurt.
42260 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42261 Bruno Haible <bruno@clisp.org>
42263 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42264 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42265 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42267 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42268 (gl_FUNC_VASPRINTF): Invoke it.
42270 2006-09-22 Bruno Haible <bruno@clisp.org>
42272 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42273 getloadavg.c as first argument.
42275 2006-09-22 Bruno Haible <bruno@clisp.org>
42277 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42278 at the beginning of the gl_INIT macro.
42279 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42282 2006-09-22 Bruno Haible <bruno@clisp.org>
42284 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42286 Suggested by Ralf Wildenhues.
42288 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42290 Import this patch from libc:
42292 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42294 * lib/regex_internal.c (re_string_reconstruct): Handle
42295 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42296 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42297 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42298 re_string_context_at.
42300 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42302 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42303 gl_REGEX now does it for us.
42304 (gl_REGEX): Add test taken from
42305 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42307 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42308 Check that large offsets work. Modernize Autoconf usages.
42309 Prefer "yes" to mean a good thing rather than a bad.
42310 Don't put "#define mkstemp" in config.h, as this might interfere
42311 with standard system headers that "#define mkstemp mkstemp64".
42313 * modules/mkstemp (Depends-on): Add extensions, so that
42314 mkstemp is visible on some platforms.
42315 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42316 (Include): Change to "mkstemp.h" from <stdlib.h>.
42317 (Files): Add mkstemp.h.
42319 * lib/mkstemp.h: New file, since some standard headers
42321 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42322 Include "mkstemp.h".
42323 Make the _LIBC code resemble glibc original more,
42324 e.g., use K&R style.
42325 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42326 (mkstemp): Remove, since mkstemp.h does this for us.
42327 * lib/stdlib--.h: Include mkstemp.h.
42329 Import this patch from libc:
42331 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42333 * lib/tempname.c (__gen_tempname): Change attempts_min
42334 into a macro. Use preprocessor to decide how to initialize
42335 attempts [Coverity CID 67].
42337 2006-09-20 Bruno Haible <bruno@clisp.org>
42339 * lib/mkdtemp.c: Import from libc.
42340 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42341 * sysdeps/posix/tempname.c (__gen_tempname): Change
42342 attempts_min into a macro. Use preprocessor to decide how to
42343 initialize attempts [Coverity CID 67].
42344 2001-11-27 Paul Eggert <eggert@twinsun.com>
42345 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42346 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42348 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42350 * gnulib-tool (func_exit): New function, to allow to pass the
42351 exit status portably through the trap. Use everywhere.
42352 (--help, --version): Signal a write error.
42353 (trap): catch SIGPIPE, for write errors.
42354 Exit at the end of the trap, with the correct exit status.
42356 2006-09-19 Karl Berry <karl@gnu.org>
42358 * doc/gnulib.texi: note about the license texinfo files.
42360 2006-09-19 Eric Blake <ebb9@byu.net>
42362 * gnulib-tool: Avoid space-tab.
42364 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42366 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42367 that prevented coreutils 6.1 from building. Problem reported
42368 by Petter Reinholdtsen.
42370 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42372 * gnulib-tool (avoidlist): Fix typo that broke options like
42373 --avoid=lock that are used by coreutils bootstrap.
42375 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42377 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42378 more systematically.
42380 2006-09-18 Jim Meyering <jim@meyering.net>
42382 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42384 2006-09-18 Bruno Haible <bruno@clisp.org>
42386 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42388 2006-09-18 Bruno Haible <bruno@clisp.org>
42390 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42391 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42392 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42393 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42394 * m4/gettext.m4: Require autoconf >= 2.52.
42395 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42396 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42397 of gl_cv_header_inttypes_h.
42399 2006-09-18 Bruno Haible <bruno@clisp.org>
42401 * lib/javaversion.c: Include configmake.h.
42403 2006-09-18 Bruno Haible <bruno@clisp.org>
42405 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42406 avoid that the while loops be executed in a subshell.
42408 2006-09-18 Bruno Haible <bruno@clisp.org>
42410 * MODULES.html.sh (func_module): Break long lines.
42411 Suggested by Bruce Korb <bkorb@gnu.org>.
42413 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42415 Speed up by a factor of 1.12.
42416 * gnulib-tool (nl): New variable.
42417 (func_import): Rewrite include directive extraction to only read each
42420 2006-09-17 Bruno Haible <bruno@clisp.org>
42422 * modules/javaversion (Makefile.am): Remove DEFS setting.
42423 (Depends-on): Add configmake, for PKGDATADIR definition.
42425 2006-09-17 Bruno Haible <bruno@clisp.org>
42427 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42429 2006-09-17 Bruno Haible <bruno@clisp.org>
42431 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42432 (func_modules_transitive_closure, func_modules_add_dummy,
42433 func_modules_to_filelist, func_import, func_create_testdir,
42434 func_create_megatestdir, ...): Use it wherever possible.
42435 Suggested by Ralf Wildenhues.
42437 2006-09-16 Karl Berry <karl@gnu.org>
42439 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42440 to avoid sectioning errors.
42441 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42442 [ifinfo]: blank line after @center-ed titles.
42443 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42444 Spell FSF address consistently with others.
42445 (These changes approved by rms.)
42447 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42449 Speed up by a factor of 1.61.
42450 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42451 already checked module names again.
42453 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42455 Speed up by a factor of 1.13.
42456 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42457 for new_files, and the input to func_add_or_update.
42459 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42461 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42462 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42464 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42466 * modules/mkancesdirs (Depends-on): Add fcntl.
42467 * modules/savewd: New file.
42468 * MODULES.html.sh (File system functions): Add savewd.
42470 * modules/configmake (Makefile.am): Add support for the
42471 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42473 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42475 * m4/savewd.m4: New file.
42477 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42479 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42480 (dirchownmod): New arg FD. All callers changed.
42481 Use FD rather than opening the directory ourself, as opening is
42482 now the caller's responsibility.
42483 * lib/dirchownmod.h: Likewise.
42484 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42485 hosts that require <sys/types.h> before <sys/stat.h>. Include
42486 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42487 (test_dir): Remove.
42488 (mkancesdirs): Return length of prefix of FILE that has already
42489 been made, or -2 if there is a child doing the work. Redo
42490 algorithm so that it is O(N) rather than O(N**2). Optimize away
42491 ".", and treat ".." specially since it might stray back into
42492 already-created areas. Use a subprocess if necessary. New arg
42493 WD; all users changed. MAKE_DIR function should now return 1
42494 if it creates a directory that is not readable. Return -2 if
42495 a child process is spun off.
42496 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42497 Adjust signature to match code.
42498 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42499 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42501 * lib/savewd.c, lib/savewd.h: New files.
42503 2006-09-15 Jim Meyering <jim@meyering.net>
42505 * modules/rename-dest-slash: New module.
42506 * MODULES.html.sh (posix_compat): Add it here.
42508 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42510 2006-09-15 Jim Meyering <jim@meyering.net>
42512 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42515 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42517 2006-09-15 Jim Meyering <jim@meyering.net>
42519 * lib/rename-dest-slash.c (has_trailing_slash): Use
42520 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42521 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42522 test before testing whether SRC is a directory.
42523 Suggestions from Bruno Haible.
42525 Avoid a warning about an unused variable.
42526 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42527 into the #ifdef block where it's used.
42529 * lib/rename-dest-slash.c: New file.
42531 2006-09-14 Bruno Haible <bruno@clisp.org>
42533 * lib/allocsa.c: Include <config.h> unconditionally.
42534 * lib/asnprintf.c: Likewise.
42535 * lib/asprintf.c: Likewise.
42536 * lib/c-strcasecmp.c: Likewise.
42537 * lib/c-strcasestr.c: Likewise.
42538 * lib/c-strncasecmp.c: Likewise.
42539 * lib/c-strstr.c: Likewise.
42540 * lib/classpath.c: Likewise.
42541 * lib/clean-temp.c: Likewise.
42542 * lib/concatpath.c: Likewise.
42543 * lib/copy-file.c: Likewise.
42544 * lib/csharpcomp.c: Likewise.
42545 * lib/csharpexec.c: Likewise.
42546 * lib/execute.c: Likewise.
42547 * lib/fatal-signal.c: Likewise.
42548 * lib/findprog.c: Likewise.
42549 * lib/fwriteerror.c: Likewise.
42550 * lib/gl_array_list.c: Likewise.
42551 * lib/gl_array_oset.c: Likewise.
42552 * lib/gl_avltree_list.c: Likewise.
42553 * lib/gl_avltree_oset.c: Likewise.
42554 * lib/gl_avltreehash_list.c: Likewise.
42555 * lib/gl_carray_list.c: Likewise.
42556 * lib/gl_linked_list.c: Likewise.
42557 * lib/gl_linkedhash_list.c: Likewise.
42558 * lib/gl_list.c: Likewise.
42559 * lib/gl_oset.c: Likewise.
42560 * lib/gl_rbtree_list.c: Likewise.
42561 * lib/gl_rbtree_oset.c: Likewise.
42562 * lib/gl_rbtreehash_list.c: Likewise.
42563 * lib/imaxabs.c: Likewise.
42564 * lib/imaxdiv.c: Likewise.
42565 * lib/javacomp.c: Likewise.
42566 * lib/javaexec.c: Likewise.
42567 * lib/javaversion.c: Likewise.
42568 * lib/linebreak.c: Likewise.
42569 * lib/localcharset.c: Likewise.
42570 * lib/lock.c: Likewise.
42571 * lib/mbchar.c: Likewise.
42572 * lib/mbswidth.c: Likewise.
42573 * lib/mkdtemp.c: Likewise.
42574 * lib/pipe.c: Likewise.
42575 * lib/printf-args.c: Likewise.
42576 * lib/printf-parse.c: Likewise.
42577 * lib/progname.c: Likewise.
42578 * lib/progreloc.c: Likewise.
42579 * lib/readlink.c: Likewise.
42580 * lib/sh-quote.c: Likewise.
42581 * lib/stpcpy.c: Likewise.
42582 * lib/stpncpy.c: Likewise.
42583 * lib/strcasecmp.c: Likewise.
42584 * lib/strcasestr.c: Likewise.
42585 * lib/strcspn.c: Likewise.
42586 * lib/striconv.c: Likewise.
42587 * lib/strncasecmp.c: Likewise.
42588 * lib/strnlen1.c: Likewise.
42589 * lib/strstr.c: Likewise.
42590 * lib/strtok_r.c: Likewise.
42591 * lib/tls.c: Likewise.
42592 * lib/tmpdir.c: Likewise.
42593 * lib/unicodeio.c: Likewise.
42594 * lib/unsetenv.c: Likewise.
42595 * lib/vasnprintf.c: Likewise.
42596 * lib/vasprintf.c: Likewise.
42597 * lib/wait-process.c: Likewise.
42598 * lib/xallocsa.c: Likewise.
42599 * lib/xsetenv.c: Likewise.
42600 * lib/xstriconv.c: Likewise.
42602 2006-09-13 Simon Josefsson <jas@extundo.com>
42604 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42605 that internally, suggested by Ralf Wildenhues
42606 <Ralf.Wildenhues@gmx.de>.
42608 2006-09-13 Simon Josefsson <jas@extundo.com>
42610 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42612 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42614 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42616 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42617 longer worry about uses that don't define HAVE_CONFIG_H.
42618 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42619 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42620 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42621 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42622 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42623 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42624 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42625 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42626 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42627 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42628 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42629 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42630 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42631 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42632 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42633 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42634 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42635 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42636 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42637 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42638 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42639 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42640 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42641 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42642 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42643 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42644 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42645 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42646 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42647 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42648 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42649 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42650 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42651 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42652 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42653 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42654 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42655 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42656 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42657 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42658 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42661 2006-09-13 Eric Blake <ebb9@byu.net>
42663 * lib/getopt.c: Fix typo in last commit.
42665 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42667 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42670 2006-09-12 Jim Meyering <jim@meyering.net>
42672 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42673 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42674 Reported by Nelson H. F. Beebe.
42676 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42678 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42679 program_invocation_name and program_invocation_short_name are
42681 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42682 and program_invocation_short_name to argp.h, so they are visible
42684 * lib/argp.h: Likewise
42686 2006-09-10 Bruno Haible <bruno@clisp.org>
42688 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42689 m4/inttypes_h.m4, m4/uintmax_t.m4.
42691 2006-09-10 Bruno Haible <bruno@clisp.org>
42693 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42694 gl_AC_TYPE_UINTMAX_T.
42696 2006-09-10 Bruno Haible <bruno@clisp.org>
42698 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42700 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42702 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42703 convention. Text proposed by Bruno Haible.
42704 (struct argp_option): Document the use of N_() wrappers.
42706 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42707 '\v', and translate the two parts separately, instead of feeding
42708 the whole string to gettext. This allows to exclude
42709 '\v' from the strings visible to the translator by writing doc
42710 strings as N_("..") "\v" N_("..").
42712 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42714 * config/srclist.txt: Undo latest change; the bug was fixed.
42716 2006-09-09 Bruno Haible <bruno@clisp.org>
42718 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42719 assignments if building a library without libtool.
42720 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42721 in func_emit_lib_Makefile_am.
42722 (func_import): When building a static library libfoo.a, arrange to
42723 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42724 (func_create_testdir): Likewise.
42725 * modules/gc (configure.ac, Makefile.am): If building statically,
42726 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42727 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42728 * modules/striconv (configure.ac, Makefile.am): Likewise.
42729 Based on a suggestion by Ralf Wildenhues.
42731 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42733 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42734 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42737 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42738 Add year_2050_test to catch glibc bug 2821
42739 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42741 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42742 Prefer #ifdef to #if.
42744 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42745 Return from 'main' instead of calling 'exit'.
42747 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42749 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42750 returned the maximum time_t value rather than (time_t) -1.
42751 Problem originally reported by William Bardwell
42752 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42754 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42756 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42759 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42761 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42764 2006-09-08 Jim Meyering <jim@meyering.net>
42766 Don't make generated files read-only. That would bother too many
42767 people. However, do retain the ability to work when targets are
42768 read-only: remove the destination and temporary files before writing
42769 them (when generated via sed or echo), or by using the -f option for
42770 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42771 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42772 * modules/byteswap, modules/configmake, modules/fcntl:
42773 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42774 * modules/localcharset, modules/netinet_in, modules/poll:
42775 * modules/stdbool, modules/stdint, modules/sys_select:
42776 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42778 2006-09-08 Jim Meyering <jim@meyering.net>
42780 Avoid new build failure on FreeBSD 6.0.
42781 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42782 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42783 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42785 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42787 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42789 2006-09-07 Jim Meyering <jim@meyering.net>
42791 Fix global typo in last change: use chmod u-w, not chmod u-x.
42792 Spotted by Paul Eggert and Bruce Korb.
42793 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42794 * modules/byteswap, modules/configmake, modules/fcntl:
42795 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42796 * modules/localcharset, modules/netinet_in, modules/poll:
42797 * modules/stdbool, modules/stdint, modules/sys_select:
42798 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42800 2006-09-06 Jim Meyering <jim@meyering.net>
42802 Make generated files be read-only.
42803 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42804 Ensure that each generated file is now read-only.
42805 * modules/argz: Likewise.
42806 * modules/arpa_inet: Likewise.
42807 * modules/byteswap: Likewise.
42808 * modules/configmake: Likewise.
42809 * modules/fcntl: Likewise.
42810 * modules/fnmatch: Likewise.
42811 * modules/getopt: Likewise.
42812 * modules/glob: Likewise.
42813 * modules/inttypes: Likewise.
42814 * modules/netinet_in: Likewise.
42815 * modules/poll: Likewise.
42816 * modules/stdbool: Likewise.
42817 * modules/stdint: Likewise.
42818 * modules/sys_select: Likewise.
42819 * modules/sys_socket: Likewise.
42820 * modules/sys_stat: Likewise.
42821 * modules/sysexits: Likewise.
42822 * modules/localcharset: Same as above, but continue using temporary
42823 file named "t-$@" (why different?) rather than the "$@-t" used
42826 * modules/sysexits (Makefile.am): Replace literal occurrences
42827 of "sysexit.h" more readable, and more consistent, "$@".
42829 2006-09-06 Bruno Haible <bruno@clisp.org>
42831 * modules/striconv: New file.
42832 * modules/xstriconv: New file.
42833 * MODULES.html.sh (Internationalization functions): Add striconv,
42836 2006-09-06 Bruno Haible <bruno@clisp.org>
42838 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42839 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42840 not using libtool correctly.
42842 2006-09-06 Bruno Haible <bruno@clisp.org>
42844 * lib/striconv.h: New file.
42845 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42847 * lib/xstriconv.h: New file.
42848 * lib/xstriconv.c: New file.
42850 2006-09-06 Bruno Haible <bruno@clisp.org>
42852 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42855 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42857 * lib/argz_.h: Sync from Libtool.
42859 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42860 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42862 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42864 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42866 * modules/trim: New file.
42868 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42870 * lib/trim.h: New file.
42871 * lib/trim.c: New file.
42873 2006-09-05 Bruno Haible <bruno@clisp.org>
42875 * MODULES.html.sh (String handling): Add trim.
42877 2006-09-04 Karl Berry <karl@gnu.org>
42879 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42880 until next release.
42882 2006-09-03 Bruno Haible <bruno@clisp.org>
42884 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42887 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42889 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42890 not gl_GETLOADAVG. Omit unneeded semicolons.
42891 Problems reported by Ralf Wildenhues in
42892 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42893 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42894 at the end, which is the usual gnulib style.
42896 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42897 of doing all the work ourselves.
42898 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42899 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42901 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42903 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42904 Problem reported by Ralf Wildenhues in
42905 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42907 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42908 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42910 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42912 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42913 yesterday's patch by changing test -n to test -z.
42915 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42917 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42918 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42919 the former is now obsolescent.
42921 * modules/chdir-long (Depends-on): Add fcntl.
42923 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42925 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42926 obsolescent, and programs should use gnulib instead.
42927 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42928 but with prefixes changed.
42930 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42932 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42933 or stdbool.h, because they might not exist while configuring.
42935 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42936 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42938 (O_DIRECTORY): Remove.
42940 2006-08-31 Eric Blake <ebb9@byu.net>
42942 * gnulib-tool: Don't let emacs change spaces to TAB.
42944 2006-08-31 Bruno Haible <bruno@clisp.org>
42946 * gnulib-tool: When calling func_import more than once, do it in a
42948 Reported by Eric Blake <ebb9@byu.net>.
42950 2006-08-31 Bruno Haible <bruno@clisp.org>
42952 * gnulib-tool (nl): Remove variable.
42953 (sed_transform_lib_file): Use more robust test for config-h module.
42954 (func_import): Fix typo in 2006-08-25 patch.
42956 2006-08-31 Bruno Haible <bruno@clisp.org>
42958 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42959 specified, augment Makefile.am variables instead of assigning them.
42961 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42963 Work around a bug in both the Linux and SunOS 64-bit kernels:
42964 nanosleep mishandles sleeps for longer than 2**31 seconds.
42965 Problem reported by Frank v Waveren in
42966 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42967 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42968 Check for nanosleep bug.
42969 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42971 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42973 Work around a bug in both the Linux and SunOS 64-bit kernels:
42974 nanosleep mishandles sleeps for longer than 2**31 seconds.
42975 Problem reported by Frank v Waveren in
42976 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42977 * lib/nanosleep.c (BILLION): New constant.
42978 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42979 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42982 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42984 * modules/nanosleep (Depends-on): Add gettime.
42986 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42987 and Simon Josefsson <jas@extundo.com>
42988 and Oskar Liljeblad <oskar@osk.mine.nu>
42990 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42991 * gnulib-tool (func_import): New license type 'unmodifiable license
42993 * modules/fdl: Use it. Longer description.
42994 * module/gpl, module/lgpl: New files.
42996 2006-08-30 Jim Meyering <jim@meyering.net>
42998 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42999 shadowing the parameter.
43001 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43005 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43007 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43008 sharing with gnulib. Report by Eric Blake.
43010 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43012 * modules/isapipe: New file.
43013 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43015 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43017 * modules/configmake (Makefile.am): Add a comment, and omit
43018 the CONFIGMAKE_ prefix from generated macro names. Suggested
43021 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43023 * m4/isapipe.m4: New file.
43025 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43027 * lib/isapipe.c, lib/isapipe.h: New files.
43029 2006-08-29 Jim Meyering <jim@meyering.net>
43031 * modules/configmake (Makefile.am): Make configmake.h depend on
43032 Makefile. Otherwise, a stale configmake.h could hang around.
43034 2006-08-29 Eric Blake <ebb9@byu.net>
43036 * lib/error.c (error_at_line, print_errno_message): Match libc, after
43037 resolution of upstream bug 3044.
43039 2006-08-29 Bruno Haible <bruno@clisp.org>
43041 * modules/localcharset (Depends-on): Add configmake.
43042 (Makefile.am): Remove setting of LIBDIR through DEFS.
43044 2006-08-29 Bruno Haible <bruno@clisp.org>
43046 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43049 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43051 * modules/fcntl: New file.
43052 * modules/chdir-safer (Depends-on): Add fcntl.
43053 * modules/fts: Likewise.
43054 * modules/mkdir-p: Likewise.
43056 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43057 This undoes the most recent change, since we're now addressing the
43058 problem in a different way.
43060 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43061 into output, since the output might be called Makefile.am even
43062 if $makefile_name is something different.
43063 (func_import): Use $makefile_am rather than
43064 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43067 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43069 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43071 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43072 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43073 recent change to stdint.m4, since we're now addressing the problem in a
43076 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43078 * m4/fcntl_h.m4: New file.
43080 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43082 * lib/fcntl_.h: New file.
43083 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43085 * lib/dirchownmod.c: Likewise.
43086 * lib/fts.c: Likewise.
43088 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43089 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43090 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43091 just before including <inttypes.h>, to avoid circular inclusion.
43093 2006-08-28 Jim Meyering <jim@meyering.net>
43095 * doc/visibility.texi: Actually read and correct the grammar of the
43096 sentence affected by yesterday's change.
43098 2006-08-28 Eric Blake <ebb9@byu.net>
43100 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43103 2006-08-28 Eric Blake <ebb9@byu.net>
43105 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43107 2006-08-28 Eric Blake <ebb9@byu.net>
43109 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43111 2006-08-28 Bruno Haible <bruno@clisp.org>
43113 * modules/c-strstr: New file, from GNU gettext.
43114 * MODULES.html.sh (String handling): Add c-strstr.
43116 2006-08-28 Bruno Haible <bruno@clisp.org>
43118 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43120 Reported by Eric Blake.
43122 2006-08-28 Bruno Haible <bruno@clisp.org>
43124 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43125 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43126 * lib/vasprintf.c: Include errno.h, limits.h.
43127 (EOVERFLOW): New fallback definition.
43128 (vasprintf): Test here whether the string length is > INT_MAX.
43129 * lib/vsnprintf.c: Include errno.h, limits.h.
43130 (EOVERFLOW): New fallback definition.
43131 (vsnprintf): Fix bug when generated string was too long for the buffer.
43132 Test here whether the string length is > INT_MAX.
43134 2006-08-28 Bruno Haible <bruno@clisp.org>
43136 * lib/inttypes_.h (SCNX*): Remove definitions.
43137 Reported by Eric Blake.
43139 2006-08-28 Bruno Haible <bruno@clisp.org>
43141 * lib/c-strstr.h: New file, from GNU gettext.
43142 * lib/c-strstr.c: New file, from GNU gettext.
43144 2006-08-28 Bruno Haible <bruno@clisp.org>
43146 * gnulib-tool: Reorder some statements.
43148 2006-08-28 Bruno Haible <bruno@clisp.org>
43150 * gnulib-tool: New option --makefile-name.
43151 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43153 (func_import): Write $makefile_name to the cache file, and read it from
43154 there unless explicitly specified. Use $makefile_name as file name
43155 instead of Makefile.am. Adjust the recommendations accordingly.
43157 2006-08-28 Bruno Haible <bruno@clisp.org>
43159 * gnulib-tool (func_verify_module): Check against misapplying patch.
43161 2006-08-28 Bruno Haible <bruno@clisp.org>
43163 * gnulib-tool (func_relativize, func_relconcat): New functions.
43164 Give an error if --local-dir is given with --update.
43165 Remove trailing slashes from $local_gnulib_dir.
43166 (func_import): Store the relativized $local_gnulib_dir in
43167 gnulib-cache.m4, and read it from there if not specified explicitly.
43169 2006-08-28 Bruno Haible <bruno@clisp.org>
43171 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43172 is the current directory. Respect also $local_gnulib_dir.
43174 2006-08-28 Bruno Haible <bruno@clisp.org>
43175 Simon Josefsson <jas@extundo.com>
43178 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43180 2006-08-27 Jim Meyering <jim@meyering.net>
43182 * doc/visibility.texi: Remove duplicate word: "pointer".
43184 2006-08-26 Bruno Haible <bruno@clisp.org>
43186 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43187 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43188 (Makefile.am): Create inttypes.h from inttypes_.h.
43189 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43191 * modules/imaxabs: New file.
43193 * modules/imaxdiv: New file.
43195 2006-08-26 Bruno Haible <bruno@clisp.org>
43197 * m4/inttypes.m4: New file.
43198 * m4/_inttypes_h.m4: Remove file.
43199 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43201 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43203 * m4/imaxabs.m4: New file.
43205 * m4/imaxdiv.m4: New file.
43207 2006-08-26 Bruno Haible <bruno@clisp.org>
43209 * lib/inttypes_.h: New file.
43210 * lib/inttypes.h: Remove file.
43211 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43213 * lib/imaxabs.c: New file.
43215 * lib/imaxdiv.c: New file.
43217 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43219 New config-h module, so that "make" output needn't be cluttered
43220 by -DHAVE_CONFIG_H.
43221 * MODULES.html.sh (Support for building libraries and executables):
43223 * modules/config-h: New file.
43224 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43225 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43226 the config-h module is used.
43228 New configmake module, so that "make" output needn't be cluttered
43229 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43230 * MODULES.html.sh (Support for building libraries and executables):
43232 * modules/configmake: New file.
43234 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43236 * m4/config-h.m4: New file.
43238 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43240 * config/srclist.txt: Add elisp-comp.
43242 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43244 * MODULES.html.sh (Support for building libraries and executables):
43246 * build-aux/elisp-comp: New file.
43247 * modules/elisp-comp: New file.
43249 2006-08-24 Bruno Haible <bruno@clisp.org>
43251 * gnulib-tool (func_create_testdir): Use non-default values of
43252 sourcebase and m4base.
43254 2006-08-24 Bruno Haible <bruno@clisp.org>
43256 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43259 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43261 * modules/openat (Depends-on): Add lchown.
43263 2006-08-23 Bruno Haible <bruno@clisp.org>
43265 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43266 of gl_LOCK_EARLY instead of gl_LOCK.
43268 2006-08-23 Bruno Haible <bruno@clisp.org>
43270 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43272 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43274 2006-08-23 Bruno Haible <bruno@clisp.org>
43276 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43279 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43280 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43281 (gl_LOCK): New macro.
43283 2006-08-22 Simon Josefsson <jas@extundo.com>
43285 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43288 2006-08-22 Simon Josefsson <jas@extundo.com>
43290 * MODULES.html.sh: Add "Support for maintaining and release
43293 * build-aux/gnupload: New file, from coreutils.
43295 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43297 Avoid the need for AC_LIBSOURCES in m4 macros.
43298 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43299 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43300 * modules/check-version (EXTRA_DIST): Add check-version.h.
43301 * modules/crc (EXTRA_DIST): Add crc.h.
43302 * modules/des (EXTRA_DIST): Add des.h.
43303 * modules/gc (EXTRA_DIST): Add gc.h.
43304 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43305 * modules/getline (EXTRA_DIST): Add getline.h.
43306 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43307 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43308 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43309 * modules/md2 (EXTRA_DIST): Add md2.h.
43310 * modules/md4 (EXTRA_DIST): Add md4.h.
43311 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43312 * modules/read-file (EXTRA_DIST): Add read-file.h.
43313 * modules/readline (EXTRA_DIST): Add readline.h.
43314 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43315 rijndael-api-fst.h.
43317 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43319 * m4/rijndael.m4 (gl_ARCFOUR):
43320 * m4/arctwo.m4 (gl_ARCTWO):
43321 * m4/check-version.m4 (gl_CHECK_VERSION):
43322 * m4/crc.m4 (gl_CRC):
43323 * m4/des.m4 (gl_DES):
43324 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43325 * m4/gc.m4 (gl_GC):
43326 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43327 * m4/getline.m4 (gl_FUNC_GETLINE):
43328 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43329 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43330 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43331 * m4/md2.m4 (gl_MD2):
43332 * m4/md4.m4 (gl_MD4):
43333 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43334 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43335 * m4/readline.m4 (gl_FUNC_READLINE):
43336 * m4/rijndael.m4 (gl_RIJNDAEL):
43337 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43338 to get the necessary .h files and whatnot.
43340 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43342 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43343 gnulib rather than the other way around.
43344 * config/srclistvars.sh (COREUTILS): Remove.
43346 2006-08-22 Jim Meyering <jim@meyering.net>
43348 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43350 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43352 2006-08-22 Eric Blake <ebb9@byu.net>
43354 * modules/regexprops-generic: New file.
43355 * MODULES.html.sh (Support for building documentation): List it.
43357 2006-08-22 Eric Blake <ebb9@byu.net>
43359 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43360 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43361 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43362 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43364 2006-08-22 Bruno Haible <bruno@clisp.org>
43366 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43367 and lib_LTLIBRARIES like the other lib_* variables.
43369 2006-08-22 Bruno Haible <bruno@clisp.org>
43371 * build-aux/x-to-1.in: New file, from GNU gettext.
43373 2006-08-22 Bruno Haible <bruno@clisp.org>
43375 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43378 2006-08-22 Bruno Haible <bruno@clisp.org>
43380 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43383 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43386 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43388 Problem reported by Bruno Haible.
43390 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43392 Avoid the need for AC_LIBSOURCES in m4 macros.
43393 * modules/acl (EXTRA_DIST): Add acl.h.
43394 * modules/argmatch (Files): Add m4/argmatch.m4.
43395 (configure.ac): Add gl_ARGMATCH.
43396 (EXTRA_DIST): Renamed from lib_SOURCES, for
43397 consistency with the other modules. Remove argmatch.c.
43398 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43399 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43400 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43401 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43402 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43403 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43404 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43405 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43406 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43407 * modules/closeout (EXTRA_DIST): Add closeout.h.
43408 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43409 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43410 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43411 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43412 dirname.h; remove basename.c and stripslash.c.
43413 * modules/exclude (EXTRA_DIST): Add exclude.h.
43414 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43415 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43416 * modules/file-type (EXTRA_DIST): Add file-type.h.
43417 * modules/filemode (EXTRA_DIST): Add filemode.h.
43418 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43419 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43420 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43421 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43422 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43423 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43424 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43425 * modules/getdate (EXTRA_DIST): Add getdate.c.
43426 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43427 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43428 * modules/getpass (EXTRA_DIST): Add getpass.h.
43429 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43430 * modules/group-member (EXTRA_DIST): Add group-member.h.
43431 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43432 * modules/hash (EXTRA_DIST): Add hash.h.
43433 * modules/human (EXTRA_DIST): Add human.h.
43434 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43435 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43436 * modules/lchown (EXTRA_DIST): Add lchown.h.
43437 * modules/long-options (EXTRA_DIST): Add long-options.h.
43438 * modules/lstat (EXTRA_DIST): Add lstat.h.
43439 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43440 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43441 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43442 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43443 * modules/memxor (EXTRA_DIST): Add memxor.h.
43444 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43445 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43446 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43447 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43448 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43449 * modules/physmem (EXTRA_DIST): Add physmem.h.
43450 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43451 * modules/posixver (EXTRA_DIST): Add posixver.h.
43452 * modules/quote (EXTRA_DIST): Add quote.h.
43453 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43454 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43455 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43456 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43457 regex_internal.h regexec.c.
43458 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43459 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43460 * modules/same (EXTRA_DIST): Add same.h.
43461 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43462 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43463 * modules/savedir (EXTRA_DIST): Add savedir.h.
43464 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43465 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43466 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43467 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43468 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43469 * modules/strdup (EXTRA_DIST): Add strdup.h.
43470 * modules/strftime (EXTRA_DIST): Add strftime.h.
43471 * modules/strndup (EXTRA_DIST): Add strndup.h.
43472 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43473 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43474 * modules/time_r (EXTRA_DIST): Add time_r.h.
43475 * modules/timespec (EXTRA_DIST): Add timespec.h.
43476 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43477 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43478 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43479 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43480 * modules/userspec (EXTRA_DIST): Add userspec.h.
43481 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43482 * modules/utimens (EXTRA_DIST): Add utimens.h.
43483 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43484 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43485 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43486 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43487 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43488 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43489 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43490 * modules/yesno (EXTRA_DIST): Add yesno.h.
43492 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43494 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43496 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43497 * m4/dev-ino.m4, same-inode.m4: Remove.
43499 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43500 * m4/acl.m4 (AC_FUNC_ACL):
43501 * m4/backupfile.m4 (gl_BACKUPFILE):
43502 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43503 * m4/canon-host.m4 (gl_CANON_HOST):
43504 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43505 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43506 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43507 * m4/cloexec.m4 (gl_CLOEXEC):
43508 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43509 * m4/closeout.m4 (gl_CLOSEOUT):
43510 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43511 * m4/dirname.m4 (gl_DIRNAME):
43512 * m4/exclude.m4 (gl_EXCLUDE):
43513 * m4/exitfail.m4 (gl_EXITFAIL):
43514 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43515 * m4/file-type.m4 (gl_FILE_TYPE):
43516 * m4/filemode.m4 (gl_FILEMODE):
43517 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43518 * m4/fpending.m4 (gl_FUNC_FPENDING):
43519 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43520 * m4/fts.m4 (gl_FUNC_FTS):
43521 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43522 * m4/getdate.m4 (gl_GETDATE):
43523 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43524 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43525 * m4/getpass.m4 (gl_FUNC_GETPASS):
43526 * m4/gettime.m4 (gl_GETTIME):
43527 * m4/getugroups.m4 (gl_GETUGROUPS):
43528 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43529 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43530 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43531 * m4/hash.m4 (gl_HASH):
43532 * m4/idcache.m4 (gl_IDCACHE):
43533 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43534 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43535 * m4/long-options.m4 (gl_LONG_OPTIONS):
43536 * m4/lstat.m4 (gl_FUNC_LSTAT):
43537 * m4/md5.m4 (gl_MD5):
43538 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43539 * m4/memcoll.m4 (gl_MEMCOLL):
43540 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43541 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43542 * m4/memxor.m4 (gl_MEMXOR):
43543 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43544 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43545 * m4/modechange.m4 (gl_MODECHANGE):
43546 * m4/mountlist.m4 (gl_MOUNTLIST):
43547 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43548 * m4/openat.m4 (gl_FUNC_OPENAT):
43549 * m4/pathmax.m4 (gl_PATHMAX):
43550 * m4/physmem.m4 (gl_PHYSMEM):
43551 * m4/posixtm.m4 (gl_POSIXTM):
43552 * m4/posixver.m4 (gl_POSIXVER):
43553 * m4/quote.m4 (gl_QUOTE):
43554 * m4/quotearg.m4 (gl_QUOTEARG):
43555 * m4/readtokens.m4 (gl_READTOKENS):
43556 * m4/readutmp.m4 (gl_READUTMP):
43557 * m4/regex.m4 (gl_REGEX):
43558 * m4/safe-read.m4 (gl_SAFE_READ):
43559 * m4/safe-write.m4 (gl_SAFE_WRITE):
43560 * m4/same.m4 (gl_SAME):
43561 * m4/save-cwd.m4 (gl_SAVE_CWD):
43562 * m4/savedir.m4 (gl_SAVEDIR):
43563 * m4/settime.m4 (gl_SETTIME):
43564 * m4/sha1.m4 (gl_SHA1):
43565 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43566 * m4/stat-macros.m4 (gl_STAT_MACROS):
43567 * m4/stat-time.m4 (gl_STAT_TIME):
43568 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43569 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43570 * m4/strdup.m4 (gl_FUNC_STRDUP):
43571 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43572 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43573 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43574 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43575 * m4/time_r.m4 (gl_TIME_R):
43576 * m4/timespec.m4 (gl_TIMESPEC):
43577 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43578 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43579 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43580 * m4/userspec.m4 (gl_USERSPEC):
43581 * m4/utimecmp.m4 (gl_UTIMECMP):
43582 * m4/utimens.m4 (gl_UTIMENS):
43583 * m4/xalloc.m4 (gl_XALLOC):
43584 * m4/xgetcwd.m4 (gl_XGETCWD):
43585 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43586 * m4/xreadlink.m4 (gl_XREADLINK):
43587 * m4/xstrtod.m4 (gl_XSTRTOD):
43588 * m4/yesno.m4 (gl_YESNO):
43589 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43590 to get the necessary .h files and whatnot.
43592 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43593 Bruno Haible <bruno@clisp.org>
43595 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43596 /bin/sh understanding of '!' conditional negation.
43598 2006-08-21 Jim Meyering <jim@meyering.net>
43600 * modules/openat (Depends-on): Really alphabetize.
43602 * modules/acl (Depends-on): Add error and quote.
43604 * check-module (find_included_lib_files): Add at-func.c to the
43605 ok-to-include-more-than-once white list.
43607 * modules/openat (Depends-on): Add lstat. Alphabetize.
43609 2006-08-21 Bruno Haible <bruno@clisp.org>
43611 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43612 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43613 Reported by Martin Lambers <marlam@marlam.de>.
43615 2006-08-21 Bruno Haible <bruno@clisp.org>
43617 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43618 specify an installation location, don't emit a noinst_LIBRARIES or
43619 noinst_LTLIBRARIES assignment.
43621 2006-08-21 Bruno Haible <bruno@clisp.org>
43624 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43625 BeOS has mbrtowc() but no <wctype.h>.
43627 2006-08-21 Bruno Haible <bruno@clisp.org>
43630 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43633 2006-08-21 Bruno Haible <bruno@clisp.org>
43636 * lib/mbchar.h: Include <wctype.h> only if it exists.
43638 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43640 Remove files that are no longer needed by their respective modules.
43641 * m4/obstack.m4: Remove.
43642 * m4/strerror_r.m4: Remove.
43643 * m4/uint32_t.m4: Remove.
43644 * m4/uintptr_t.m4: Remove.
43645 * m4/ullong_max.m4: Remove.
43646 * m4/xstrtoimax.m4: Remove.
43647 * m4/xstrtoumax.m4: Remove.
43649 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43650 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43651 dependencies now capture this.
43653 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43654 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43655 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43656 * m4/human.m4 (gl_HUMAN): Likewise.
43657 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43658 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43660 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43662 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43663 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43665 * m4/human.m4 (gl_HUMAN): Likewise.
43666 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43667 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43668 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43669 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43670 * m4/xstrtol (gl_XSTRTOL): Likewise.
43672 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43673 AC_TYPE_LONG_LONG_INT.
43674 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43675 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43676 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43677 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43679 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43682 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43683 (gl_PREREQ_XSTRTOUL): Remove.
43685 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43687 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43690 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43692 Add and change modules to make it easier for coreutils to use
43694 * modules/backupfile (Files): Remove m4/d-ino.m4.
43695 (Depends-on): Add d-ino.
43696 * modules/cycle-check (Depends-on): Add stdint.
43697 (lib_SOURCES): Add cycle-check.h.
43698 * modules/d-ino: New module.
43699 * modules/d-type: New module.
43700 * modules/error (Files): Remove m4/strerror_r.m4.
43701 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43702 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43703 m4/inttypes_h.m4, m4/uintmax_t.m4.
43704 (Depends-on): Add stdint.
43705 (lib_SOURCES): Add fsusage.h.
43706 * modules/getcwd (Files): Remove d-ino.m4.
43707 (Depends-on): Add d-ino.
43708 * modules/getndelim2 (Depends-on): Add stdint.
43709 * modules/glob (Files): Remove m4/d-type.m4.
43710 (Depends-on): Add d-type.
43711 * modules/host-os: New module.
43712 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43713 m4/inttypes_h.m4, m4/uintmax_t.m4.
43714 * Depends-on: Add stdint.
43715 (lib_SOURCES): Add human.h.
43716 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43717 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43718 m4/uintmax_t.m4, m4/ulonglong.m4.
43719 (Depends-on): Add stdint.
43720 (EXTRA_DIST): Add inttostr.h.
43721 * modules/lchmod: New module.
43722 * modules/link-follow: New module.
43723 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43724 (Depends-on): Add lchmod.
43725 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43726 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43727 (Depends-on): Add stdint.
43728 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43729 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43730 (Depends-on): Add stdint.
43731 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43732 * modules/perl: New module.
43733 * modules/regex (Depends-on): Add stdint.
43734 * modules/rmdir-errno: New module.
43735 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43737 (Depends-on): Add stdint.
43738 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43740 (Depends-on): Add stdint.
43741 * modules/unlink-busy: New module.
43742 * modules/utimecmp (Depends-on): Add stdint.
43743 * modules/uptime: New module.
43744 * modules/winsz-ioctl: New module.
43745 * modules/winsz-termios: New module.
43746 * modules/xnanosleep (Depends-on): Add nanosleep.
43747 * modules/ullong_max: Remove.
43748 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43749 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43750 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43751 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43752 (Depends-on): Add inttypes.
43753 (lib_SOURCES): Add xstrtol.h.
43754 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43755 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43756 * MODULES.html.sh: Move 'assert' into the assert section.
43757 Move 'dummy' into the linking section.
43759 Add section for compatibility checks for POSIX:2001 functions,
43760 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43761 winsz-ioctl, and winsz-termios into it.
43763 Add top-level Misc section and put host-os, perl, and uptime
43766 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43768 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43769 now assume the stdint module. Do not include inttypes.h.
43770 * lib/fsusage.h: Likewise.
43771 * lib/getndelim2.c: Likewise.
43772 * lib/human.h: Likewise.
43773 * lib/inttostr.h: Likewise.
43774 * lib/obstack.c: Likewise.
43775 * lib/regex_internal.h: Likewise.
43776 * lib/tempname.c: Likewise.
43777 * lib/utimecmp.c: Likewise.
43778 * lib/xstrtol.h: Likewise.
43780 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43782 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43783 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43784 * lib/xtime.h: Likewise.
43786 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43788 * modules/openat (Files): Add lib/fchmodat.c.
43789 Fixes problem reported by Jay Youngman.
43791 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43793 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43794 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43796 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43797 Bruno Haible <bruno@clisp.org>
43799 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43800 and is a script that invokes bison. Tighten the code. Add comments.
43802 2006-08-18 Jim Meyering <jim@meyering.net>
43804 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43805 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43806 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43807 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43809 2006-08-18 Bruno Haible <bruno@clisp.org>
43811 * modules/bison-i18n: New file.
43812 * MODULES.html.sh (Internationalization functions): Add it.
43814 2006-08-18 Bruno Haible <bruno@clisp.org>
43816 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43817 sys/statvfs.h. When getmntinfo was found, check its declaration and
43818 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43820 2006-08-18 Bruno Haible <bruno@clisp.org>
43822 * m4/bison-i18n.m4: New file, from bison.
43824 2006-08-18 Bruno Haible <bruno@clisp.org>
43826 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43827 (ME_DUMMY): Treat "kernfs" as a dummy.
43828 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43830 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43832 Update from coreutils.
43834 2006-08-15 Jim Meyering <jim@meyering.net>
43836 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43838 2006-01-17 Jim Meyering <jim@meyering.net>
43840 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43842 2006-01-11 Jim Meyering <jim@meyering.net>
43844 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43845 Check for the lchmod function.
43847 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43849 Update from coreutils.
43851 * lib/__fpending.h: Add copyright notice.
43852 * lib/fprintftime.h: Likewise.
43853 * lib/savedir.c: Use (C) in copyright notice.
43854 * lib/savedir.h: Likewise.
43856 2006-08-15 Jim Meyering <jim@meyering.net>
43858 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43859 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43860 in support of the EXPECTED_ERRNO macro.
43861 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43862 definitions. Instead, define the appropriate symbols and include
43864 * lib/mkdirat.c (mkdirat): Likewise.
43865 * lib/fchmodat.c (fchmodat): Likewise.
43866 (ENOSYS): Remove definition.
43867 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43868 it. Don't include "unistd--.h" -- it wasn't ever used.
43870 2006-01-17 Jim Meyering <jim@meyering.net>
43872 Rewrite fts.c not to change the current working directory,
43873 by using openat, fstatat, fdopendir, etc..
43875 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43876 (HAVE_OPENAT_SUPPORT): Define.
43877 [_LIBC] (fchdir): Don't undef or define; no longer used.
43878 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43879 Now, this `function' always succeeds, and consumes its file descriptor
43880 parameter -- so callers must not close such FDs. Update callers.
43881 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43882 (diropen): Add parameter, SP. Adjust all callers.
43883 Implement using diropen_fd, rather than open.
43884 (fts_open): Initialize new member, fts_cwd_fd.
43885 Remove fts_rft-setting code.
43886 (fts_close): Close fts_cwd_fd, if necessary.
43887 (__opendir2): Define in terms of opendir or opendirat,
43888 depending on whether the FST_NOCHDIR flag is set.
43889 (fts_build): Since fts_safe_changedir consumes its FD, and since
43890 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43891 and close the dup'd file descriptor upon failure.
43892 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43893 (fts_safe_changedir): Tweak semantics to reflect that this function
43894 now calls cwd_advance_fd and hence consumes its FD argument.
43895 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43896 [struct FTS] (fts_rft): Remove now-unused member.
43897 [struct FTS] (fts_cycle.state): Improve comment.
43899 * lib/openat.c (openat_needs_fchdir): New function.
43900 * lib/openat.h (openat_needs_fchdir): Declare it.
43902 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43904 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43905 Problem and fix reported by Pádraig Brady in
43906 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43908 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43910 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43912 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43914 * lib/memcoll.c (memcoll): Optimize for the common case where the
43915 arguments are bytewise equal.
43917 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43919 * doc/regexprops-generic.texi: Add a copyright notice.
43921 2006-08-15 Bruno Haible <bruno@clisp.org>
43923 * modules/tmpdir (License): Change to LGPL.
43925 2006-08-15 Bruno Haible <bruno@clisp.org>
43927 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43930 2006-08-14 Simon Josefsson <jas@extundo.com>
43932 * config/srclist.txt: Add gnupload.
43934 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43936 Change copyright notice from LGPL 2 to GPL 2, since that's the
43937 standard form used in the gnulib repository.
43938 * tests/test-lock.c: Likewise.
43939 * tests/test-stdint.c: Likewise.
43940 * tests/test-tls.c: Likewise.
43942 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43943 prelude-manager. User shorter URLs for GNU projects, without '?'.
43944 Add copyright notice.
43946 * check-module: Add copyright notice. Output a copyright
43947 notice if "--version" is specified.
43948 * modules/COPYING: New file.
43949 * tests/test-getaddrinfo.c: Add copyright notice.
43950 * tests/test-verify.c: Likewise.
43952 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43954 Change copyright notice from LGPL 2 to GPL 2, since that's the
43955 standard form used in the gnulib repository.
43956 * lib/lock.c: LGPL -> GPL.
43957 * lib/lock.h: Likewise.
43958 * lib/strnlen1.c: Likewise.
43959 * lib/strnlen1.h: Likewise.
43960 * lib/tls.c: Likewise.
43961 * lib/tls.h: Likewise.
43962 * lib/tmpdir.c: Likewise.
43964 * lib/TODO: Remove; this belongs only in coreutils.
43966 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43968 Add copyright notices to long-enough files that lack them, since
43969 otherwise the files aren't clearly free. Use the same notice that
43970 getdate.texi already uses.
43971 * doc/alloca-opt.texi: Add copyright notice.
43972 * doc/alloca.texi: Likewise.
43973 * doc/ctime.texi: Likewise.
43974 * doc/functions.texi: Likewise.
43975 * doc/gcd.texi: Likewise.
43976 * doc/gnulib-tool.texi: Likewise.
43977 * doc/inet_ntoa.texi: Likewise.
43978 * doc/visibility.texi: Likewise.
43980 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43981 * doc/quote.texi: Add copyright notice.
43983 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43984 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43985 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43986 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43987 is now obsolete, and give a pointer to the Sun list.
43988 Add copyright notice.
43990 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43992 * config/srclistvars.sh: Add copyright notice.
43994 2006-08-14 Eric Blake <ebb9@byu.net>
43996 Import the following change from libc:
43998 2006-08-12 Ulrich Drepper <drepper@redhat.com>
44001 * lib/misc/error.c: Add space between program name and message if file
44004 2006-08-12 Karl Berry <karl@gnu.org>
44006 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44007 remove, these originate in gnulib now.
44009 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44011 * doc/Makefile (standards.info standards.html standards.dvi):
44012 Also depend on make-stds.texi.
44014 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
44016 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44017 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
44019 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44020 in wchar_t. Problem reported by Eric Blake.
44022 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44023 LEN is smaller than SIZE. Suggested by Bruno Haible.
44024 Also, help the compiler to keep LEN in a register.
44026 2006-08-11 Eric Blake <ebb9@byu.net>
44028 * users.txt: Sort. Add tar.
44030 2006-08-11 Bruno Haible <bruno@clisp.org>
44032 * users.txt: New file.
44034 2006-08-11 Bruno Haible <bruno@clisp.org>
44036 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44037 before <wchar.h>. Needed for OSF/1 and BSD/OS.
44039 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44041 * modules/snprintf (Depends-on): Remove minmax.
44042 (Maintainer): Add self and Bruno.
44044 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44046 * lib/.cppi-disable: Add snprintf.h, socket_.h.
44047 * lib/snprintf.c: Include <errno.h> and <limits.h>.
44048 (EOVERFLOW): Define if the system does not.
44049 Do not include "minmax.h"; it wasn't used.
44050 (snprintf): Don't assume size_t promotes to an unsigned type.
44051 Fix bug when generated string was too long for the buffer: the
44052 buffer's contents are supposed to be the initial prefix of the
44053 output. Don't assume vasnprintf returns EOVERFLOW if the size
44054 exceeds INT_MAX; do the check ourselves.
44056 Import the following changes from libc:
44058 2006-06-02 Jakub Jelinek <jakub@redhat.com>
44060 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44061 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44062 set wc to the byte which couldn't be converted.
44063 (re_string_reconstruct): Don't clear valid_raw_len before calling
44064 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44065 tip_context using re_string_context_at.
44067 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44069 * lib/posix/regex.h: g++ still cannot handled [restrict].
44071 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44073 * lib/posix/regex.h: Remove special handling for VMS.
44075 2006-08-10 Jim Meyering <jim@meyering.net>
44077 * modules/same-inode: New module.
44078 * modules/dev-ino: New module.
44079 * modules/cycle-check: Depend on these modules, rather than simply
44080 including their .h files.
44081 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44082 required via m4/cycle-check.m4.
44083 * modules/same: Depend on new same-inode module, rather than
44084 including same-inode.h.
44085 * modules/chdir-safer: New file.
44087 * modules/chown (Depends-on): Add stat-macros.
44089 2006-08-10 Jim Meyering <jim@meyering.net>
44091 * m4/cycle-check.m4: New file.
44092 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44093 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44095 2006-08-10 Eric Blake <ebb9@byu.net>
44097 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44098 in from original proposal.
44100 2006-08-10 Eric Blake <ebb9@byu.net>
44101 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44103 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44106 2006-08-10 Bruno Haible <bruno@clisp.org>
44108 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44111 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44113 Sync from coreutils.
44115 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44117 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44118 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44120 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44122 * modules/restrict: Remove; no longer needed now that we assume
44123 Autoconf 2.59 or later.
44124 * MODULES.html.sh: Remove 'restrict'.
44125 * modules/argp (Depends-on): Remove 'restrict'.
44126 * modules/base64 (Depends-on): Likewise.
44127 * modules/gc (Depends-on): Likewise.
44128 * modules/getaddrinfo (Depends-on): Likewise.
44129 * modules/glob (Depends-on): Likewise.
44130 * modules/inet_ntop (Depends-on): Likewise.
44131 * modules/inet_pton (Depends-on): Likewise.
44132 * modules/memxor (Depends-on): Likewise.
44133 * modules/regex (Depends-on): Likewise.
44134 * modules/strtok_r (Depends-on): Likewise.
44135 * modules/time_r (Depends-on): Likewise.
44137 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44139 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44140 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44141 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44142 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44143 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44144 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44145 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44146 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44148 Merge from coreutils.
44149 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44150 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44151 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44152 * m4/time_r.m4 (gl_TIME_R): Likewise.
44154 2006-08-09 Karl Berry <karl@gnu.org>
44156 * config/srclist.txt: no more gettext-tools, per Bruno.
44158 2006-08-08 Eric Blake <ebb9@byu.net>
44160 * modules/verror: New module.
44161 * MODULES.html.sh: Document it.
44163 2006-08-08 Eric Blake <ebb9@byu.net>
44165 * lib/verror.h, lib/verror.c: New files.
44167 2006-08-08 Eric Blake <ebb9@byu.net>
44169 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44170 verror_at_line output complies with GNU Coding Standards even when
44173 2006-08-07 Bruno Haible <bruno@clisp.org>
44175 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44177 Reported by Ralf Wildenhues.
44179 2006-08-07 Bruno Haible <bruno@clisp.org>
44181 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44182 in an AC_DEFUN. Needed so that the autoconf snippets can use
44185 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44187 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44188 Initialize pkgdata_DATA.
44189 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44192 2006-08-06 Eric Blake <ebb9@byu.net>
44194 * lib/error.h: Fold in some upstream changes from glibc.
44195 * lib/error.c: Likewise.
44197 2006-08-04 Bruno Haible <bruno@clisp.org>
44199 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44200 Make the mostlyclean-local rule depend on mostlyclean-generic.
44201 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44203 2006-07-31 Bruno Haible <bruno@clisp.org>
44205 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44206 <stdlib.h>, <string.h>.
44208 2006-07-30 Bruno Haible <bruno@clisp.org>
44210 * modules/readlink (License): Change to LGPL.
44212 2006-07-30 Bruno Haible <bruno@clisp.org>
44214 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44215 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44216 set PKGDATADIR to point to it.
44218 2006-07-30 Bruno Haible <bruno@clisp.org>
44220 * modules/csharpexec (configure.ac): Comment out macro invocation.
44221 * modules/javaexec (configure.ac): Likewise.
44222 * modules/javacomp-script (configure.ac): Likewise.
44224 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44226 2006-07-30 Bruno Haible <bruno@clisp.org>
44228 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44231 2006-07-30 Bruno Haible <bruno@clisp.org>
44233 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44235 2006-07-30 Bruno Haible <bruno@clisp.org>
44237 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44238 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44241 2006-07-29 Bruno Haible <bruno@clisp.org>
44243 Make it possible for gnulib-tool to work with locally modified or
44244 augmented gnulib repositories.
44245 * gnulib-tool (func_usage): Document --local-dir option.
44246 (local_gnulib_dir): New variable.
44247 Handle --local-dir option.
44248 (func_lookup_file): New function.
44249 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44250 (func_get_description, func_get_filelist, func_get_description,
44251 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44252 func_get_automake_snippet, func_get_include_directive,
44253 func_get_license, func_get_maintainer): Use func_lookup_file.
44254 (func_import, func_create_testdir): Use func_lookup_file.
44256 2006-07-29 Bruno Haible <bruno@clisp.org>
44258 * modules/setenv (Depends-on): Add unistd.
44260 2006-07-29 Bruno Haible <bruno@clisp.org>
44262 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44264 2006-07-29 Bruno Haible <bruno@clisp.org>
44266 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44268 2006-07-29 Bruno Haible <bruno@clisp.org>
44270 * gnulib-tool (import, update): If there is no Makefile.am, look at
44271 aclocal.m4, instead of bailing out.
44273 2006-07-29 Bruno Haible <bruno@clisp.org>
44275 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44276 Categorize the options by when they are useful.
44278 2006-07-29 Bruno Haible <bruno@clisp.org>
44280 * gnulib-tool (func_usage): Document option --no-libtool.
44281 Handle option --no-libtool.
44282 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44283 for changed semantics of $libtool variable.
44284 (func_import): Likewise. If libtool is not used, show this through
44285 an option --no-libtool.
44286 (func_create_testdir): Update.
44288 2006-07-29 Bruno Haible <bruno@clisp.org>
44290 * gnulib-tool (func_import): Extend error message about missing
44293 2006-07-29 Bruno Haible <bruno@clisp.org>
44295 * gnulib-tool (func_import): Don't create the $docbase directory if
44296 there is no file to store there.
44298 2006-07-29 Bruno Haible <bruno@clisp.org>
44300 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44301 relevant, look for configure.ac there, not in the current directory.
44302 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44304 2006-07-29 Bruno Haible <bruno@clisp.org>
44306 * gnulib-tool (SORT): New variable.
44307 (func_usage): Undocument --assume-autoconf option.
44308 Remove --assume-autoconf option handling.
44309 (autoconf_minversion): Determine from the contents of configure.ac.
44310 (func_import): Remove autoconf_minversion handling.
44311 Suggested by Eric Blake.
44313 2006-07-29 Bruno Haible <bruno@clisp.org>
44315 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44317 2006-07-29 Bruno Haible <bruno@clisp.org>
44319 * config/srclist.txt (*setenv.[ch]): Remove rules.
44321 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44323 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44325 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44327 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44330 2006-07-28 Simon Josefsson <jas@extundo.com>
44332 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44333 * modules/inet_pton (Depends-on): Likewise.
44335 2006-07-28 Simon Josefsson <jas@extundo.com>
44337 * m4/netinet_in_h.m4: New file.
44339 2006-07-28 Simon Josefsson <jas@extundo.com>
44341 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44344 2006-07-28 Simon Josefsson <jas@extundo.com>
44346 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44349 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44351 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44352 setgid on directories only if they set these bits.
44353 * lib/modechange.h: Remove obsolete comment about masks.
44355 2006-07-28 Eric Blake <ebb9@byu.net>
44357 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44360 2006-07-28 Bruno Haible <bruno@clisp.org>
44362 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44364 2006-07-28 Bruno Haible <bruno@clisp.org>
44366 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44368 2006-07-28 Bruno Haible <bruno@clisp.org>
44370 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44371 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44373 Avoids link error on FreeBSD 4.x.
44374 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44376 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44378 * lib/mbswidth.c (iswcntrl): Likewise.
44380 2006-07-27 Bruno Haible <bruno@clisp.org>
44382 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44385 2006-07-27 Bruno Haible <bruno@clisp.org>
44387 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44388 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44391 2006-07-26 Eric Blake <ebb9@byu.net>
44393 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44395 2006-07-26 Eric Blake <ebb9@byu.net>
44397 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44398 like mingw that lack mkstemp.
44399 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44400 avoid compilation warning on mingw.
44402 2006-07-26 Bruno Haible <bruno@clisp.org>
44404 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44405 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44406 INT_FAST*_MIN, INTPTR_MIN.
44408 2006-07-25 Bruno Haible <bruno@clisp.org>
44410 * modules/version-etc (Depends-on): Add stdarg.
44412 2006-07-25 Bruno Haible <bruno@clisp.org>
44414 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44417 2006-07-25 Bruno Haible <bruno@clisp.org>
44419 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44420 defined in <stdarg.h> or config.h.
44422 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44424 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44425 (gl_STDIO_SAFER): Remove.
44427 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44429 * MODULES.html.sh (File stream based Input/Output):
44430 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44431 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44432 * modules/fopen-safer, modules/tmpfile-safer: New files.
44433 * modules/stdio-safer: Remove.
44435 2006-07-24 Bruno Haible <bruno@clisp.org>
44437 * modules/tmpdir: New file.
44438 * MODULES.html.sh (File system functions): Add it.
44440 2006-07-24 Bruno Haible <bruno@clisp.org>
44442 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44443 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44445 2006-07-24 Bruno Haible <bruno@clisp.org>
44447 * modules/clean-temp: New file.
44449 2006-07-24 Bruno Haible <bruno@clisp.org>
44451 * m4/tmpdir.m4: New file, from GNU gettext.
44453 2006-07-24 Bruno Haible <bruno@clisp.org>
44455 * lib/tmpdir.h: New file, from GNU gettext.
44456 * lib/tmpdir.c: New file, from GNU gettext.
44458 2006-07-24 Bruno Haible <bruno@clisp.org>
44460 * lib/clean-temp.h: New file, from GNU gettext.
44461 * lib/clean-temp.c: New file, from GNU gettext.
44463 2006-07-23 Eric Blake <ebb9@byu.net>
44465 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44466 (Depends-on): Add binary-io.
44468 2006-07-23 Eric Blake <ebb9@byu.net>
44470 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44472 2006-07-23 Eric Blake <ebb9@byu.net>
44474 * lib/tmpfile-safer.c: New file.
44475 * lib/stdio-safer.h (fopen_safer): Add prototype.
44476 * lib/stdio--.h (tmpfile): Make safer.
44478 2006-07-23 Bruno Haible <bruno@clisp.org>
44480 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44481 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44482 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44483 gl_linked_remove_at): Use it.
44485 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44486 and Simon Josefsson <jas@extundo.com>
44488 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44490 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44492 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44494 * modules/close-stream: New file.
44495 * modules/closeout (Description): Make it clear that it exits
44496 with a diagnostic on error.
44497 (Depends-on): Add close-stream. Remove fpending, stdbool.
44498 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44500 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44502 * m4/close-stream.m4: New file.
44504 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44506 * lib/close-stream.c, lib/close-stream.h: New files.
44508 2006-07-22 Bruno Haible <bruno@clisp.org>
44510 Merge from GNU gettext 0.15.
44512 2006-05-01 Bruno Haible <bruno@clisp.org>
44514 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44516 2006-07-22 Bruno Haible <bruno@clisp.org>
44518 * modules/javaversion: New file.
44519 * MODULES.html.sh (Java): Add javaversion.
44521 2006-03-12 Bruno Haible <bruno@clisp.org>
44523 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44525 2005-12-04 Bruno Haible <bruno@clisp.org>
44527 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44530 2006-06-21 Bruno Haible <bruno@clisp.org>
44532 Avoid warnings from recent versions of mcs.
44533 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44534 -o, -L, -r any more. Use options documented since mcs-1.0
44535 instead. Similarly for -g.
44537 2005-12-04 Bruno Haible <bruno@clisp.org>
44539 * build-aux/csharpcomp.sh.in: Suffix for resources is
44540 .resources, not .resource.
44542 2005-07-09 Bruno Haible <bruno@clisp.org>
44544 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44546 Reported by Mark Junker <mjscod@gmx.de>.
44548 2006-07-22 Bruno Haible <bruno@clisp.org>
44550 * modules/gettext: Upgrade to gettext-0.15.
44551 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44553 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44555 2006-07-22 Bruno Haible <bruno@clisp.org>
44557 Merge from GNU gettext 0.15.
44559 2006-03-25 Bruno Haible <bruno@clisp.org>
44561 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44563 2006-07-21 Bruno Haible <bruno@clisp.org>
44565 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44568 2006-05-09 Bruno Haible <bruno@clisp.org>
44570 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44571 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44572 for the conftestver execution.
44574 2006-05-01 Bruno Haible <bruno@clisp.org>
44576 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44577 optional target-version argument. Verify that the compiler
44578 groks source of the specified source-version, or add -source
44579 option as necessary. Verify that the compiler produces
44580 bytecode in the specified target-version, or add -target and
44581 -source options as necessary. Make the result of the test
44582 available as variable CONF_JAVAC. Also log error output in
44585 2006-03-11 Bruno Haible <bruno@clisp.org>
44587 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44589 2006-05-09 Bruno Haible <bruno@clisp.org>
44591 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44592 CLASSPATH_SEPARATOR to a semicolon.
44594 2006-03-12 Bruno Haible <bruno@clisp.org>
44596 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44597 available as variable CONF_JAVA, for subsequent autoconf
44598 tests. Also log error output in config.log.
44600 2006-07-19 Bruno Haible <bruno@clisp.org>
44602 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44603 that getline works on glibc2 systems. Needed to avoid trouble
44605 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44607 2005-12-04 Bruno Haible <bruno@clisp.org>
44609 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44610 launcher (untested).
44612 2005-12-04 Bruno Haible <bruno@clisp.org>
44614 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44616 2006-07-22 Bruno Haible <bruno@clisp.org>
44618 * gettext.m4: Update from GNU gettext-0.15.
44619 * nls.m4: Likewise.
44621 * inttypes-pri.m4: Likewise.
44622 * inttypes-h.m4: Renamed from inttypes.m4.
44623 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44625 2006-07-22 Bruno Haible <bruno@clisp.org>
44627 Merge from GNU gettext 0.15.
44629 2005-07-05 Bruno Haible <bruno@clisp.org>
44631 * printf-args.c (printf_fetchargs): Work around broken
44632 definition of wint_t on mingw.
44634 2005-02-12 Bruno Haible <bruno@clisp.org>
44636 * xallocsa.h: Add extern "C" for C++.
44638 2006-05-17 Bruno Haible <bruno@clisp.org>
44640 Cygwin portability.
44641 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44643 2006-04-30 Bruno Haible <bruno@clisp.org>
44645 * progreloc.c: Include <mach-o/dyld.h> if available.
44646 (find_executable): Use _NSGetExecutablePath when possible.
44648 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44650 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44653 2005-12-29 Bruno Haible <bruno@clisp.org>
44655 * progreloc.c (set_program_name_and_installdir): Fix
44658 2005-12-04 Bruno Haible <bruno@clisp.org>
44660 Cygwin portability.
44661 * progreloc.c: Include <windows.h> also on Cygwin.
44662 (find_executable): Add support for Cygwin.
44663 (set_program_name_and_installdir): Handle also platforms with
44666 2006-07-11 Bruno Haible <bruno@clisp.org>
44668 * javacomp.c: Fix a comment.
44669 Reported by Jim Meyering.
44671 2006-04-30 Bruno Haible <bruno@clisp.org>
44673 * javacomp.h (compile_java_class): Add source_version,
44674 target_version arguments.
44675 * javacomp.c: Rewritten to choose only a compiler that
44676 respects the specified source_version and target_version.
44678 2006-06-27 Bruno Haible <bruno@clisp.org>
44680 Assume correct S_ISDIR macro.
44681 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44683 2006-07-22 Bruno Haible <bruno@clisp.org>
44685 * javaversion.h: New file, from GNU gettext.
44686 * javaversion.c: New file, from GNU gettext.
44687 * javaversion.java: New file, from GNU gettext.
44688 * javaversion.class: New file, from GNU gettext.
44690 2006-05-17 Bruno Haible <bruno@clisp.org>
44692 Cygwin portability.
44693 * javaexec.c (execute_java_class): Test for jview program
44696 2006-04-09 Bruno Haible <bruno@clisp.org>
44698 * fatal-signal.c: Don't include string.h.
44699 (at_fatal_signal): Use a copying loop instead of memcpy.
44701 2005-12-04 Bruno Haible <bruno@clisp.org>
44703 * csharpexec.c: Add support for 'clix' launcher (untested).
44704 (execute_csharp_using_sscli): New function.
44705 (execute_csharp_program): Call it.
44707 2006-06-21 Bruno Haible <bruno@clisp.org>
44709 Avoid warnings from recent versions of mcs.
44710 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44711 -o, -L, -r any more. Use options documented since mcs-1.0
44712 instead. Similarly for -g.
44714 2005-07-09 Bruno Haible <bruno@clisp.org>
44716 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44718 Reported by Mark Junker <mjscod@gmx.de>.
44720 2006-06-17 Bruno Haible <bruno@clisp.org>
44722 * config.charset: Update for NetBSD 3.0.
44724 2006-05-17 Bruno Haible <bruno@clisp.org>
44726 Cygwin portability.
44727 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44729 2006-05-16 Bruno Haible <bruno@clisp.org>
44731 * localcharset.c [CYGWIN]: Include <windows.h>.
44732 (get_charset_aliases): For Cygwin, return the same CPxxx
44733 aliases list as under WIN32.
44734 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44735 the environment variables. Fall back to GetACP().
44737 2006-04-05 Bruno Haible <bruno@clisp.org>
44739 * config.charset: Update Juan Manuel Guerrero's address.
44741 2005-02-12 Bruno Haible <bruno@clisp.org>
44743 * allocsa.h: Add extern "C" for C++.
44745 2005-02-10 Bruno Haible <bruno@clisp.org>
44747 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44748 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44750 2006-07-22 Bruno Haible <bruno@clisp.org>
44752 * gettext.h: Update to GNU gettext-0.15.
44754 2006-07-22 Bruno Haible <bruno@clisp.org>
44756 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44757 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44758 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44760 2006-07-21 Eric Blake <ebb9@byu.net>
44762 * modules/stdlib-safer: New file.
44763 * MODULES.html.sh (File stream based Input/Output): Add
44766 2006-07-21 Eric Blake <ebb9@byu.net>
44768 * lib/stdlib-safer.h: New file from coreutils, required by
44771 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44773 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44775 2006-07-20 Bruno Haible <bruno@clisp.org>
44777 * gnulib-tool: Recognize new option --assume-autoconf.
44778 (autoconf_minversion): New variable.
44779 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44781 2006-07-20 Bruno Haible <bruno@clisp.org>
44783 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44785 2006-07-19 Derek R. Price <derek@ximbiot.com>
44787 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44788 Reindent and repaginate.
44790 2006-07-19 Derek Price <derek@ximbiot.com>
44792 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44795 2006-07-17 Bruno Haible <bruno@clisp.org>
44797 * modules/list: New file.
44798 * modules/array-list: New file.
44799 * modules/carray-list, modules/carray-list-tests: New files.
44800 * modules/linked-list, modules/linked-list-tests: New files.
44801 * modules/avltree-list, modules/avltree-list-tests: New files.
44802 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44803 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44804 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44805 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44806 * modules/oset: New file.
44807 * modules/array-oset: New file.
44808 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44809 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44810 * tests/test-carray_list.c: New file.
44811 * tests/test-linked_list.c: New file.
44812 * tests/test-avltree_list.c: New file.
44813 * tests/test-rbtree_list.c: New file.
44814 * tests/test-linkedhash_list.c: New file.
44815 * tests/test-avltreehash_list.c: New file.
44816 * tests/test-rbtreehash_list.c: New file.
44817 * tests/test-avltree_oset.c: New file.
44818 * tests/test-rbtree_oset.c: New file.
44819 * MODULES.html.sh (Container data structures): New section.
44821 2006-07-17 Bruno Haible <bruno@clisp.org>
44823 * m4/gl_list.m4: New file.
44825 2006-07-17 Bruno Haible <bruno@clisp.org>
44827 * lib/gl_list.h: New file.
44828 * lib/gl_list.c: New file.
44829 * lib/gl_array_list.h: New file.
44830 * lib/gl_array_list.c: New file.
44831 * lib/gl_carray_list.h: New file.
44832 * lib/gl_carray_list.c: New file.
44833 * lib/gl_linked_list.h: New file.
44834 * lib/gl_linked_list.c: New file.
44835 * lib/gl_anylinked_list1.h: New file.
44836 * lib/gl_anylinked_list2.h: New file.
44837 * lib/gl_avltree_list.h: New file.
44838 * lib/gl_avltree_list.c: New file.
44839 * lib/gl_anyavltree_list1.h: New file.
44840 * lib/gl_anyavltree_list2.h: New file.
44841 * lib/gl_rbtree_list.h: New file.
44842 * lib/gl_rbtree_list.c: New file.
44843 * lib/gl_anyrbtree_list1.h: New file.
44844 * lib/gl_anyrbtree_list2.h: New file.
44845 * lib/gl_anytree_list1.h: New file.
44846 * lib/gl_anytree_list2.h: New file.
44847 * lib/gl_linkedhash_list.h: New file.
44848 * lib/gl_linkedhash_list.c: New file.
44849 * lib/gl_anyhash_list1.h: New file.
44850 * lib/gl_anyhash_list2.h: New file.
44851 * lib/gl_avltreehash_list.h: New file.
44852 * lib/gl_avltreehash_list.c: New file.
44853 * lib/gl_rbtreehash_list.h: New file.
44854 * lib/gl_rbtreehash_list.c: New file.
44855 * lib/gl_anytreehash_list1.h: New file.
44856 * lib/gl_anytreehash_list2.h: New file.
44858 * lib/gl_oset.h: New file.
44859 * lib/gl_oset.c: New file.
44860 * lib/gl_array_oset.h: New file.
44861 * lib/gl_array_oset.c: New file.
44862 * lib/gl_avltree_oset.h: New file.
44863 * lib/gl_avltree_oset.c: New file.
44864 * lib/gl_rbtree_oset.h: New file.
44865 * lib/gl_rbtree_oset.c: New file.
44866 * lib/gl_anytree_oset.h: New file.
44868 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44870 * m4/mkancesdirs.m4: New file.
44871 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44872 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44873 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44876 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44878 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44879 * lib/mkancesdirs.h: New files.
44880 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44881 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44882 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44883 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44884 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44885 callers changed. Revamp internals significantly, by not
44886 attempting to create directories that are temporarily more
44887 permissive than the final results. Do not attempt to use
44888 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44889 This removes some race conditions, fixes some bugs, and simplifies
44890 things. Use new dirchownmod function to do owner and mode changes.
44891 * lib/mkdir-p.h: Likewise.
44892 * lib/modechange.c (octal_to_mode): New function.
44893 (struct mode_change): New member mentioned.
44894 (make_node_op_equals): New arg mentioned. All callers changed.
44895 (mode_compile): Keep track of which mode bits the user has explicitly
44897 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44898 New arg PMODE_BITS, to keep track of which mode bits the user
44899 mentioned; it treats S_ISUID and S_ISGID speciall.
44900 All callers changed.
44901 * lib/modechange.h: Likewise.
44903 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44905 * MODULES.html.sh: Add mkancestors.
44906 * modules/mkancesdirs: New module.
44907 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44908 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44909 The chdir-safer and afs files are now orphans; I'll remove them
44910 unless someone speaks up.
44911 Add lib/dirchownmod.c, lib/dirchownmod.h.
44912 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44913 Add lchown, mkancesdirs.
44914 (Maintainer): Add self.
44916 2006-07-15 Karl Berry <karl@gnu.org>
44918 * gnulib-tool: help message wording/arrangement.
44920 2006-07-14 Simon Josefsson <jas@extundo.com>
44922 * doc/gnulib.texi (Libtool and Windows): New section.
44924 2006-07-12 Simon Josefsson <jas@extundo.com>
44926 * modules/gendocs (License): Fix license, approved by Karl.
44928 2006-07-12 Eric Blake <ebb9@byu.net>
44930 * MODULES.html.sh: Add gendocs.
44932 2006-07-11 Eric Blake <ebb9@byu.net>
44934 * modules/fdl: New module, to install doc/fdl.texi.
44935 * MODULES.html.sh: Add new section for documentation modules.
44936 * gnulib-tool: Avoid space-tab.
44937 (--doc-base): New option, to manage files from doc.
44939 2006-07-11 Eric Blake <ebb9@byu.net>
44941 * m4/absolute-header.m4: Fix comments to match recent change.
44943 2006-07-11 Eric Blake <ebb9@byu.net>
44945 * gnulib-tool: List --doc-base before --tests-base.
44947 2006-07-11 Derek R. Price <derek@ximbiot.com>
44949 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44951 2006-07-11 Bruno Haible <bruno@clisp.org>
44953 * README: Mention where to put documentation.
44955 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44957 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44959 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44961 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44964 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44966 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44967 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44968 "no/such/file/stdint.h" when there is no such file, so that
44969 the resulting C code can be parsed by dodgy compilers.
44970 Problems reported by Bob Proulx.
44972 2006-07-10 Derek R. Price <derek@ximbiot.com>
44974 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44975 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44976 macros into the GNU _D_EXACT_NAMLEN.
44977 * lib/savedir.c: Likewise.
44978 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44980 2006-07-10 Derek R. Price <derek@ximbiot.com>
44981 and Paul Eggert <eggert@cs.ucla.edu>
44983 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44985 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44986 macros into the GNU _D_EXACT_NAMLEN.
44988 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44990 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44991 around the absolute name, to work around a problem with the HP-UX
44992 11.23 native C compiler, reported by Bob Proulx.
44994 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44996 * doc/maintain.texi, make-stds.texi: Sync from
44997 <http://savannah.gnu.org/projects/gnustandards>.
44999 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45001 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45003 2006-07-09 Jim Meyering <jim@meyering.net>
45005 * m4/glob.m4: Remove a doubled word in a comment.
45007 2006-07-09 Jim Meyering <jim@meyering.net>
45009 * lib/argp-pv.c: Remove a doubled word in a comment.
45010 * lib/check-version.c (check_version): Likewise.
45011 * lib/javacomp.c (compile_java_class): Likewise.
45013 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
45015 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45016 for the benefit of people using Autoconf 2.60. If you want to
45017 support older Autoconf versions you can copy m4/onceonly_2_57.m4
45018 (or m4/onceonly.m4, if pre-2.57) manually.
45020 2006-07-08 Jim Meyering <jim@meyering.net>
45022 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45024 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45025 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45028 2006-07-08 Jim Meyering <jim@meyering.net>
45030 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45032 2006-07-07 Simon Josefsson <jas@extundo.com>
45034 * tests/test-crc.c: Change expected crc value, the test vector
45035 were probably computed using the old broken crc.c?
45037 2006-07-06 Simon Josefsson <jas@extundo.com>
45039 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45040 now the canonical place for the M4 file).
45042 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45043 from the sys_socket dependency now.
45045 * modules/inet_pton (Files): Ditto.
45047 * modules/inet_ntop (Files): Ditto.
45049 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45051 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45052 not gl_PREREQ_GETUSERSHELL.
45054 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45056 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45057 with only one argument, for Autoconf 2.60.
45058 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45059 expand to nothing, so add a shell command to avoid syntax error.
45060 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45062 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45064 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45066 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45068 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45069 no longer needed. Check for isblank decl.
45070 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45071 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45074 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45076 * lib/getloadavg.c: Use __VMS, not VMS.
45077 * lib/getopt.c: Likewise.
45078 * lib/getpagesize.h: Likewise.
45079 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45080 and probably does not work.
45082 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45084 * lib/.cppi-disable: Add wcwidth.
45085 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45086 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45087 (ISGRAPH): Remove. All uses changed to isgraph.
45088 (FOLD) [!defined _LIBC]: Remove special case.
45089 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45090 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45092 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45095 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45097 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45098 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45099 brackets. Other minor changes to suppress some compiler
45102 2006-07-06 Derek R. Price <derek@ximbiot.com>
45103 and Paul Eggert <eggert@cs.ucla.edu>
45105 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45106 of invoking obsolescent AC_HEADER_DIRENT macro.
45107 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45108 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45109 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45110 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45111 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45112 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45113 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45114 * m4/readdir.m4: Remove; no longer needed.
45116 2006-07-06 Derek R. Price <derek@ximbiot.com>
45117 and Paul Eggert <eggert@cs.ucla.edu>
45119 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45120 Don't worry about this obsolete case any more.
45121 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45123 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45124 worry about this obsolete case any more.
45125 * lib/fts.c: Likewise.
45126 * lib/getcwd.c: Likewise.
45127 * lib/glob.h: Likewise.
45128 * lib/savedir.c: Likewise.
45130 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45132 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45133 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45134 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45137 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45138 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45139 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45141 * m4/getdate.m4 (gl_GETDATE): Likewise.
45142 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45143 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45144 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45145 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45146 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45147 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45148 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45151 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45153 * lib/memcasecmp.c: Include <limits.h>.
45154 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45155 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45156 Don't assume isdigit succeeds only on '0' through '9'.
45158 2006-07-05 Eric Blake <ebb9@byu.net>
45160 * modules/getaddrinfo (Depends-on): Add snprintf.
45162 2006-07-05 Eric Blake <ebb9@byu.net>
45164 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45165 to avoid 'header present but could not be compiled' on cygwin.
45167 2006-07-05 Eric Blake <ebb9@byu.net>
45169 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45170 missing from netdb.h.
45171 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45173 2006-07-05 Derek R. Price <derek@ximbiot.com>
45175 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45177 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45178 * m4/getdate.m4 (gl_GETDATE): Likewise.
45179 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45180 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45181 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45182 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45183 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45185 2006-07-05 Derek R. Price <derek@ximbiot.com>
45187 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45188 All uses of is_space replaced by isspace.
45189 * lib/exit.h: Don't talk about STDC_HEADERS.
45190 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45191 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45192 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45193 replaced by isprint etc.
45194 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45195 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45196 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45197 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45198 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45199 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45201 2006-07-05 Bruno Haible <bruno@clisp.org>
45203 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45204 the function exists, before testing against AIX.
45205 Reported by Martin Lambers <marlam@marlam.de>.
45207 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45209 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45210 From Mark D. Baushke.
45212 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45214 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45215 to the absolute name, not just one, to bypass Sun C 5.8's
45216 "warning: #include of /usr/include/... may be non-portable".
45218 2006-07-04 Eric Blake <ebb9@byu.net>
45220 * modules/dirname-tests: New test module.
45221 * tests/test-dirname.c: New file, replacing dirname.c
45222 TEST_DIRNAME section that was recently deleted.
45224 2006-07-04 Bruno Haible <bruno@clisp.org>
45226 Assume ANSI C header files and <ctype.h> functions.
45227 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45228 (mbsnwidth): Use isprint, iscntrl instead.
45230 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45232 Merge from coreutils.
45233 * MODULES.html.sh: Add xstrtold.
45234 * modules/xstrtold: New file.
45235 * modules/cycle-check (Files): Add lib/same-inode.h.
45236 * modules/dirname (Files): Add m4/double-slash-root.m4.
45237 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45238 * modules/mkdir-p (Files): Add lib/same-inode.h.
45239 * modules/same (Files): Add lib/same-inode.h.
45241 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45243 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45244 This is to keep the terminology clean; POSIX talks about
45245 "absolute pathnames", not "full pathnames", but the GNU
45246 Coding Standards say to use "path" for something else;
45247 so use "absolute" to keep both sides happy.
45248 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45249 Set gl_absolute_header, not gl_full_header_path.
45250 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45251 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45254 Merge from coreutils.
45256 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45258 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45259 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45260 want to require the building of c-strtod.o.
45261 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45262 needs -lm directly.
45263 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45265 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45267 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45268 --as-needed option if available. Problem reported by Albert Chin in
45269 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45270 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45271 cc merely issues a bunch of annoying warnings for --as-needed
45272 (this problem was reported by Bob Proulx). Also, try linking with
45273 -lm to detect a bug in binutils 2.16 (this problem was reported
45274 by Ralf Wildenhues).
45276 2006-06-18 Jim Meyering <jim@meyering.net>
45278 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45279 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45281 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45282 also check for glibc-2.4's abort-inducing bug.
45284 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45285 Low-probability clean-up should be to use rmdir to get rid of
45286 the just-created directory, not unlink.
45288 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45289 configure fail, and request a bug report to inform us about it.
45290 Add a comment that, barring reports to the contrary, in 2007 we'll
45291 assume ftruncate is universally available.
45293 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45295 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45297 2006-03-12 Jim Meyering <jim@meyering.net>
45299 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45300 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45301 * m4/same.m4 (gl_SAME): Likewise.
45302 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45304 2006-03-11 Eric Blake <ebb9@byu.net>
45306 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45307 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45308 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45309 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45311 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45313 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45314 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45315 reported by Mark D. Baushke, one in
45316 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45318 Merge from coreutils.
45320 * lib/.cppi-disable: Add stdint_.h.
45321 * lib/.cvsignore: Add stdint.h.
45323 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45325 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45326 both double and long double versions.
45327 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45328 * lib/xstrtold.c: New file.
45329 * lib/xstrtod.h (xstrtold): New decl.
45331 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45333 * lib/filemode.c (setst): Remove.
45334 (strmode): Rewrite to avoid setst. This makes the code shorter,
45335 (arguably) clearer, and the generated code is a bit smaller on my
45336 Debian GNU/Linux stable x86 host.
45338 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45340 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45341 Assume that filemode.h includes sys/types.h and sys/stat.h.
45342 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45343 (ftypelet): Reorder to put common cases first, for efficiency.
45344 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45346 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45347 of 10, for compatibility with FreeBSD. All callers changed.
45348 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45349 types that can't be deduced solely from st_mode. First arg is now a
45351 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45352 (strmode): Renamed from mode_string.
45353 (filemodestring): New decl.
45354 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45355 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45357 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45359 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45361 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45362 fsusage.h now does that. Include fsusage.h first, to test interface.
45363 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45364 at most one method (the old code could have generated decls that
45365 didn't conform to C89, not that this was ever exercised).
45366 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45368 2006-03-19 Jim Meyering <jim@meyering.net>
45370 Work even in a chroot where d_ino values for entries in "/"
45371 don't match the stat.st_ino values for the same names.
45372 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45373 number, iterate through all entries again, using lstat instead.
45374 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45375 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45377 * lib/getcwd.c (__getcwd): Clarify a comment.
45378 Use memcpy in place of a call to strcpy.
45380 2006-03-12 Jim Meyering <jim@meyering.net>
45382 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45383 matches that of the current directory (which we're about to chdir ".."
45384 out of), then save the dev-ino of the parent, instead.
45386 * lib/same-inode.h (SAME_INODE): New file/macro.
45387 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45388 Include "same-inode.h", instead.
45389 * lib/same.c: Likewise.
45390 * lib/cycle-check.h: Include "same-inode.h".
45391 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45392 * lib/cycle-check.c (SAME_INODE): Remove definition.
45393 * lib/root-dev-ino.h: Include "same-inode.h".
45395 2006-03-11 Eric Blake <ebb9@byu.net>
45397 * lib/same.c (same_name): s/base_name/last_component/
45398 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45399 * lib/filenamecat.c (file_name_concat): Likewise.
45401 2006-03-11 Eric Blake <ebb9@byu.net>,
45402 Paul Eggert <eggert@cs.ucla.edu>
45404 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45405 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45407 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45408 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45409 (last_component): New method.
45410 * lib/dirname.c (dir_len): Determine when drive letters need a
45411 subsequent slash. Preserve // when it is special.
45412 (dir_name): Don't append dot when drive letter is absolute.
45413 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45414 * lib/basename.c (base_name): New semantics - malloc the result.
45415 Preserve // when it is special. Preserve relative files that look
45416 like drive letters.
45417 (base_len): Preserve // when it is special.
45418 (last_component): New method, similar to old base_name semantics.
45419 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45420 base_name. Strip redundant slashes from ///.
45422 2006-07-03 Jim Meyering <jim@meyering.net>
45424 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45425 macro is used before the first cycle_check call.
45427 2006-07-03 Eric Blake <ebb9@byu.net>
45429 * modules/dirname (Depends-on): Add xstrndup.
45431 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45433 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45434 test cases, so that config.log is a bit easier to follow.
45436 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45438 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45439 both are 64 bits, since this seems to be the tradition, and this
45440 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45441 we ever run into a host that prefers long long to long in this
45442 case, we'll need another configure-time test. Problem reported by
45445 2006-07-02 Eric Blake <ebb9@byu.net>
45447 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45449 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45451 * modules/inttypes (Depends-on): No longer depends on stdint.
45452 * modules/stdint (Description): Say more about assumptions.
45453 Say that the fast types might differ. Say macros are used.
45454 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45455 (Makefile.am): Revise list of substituted symbols to match
45457 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45458 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45459 * tests/test-stdint.c (verify_same_types)
45460 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45461 the code conforms to C99/C89.
45462 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45463 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45465 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45467 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45468 but fix a bug, by requiring at least 64 bits.
45469 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45470 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45471 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45472 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45474 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45475 changes. Make 2.59 a prerequisite. Check and substitute for
45476 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45477 inttypes.h. Do not use special include files; just use the
45478 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45479 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45480 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45481 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45482 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45483 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45484 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45485 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45486 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45487 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45488 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45489 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45490 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45491 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45492 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45493 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45494 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45495 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45496 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45497 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45498 WINT_MAX. Check for C99 conformance more strictly, by detecting
45499 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45500 not check for things that C99 does not require, e.g., int8_t. If
45501 a test isn't needed unless <stdint.h> isn't working, and is
45502 unlikely to be needed for any other reason, then don't do it
45503 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45504 size_t, since we assume C89 freestanding at least. Do not check
45505 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45506 the right thing even if the types are not defined. Instead use:
45507 (gl_STDINT_TYPE_PROPERTIES): New macro.
45508 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45509 testing whether <sys/types.h> clashes, as Autoconf does this for
45510 us now. All uses removed.
45511 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45512 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45513 (gl_CHECK_TYPE_SAME):
45514 Remove; no longer needed.
45515 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45516 exists, since we'll return 0 anyway in that case.
45517 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45519 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45521 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45522 possible collision with system files.
45523 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45524 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45525 WCHAR_MIN and WCHAR_MAX in this case.
45526 (<stddef.h>): Do not include; no longer needed.
45527 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45528 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45529 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45530 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45531 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45532 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45533 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45534 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45535 !defined(__c99))]: Include in this case too, since it's harmless
45537 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45538 dangerous to do so.
45539 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45540 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45541 (_STDINT_MIN, _STDINT_MAX): New macros.
45542 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45543 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45544 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45545 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45546 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45547 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45548 macros, not typedefs; this simplifies things quite a bit.
45549 Use long int for all types narrower than int64_t.
45550 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45551 Define in terms of long long int or int64_t or long int,
45552 not int64_t or int32_t. This saves some compile-time testing.
45553 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45554 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45555 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45556 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45557 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45558 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45559 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45560 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45561 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45562 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45563 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45564 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45565 undef any previous version and define our own version, for
45566 simplicity and consistency with the new macros for types.
45567 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45568 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45569 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45570 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45571 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45572 @WINT_T_SUFFIX@ to keep things simple here.
45573 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45574 Simplify by assuming typical 8/16/32/64 host, since we're
45575 already doing that elsewhere anyway.
45576 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45577 and assume long long int is 64 bits if available. This
45578 speeds up 'configure'.
45580 2006-07-01 Eric Blake <ebb9@byu.net>
45582 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45583 Reported by Andreas Buening.
45585 2006-07-01 Eric Blake <ebb9@byu.net>
45587 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45589 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45591 * lib/getaddrinfo.c: fixed typo
45593 2006-06-29 Jim Meyering <jim@meyering.net>
45595 * modules/strftime (Maintainer): Add my name, since with the
45596 FPRINTFTIME changes strftime.c has forked from glibc.
45598 2006-06-29 Eric Blake <ebb9@byu.net>
45600 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45602 2006-06-29 Eric Blake <ebb9@byu.net>
45604 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45606 2006-06-29 Eric Blake <ebb9@byu.net>
45608 * lib/stat_.h: New file.
45610 2006-06-29 Eric Blake <ebb9@byu.net>
45612 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45613 unused static function.
45615 2006-06-29 Eric Blake <ebb9@byu.net>
45617 * doc/functions.texi (Function Portability): Document missing lstat
45620 2006-06-29 Eric Blake <ebb9@byu.net>
45622 * MODULES.html.sh: Add sys_stat.
45623 * modules/sys_stat: New module.
45624 * modules/mkstemp (Depends-on): Add sys_stat.
45626 2006-06-29 Derek R. Price <derek@ximbiot.com>
45628 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45630 2006-06-29 Derek R. Price <derek@ximbiot.com>
45632 * m4/c-bs-a.m4: Removed.
45634 2006-06-29 Derek R. Price <derek@ximbiot.com>
45636 * lib/strftime.c: Assume strftime() exists.
45638 2006-06-29 Derek Price <derek@ximbiot.com>
45640 * modules/c-bs-a: Removed - \a is C89.
45641 * MODULES.html.sh: Remove c-bs-a.
45643 2006-06-29 Bruno Haible <bruno@clisp.org>
45645 * modules/wcwidth (License): Change to LGPL.
45647 2006-06-28 Simon Josefsson <jas@extundo.com>
45649 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45652 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45655 2006-06-28 Simon Josefsson <jas@extundo.com>
45657 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45659 2006-06-28 Simon Josefsson <jas@extundo.com>
45661 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45662 functions there. It will succeed on Windows XP, but on Windows
45663 2000 and (presumably) earlier, it will fail, and use the internal
45665 (use_win32_p): New function.
45666 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45667 Support AI_NUMERICSERV to disable getservbyname.
45668 (getnameinfo): New function, only supports
45669 NI_NUMERICHOST|NI_NUMERICSERV for now.
45671 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45672 only have some of them. Add AI_NUMERICSERV. Add prototype for
45675 2006-06-28 Eric Blake <ebb9@byu.net>
45677 * modules/wcwidth: New file.
45678 * modules/mbchar (Depends-on): Add wcwidth.
45679 * modules/mbswidth (Depends-on): Add wcwidth.
45680 * MODULES.html.sh: Add wcwidth.
45682 2006-06-28 Eric Blake <ebb9@byu.net>
45684 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45685 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45687 2006-06-28 Eric Blake <ebb9@byu.net>
45689 * lib/xvasprintf.h: Fix comments.
45691 2006-06-28 Eric Blake <ebb9@byu.net>
45693 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45694 * lib/mbswidth.c (wcwidth): Move from here...
45695 * lib/wcwidth.h: ...to this new file.
45697 2006-06-28 Derek R. Price <derek@ximbiot.com>
45699 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45701 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45703 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45705 2006-06-28 Derek R. Price <derek@ximbiot.com>
45707 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45708 Autoconf 2.60 says this stuff was obsolete.
45710 2006-06-28 Bruno Haible <bruno@clisp.org>
45712 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45714 2006-06-28 Bruno Haible <bruno@clisp.org>
45716 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45719 2006-06-28 Bruno Haible <bruno@clisp.org>
45721 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45722 declaration for wcwidth.
45723 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45725 2006-06-28 Bruno Haible <bruno@clisp.org>
45727 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45728 (mkdir): Define using _mkdir.
45730 2006-06-28 Bruno Haible <bruno@clisp.org>
45732 * lib/getaddrinfo.h: Fix POSIX URL.
45733 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45735 (use_win32_p): Make static.
45736 (getaddrinfo): Reject service name if it is empty or does not consist
45737 solely of decimal digits, or if its value is > 65535.
45738 (getnameinfo): Remove useless casts.
45740 2006-06-27 Simon Josefsson <jas@extundo.com>
45742 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45743 Eggert and Martin Lambers.
45745 2006-06-27 Simon Josefsson <jas@extundo.com>
45747 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45748 Eggert and Martin Lambers.
45750 2006-06-27 Bruno Haible <bruno@clisp.org>
45752 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45753 result to 0, not to empty.
45754 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45756 2006-06-27 Bruno Haible <bruno@clisp.org>
45758 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45760 2006-06-26 Simon Josefsson <jas@extundo.com>
45762 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45765 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45767 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45768 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45769 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45771 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45773 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45775 2006-06-26 Bruno Haible <bruno@clisp.org>
45777 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45779 2006-06-26 Bruno Haible <bruno@clisp.org>
45781 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45783 2006-06-26 Bruno Haible <bruno@clisp.org>
45785 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45786 SGI C compiler in pre-C99 mode.
45787 Suggested by Mark D. Baushke and Larry Jones.
45789 2006-06-26 Bruno Haible <bruno@clisp.org>
45791 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45793 Reported by Mark D. Baushke and Larry Jones.
45795 2006-06-26 Bruno Haible <bruno@clisp.org>
45797 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45799 Suggested by Mark D. Baushke and Larry Jones.
45801 2006-06-23 Simon Josefsson <jas@extundo.com>
45802 Bruno Haible <bruno@clisp.org>
45804 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45805 Emit mostlyclean-local rule.
45806 (func_emit_tests_Makefile_am): Likewise.
45807 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45809 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45811 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45813 2006-06-23 Bruno Haible <bruno@clisp.org>
45815 * tests/test-stdint.c: Update to match ISO C 99 Technical
45818 2006-06-23 Bruno Haible <bruno@clisp.org>
45820 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45822 2006-06-23 Bruno Haible <bruno@clisp.org>
45824 * lib/stdint_.h: Treat IRIX like OpenBSD.
45826 2006-06-23 Bruno Haible <bruno@clisp.org>
45828 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45829 ISO C 99 Technical Corrigendum 1.
45831 2006-06-22 Simon Josefsson <jas@extundo.com>
45833 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45836 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45838 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45839 needed. Some compiler complained about some of them. Problem reported
45841 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45843 2006-06-21 Simon Josefsson <jas@extundo.com>
45845 * tests/test-getaddrinfo.c: New file.
45847 * modules/getaddrinfo-tests: New file.
45849 * MODULES.html.sh: Add inet_pton.
45851 * modules/inet_pton: New file.
45853 2006-06-21 Simon Josefsson <jas@extundo.com>
45855 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45856 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45857 of using the (limited) gnulib implementation on Windows XP.
45859 * m4/inet_pton.m4: New file.
45861 2006-06-21 Simon Josefsson <jas@extundo.com>
45863 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45866 * lib/socket_.h: Don't define WINVER.
45868 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45869 slightly modified to work in gnulib.
45871 2006-06-21 Simon Josefsson <jas@extundo.com>
45873 * doc/gnulib.texi (Windows sockets): Add.
45875 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45877 * lib/read-file.c (fread_file): Start with buffer allocation of
45878 0 bytes rather than 1 byte; this simplifies the code.
45879 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45880 code to free buffer and save/restore errno.
45881 (internal_read_file): Remove unused local.
45883 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45885 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45886 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45887 Problem reported by Denis Excoffier in
45888 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45890 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45892 * modules/sys_socket, modules/socklen: Include sys/types since
45893 FreeBSD 4.x's sys/socket.h needs it.
45895 2006-06-19 Simon Josefsson <jas@extundo.com>
45897 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45899 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45901 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45903 2006-06-19 Bruno Haible <bruno@clisp.org>
45905 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45906 and FULL_PATH_INTTYPES_H in angle brackets.
45907 Reported by Mark D. Baushke <mdb@gnu.org>.
45909 2006-06-17 Eric Blake <ebb9@byu.net>
45911 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45914 2006-06-17 Bruno Haible <bruno@clisp.org>
45916 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45919 2006-06-17 Bruno Haible <bruno@clisp.org>
45921 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45922 whether errno is declared. Assume <errno.h> declares errno.
45924 2006-06-17 Bruno Haible <bruno@clisp.org>
45926 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45928 2006-06-17 Bruno Haible <bruno@clisp.org>
45930 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45931 problem on Solaris 2.5.1.
45933 2006-06-16 Eric Blake <ebb9@byu.net>
45935 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45936 * lib/unicodeio.c [!defined errno]: Likewise.
45937 * lib/strtol.c [!defined errno]: Likewise.
45938 * lib/strtod.c [!defined errno]: Likewise.
45940 2006-06-15 Eric Blake <ebb9@byu.net>
45942 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45944 2006-06-15 Eric Blake <ebb9@byu.net>
45946 * config/srclist.txt (ssize_t.m4): Lose sync.
45948 2006-06-15 Bruno Haible <bruno@clisp.org>
45950 * modules/stdint (Files): Include m4/full-header-path.m4,
45951 m4/size_max.m4, m4/wchar_t.m4.
45952 (Makefile.am): Many more substitutions.
45953 * modules/stdint-tests: New file.
45954 * tests/test-stdint.c: New file.
45956 2006-06-15 Bruno Haible <bruno@clisp.org>
45958 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45959 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45960 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45961 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45962 gl_CHECK_TYPE_SAME): New macros.
45964 2006-06-15 Bruno Haible <bruno@clisp.org>
45966 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45968 2006-06-15 Bruno Haible <bruno@clisp.org>
45970 * lib/stdint_.h: Rewritten to be fully auto-configured.
45971 Fixes bug on HP-UX/IA64.
45973 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45975 * lib/getdate.y (__attribute__): Don't define if already defined.
45976 Problem reported by Larry Jones.
45977 * lib/utimens.c (__attribute__): Likewise.
45979 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45981 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45982 reported by Andreas Schwab.
45984 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45985 Bruno Haible <bruno@clisp.org>
45987 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45988 check for the declaration of strnlen and a run test that exposes the
45989 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45992 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45993 Bruno Haible <bruno@clisp.org>
45995 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45997 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45999 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46000 compile test, for Tru64 4.0D.
46002 2006-05-28 Karl Berry <karl@gnu.org>
46004 * config/srclist.txt (printf-args.c): lose sync.
46006 2006-05-26 Martin Lambers <marlam@marlam.de>
46008 * lib/getpass.c: Updates the test for the native W32 API, and adds
46009 missing includes, thus fixing compilation warnings.
46011 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
46013 * lib/exclude.c (exclude_fnmatch): New function.
46014 (excluded_file_name): Call exclude_fnmatch.
46015 * lib/exclude.h (excluded_file_name): New prototype
46017 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
46019 * lib/tempname.c (small_open, large_open): New macros.
46020 (__open, __open64) [!_LIBC]: Remove.
46021 (__gen_tempname): Use small_open and large_open instead of __open
46022 and __open64. This fixes a portability bug on HP-UX 11.11i
46023 reported by Simon Wing-Tang in
46024 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46026 2006-05-24 Bruno Haible <bruno@clisp.org>
46028 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46029 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46030 Reported by Thorsten Maerz <torte@netztorte.de> via
46031 Aaron Stone <aaron@serendipity.cx>.
46033 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46035 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46036 gl_ rather than jm_. Link, don't run, so that cross-compiles are
46037 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
46038 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46039 not really conditional on the cache.
46040 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46042 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46044 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46045 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46046 (my_usleep): Don't mishandle maximum value.
46048 2006-05-19 Jim Meyering <jim@meyering.net>
46050 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
46052 2006-05-17 Bruno Haible <bruno@clisp.org>
46054 Cygwin portability.
46055 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46057 2006-05-17 Bruno Haible <bruno@clisp.org>
46059 * lib/stdint_.h: Fix recognition of Cygwin.
46061 2006-05-15 Bruno Haible <bruno@clisp.org>
46063 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46064 on libtool patch by Ralf Wildenhues.
46066 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46068 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46069 test for C99 conformance; (bool) 0.5 is an integer constant
46070 expression, but (bool) -0.5 is not. Problem reported by Fedor
46071 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46073 2006-05-11 Simon Josefsson <jas@extundo.com>
46075 * m4/xvasprintf.m4: Fix obvious typo.
46077 2006-05-11 Jim Meyering <jim@meyering.net>
46079 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46082 2006-05-10 Simon Josefsson <jas@extundo.com>
46084 * lib/md4.c: Typo fix, update copyright years.
46085 (K1, K2): Don't use L because it turn computations into 64-bit on
46088 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46090 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46091 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46092 unwanted sign propagation, e.g., on hosts with 64-bit int.
46093 There still are some problems with reeelly weird theoretical hosts
46094 (e.g., 33-bit int) but it's not worth worrying about now.
46095 * lib/sha1.c (rol): Likewise.
46096 (K1, K2, K3, K4): Remove unnecessary L suffix.
46098 2006-05-10 Bruno Haible <bruno@clisp.org>
46100 * lib/des.c: Cast to avoid warnings.
46102 2006-05-09 Bruno Haible <bruno@clisp.org>
46104 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46105 (Depends-on): Depend also on xsize, stdarg.
46106 (configure.ac): Add gl_XVASPRINTF.
46108 2006-05-09 Bruno Haible <bruno@clisp.org>
46110 * m4/xvasprintf.m4: New file.
46112 2006-05-09 Bruno Haible <bruno@clisp.org>
46114 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46115 (EOVERFLOW): Define fallback value.
46116 (xstrcat): New function.
46117 (xvasprintf): Recognize the special case of a string concatenation.
46119 2006-05-08 Eric Blake <ebb9@byu.net>
46121 * gnulib-tool (func_version): Base copyright year on CVS date.
46122 (func_emit_copyright_notice): New function.
46123 (func_emit_lib_Makefile_am): Use it.
46124 (func_emit_tests_Makefile_am): Likewise.
46125 (func_import): Likewise.
46127 2006-05-08 Bruno Haible <bruno@clisp.org>
46129 * modules/stdarg: New file.
46130 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46132 2006-05-08 Bruno Haible <bruno@clisp.org>
46134 * m4/stdarg.m4: New file, from GNU gettext.
46136 2006-05-08 Bruno Haible <bruno@clisp.org>
46138 * config/srclist.txt (build-aux/config.rpath): different from latest
46141 2006-05-08 Bruno Haible <bruno@clisp.org>
46143 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46145 2006-05-05 Jim Meyering <jim@meyering.net>
46147 * m4/warning.m4: New file, derived from bison's file by the same name.
46149 2006-05-03 Bruno Haible <bruno@clisp.org>
46151 * lib/stdint_.h: Shorter URL.
46152 * lib/inttypes.h: Likewise.
46154 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46156 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46158 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46160 * lib/verify.h: Document the internals better. Most of this change
46161 was written by Bruno Haible.
46163 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46165 * doc/verify.texi: New file, partly based on a proposal by
46168 2006-05-02 Bruno Haible <bruno@clisp.org>
46170 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46172 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46174 2006-04-29 Bruno Haible <bruno@clisp.org>
46176 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46177 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46179 2006-04-29 Bruno Haible <bruno@clisp.org>
46181 * gnulib-tool: Make --update option actually work.
46183 2006-04-29 Bruno Haible <bruno@clisp.org>
46185 * doc/gcd.texi: New file.
46186 * doc/gnulib.texi: Include it.
46188 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46190 * lib/getdate.y (get_date): When adding relative date, start with the
46191 initial time, not with the result of the first mktime call.
46193 2006-04-25 Bruno Haible <bruno@clisp.org>
46195 * gnulib-tool (func_import): Output the include directives in three
46196 blocks, sorted separately.
46197 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46199 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46201 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46202 to define main with arguments, for C++. Reported by Eric Blake.
46203 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46204 Prefer 'int main ()' to 'int main (void)', for C++.
46205 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46206 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46207 for 'main', for C99 and C++.
46209 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46211 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46212 Don't assume that exit status -1 is valid.
46213 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46214 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46215 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46216 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46217 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46218 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46219 not AC_TRY_RUN. Use return, not exit. Don't assume that
46220 functions can be used without declaring them, or that you can
46221 exit with status -1.
46222 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46224 2006-04-24 Karl Berry <karl@gnu.org>
46226 * config/srclist.txt (longdouble.m4): sync lost.
46228 2006-04-24 Eric Blake <ebb9@byu.net>
46230 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46232 2006-04-24 Bruno Haible <bruno@clisp.org>
46234 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46235 poll() implementation in AIX.
46236 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46238 2006-04-24 Bruno Haible <bruno@clisp.org>
46240 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46241 assigned exactly once.
46243 2006-04-23 Claudio Fontana <claudio@gnu.org>
46244 Bruno Haible <bruno@clisp.org>
46246 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46247 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46250 2006-04-23 Bruno Haible <bruno@clisp.org>
46252 * modules/copy-file: Depend on unistd.
46253 * modules/execute: Likewise.
46254 * modules/fatal-signal: Likewise.
46255 * modules/findprog: Likewise.
46256 * modules/mkdtemp : Likewise.
46257 * modules/pipe: Likewise.
46258 * modules/wait-process: Likewise.
46260 2006-04-23 Bruno Haible <bruno@clisp.org>
46262 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46263 condition was already detected.
46264 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46266 2006-04-23 Bruno Haible <bruno@clisp.org>
46268 * lib/copy-file.c: Include <unistd.h> unconditionally.
46269 * lib/execute.c: Likewise.
46270 * lib/fatal-signal.c: Likewise.
46271 * lib/findprog.c: Likewise.
46272 * lib/mkdtemp.c: Likewise.
46273 * lib/pipe.h: Likewise.
46274 * lib/pipe.c: Likewise.
46275 * lib/wait-process.h: Likewise.
46277 2006-04-23 Bruno Haible <bruno@clisp.org>
46279 * gnulib-tool (func_usage): Fix --import description. Document
46281 (func_import): Create temporary file in a temporary directory, if
46282 --dry-run is specified. Silence errors from 'grep' when there are no
46283 m4 files in $m4dir.
46284 (func_create_testdir): Silence errors from 'grep' when there are no
46285 m4 files in $m4dir.
46286 Reported by Karl Berry <karl@freefriends.org>.
46288 2006-04-20 Bruno Haible <bruno@clisp.org>
46290 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46291 one argument, so that the code will be portable to Autoconf 2.60.
46292 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46293 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46294 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46296 2006-04-19 Derek Price <derek@ximbiot.com>
46297 Eric Blake <ebb9@byu.net>
46299 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46300 rather than "/full/path.h". Update comment to match. Shorten &
46301 generalize m4_translit call via AS_TR_CPP.
46303 2006-04-19 Derek Price <derek@ximbiot.com>
46304 Eric Blake <ebb9@byu.net>
46306 * lib/inttypes.h: Correct grammar in comment.
46308 2006-04-18 Derek Price <derek@ximbiot.com>
46309 Paul Eggert <eggert@cs.ucla.edu>
46311 * modules/inttypes: New file.
46312 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46314 2006-04-18 Derek Price <derek@ximbiot.com>
46315 Paul Eggert <eggert@cs.ucla.edu>
46317 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46320 2006-04-18 Derek Price <derek@ximbiot.com>
46321 Paul Eggert <eggert@cs.ucla.edu>
46323 * lib/inttypes.h: New file.
46324 * lib/strtoimax.c: Assume <inttypes.h>.
46326 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46328 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46329 isn't mounted. Problem reported by Kir Kolyshkin.
46331 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46333 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46334 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46336 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46339 2006-04-12 Eric Blake <ebb9@byu.net>
46341 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46342 is now done automatically by the corresponding Autoconf macro.
46344 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46346 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46349 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46351 Merge regex changes from libc, removing some of our
46352 POSIX-conformance changes that were rejected and redoing them in a
46353 less-intrusive way.
46355 * lib/regcomp.c (re_compile_internal, init_dfa):
46356 Length arg is now size_t, not Idx. All uses changed.
46357 (peek_token): Forward decl now says internal_function.
46358 (__re_error_msgid, __re_error_msgid_idx):
46359 Now static rather than extern with attribute_hidden.
46360 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46361 For some reason libc prefers K&R style defns for external functions.
46362 (regerror) [!defined _LIBC]: Likewise.
46363 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46364 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46365 (build_range_exp, build_collating_symbol):
46366 Use K&R-style defn.
46367 (re_compile_fastmap): Use '\0' to memset, not 0.
46368 (utf8_sb_map): Make the calculations more obvious.
46369 (init_dfa, parse_bracket_exp, build_charclass_op):
46370 Call calloc and cast result, as glibc does.
46371 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46372 (build_range_exp, build_collating_symbol):
46373 Now internal functions.
46375 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46377 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46378 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46379 Don't depend on VMS; depend on __VMS instead, for POSIX
46380 namespace cleanness.
46381 (regoff_t): Define to ssize_t, not long int.
46383 Remove the REG_ macros named below. Instead, make the old names
46384 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46386 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46387 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46388 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46389 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46390 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46391 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46392 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46393 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46394 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46395 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46396 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46397 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46398 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46399 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46400 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46401 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46402 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46404 Remove. All uses replaced by the old RE_* names.
46405 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46406 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46407 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46408 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46409 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46410 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46411 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46412 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46413 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46414 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46415 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46416 Don't bother having these macros be independent of each others'
46417 values, since they no longer exist in the POSIX name space.
46419 Rename the following member names back to their old names,
46420 unless !__USE_GNU_REGEX. All uses changed back.
46421 (buffer): Renamed from re_buffer.
46422 (allocated): Renamed from re_allocated.
46423 (used): Renamed from re_used.
46424 (syntax): Renamed from re_syntax.
46425 (fastmap): Renamed from re_fastmap.
46426 (translate): Renamed from re_translate.
46427 (can_be_null): Renamed from re_can_be_null.
46428 (regs_allocated): Renamed from re_regs_allocated.
46429 (fastmap_accurate): Renamed from re_fastmap_accurate.
46430 (no_sub): Renamed from re_no_sub.
46431 (not_bol): Renamed from re_not_bol.
46432 (not_eol): Renamed from re_not_eol.
46433 (newline_anchor): Renamed from re_newline_anchor.
46434 (num_regs): Renamed from rm_num_regs.
46435 (start): Renamed from rm_start.
46436 (end): Renamed from rm_end.
46438 (free_state): Move up a bit.
46440 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46441 #define to be empty.
46442 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46443 when that is what is intended.
46444 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46445 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46447 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46448 All uses changed back to re_malloc, etc. It's now the caller's
46449 responsibility to check for overflow; all callers changed.
46450 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46451 (re_x2nrealloc): Remove.
46452 (free_state): Remove decl.
46454 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46455 (re_set_registers, re_exec):
46456 Use K&R-style defn.
46458 2006-01-31 Roland McGrath <roland@redhat.com>
46460 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46461 Reported by Mike Frysinger <vapier@gentoo.org>.
46463 2006-01-15 Andreas Jaeger <aj@suse.de>
46466 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46467 build_wcs_upper_buffer change.
46468 (build_wcs_upper_buffer): Change return type.
46470 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46472 * lib/regex_internal.h: Include <stdint.h> if available.
46474 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46476 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46478 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46480 * lib/regcomp.c: Adjust for changed secondary hash function.
46482 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46484 * lib/regex.h: Pretty printing.
46485 Clean up namespace a bit.
46487 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46489 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46490 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46492 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46493 Ulrich Drepper <drepper@redhat.com>
46496 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46498 (bitset_word_t): Renamed from bitset_word. All uses changed.
46500 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46503 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46504 * lib/regcomp.c: Remove unnecessary uses of
46505 unsigned RE_TRANSLATE_TYPE.
46506 * lib/regex_internal.h: Likewise.
46507 * lib/regex_internal.c: Likewise.
46508 * lib/regexec.c: Likewise.
46509 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46511 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46513 * lib/regexec.c (find_recover_state): Remove unnecessary
46515 (transit_state_bkref): Make DFA a const pointer.
46516 (get_subexp): Likewise.
46517 (check_arrival): Likewise.
46518 (update_cur_sifted_state): Likewise.
46519 (re_search_internal): Likewise.
46520 (prune_impossible_nodes): Likewise.
46521 (acquire_init_state_context): Likewise.
46522 (proceed_next_node): Likewise.
46523 (set_regs): Likewise.
46524 (free_fail_stack_return): Likewise.
46525 (check_arrival_expand_ecl): Mark DFA parameter as const.
46526 (check_arrival_expand_ecl_sub): Likewise.
46527 (check_subexp_limits): Likewise.
46528 (sub_epsilon_src_nodes): Likewise.
46529 (add_epsilon_src_nodes): Likewise.
46530 (merge_state_array): Likewise.
46531 (update_regs): Likewise.
46532 (build_trtable): Likewise.
46533 (sift_states_backward): Mark MCTX parameter as const.
46534 (build_sifted_states): Likewise.
46535 (update_cur_sifted_state): Likewise.
46536 (sift_states_mkref): Likewise.
46537 (check_arrival_expand_ecl): Mark eclosure as const.
46538 (check_dst_limits_calc_pos_1): Likewise.
46539 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46542 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46544 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46545 (transit_state_sb): Likewise.
46546 (transit_state_mb): Likewise.
46547 (sift_states_iter_mb): Likewise.
46548 (check_arrival_add_next_nodes): Likewise.
46549 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46550 [_LIBC] (re_search_2_stub): Use mempcpy.
46552 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46553 mbrtowc for very simple UTF-8 case.
46555 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46556 a pointer-to-const.
46557 (re_acquire_state_context): Likewise.
46558 * lib/regex_internal.h: Adjust prototypes.
46560 * lib/regex.c: Prevent using C++ compilers.
46562 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46563 (re_acquire_state_context): Likewise.
46565 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46567 * modules/regex (Depends-on): Add ssize_t.
46569 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46571 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46574 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46576 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46578 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46579 Bruno Haible <bruno@clisp.org>
46581 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46582 <sys/types.h> and <inttypes.h>.
46584 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46586 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46587 `__error_t_defined', so argp.h will not typedef the former.
46589 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46591 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46592 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46593 glibc names. Even if glibc is changed to conform to POSIX, the
46594 traditional names will be available anyway, since regex depends on
46595 the extensions module. Also, fix a longstanding typo in the
46596 implementation of Spencer ERE test #75 from grep 2.3. Problems
46597 reported by Emanuele Giaquinta. Also, change sense of cached
46598 variable, so that the message makes sense.
46600 2006-03-24 Simon Josefsson <jas@extundo.com>
46602 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46603 including some doc fixes.
46604 (base64_encode_alloc): Fix +1 bug on allocation failures.
46606 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46608 * lib/base64.c (base64_encode): Do not read past end of array with
46609 unsanitized input on systems with CHAR_BIT > 8.
46611 2006-03-24 Eric Blake <ebb9@byu.net>
46613 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46615 2006-03-22 Karl Berry <karl@gnu.org>
46617 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46618 * config/srclistvars.sh (COREUTILS): new var.
46620 2006-03-17 Jim Meyering <jim@meyering.net>
46622 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46623 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46625 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46627 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46628 no longer needs it. Instead, check that regoff_t is as least
46629 as wide as ptrdiff_t.
46631 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46632 so that our regex.h stays compatible with the installed regex.
46633 This is helpful for installers who configure --without-included-regex.
46634 Problem reported by Emanuele Giaquinta.
46636 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46638 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46639 Typedef to long int, not to off_, as POSIX will likely change
46642 2006-03-15 Eric Blake <ebb9@byu.net>
46644 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46646 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46648 * lib/argp-help.c (validate_uparams): Fix typo
46649 * lib/argp-parse.c (argp_default_options): Consistently begin help
46650 messages with a lowercase letter.
46652 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46654 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46655 overrun buffers and shouldn't be used (much as gets shouldn't be
46657 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46659 2006-03-08 Simon Josefsson <jas@extundo.com>
46661 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46662 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46664 2006-03-08 Simon Josefsson <jas@extundo.com>
46666 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46667 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46669 2006-03-08 Simon Josefsson <jas@extundo.com>
46671 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46672 signal that configure disabled the device.
46674 2006-03-08 Simon Josefsson <jas@extundo.com>
46676 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46679 2006-03-07 Simon Josefsson <jas@extundo.com>
46681 * modules/getopt (Depends-on): Add unistd.
46683 * modules/unistd: New file.
46685 2006-03-07 Simon Josefsson <jas@extundo.com>
46687 * modules/gc-random: New file.
46689 2006-03-07 Simon Josefsson <jas@extundo.com>
46691 * m4/unistd_h.m4: New file.
46693 2006-03-07 Simon Josefsson <jas@extundo.com>
46695 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46696 test to be side-effect free by storing the result in the cache
46697 variable gl_cv_lib_readline, and moving the assignment of
46698 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46699 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46701 2006-03-07 Simon Josefsson <jas@extundo.com>
46703 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46704 error on missing devices (the functions will return an error).
46706 * m4/gc.m4: Move random stuff to gc-random.m4
46708 2006-03-07 Simon Josefsson <jas@extundo.com>
46710 * lib/unistd_.h: New file.
46712 2006-03-07 Simon Josefsson <jas@extundo.com>
46714 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46716 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46718 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46719 Problem reported by Juan Manuel Guerrero.
46721 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46723 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46725 * lib/getlogin_r.c: Likewise.
46726 * lib/getlogin_r.h: Likewise.
46727 * lib/glob.c: Likewise.
46728 * lib/pagealign_alloc.c: Likewise.
46729 * lib/unistd_.h: Remove; no longer needed.
46731 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46733 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46735 * modules/c-stack (Depends-on): Add unistd.
46736 * modules/getlogin_r: Likewise.
46737 * modules/glob: Likewise.
46738 * modules/pagealign_alloc: Likewise.
46739 * modules/unistd (Files): Remove lib/unistd_.h.
46740 (EXTRA_DIST): Remove.
46741 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46743 (MOSTLYCLEANFILES): Remove unistd.h-t.
46745 2006-03-03 Simon Josefsson <jas@extundo.com>
46747 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46749 2006-03-03 Simon Josefsson <jas@extundo.com>
46751 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46754 2006-03-03 Simon Josefsson <jas@extundo.com>
46756 * build-aux/maint.mk: Add indent target.
46758 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46760 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46761 our replacement poll.h in any case, to avoid a differing
46762 declaration from a system header. Seen on AIX.
46764 2006-03-01 Simon Josefsson <jas@extundo.com>
46766 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46769 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46771 * modules/gettime (Depends-on): Add extensions module.
46772 * modules/nanosleep (Depends-on): Likewise.
46773 * modules/settime (Depends-on): Likewise.
46775 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46777 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46778 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46780 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46781 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46783 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46784 not "==". Reported by Ralf Wildenhues.
46786 2006-03-01 Karl Berry <karl@gnu.org>
46788 * doc/Copyright/request-*: new files, synced from gnuorg.
46790 2006-03-01 Karl Berry <karl@gnu.org>
46792 * config/srclist.txt (Copyright/*): new entries.
46794 2006-02-28 Simon Josefsson <jas@extundo.com>
46796 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46798 2006-02-27 Simon Josefsson <jas@extundo.com>
46800 * lib/base64.h: Indent #define's. From Jim Meyering
46801 <jim@meyering.net>.
46803 2006-02-27 Jim Meyering <jim@meyering.net>
46805 Revert the change of 2006-02-24, so these files can continue
46806 to be sync'd from gettext.
46807 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46810 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46812 * modules/intprops: New file.
46813 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46815 * modules/getloadavg (Files): Remove lib/intprops.h.
46816 (Depends-on): Add intprops.
46817 * modules/human: Likewise.
46818 * modules/inttostr: Likewise.
46819 * modules/openat: Likewise.
46820 * modules/sig2str: Likewise.
46821 * modules/userspec: Likewise.
46822 * modules/utimecmp: Likewise.
46823 * modules/xnanosleep: Likewise.
46824 * modules/xstrtol: Likewise.
46826 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46828 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46829 * modules/lock-tests (TESTS): Use $(EXEEXT).
46830 * modules/tls-tests: Likewise.
46831 * modules/argp-tests: Likewise.
46832 (check_PROGRAMS): New var, replacing...
46833 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46835 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46837 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46840 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46842 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46844 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46846 Sync from coreutils.
46847 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46850 2006-02-22 Jim Meyering <jim@meyering.net>
46852 Sync from coreutils.
46853 * m4/chdir-safer.m4: New file.
46855 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46857 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46858 AT_FDCWD exceeds INT_MAX.
46859 * lib/openat.h (AT_FDCWD): Likewise.
46861 2006-02-17 Eric Blake <address@hidden>
46863 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46865 2006-02-16 Simon Josefsson <jas@extundo.com>
46867 * modules/getaddrinfo (Depends-on): Add sys_socket.
46869 2006-02-15 Simon Josefsson <jas@extundo.com>
46871 * build-aux/maint.mk: Add dsyntax-check rule.
46873 2006-02-15 Eric Blake <ebb9@byu.net>
46875 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46876 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46877 'present but cannot compile' warnings on cygwin.
46878 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46879 use ws2tcpip.h if sys/socket.h works.
46880 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46881 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46883 2006-02-14 Simon Josefsson <jas@extundo.com>
46885 * modules/maintainer-makefile (Files): Rename.
46887 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46888 and (the local) Makefile.cfg to maint-cfg.mk.
46890 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46893 * modules/maintainer-makefile: New module.
46895 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46896 severaly stripped to make it possible to build it up from scratch
46897 with reliable tests.
46899 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46900 fixes to permit overriding the default actions when configure and
46901 makefile are not available.
46903 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46905 Sync from coreutils.
46906 * modules/lstat (Depends-on): Don't depend on xalloc.
46907 (License): Change from GPL to LGPL, since this is now simply a
46908 replacement for a libc function.
46910 2006-02-14 Jim Meyering <jim@meyering.net>
46912 Sync from coreutils.
46914 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46915 failure on deficient systems, and simplify gnulib lgpl dependencies.
46916 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46917 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46919 * lib/xalloc-die.c: Remove unused definition of N_.
46921 2006-02-14 Jim Meyering <jim@meyering.net>
46923 Sync from coreutils.
46924 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46925 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46926 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46927 double-quote uses of that variable, to accommodate the rare case in
46928 which getmntent is available in none of the libraries checked. This
46929 happens at least on FreeBSD 5.0.
46931 2006-02-13 Simon Josefsson <jas@extundo.com>
46933 * gnulib-tool (Usage): Fix --import, from
46934 karl@freefriends.org (Karl Berry).
46936 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46938 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46940 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46942 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46943 "autoupdate" on 2005-12-12.
46945 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46947 * modules/closeout (Depends-on): Remove atexit.
46949 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46951 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46952 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46954 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46956 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46957 __EXTENSIONS__ if this causes compilation to fail. Problem
46958 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46959 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46961 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46963 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46964 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46965 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46968 2006-01-26 Simon Josefsson <jas@extundo.com>
46970 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46971 prototype is visible on mingw32.
46973 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46976 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46979 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46981 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46982 attempt to open for write; this always fails, at least on POSIX
46983 hosts. This reinstates the 2006-01-09 change, which was
46984 inadvertently removed.
46986 2006-01-26 Bruno Haible <bruno@clisp.org>
46988 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46989 Reported by Paul Eggert.
46991 2006-01-26 Bruno Haible <bruno@clisp.org>
46992 Paul Eggert <eggert@cs.ucla.edu>
46994 * lib/stdbool_.h (_Bool)
46995 [(! (defined __cplusplus || defined __BEOS__)
46996 && !defined __GNUC__
46997 && !(defined __HP_cc || defined __xlc__
46998 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46999 || defined __sgi))]:
47000 #define to signed char in these cases too; this simplifies
47001 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47002 etc., separately) and makes it more conservative.
47004 2006-01-25 Simon Josefsson <jas@extundo.com>
47006 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47007 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
47008 ws2tcpip.h with WINVER=0x0501. All for mingw32.
47010 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
47012 * lib/argp-namefrob.h: Bugfix. Remove stray #
47014 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
47016 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47017 so that we test the test.
47018 Check for yet another HP-UX cc bug involving *bool |= bool.
47020 2006-01-25 Karl Berry <karl@gnu.org>
47022 * config/srclist.txt (vasnprintf.c): sync lost.
47024 2006-01-25 Jim Meyering <jim@meyering.net>
47026 Sync from the stable (b5) branch of coreutils:
47028 * lib/fts.c (fts_children): Don't let close() clobber errno from
47031 * lib/fts.c (fts_stat): When following a symlink-to-directory,
47032 don't necessarily interpret stat-fails+lstat-succeeds as indicating
47033 a dangling symlink. That can also happen at least for ELOOP.
47034 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47035 FYI, this bug predates the inclusion of fts.c in coreutils.
47037 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47038 in their own block, so pre-c99 compilers don't object.
47040 Avoid the double-free (first in fts_read, second in fts_close) that
47041 would occur when an `active' directory is made inaccessible (e.g.,
47042 via chmod a-x) during a traversal.
47043 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47044 before returning. Reproduce this failure by
47045 mkdir -p a/b; cd a; chmod a-x . b
47046 Reported by Stavros Passas.
47048 2006-01-25 Jim Meyering <jim@meyering.net>
47050 * lib/fileblocks.c: Remove more useless parentheses.
47051 * lib/readutmp.h: Likewise.
47053 2006-01-25 Bruno Haible <bruno@clisp.org>
47055 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47057 Reported by Paul Eggert.
47059 2006-01-25 Bruno Haible <bruno@clisp.org>
47061 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47062 rid of a trap command. For Solaris sh.
47063 Reported by Mark D. Baushke <mdb@gnu.org>.
47065 2006-01-24 Simon Josefsson <jas@extundo.com>
47067 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47070 2006-01-24 Karl Berry <karl@gnu.org>
47072 * config/srclist.txt (argp-namefrob.h): sync lost.
47074 2006-01-24 Jim Meyering <jim@meyering.net>
47076 * modules/openat (Files): Add lib/intprops.h.
47077 From Mark D. Baushke.
47079 2006-01-24 Jim Meyering <jim@meyering.net>
47081 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47082 Reported by Mark D. Baushke.
47084 2006-01-24 Jim Meyering <jim@meyering.net>
47086 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47088 2006-01-24 Bruno Haible <bruno@clisp.org>
47090 * modules/strnlen (Maintainer): Change from glibc to all.
47092 2006-01-24 Bruno Haible <bruno@clisp.org>
47094 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47095 Patch by Paul Eggert.
47097 2006-01-24 Bruno Haible <bruno@clisp.org>
47099 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47101 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47104 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47105 'signed char' to avoid problems with the built-in _Bool type.
47106 Reported by Paul Eggert on 2005-11-26.
47108 2006-01-24 Bruno Haible <bruno@clisp.org>
47110 * gnulib-tool (func_import): Avoid constructing complicated sed
47111 expressions inside backquote.
47112 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47114 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47116 These changes imported from libc.
47117 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47118 test and two separate function calls.
47119 * lib/strndup.c (__strndup): Add libc_hidden_def.
47121 2006-01-23 Simon Josefsson <jas@extundo.com>
47123 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47124 Remove the test_*_SOURCES variable: automake infers it by default.
47125 * modules/tls-tests: Likewise.
47127 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47129 Work around porting bugs reported by Dieter in
47130 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47131 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47132 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47133 Include "getopt.h" first, to check interface.
47134 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47136 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47137 (__strndup): Revert to K&R-style function dfns, the glibc style.
47138 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47139 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47140 Include strnlen.h first, to get prototype properly.
47141 (strnlen): Renamed from __strnlen.
47144 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47146 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47148 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47150 * config/srclist.txt: Adjust to reflect glibc reorganization.
47151 This affects only comments.
47153 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47155 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47156 Reported by Bruce Korb <bkorb@gnu.org>.
47158 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47160 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47161 to pacify gcc -Wswitch-default.
47163 2006-01-22 Bruno Haible <bruno@clisp.org>
47165 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47166 temporary buffer for sprintf, take into account the precision also
47167 for 'd', 'i', 'u', 'o', 'x', 'X'.
47169 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47171 * modules/argp-tests: New module
47172 * tests/test-argp.c: New file
47173 * tests/test-argp-2.sh: New file
47175 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47177 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47178 (__argp_base_name): Removed
47179 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47181 (__argp_base_name): Provide macro definition or extern declaration
47182 depending on the configuration
47184 2006-01-20 Simon Josefsson <jas@extundo.com>
47186 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47188 2006-01-20 Simon Josefsson <jas@extundo.com>
47190 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47192 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47194 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47195 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47196 Suggested by Bruno Haible.
47198 2006-01-20 Karl Berry <karl@gnu.org>
47200 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47201 until changes propagate, I guess.
47203 2006-01-19 Simon Josefsson <jas@extundo.com>
47205 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47207 2006-01-19 Simon Josefsson <jas@extundo.com>
47209 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47211 2006-01-19 Simon Josefsson <jas@extundo.com>
47213 * gnulib-tool: Set check_PROGRAMS.
47215 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47216 modules/des-tests, modules/gc-arcfour-tests,
47217 modules/gc-arctwo-tests, modules/gc-des-tests,
47218 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47219 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47220 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47221 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47222 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47223 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47224 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47227 2006-01-18 Simon Josefsson <jas@extundo.com>
47229 * modules/socklen (Depends-on): Depend on sys_socket.
47231 2006-01-18 Simon Josefsson <jas@extundo.com>
47233 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47234 modules/des-tests, modules/gc-arcfour-tests,
47235 modules/gc-arctwo-tests, modules/gc-des-tests,
47236 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47237 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47238 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47239 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47240 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47241 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47242 $(EXEEXT) to automake TESTS variable, for mingw32.
47244 2006-01-17 Simon Josefsson <jas@extundo.com>
47246 * modules/socklen (Include): Need sys/socket.h.
47248 2006-01-17 Bruno Haible <bruno@clisp.org>
47250 * modules/ssize_t (Include): Add <sys/types.h>.
47252 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47254 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47255 it's not portable and it doesn't work with cross-compiles.
47256 Problem reported by Bruno Haible. Fix missing-$ typo in
47257 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47258 -zignore from being used with Sun's C compiler.
47260 2006-01-12 Simon Josefsson <jas@extundo.com>
47262 * lib/base64.c: Fix warning, reported by Bruno Haible
47263 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47265 2006-01-12 Bruno Haible <bruno@clisp.org>
47267 * modules/ldd: New file.
47268 * build-aux/ldd.sh.in: New file.
47269 * MODULES.html.sh (Support for building libraries and executables): Add
47272 2006-01-12 Bruno Haible <bruno@clisp.org>
47274 * m4/ldd.m4: New file.
47276 2006-01-12 Bruno Haible <bruno@clisp.org>
47278 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47279 endless loop while replacing $auxdir with build-aux.
47281 2006-01-11 Simon Josefsson <jas@extundo.com>
47283 * lib/stdint_.h (SIZE_MAX): Add missing (.
47285 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47287 Sync from coreutils.
47288 * lib/md5.c: Fix commentary typos.
47289 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47290 * lib/md5.h (__attribute__): Remove; unused.
47291 * lib/sha1.c: Fix commentary to match md5 better.
47292 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47293 so that we don't need to worry about alignment. All uses changed.
47294 This merges the 2005-10-28 md5 change into sha1.
47296 2006-01-11 Jim Meyering <jim@meyering.net>
47298 Sync from coreutils.
47299 * lib/md5.c (OP): Fix spacing.
47301 2006-01-11 Bruno Haible <bruno@clisp.org>
47303 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47304 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47305 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47307 2006-01-11 Bruno Haible <bruno@clisp.org>
47309 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47310 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47311 the "early" section as well.
47313 2006-01-11 Bruno Haible <bruno@clisp.org>
47315 Avoid "ar: no archive members specified" error on MacOS X.
47316 * gnulib-tool (func_modules_add_dummy): New function.
47317 (func_import, func_create_testdir): Invoke it.
47319 2006-01-11 Bruno Haible <bruno@clisp.org>
47321 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47322 with $auxdir in AC_CONFIG_FILES statements.
47324 2006-01-11 Bruno Haible <bruno@clisp.org>
47326 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47327 Initialize also noinst_HEADERS to empty.
47329 2006-01-11 Bruno Haible <bruno@clisp.org>
47331 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47333 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47336 2006-01-11 Bruno Haible <bruno@clisp.org>
47338 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47339 overridable by the user.
47340 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47342 2006-01-10 Simon Josefsson <jas@extundo.com>
47344 * modules/sys_socket: New file.
47346 2006-01-10 Simon Josefsson <jas@extundo.com>
47348 * m4/sys_socket_h.m4: New file.
47350 2006-01-10 Simon Josefsson <jas@extundo.com>
47352 * lib/socket_.h: New file.
47354 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47356 * modules/readutmp (Maintainer): Add myself.
47358 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47360 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47361 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47362 People who are still concerned with buggy memcmp implementations
47363 can invoke gl_FUNC_MEMCMP themselves.
47365 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47367 * lib/regex_internal.h (BITSET_WORD_BITS):
47368 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47369 preprocessor mishandles large unsigned values as if they were signed.
47370 Problem reported by Claudio Fontana in
47371 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47373 2006-01-10 Jim Meyering <jim@meyering.net>
47375 Avoid the double-free (first in fts_read, second in fts_close) that
47376 would occur when an `active' directory is made inaccessible (e.g.,
47377 via chmod a-x) during a traversal.
47378 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47379 before returning. Reproduce this failure by
47380 mkdir -p a/b; cd a; chmod a-x . b
47381 Reported by Stavros Passas.
47383 Sync from coreutils.
47384 * lib/sha1.c: Tweak grammar in a comment.
47386 2006-01-10 Jim Meyering <jim@meyering.net>
47388 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47389 Patch by Joerg Sonnenberger.
47391 2006-01-10 Bruno Haible <bruno@clisp.org>
47393 * modules/readutmp: Depend on module free.
47394 * modules/strtok_r: Depend on module restrict.
47396 2006-01-10 Bruno Haible <bruno@clisp.org>
47398 * modules/gettext (configure.ac): Add an invocation of
47399 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47401 2006-01-10 Bruno Haible <bruno@clisp.org>
47403 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47404 Reported by Werner Lemberg <wl@gnu.org>.
47406 2006-01-10 Bruno Haible <bruno@clisp.org>
47408 * lib/localcharset.c: Update from GNU gettext.
47410 2006-01-10 Bruno Haible <bruno@clisp.org>
47412 * lib/argp.h (__const): Remove macro. Use const instead.
47413 * lib/argp-fmtstream.h (__const): Likewise.
47414 * lib/glob_.h (__const): Remove macro.
47415 * lib/glob-libc.h: Use const instead of __const.
47417 2006-01-10 Bruno Haible <bruno@clisp.org>
47419 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47421 Needed to avoid an automake error regarding the 'gettext' module.
47423 2006-01-09 Simon Josefsson <jas@extundo.com>
47425 * modules/inet_ntop (Depends-on): Add restrict.
47427 2006-01-09 Simon Josefsson <jas@extundo.com>
47429 * modules/gc-rijndael-tests (License): Put under LGPL.
47431 * modules/gc-des-tests (License): Likewise.
47433 * modules/gc-arcfour-tests (License): Likewise.
47435 * modules/gc-arctwo-tests (License): Likewise.
47437 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47439 * modules/gc-hmac-sha1-tests (Files): Likewise.
47441 * modules/gc-hmac-md5-tests (License): Likewise.
47443 * modules/gc-sha1-tests (License): Likewise.
47445 * modules/gc-md5-tests (License): Likewise.
47447 * modules/gc-md4-tests (License): Likewise.
47449 * modules/gc-md2-tests (License): Likewise.
47451 * modules/gc-tests (License): Likewise.
47453 * modules/des-tests (License): Likewise.
47455 * modules/md4-tests (License): Likewise.
47457 * modules/md2-tests (License): Likewise.
47459 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47461 Sync from coreutils:
47463 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47464 * modules/lib-ignore: New file.
47465 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47466 chdir-safer.m4, lchmod.m4.
47467 * modules/openat: Add mkdirat.c, openat-priv.h.
47469 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47471 Sync from coreutils.
47472 * m4/lib-ignore.m4: New file.
47473 * m4/lchmod.m4: New file.
47475 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47477 Sync from coreutils.
47478 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47479 for write access: POSIX says that must fail.
47480 * lib/fts.c (diropen): Likewise.
47481 * lib/save-cwd.c (save_cwd): Likewise.
47482 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47483 well, for minor improvements on hosts that lack O_DIRECTORY.
47484 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47485 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47486 Fall back on chown if open failed with EACCES.
47488 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47489 Report an error at compile-time if only a 1-second nominal clock
47490 resolution is found.
47492 * lib/lchmod.h: New file.
47493 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47494 (make_dir_parents): Use lchown rather than chown, and
47495 lchmod rather than chmod.
47497 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47498 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47499 "proc" reported by n0dalus.
47501 * lib/mountlist.c: Include <limits.h>.
47502 (dev_from_mount_options)
47503 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47504 New function. It no longer assumes "dev=" has the System V meaning
47505 on Linux (since it doesn't). It also parses "dev=" more carefully.
47506 (read_file_system_list)
47507 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47508 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47511 * lib/posixtm.h (PDS_PRE_2000): New macro.
47512 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47513 allow_century. All usages changed. Reject dates outside the range
47514 1969-1999 if PDS_PRE_2000 is used.
47516 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47518 Sync from coreutils.
47519 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47520 (Time of day items): Mention the possibility of leap seconds.
47521 Problem reported by Dr. David Alan Gilbert.
47523 2006-01-09 Jim Meyering <jim@meyering.net>
47525 Sync from coreutils.
47527 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47529 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47531 * lib/modechange.c (mode_compile): Reject an invalid mode string
47532 that starts with an octal digit. From Andreas Gruenbacher.
47534 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47535 and dup to open_safer and dup_safer, respectively.
47536 (openat_permissive): Fix typo in comment.
47538 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47539 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47540 (_): Remove; no longer needed.
47541 (openat): Renamed from rpl_openat; no need for rpl_openat
47542 since openat.h renames openat for us.
47543 Replace most of the body with a call to openat_permissive,
47544 to avoid duplicate code.
47545 Port to (probably hypothetical) environments were mode_t is
47547 (openat_permissive): Require mode arg, so that we can check
47548 types better. Put it just after flags. Change cwd failure
47549 indicator from pointer-to-bool to pointer-to-errno-value.
47550 All callers changed.
47551 Invoke openat_save_fail and/or openat_restore_fail if
47552 cwd_errno is null, so that openat can call us.
47553 (openat_permissive, fdopendir, fstatat, unlinkat):
47554 Simplify errno handling to avoid some duplicate code,
47555 as it's OK to set errno on success.
47556 * lib/openat.h: Revamp code so that function macros depend on
47557 __OPENAT_PREFIX only, not also on AT_FDCWD.
47558 (openat_ro): Remove. Caller changed to use openat_permissive.
47559 (openat_permissive): Now a macro, if not a function.
47560 (openat_restore_fail, openat_save_fail): Now always functions,
47561 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47563 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47565 * lib/mkdirat.c: Include openat-priv.h.
47566 Remove definitions of macros defined therein.
47567 * lib/openat.c: Likewise.
47569 * lib/mkdirat.c (mkdirat): New file and function.
47570 * lib/openat.h (mkdirat): Declare.
47572 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47574 * lib/openat.h (openat_permissive): Declare.
47575 (openat_ro): Define.
47577 * lib/openat.c (EXPECTED_ERRNO): New macro.
47578 (openat_permissive): New function -- used in remove.c rewrite.
47579 (all functions): Set errno just before returning, only if there
47580 was an actual failure.
47581 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47583 Emulate openat-family functions using Linux's procfs, if possible.
47584 Idea and some code based on Ulrich Drepper's glibc changes.
47586 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47587 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47588 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47589 before falling back on save_cwd and restore_cwd.
47590 (fdopendir, fstatat, unlinkat): Likewise.
47592 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47593 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47595 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47596 as second argument to va_arg. Otherwise, some versions of gcc
47597 warn that `if this code is reached, the program will abort'.
47599 2006-01-09 Jim Meyering <jim@meyering.net>
47601 Sync from coreutils.
47602 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47603 Require openat-priv.h.
47605 2006-01-09 Bruno Haible <bruno@clisp.org>
47607 * modules/strnlen (Include): Use strnlen.h.
47609 2006-01-09 Bruno Haible <bruno@clisp.org>
47611 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47613 2006-01-09 Bruno Haible <bruno@clisp.org>
47615 * lib/sysexit_.h (EX_OK): New macro.
47616 Suggested by Martin Lambers <marlam@marlam.de>.
47618 2006-01-09 Bruno Haible <bruno@clisp.org>
47620 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47621 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47623 2006-01-09 Bruno Haible <bruno@clisp.org>
47625 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47628 2006-01-09 Bruno Haible <bruno@clisp.org>
47630 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47631 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47632 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47633 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47635 2006-01-09 Bruno Haible <bruno@clisp.org>
47637 * build-aux/javacomp.sh.in: New file, moved from lib/.
47638 * modules/javacomp-script (Files): Update.
47639 (configure.ac): Add AC_CONFIG_FILES invocation.
47640 (EXTRA_DIST): Remove variable.
47642 * build-aux/javaexec.sh.in: New file, moved from lib/.
47643 * modules/javaexec (Files): Update.
47644 (configure.ac): Add AC_CONFIG_FILES invocation.
47645 (EXTRA_DIST): Remove javaexec.sh.in.
47647 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47648 * modules/csharpcomp-script (Files): Update.
47649 (configure.ac): Add AC_CONFIG_FILES invocation.
47650 (EXTRA_DIST): Remove variable.
47652 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47653 * modules/csharpexec (Files): Update.
47654 (configure.ac): Add AC_CONFIG_FILES invocation.
47655 (EXTRA_DIST): Remove csharpexec.sh.in.
47657 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47659 Sync from coreutils.
47661 Add POSIX ACL support
47662 * lib/acl.h (copy_acl, set_acl): Add declarations.
47663 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47664 systems other than Linux.
47665 (chmod_or_fchmod): New function: use fchmod when possible,
47666 and chmod otherwise.
47667 (file_has_acl): Add a POSIX ACL implementation, with a
47668 Linux-specific subcase.
47669 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47670 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47671 acls are unsupported.
47672 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47673 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47676 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47678 Sync from coreutils.
47679 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47681 2006-01-07 Bruno Haible <bruno@clisp.org>
47683 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47686 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47688 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47689 Problem reported for Mingw by Mark Junker.
47691 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47693 * README: Gnulib normally doesn't generate a tarball.
47695 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47697 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47698 long int, not int, for nanosecond counts, so that people who are
47699 used to POSIX struct timespec won't be surprised. Reported by Jim
47702 2005-12-28 Bruno Haible <bruno@clisp.org>
47704 * build-aux/config.rpath: Update from GNU gettext.
47706 2005-12-16 Jim Meyering <jim@meyering.net>
47708 * modules/fprintftime: New module.
47709 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47711 2005-12-16 Jim Meyering <jim@meyering.net>
47713 * m4/fprintftime.m4: New file.
47715 2005-12-16 Jim Meyering <jim@meyering.net>
47717 * lib/fprintftime.c, lib/fprintftime.h: New files.
47719 2005-12-15 Simon Josefsson <jas@extundo.com>
47721 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47724 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47726 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47727 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47729 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47731 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47732 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47733 struct uparams is valid. Fall back to the default values if it is
47736 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47738 * modules/argp (Files): Add argp-pin.c
47739 (Depends-on): dirname
47740 (lib_SOURCES): Add argp-pin.c
47742 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47744 * m4/argp.m4: Check if program_invocation_name and
47745 program_invocation_short_name are declared and define appropriate
47746 macros if they are not.
47748 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47750 * lib/argp-help.c (__argp_base_name): New function
47751 (__argp_short_program_name): Rewrite using __argp_base_name
47752 * lib/argp-namefrob.h: Define program_invocation_name and
47753 program_invocation_short_name if requested
47754 (__argp_base_name): Add prototype
47755 * lib/argp-parse.c (argp_def): Use gettext wrappers
47756 (argp_default_parser): Use __argp_base_name
47757 * lib/argp-pin.c: New file. Defines program_invocation_name and
47758 program_invocation_short_name on systems that lack them.
47760 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47762 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47763 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47764 porting problem reported by Georg Schwarz in
47765 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47767 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47769 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47770 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47771 porting problem reported by Georg Schwarz in
47772 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47774 2005-12-05 Bruno Haible <bruno@clisp.org>
47776 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47777 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47778 Reported by Mark Junker <mjscod@gmx.de>.
47780 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47782 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47783 Use implementation from Albert Chin, with some
47784 comments/corrections by Stepan Kasal and myself.
47786 2005-12-02 Bruno Haible <bruno@clisp.org>
47788 * gnulib-tool (func_import): Accept GPLed build tool modules when
47790 * modules/csharpcomp-script: New file.
47791 * modules/csharpcomp: Depend on it.
47792 * modules/javacomp-script: New file.
47793 * modules/javacomp: Depend on it.
47794 Suggested by Simon Josefsson.
47796 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47798 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47799 statement, to work around an HP-UX 10.20 compiler bug reported by
47802 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47804 * modules/savedir (Depends-on): Add openat.
47806 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47808 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47809 (uintmax_t) [defined uintmax_t]: Do not declare.
47810 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47811 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47812 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47813 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47814 sake of portability to weird hosts that C allows (though we don't
47815 know of any practical examples).
47817 * lib/savedir.h (fdsavedir): New decl.
47818 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47819 contains most of the former guts of savedir.
47820 (savedir): Use savedirstream.
47821 Include "openat.h".
47823 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47825 * modules/obstack (Files): Add m4/ulonglong.m4.
47826 Problem reported by Davide Angelocola.
47828 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47830 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47831 coreutils no longer futzes with rounding modes.
47833 2005-11-14 Jim Meyering <jim@meyering.net>
47835 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47836 replacement of mkstemp.
47838 2005-11-10 Simon Josefsson <jas@extundo.com>
47840 * lib/readline.c: Remove EOL.
47842 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47844 * modules/gethrxtime (Depends-on): Add gettime.
47846 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47848 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47849 or gettimeofday; no longer needed.
47851 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47853 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47855 (gethrxtime) [! (HAVE_NANOUPTIME
47856 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47857 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47858 our own approximation.
47860 2005-11-08 Eric Blake <ebb9@byu.net>
47862 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47864 2005-11-08 Eric Blake <ebb9@byu.net>
47866 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47868 2005-11-04 Bruno Haible <bruno@clisp.org>
47870 * gnulib-tool: Implement --update mode.
47872 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47874 Fix porting problem reported by Theodoros V. Kalamatianos.
47875 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47876 Don't assume that futimes failing means we must fail.
47878 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47880 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47881 variables to suggest the intended function of the PATH_MAX check.
47883 2005-10-30 Kean Johnston <jkj@sco.com>
47885 Trivial changes to support SCO systems.
47886 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47888 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47889 where __ptr is null when no I/O is pending.
47891 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47893 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47894 leave errno alone. Problem reported by Dmitry V. Levin.
47896 2005-10-28 Simon Josefsson <jas@extundo.com>
47898 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47901 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47903 * modules/md2, modules/md2-tests: New files.
47905 2005-10-28 Simon Josefsson <jas@extundo.com>
47907 * m4/inet_ntop.m4: More tests.
47909 * m4/gc-md2.m4, md2.m4: New file.
47911 2005-10-28 Simon Josefsson <jas@extundo.com>
47913 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47914 "restrict" keywords, as per POSIX. Protect the function
47915 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47916 Don't use K&R prototypes. Check the sprintf return values.
47917 Re-define EAFNOSUPPORT if not present. Indent.
47919 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47920 suggested by Bruno Haible <bruno@clisp.org>.
47922 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47924 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47926 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47929 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47931 * lib/md2.h, lib/md2.c: New files.
47933 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47935 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47936 errno alone. Problem reported by Frederic Jolliton.
47938 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47940 * modules/verify (License): Change from GPL to LGPL. This is a
47941 tiny module and there are apparently near-equivalents that are
47942 under the BSD license.
47944 2005-10-24 Simon Josefsson <jas@extundo.com>
47946 * modules/sha1: Relicense to LGPL.
47948 2005-10-24 Simon Josefsson <jas@extundo.com>
47950 * lib/md4.h: Shrink buffer size, now that we changed the type.
47952 2005-10-23 Simon Josefsson <jas@extundo.com>
47954 * gnulib-tool (func_import): Fix --tests-base.
47956 2005-10-22 Simon Josefsson <jas@extundo.com>
47958 * modules/arcfour (Depends-on): Need stdint.
47960 2005-10-22 Simon Josefsson <jas@extundo.com>
47962 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47963 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47965 2005-10-22 Simon Josefsson <jas@extundo.com>
47967 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47968 suggested by Bruno Haible <bruno@clisp.org>.
47970 2005-10-22 Simon Josefsson <jas@extundo.com>
47972 * lib/crc.h: Include stddef.h, for size_t.
47974 2005-10-22 Simon Josefsson <jas@extundo.com>
47976 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47977 arcfour_context struct (simplify test vector testing in GNU
47980 2005-10-21 Simon Josefsson <jas@extundo.com>
47982 * modules/des, modules/des-tests: New files.
47984 * modules/gc-des, modules/gc-des-tests: New files.
47986 * tests/test-des.c, tests/test-gc-des.c: New file.
47988 2005-10-21 Simon Josefsson <jas@extundo.com>
47990 * modules/arctwo, modules/arctwo-tests: New files.
47992 * tests/test-arctwo.c: New file.
47994 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47996 * tests/test-gc-arctwo.c: New file.
47998 2005-10-21 Simon Josefsson <jas@extundo.com>
48000 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48001 Bruno Haible <bruno@clisp.org>.
48003 * m4/gc-des.m4: New file.
48005 2005-10-21 Simon Josefsson <jas@extundo.com>
48007 * m4/arctwo.m4: New file.
48009 * m4/gc-arctwo.m4: New file.
48011 2005-10-21 Simon Josefsson <jas@extundo.com>
48013 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48016 2005-10-21 Simon Josefsson <jas@extundo.com>
48018 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48021 * lib/hmac-sha1.c (hmac_sha1): Likewise.
48023 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48024 Bruno Haible <bruno@clisp.org>.
48026 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48029 2005-10-21 Simon Josefsson <jas@extundo.com>
48031 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48033 2005-10-21 Simon Josefsson <jas@extundo.com>
48035 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48037 2005-10-21 Simon Josefsson <jas@extundo.com>
48039 * lib/des.h, lib/des.c: New files.
48041 * lib/gc-gnulib.c: Support DES.c
48043 2005-10-21 Simon Josefsson <jas@extundo.com>
48045 * lib/arctwo.h, lib/arctwo.c: New files.
48047 * lib/gc-gnulib.c: Support ARCTWO.
48049 2005-10-21 Simon Josefsson <jas@extundo.com>
48051 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48052 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48054 2005-10-21 Simon Josefsson <jas@extundo.com>
48056 * gnulib-tool (func_import, func_create_testdir): Define automake
48057 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48058 Makefile.am snippet),
48059 suggested by Bruno Haible <bruno@clisp.org>.
48061 * modules/gc (Makefile.am): Use it.
48063 2005-10-21 Bruno Haible <bruno@clisp.org>
48065 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48068 2005-10-19 Simon Josefsson <jas@extundo.com>
48070 * tests/test-gc-rijndael.c: New file.
48072 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48074 2005-10-19 Simon Josefsson <jas@extundo.com>
48076 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48079 2005-10-19 Simon Josefsson <jas@extundo.com>
48081 * tests/test-gc-arcfour.c: New file.
48083 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48085 2005-10-19 Simon Josefsson <jas@extundo.com>
48087 * modules/gc-md4, modules/gc-md4-tests: New file.
48089 * tests/test-gc-md4.c: New file.
48091 2005-10-19 Simon Josefsson <jas@extundo.com>
48093 * m4/gc-md4.m4: New file.
48095 2005-10-19 Simon Josefsson <jas@extundo.com>
48097 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48098 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48101 2005-10-19 Simon Josefsson <jas@extundo.com>
48103 * m4/gc-arcfour.m4: New file.
48105 * m4/gc-rijndael.m4: New file.
48107 2005-10-19 Simon Josefsson <jas@extundo.com>
48109 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48111 2005-10-19 Simon Josefsson <jas@extundo.com>
48113 * lib/gc-gnulib.c: Support ARCFOUR.
48115 2005-10-19 Simon Josefsson <jas@extundo.com>
48117 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48120 * lib/gc.h: Add ECB enum type.
48122 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48124 2005-10-18 Simon Josefsson <jas@extundo.com>
48126 * tests/test-md5.c: New file.
48128 * modules/md5-tests: New file.
48130 2005-10-18 Simon Josefsson <jas@extundo.com>
48132 * tests/test-md4.c: New file.
48134 * modules/md4, modules/md4-tests: New files.
48136 2005-10-18 Simon Josefsson <jas@extundo.com>
48138 * m4/md4.m4: New file.
48140 2005-10-18 Simon Josefsson <jas@extundo.com>
48142 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48144 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48146 * gnulib-tool (func_create_testdir): Omit the second check whether
48147 BUILT_SOURCES in nonempty.
48149 2005-10-17 Simon Josefsson <jas@extundo.com>
48151 * tests/test-rijndael.c: New file.
48153 2005-10-17 Simon Josefsson <jas@extundo.com>
48155 * modules/sha1: Depend on stdint instead of md5.
48157 * modules/md5: Depend on stdint, remove uint32_t.
48159 2005-10-17 Simon Josefsson <jas@extundo.com>
48161 * modules/gc-sha1-tests: New file.
48163 * tests/test-gc-sha1.c: New file.
48165 2005-10-17 Simon Josefsson <jas@extundo.com>
48167 * m4/md5.m4: Remove call to uint32_t.m4.
48169 2005-10-17 Simon Josefsson <jas@extundo.com>
48171 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48173 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48176 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48178 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48180 2005-10-17 Simon Josefsson <jas@extundo.com>
48182 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48184 2005-10-17 Simon Josefsson <jas@extundo.com>
48186 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48188 2005-10-17 Simon Josefsson <jas@extundo.com>
48190 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48192 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48194 2005-10-17 Bruno Haible <bruno@clisp.org>
48196 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48197 that it can also be used in a test.
48199 2005-10-16 Bruno Haible <bruno@clisp.org>
48201 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48202 TESTS_ENVIRONMENT, so that individual tests can augment it.
48204 * gnulib-tool (func_create_testdir): Use an intermediate target for
48205 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48206 macros, like $(ALLOCA_H), which cannot be passed through the command
48209 2005-10-15 Simon Josefsson <jas@extundo.com>
48211 * modules/rijndael-tests: New file.
48213 * modules/rijndael: New file.
48215 2005-10-15 Simon Josefsson <jas@extundo.com>
48217 * m4/rijndael.m4: New file.
48219 2005-10-15 Simon Josefsson <jas@extundo.com>
48221 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48223 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48225 2005-10-14 Simon Josefsson <jas@extundo.com>
48227 * tests/test-arcfour.c: New file.
48229 * modules/arcfour, modules/arcfour-tests: New files.
48231 2005-10-14 Simon Josefsson <jas@extundo.com>
48233 * m4/arcfour.m4: New file.
48235 2005-10-14 Simon Josefsson <jas@extundo.com>
48237 * lib/arcfour.h, lib/arcfour.c: New files.
48239 2005-10-14 Roland McGrath <roland@redhat.com>
48241 Import from libc. [BZ #1331]
48242 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48244 Reported by Matej Vela <vela@debian.org>.
48246 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48248 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48249 include <wchar.h>; no longer needed.
48251 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48253 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48255 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48256 and Ulrich Drepper <drepper@redhat.com>
48259 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48260 instead of inline stream orientation test and two separate
48261 function calls. Pay no attention to USE_IN_LIBIO.
48263 2005-10-13 Simon Josefsson <jas@extundo.com>
48265 * modules/gc-hmac-md5-tests: New file.
48267 * tests/test-gc-hmac-sha1.c: New file.
48269 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48271 * modules/gc-hmac-md5-tests: New file.
48273 * tests/test-gc-md5.c: New file.
48275 * modules/gc-md5-tests: New file.
48277 2005-10-13 Simon Josefsson <jas@extundo.com>
48279 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48280 Move memory allocation outside of loop.
48282 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48284 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48285 intermediate directory is in a read-only file system. Problem
48286 reported by Eric Blake.
48288 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48290 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48292 2005-10-12 Simon Josefsson <jas@extundo.com>
48294 * tests/test-hmac-sha1.c: New file.
48296 * modules/hmac-sha1-tests: New file.
48298 * modules/hmac-sha1: New file.
48300 2005-10-12 Simon Josefsson <jas@extundo.com>
48302 * modules/gc-sha1: New file.
48304 2005-10-12 Simon Josefsson <jas@extundo.com>
48306 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48308 * tests/test-gc-pbkdf2-sha1.c: New file.
48310 2005-10-12 Simon Josefsson <jas@extundo.com>
48312 * modules/gc-md5, modules/gc-hmac-md5: New files.
48314 * modules/gc (Files): Remove md5, memxor and hmac files.
48316 2005-10-12 Simon Josefsson <jas@extundo.com>
48318 * m4/gc-pbkdf2-sha1.m4: New file.
48320 * m4/gc-hmac-sha1.m4: New file.
48322 * m4/gc-sha1: New file.
48324 * m4/hmac-sha1.m4: New file.
48326 2005-10-12 Simon Josefsson <jas@extundo.com>
48328 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48330 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48332 2005-10-12 Simon Josefsson <jas@extundo.com>
48334 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48335 suggested by Bruno Haible <bruno@clisp.org>.
48337 2005-10-12 Simon Josefsson <jas@extundo.com>
48339 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48341 2005-10-12 Simon Josefsson <jas@extundo.com>
48343 * lib/gc-pbkdf2-sha1.c: New file.
48345 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48347 2005-10-12 Simon Josefsson <jas@extundo.com>
48349 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48351 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48353 2005-10-12 Simon Josefsson <jas@extundo.com>
48355 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48356 GC_USE_HMAC_MD5, respectively.
48358 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48359 (gc_md5): Fix typo.
48361 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48363 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48365 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48367 2005-10-12 Bruno Haible <bruno@clisp.org>
48369 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48370 Reported by Stepan Kasal <kasal@ucw.cz>.
48372 2005-10-11 Simon Josefsson <jas@extundo.com>
48374 * tests/test-crc.c: New file.
48376 * modules/crc, modules/crc-tests: New files.
48378 2005-10-11 Simon Josefsson <jas@extundo.com>
48380 * m4/crc.m4: New file.
48382 2005-10-11 Simon Josefsson <jas@extundo.com>
48384 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48386 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48388 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48390 2005-10-11 Simon Josefsson <jas@extundo.com>
48392 * lib/crc.h, lib/crc.c: New files.
48394 * lib/gc.h (gc_hash_buffer): Add doc.
48396 2005-10-11 Bruno Haible <bruno@clisp.org>
48398 * modules/c-strcasestr: New file.
48399 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48401 2005-10-11 Bruno Haible <bruno@clisp.org>
48403 * modules/c-strcase: New file.
48404 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48406 2005-10-11 Bruno Haible <bruno@clisp.org>
48408 * lib/strcasecmp.c: Include limits.h.
48409 (strcasecmp): Avoid integer overflow on exotic platforms.
48410 * lib/strncasecmp.c: Include limits.h.
48411 (strncasecmp): Avoid integer overflow on exotic platforms.
48412 Reported by Paul Eggert.
48414 2005-10-11 Bruno Haible <bruno@clisp.org>
48416 * lib/c-strcasestr.h: New file, from GNU gettext.
48417 * lib/c-strcasestr.c: New file, from GNU gettext.
48419 2005-10-11 Bruno Haible <bruno@clisp.org>
48421 * lib/c-strcase.h: New file, from GNU gettext.
48422 * lib/c-strcasecmp.c: New file, from GNU gettext.
48423 * lib/c-strncasecmp.c: New file, from GNU gettext.
48425 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48427 * modules/mempcpy (License): GPL -> LGPL.
48428 * modules/strchrnul (License): Likewise.
48429 * modules/sysexits (License): Likewise.
48431 2005-10-08 Simon Josefsson <jas@extundo.com>
48433 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48435 2005-10-07 Simon Josefsson <jas@extundo.com>
48437 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48439 2005-10-06 Simon Josefsson <jas@extundo.com>
48441 * tests/test-hmac-md5.c: New file.
48443 * modules/hmac-md5-tests: New file.
48445 * modules/hmac-md5: New file.
48447 2005-10-06 Simon Josefsson <jas@extundo.com>
48449 * m4/hmac-md5.m4: New file.
48451 * m4/memxor.m4: Require gl_C_RESTRICT.
48453 2005-10-06 Simon Josefsson <jas@extundo.com>
48455 * lib/memxor.c (memxor): Avoid casts and warnings.
48457 2005-10-06 Simon Josefsson <jas@extundo.com>
48459 * lib/hmac-md5.c: New file.
48461 * lib/hmac.h: New file.
48463 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48465 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48466 promotes to int, not unsigned int, to catch the AIX 5.3
48469 2005-10-05 Simon Josefsson <jas@extundo.com>
48471 * modules/memxor: New file.
48473 * modules/iconv (Files): Move config.rpath to havelib, it is used
48476 * modules/havelib (Files): Add config.rpath.
48478 2005-10-05 Simon Josefsson <jas@extundo.com>
48480 * m4/memxor.m4: New file.
48482 2005-10-05 Simon Josefsson <jas@extundo.com>
48484 * lib/memxor.c (memxor): Fix compiler error.
48486 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48487 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48489 * lib/memxor.h, lib/memxor.c: New files.
48491 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48492 we assume all systems have it, suggested by Jim Meyering
48493 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48494 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48495 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48498 2005-10-05 Simon Josefsson <jas@extundo.com>
48500 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48502 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48504 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48505 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48506 needed, since the source code now assumes these .h files.
48508 2005-10-05 Derek Price <derek@ximbiot.com>
48510 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48512 2005-10-05 Bruno Haible <bruno@clisp.org>
48514 * modules/stdint (License): Change to LGPL.
48516 2005-10-04 Simon Josefsson <jas@extundo.com>
48518 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48519 D. Baushke" <mdb@gnu.org>.
48521 2005-10-04 Bruno Haible <bruno@clisp.org>
48523 * lib/verify.h (verify_true): Provide alternative definition for C++.
48525 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48527 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48528 (SSIZE_MAX): New macro, if not already defined.
48529 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48532 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48534 Sync from coreutils.
48535 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48536 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48537 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48538 ULLONG_MAX doesn't work with 2.7.2.1.
48540 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48542 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48545 * modules/exclude (Depends-on): Depend on verify.
48546 * modules/strtoimax (Depends-on): Likewise.
48547 * modules/utimecmp (Depends-on): Likewise.
48549 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48551 * lib/exclude.c: Include verify.h.
48552 (verify): Remove. All callers changed to use verify.h's version.
48553 * lib/strtoimax.c: Likewise.
48554 * lib/utimecmp.c: Likewis.e
48556 Sync from coreutils.
48557 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48558 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48559 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48560 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48561 bother returning ENOSYS if settimeofday or stime fails; just let
48562 them return whatever errno they want to return.
48563 * lib/utimens.c: Include unistd.h, for dup2.
48564 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48565 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48567 2005-10-02 Jim Meyering <jim@meyering.net>
48569 Sync from coreutils.
48570 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48571 from glibc-2.2.5 that fails for read-only files.
48573 2005-10-02 Jim Meyering <jim@meyering.net>
48575 Sync from coreutils.
48576 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48577 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48578 `#if HAVE_CONFIG_H'.
48579 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48580 Remove AT_FDCWD test.
48581 Do not consume the fd unless successful.
48582 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48583 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48584 block, so that we don't even try to compile it if settimeofday is
48585 available. This works around a compilation failure on OSF1 V5.1,
48586 due to stime requiring a `long int*' while tv_sec is `int'.
48588 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48590 Sync from coreutils.
48591 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48592 against `yes', rather than just testing for nonempty.
48594 2005-10-01 Simon Josefsson <jas@extundo.com>
48596 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48599 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48600 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48601 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48602 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48603 Check if struct addrinfo is declared.
48605 2005-10-01 Simon Josefsson <jas@extundo.com>
48607 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48608 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48609 AI_* and EAI_* definitions. Protect function declarations.
48611 2005-10-01 Jim Meyering <jim@meyering.net>
48613 Sync from coreutils.
48615 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48616 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48617 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48618 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48619 in the inet and nsl libraries. Required on Solaris 5.7.
48621 2005-10-01 Jim Meyering <jim@meyering.net>
48623 Sync from coreutils.
48624 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48625 in the inet and nsl libraries. Required on Solaris 5.7.
48627 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48629 * lib/getdelim.c (getdelim): Remove unused variables.
48631 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48633 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48634 so that the code works even with ancient cpp. Portability problem
48635 with GCC 2.7.2.1 reported by Thomas M.Ott.
48637 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48639 * modules/regex (Depends-on): Add strcase.
48641 * modules/gethostname (Licence): Change from GPL to LGPL, since
48642 gethostname.c is a trivial implementation of a standard library
48644 * modules/poll (License): Change from GPL to LGPL, since it's
48645 derived from LGPL code.
48647 2005-09-27 Jim Meyering <jim@meyering.net>
48649 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48652 * lib/intprops.h (signed_type_or_expr__): Define.
48653 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48654 for unsigned types.
48656 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48658 * lib/verify.h (verify_expr): Remove, replacing with:
48659 (verify_true): New macro that returns true instead of void.
48660 (verify_type__): Remove.
48661 (verify): Use verify_true rather than verify_type__.
48663 2005-09-26 Bruno Haible <bruno@clisp.org>
48665 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48667 (lib_SOURCES): Remove mbchar.c.
48668 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48669 (Files): Add m4/mbrtowc.m4.
48670 * modules/mbiter: Likewise.
48671 * modules/mbuiter: Likewise.
48673 2005-09-26 Bruno Haible <bruno@clisp.org>
48675 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48676 compile mbchar.c if they are not both present.
48677 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48678 * m4/mbiter.m4 (gl_MBITER): Likewise.
48679 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48680 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48681 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48683 2005-09-25 Jim Meyering <jim@meyering.net>
48685 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48686 also uses socklen_t.
48688 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48690 * lib/utimens.c (ENOSYS): Define if not already defined.
48691 (futimens): Support having a null PATH if the file descriptor
48694 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48696 (__attribute): Define to empty unless GCC 3.1 or later.
48697 This works around a core dump on OpenBSD 3.4, which has GCC
48698 2.95.3, which dumps core when given __attribute__(()). It also
48699 simplifies other tests, since we really don't want to bother with
48700 worrying about which ancient version of GCC supported what.
48701 Original problem reported by Yoann Vandoorselaere, with part of
48702 the fix suggested by Derek Price.
48704 2005-09-24 Jim Meyering <jim@meyering.net>
48706 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48707 so we can once again use a positive bitfield width of 1 -- now we
48708 don't have to explain why we were using a bitfield width of 2.
48710 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48712 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48713 and similarly for the other external symbols. Problem reported
48716 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48717 bug reported by Jim Meyering.
48719 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48720 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48721 not needed, since socklen is a prerequisite module.
48723 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48725 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48726 Problem reported by Eric Blake.
48727 (getaddrinfo): Initialize se so that it's not garbage.
48728 Redo internal storage allocation so that it doesn't make unportable
48729 assumptions about alignment.
48732 * lib/utimens.c (futimens): Use futimesat if available.
48733 Prefer it to futimes since it doesn't have the futimes bug.
48735 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48736 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48737 Instead, declare a function that returns a pointer to an array,
48738 and use verify_type__ to declare the size of the array.
48739 Problem and germ of a solution reported by Bruno Haible.
48740 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48741 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48743 2005-09-23 Jim Meyering <jim@meyering.net>
48745 Sync from coreutils.
48746 Correct build failure (socklen_t not defined) on at least
48747 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48748 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48750 2005-09-23 Jim Meyering <jim@meyering.net>
48752 * modules/getaddrinfo (Depends-on): Add socklen.
48754 2005-09-23 Bruno Haible <bruno@clisp.org>
48756 * tests/test-verify.c: New file.
48758 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48760 Sync from coreutils.
48762 * modules/argmatch (Depends-on): Add verify.
48763 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48765 * modules/save-cwd (Depends-on): Likewise.
48767 * modules/openat (Files): Add lib/openat-die.c.
48768 (Depends-on): Remove error, exitfail.
48771 * modules/verify: New file.
48772 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48773 with "verify" module.
48775 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48777 Sync from coreutils.
48779 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48780 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48781 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48782 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48783 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48784 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48785 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48786 Don't bother checking for string.h, stdlib.h, unistd.h.
48787 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48788 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48790 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48791 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48793 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48794 (gl_GETDATE): Use it.
48796 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48798 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48800 Sync from coreutils.
48802 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48804 * lib/argmatch.h: Include verify.h
48805 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48806 (ARGMATCH_ASSERT): Remove; unused.
48807 * lib/canonicalize.c: Assume STDC_HEADERS.
48808 * lib/exclude.c: Include "strcase.h".
48809 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48810 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48812 (getusershell): Call fopen, not fopen_safer.
48813 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48814 Do not include unistd-safer.h.
48815 (save_cwd): Don't call fd_safer; no longer needed
48816 now that we include fcntl--.h.
48818 * lib/getdate.y (relative_time): New type.
48819 (RELATIVE_TIME_0): New constant.
48820 (parser_control): Use relative_time instead of doing it ourselves.
48821 (%union): Add new relative_time rel member.
48822 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48824 (relunit, relunit_snumber): Now of type rel.
48825 (zone, rel, relunit, get_date): Adjust to above changes.
48827 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48828 Do not include unistd-safer.h.
48829 (getloadavg): Don't call fd_safer; no longer needed
48830 now that we include fcntl--.h.
48832 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48833 (make_dir_parents): Treat ENOSYS like EEXIST.
48835 Improve quality of diagnostics on restore_cwd failure.
48836 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48837 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48838 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48839 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48840 each time through the loop. Do not diagnose restore_cwd failure;
48841 that is the caller's job (and perhaps the caller does not care).
48843 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48844 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48845 If the file already exists but is not a directory, don't bother
48846 to try to make its parents.
48847 Close potential file descriptor leak if we can't chdir("/") (!).
48848 Don't always return true if chdir($PWD) fails; return true only
48849 if the requested action was done successfully (except for the
48851 Don't log final directory unless we actually made it.
48852 Refactor to avoid duplicate code to fix up permissions.
48853 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48855 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48856 to make it a bit faster and (I hope) clearer.
48857 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48858 Fix bug in formats like %2N.
48860 * lib/verify.h: New file.
48862 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48864 Sync from coreutils.
48865 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48867 2005-09-22 Jim Meyering <jim@meyering.net>
48869 Sync from coreutils.
48871 * m4/lstat.m4 (gl_FUNC_LSTAT):
48872 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48873 Remove obsolete comment.
48874 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48875 * m4/xstrtod.m4: Likewise.
48877 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48879 2005-09-22 Jim Meyering <jim@meyering.net>
48881 Sync from coreutils.
48883 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48885 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48886 the .tm_year member, since otherwise gcc-4.0 would now warn about
48887 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48889 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48890 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48892 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48893 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48894 when run in a time zone for which daylight savings time is in effect
48895 for the starting date.
48897 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48898 stop us from restricting permissions of just-created absolute-named
48900 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48901 to restore initial working directory.
48902 * lib/mkdir-p.c (make_dir_parents): New parameter:
48903 different_working_dir, to tell caller if/when we change the working
48904 directory and are unable to return to the initial one.
48905 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48906 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48907 `return false'. This fixes a bug introduced on 2004-07-30.
48909 * lib/openat.c (fdopendir): Be sure to close the supplied
48910 file descriptor before returning. This makes our replacement
48911 implementation a little closer to Solaris's, where fdopendir
48912 ties the file descriptor to the returned DIR* pointer.
48913 * lib/openat.c (unlinkat): New function.
48914 * lib/openat.h (unlinkat): Add prototype.
48915 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48916 (openat_restore_fail): Rename from openat_restore_die.
48917 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48919 Provide an alternative to exiting immediately upon save_cwd or
48920 restore_cwd failure. Now, an application can arrange e.g.,
48921 to perform a longjump in that case.
48922 * lib/openat.c: Include dirname.h.
48923 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48924 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48925 and openat_restore_die rather than calling error directly.
48926 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48928 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48929 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48932 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48933 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48934 int utc, int nanoseconds);
48936 date should not have to allocate a megabyte of virtual memory to
48937 handle a format argument like +%1048575T. When implemented with
48938 strftime, it must allocate such a buffer, use strftime to fill it
48939 in, print it, then free it.
48940 With fprintftime, it simply prints everything and exits.
48941 With no need for memory allocation, that's one fewer way to fail.
48942 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48943 optional field width, not before, so we accept %9:z, not %:9z.
48944 (my_strftime): Be sure to use L_('x') for literals.
48946 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48947 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48948 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48949 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48950 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48951 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48952 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48953 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48954 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48955 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48956 * lib/xgethostname.c, lib/xreadlink.c:
48957 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48959 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48960 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48961 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48962 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48963 and don't include <sys/file.h>).
48965 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48967 Sync from coreutils.
48969 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48970 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48971 [!LDAV_DONE]: Avoid unused variable warning.
48973 2005-09-21 Bruno Haible <bruno@clisp.org>
48975 * lib/unicodeio.h (unicode_to_mb): New declaration.
48977 2005-09-20 Derek Price <derek@ximbiot.com>
48979 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48982 2005-09-20 Bruno Haible <bruno@clisp.org>
48984 * gnulib-tool: Remove trailing slashes from the values specified for
48985 --source-base, --m4-base, --tests-base, --aux-dir.
48986 Suggested by Simon Josefsson <jas@extundo.com>.
48988 2005-09-20 Bruno Haible <bruno@clisp.org>
48990 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48991 func_modules_to_filelist, func_import, func_create_testdir): Make all
48992 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48993 change when gnulib-tool is invoked in a different locale.
48995 2005-09-19 Simon Josefsson <jas@extundo.com>
48997 * m4/socklen.m4: Fix typo.
48999 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49001 Use a consistent style for including <config.h>.
49002 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49003 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49004 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49005 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49006 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49007 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49008 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49009 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49010 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49011 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49012 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49013 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49014 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49015 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49016 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49017 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49018 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49019 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49020 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49021 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49022 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49023 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49024 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49025 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49026 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49027 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49028 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49029 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49030 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49031 lib/xstrtoumax.c, lib/yesno.c:
49032 Standardize inclusion of config.h.
49033 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49034 lib/inttostr.h: Removed inclusion of config.h from header files.
49035 * lib/inttostr.c: Adjusted in-tree users.
49036 * lib/timespec.h: Remove superfluous warning to include config.h.
49037 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49038 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49039 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49040 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49041 config.h with HAVE_CONFIG_H.
49043 2005-09-19 Jim Meyering <jim@meyering.net>
49045 * modules/pathmax (License): Change to LGPL.
49047 2005-09-19 Derek Price <derek@ximbiot.com>
49049 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49051 2005-09-19 Bruno Haible <bruno@clisp.org>
49053 * gnulib-tool (import): Provide default for --tests-base.
49055 2005-09-19 Bruno Haible <bruno@clisp.org>
49057 * doc/quote.texi: New file, extracted from gnulib.texi.
49058 * doc/ctime.texi: New file, extracted from gnulib.texi.
49059 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49060 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49061 * doc/gnulib.texi: Include them.
49063 2005-09-18 Bruno Haible <bruno@clisp.org>
49066 * gnulib-tool (func_readlink): New function.
49067 (func_ln_if_changed): Use it.
49069 2005-09-18 Bruno Haible <bruno@clisp.org>
49071 * gnulib-tool: Support --with-tests also with --import.
49072 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49073 (func_import): Use variables $testsbase and $inctests. Emit a
49074 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49075 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49076 SUBDIRS += $testsdir.
49077 (func_create_testdir): Update.
49079 2005-09-18 Bruno Haible <bruno@clisp.org>
49081 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49082 instead of $dry_run.
49083 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49084 (func_ln_if_changed): Don't handle dry-run here.
49085 (func_import): In dry-run mode, detect more precisely which actions
49086 would be performed, and don't use "...ing" verbs.
49088 2005-09-18 Bruno Haible <bruno@clisp.org>
49090 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49091 (func_import): Use join on two temporary files instead of three nested
49092 loops, in order to determine which files are new or old.
49094 2005-09-18 Bruno Haible <bruno@clisp.org>
49096 * gnulib-tool (func_import): Comment out code that spits out the
49097 new files with --dry-run.
49099 2005-09-18 Bruno Haible <bruno@clisp.org>
49101 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49103 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49105 * lib/stat-time.h: New file.
49106 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49107 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49108 in a different way.
49109 (timespec_cmp): New function.
49110 * lib/utimecmp.c: Include stat-time.h.
49111 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49112 members exist, not on the obsolescent ST_MTIM_NSEC.
49113 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49115 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49117 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49119 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49121 * MODULES.html.sh (File system functions): Add stat-time.
49122 * modules/stat-time: New file.
49123 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49124 is now done in a different way, by the stat-time module.
49125 * modules/utimecmp (Depends-on): Add stat-time.
49127 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49129 * m4/st_mtim.m4: Remove. Superseded by...
49130 * m4/stat-time.m4: New file.
49131 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49132 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49134 2005-09-15 Derek Price <derek@ximbiot.com>
49136 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49138 2005-09-15 Derek Price <derek@ximbiot.com>
49140 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49141 * lib/regex_internal.c: Ditto, using this...
49142 (__GNUC_PREREQ): ...new macro.
49143 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49145 (__GNUC_PREREQ): ...this new macro.
49147 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49149 2005-09-15 Derek Price <derek@ximbiot.com>
49150 Paul Eggert <eggert@cs.ucla.edu>
49152 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49153 changes, consolidating in...
49154 * lib/regex_internal.h: ...this file.
49156 2005-09-13 Jim Meyering <jim@meyering.net>
49158 * lib/canon-host.c: Filter through gnu indent and reword comments
49160 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49162 2005-09-13 Derek Price <derek@ximbiot.com>
49164 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49166 Reported by Jim Meyering <jim@meyering.net>.
49168 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49170 * lib/base64.c: Typo.
49171 (base64_encode): Put b64str in initialized data section.
49173 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49175 Merge glibc and coreutils changes into gnulib, plus a few
49177 * lib/md5.c: Use #error rather than a string.
49178 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49179 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49180 (__attribute__): Define to empty for non recent-GCC.
49181 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49182 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49183 Renamed from their non-__ counterparts, with new macros replacing
49184 them if not _LIBC. Add __THROW attribute.
49186 (struct md5_ctx): Align buffer if using GCC.
49187 * lib/sha1.h (struct sha1_ctx): Likewise.
49188 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49189 The old name was backwards.
49190 (NOTSWAP): Remove; not used.
49191 (rol): New macro, moved here from md5.h.
49192 (sha1_process_block): Remove a FIXME that doesn't make sense.
49194 2005-09-12 Derek Price <derek@ximbiot.com>
49196 Return usable errors from canon-host.
49197 * lib/canon-host.h: New file.
49198 * lib/canon-host.c (canon_host): Wrap...
49199 (canon_host_r): ...this new function, which now relies exclusively on
49201 (ch_strerror): New function.
49202 (last_cherror): New global.
49203 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49205 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49207 (freeaddrinfo): Free ai->ai_canonname when set.
49209 2005-09-12 Derek Price <derek@ximbiot.com>
49211 Make canon-host require getaddrinfo.
49212 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49213 AC_LIBSOURCE canon-host.h. Call...
49214 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49216 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49218 2005-09-12 Derek Price <derek@ximbiot.com>
49220 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49222 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49224 2005-09-12 Derek Price <derek@ximbiot.com>
49226 * lib/gai_strerror.c: Include config.h when available. Include
49227 getaddrinfo.h before other headers to test interface.
49228 Reported by Larry Jones <lawrence.jones@ugs.com>.
49230 2005-09-12 Derek Price <derek@ximbiot.com>
49231 Paul Eggert <eggert@cs.ucla.edu>
49233 * modules/glob (Files): Add glob-libc.h.
49235 2005-09-12 Derek Price <derek@ximbiot.com>
49236 Paul Eggert <eggert@cs.ucla.edu>
49238 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49239 glob_.h, glob-libc.h.
49240 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49242 2005-09-12 Derek Price <derek@ximbiot.com>
49243 Paul Eggert <eggert@cs.ucla.edu>
49245 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49246 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49247 protecting things that should be done only in gnulib contexts.
49248 * lib/glob_.h: New file, containing only the glob things needed for
49250 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49251 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49252 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49253 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49254 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49255 and to respect the namespace rules better.
49257 2005-09-08 Simon Josefsson <jas@extundo.com>
49259 * modules/socklen: New file.
49261 2005-09-08 Simon Josefsson <jas@extundo.com>
49263 * m4/socklen.m4: New file.
49265 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49267 * modules/utimens (Files): Add m4/utimbuf.m4, since
49268 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49269 Reported by Sergey Poznyakoff.
49271 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49273 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49274 definitions, since that's the preferred style in glibc.
49275 Fix a minor spacing issue, and update copyright notice to match
49278 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49280 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49282 2005-09-06 Simon Josefsson <jas@extundo.com>
49284 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49285 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49287 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49289 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49292 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49294 * config/srclist.txt: Add glibc bug 1302.
49296 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49298 Change bitset word type from unsigned int to unsigned long int,
49299 as this has better performance on typical 64-bit hosts.
49300 Port bitset code to hosts with unusual word sizes.
49301 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49302 (build_collating_symbol):
49303 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49304 argument is a bitset. This is merely a style issue, but it makes
49305 it clearer that an entire array is expected.
49306 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49307 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49308 Port to the case where bitset_word is not the same as unsigned int.
49309 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49310 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49312 * lib/regexec.c (check_dst_limits_calc_pos_1,
49313 check_subexp_matching_top):
49314 (build_trtable, group_nodes_into_DFAstates):
49316 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49317 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49318 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49319 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49320 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49321 * lib/regcomp.c (optimize_subexps, lower_subexp):
49322 Work even if bitset_word has holes in its bitwise representation.
49323 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49324 * lib/regexec.c (check_dst_limits_calc_pos_1,
49325 check_subexp_matching_top):
49327 * lib/regex_internal.c (re_string_reconstruct):
49328 Don't assume UCHAR_MAX == 255.
49329 * lib/regex_internal.h (bitset_set_all): Likewise.
49330 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49332 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49333 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49335 (BITSET_WORD_MAX): New macro.
49336 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49337 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49338 (bitset_empty, bitset_copy):
49339 Prefer sizeof (bitset) to multiplying it out ourselves.
49340 (bitset_not_merge): Remove; unused.
49341 (bitset_contain): Return bool, not unsigned int with one bit on.
49342 All callers changed.
49343 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49344 alignment than re_node_set; do this by defining a new internal
49345 type struct dests_alloc and using it to allocate memory.
49347 2005-09-05 Bruno Haible <bruno@clisp.org>
49349 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49352 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49354 * modules/size_max (Makefile.am): Add size_max.h
49356 2005-09-04 Derek Price <derek@ximbiot.com>
49358 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49360 2005-09-03 Simon Josefsson <jas@extundo.com>
49362 * gnulib-tool: Fix typo.
49364 2005-09-03 Simon Josefsson <jas@extundo.com>
49366 * config/srclist.txt: Add glibc bug 1293.
49368 2005-09-03 Derek Price <derek@ximbiot.com>
49370 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49371 From Larry Jones <lawrence.jones@ugs.com>.
49373 2005-09-02 Simon Josefsson <jas@extundo.com>
49375 * modules/socklen: New file.
49377 2005-09-02 Simon Josefsson <jas@extundo.com>
49379 * modules/havelib: New module.
49381 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49384 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49386 Check for arithmetic overflow when calculating sizes, to prevent
49387 some buffer-overflow issues. These patches are conservative, in the
49388 sense that when I couldn't determine whether an overflow was possible,
49389 I inserted a run-time check.
49390 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49392 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49393 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49394 (re_xnrealloc, re_x2nrealloc): New inline functions.
49395 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49396 parse_bracket_exp):
49397 (build_equiv_class, build_charclass): Check for arithmetic overflow
49398 in size expression calculations.
49399 * lib/regex_internal.c (re_string_realloc_buffers):
49400 (build_wcs_upper_buffer, re_node_set_add_intersect):
49401 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49402 (re_dfa_add_node, register_state): Likewise.
49403 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49404 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49405 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49406 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49408 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49410 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49411 m4/ulonglong.m4. Problem reported by Martin Lambers.
49413 2005-09-02 Bruno Haible <bruno@clisp.org>
49415 Support for lib vs. lib64 distinction on biarch platforms.
49416 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49417 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49418 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49420 2005-09-02 Bruno Haible <bruno@clisp.org>
49422 * gnulib-tool (import): In the other first-use case, provide defaults
49425 2005-09-02 Bruno Haible <bruno@clisp.org>
49427 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49428 patches not yet found in the latest gettext release.
49430 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49432 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49433 to avoid a collision with bits/local_lim.h in glibc.
49434 All uses changed. Problem reported by Dmitry V. Levin in
49435 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49437 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49438 bugs in int versus size_t comparisons.
49439 (re_string_context_at): Fix bug where the code assumed that
49442 Use bool where appropriate.
49443 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49444 All callers changed.
49445 (calc_eclosure_iter): Likewise, for ROOT arg.
49446 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49447 (build_charclass_op): Likewise, for NON_MATCH arg.
49448 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49449 (re_string_construct_common): Likewise, for ICASE arg.
49450 * lib/regexec.c (re_search_2_stub, re_search_stub):
49451 Likewise, for RET_LEN arg.
49452 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49453 (set_regs): Likewise, for FL_BACKTRACK arg.
49454 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49455 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49456 (calc_eclosure_iter, parse_bracket_exp):
49457 Use bool for internal variables that are booleans.
49458 * lib/regexec.c (re_search_internal, check_matching,
49459 proceed_next_node):
49460 (set_regs, build_sifted_states, sift_states_bkref):
49461 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49462 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49463 (find_collation_sequence_value):
49465 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49466 (re_node_set_compare):
49467 Return bool, not int. All callers changed.
49468 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49469 (build_trtable, check_node_accept): Likewise.
49470 * lib/regex_internal.h: Include stdbool.h.
49472 Fix bugs uncovered when converting to bool.
49473 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49474 failure instead of charging ahead blindly.
49475 * lib/regex_internal.c (register_state): Likewise.
49476 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49477 for freeing internal storage.
49478 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49479 bitset pieces used as boolean, to avoid undefined behavior
49480 on hosts that do int overflow checking.
49482 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49484 * config/srclist.txt: Add glibc bugs 1285-1287.
49486 2005-09-01 Jim Meyering <jim@meyering.net>
49488 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49489 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49490 Require gl_STAT_MACROS, too.
49492 2005-09-01 Bruno Haible <bruno@clisp.org>
49494 * gnulib-tool (import): In the first-use case, provide defaults.
49496 2005-09-01 Bruno Haible <bruno@clisp.org>
49498 * gnulib-tool (func_import): Remove the .tmp files.
49500 2005-09-01 Bruno Haible <bruno@clisp.org>
49502 * gnulib-tool (func_import): Fix handling of symbolic links.
49504 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49506 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49507 old glibc regex code mishandles strings longer than 2**31 bytes.
49508 This patch fixes this when the regex code is used in gnulib
49509 (i.e., outside glibc).
49511 This patch should not affect the use of the regex code inside
49512 glibc. No doubt this problem also needs to be handled for glibc
49513 as well, but the result will be an incompatible change to the
49514 glibc ABI, and the old ABI will have to be supported too. That
49515 can be the the subject for another patch.
49517 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49518 governing whether the rest of this patch is active. By default,
49519 the macro is disabled and the patch has no effect.
49520 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49521 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49522 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49523 (re_match_2, re_set_registers): Use the new types.
49524 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49525 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49527 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49528 (re_string_context_at, bin_tree_t, re_dfastate_t):
49529 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49530 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49531 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49532 (re_string_char_size_at, re_string_wchar_at):
49533 (re_string_elem_size_at):
49534 Use the new types and macros to port to 64-bit hosts.
49535 Use unsigned types for internal values, so that the code
49536 mostly works even for arrays larger than SSIZE_MAX.
49537 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49538 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49539 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49540 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49541 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49542 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49543 (calc_inveclosure, parse_dup_op, build_range_exp):
49544 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49545 (fetch_number, create_token_tree, mark_opt_subexp):
49547 * lib/regex_internal.c (re_string_construct_common,
49548 create_ci_newstate):
49549 (create_cd_newstate, re_string_allocate, re_string_construct):
49550 (re_string_realloc_buffers, build_wcs_upper_buffer):
49551 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49552 (re_string_reconstruct, re_string_peek_byte_case):
49553 (re_string_fetch_byte_case, re_string_context_at):
49554 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49555 (re_node_set_init_copy, re_node_set_add_intersect):
49556 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49557 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49558 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49559 (re_acquire_state, re_acquire_state_context, register_state):
49561 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49562 search_cur_bkref_entry):
49563 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49564 (re_search_internal, re_search_2_stub, re_search_stub)
49565 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49566 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49567 (update_cur_sifted_state, check_dst_limits):
49568 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49569 (check_subexp_limits, sift_states_bkref, merge_state_array):
49570 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49571 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49572 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49573 (expand_bkref_cache, check_node_accept_bytes):
49574 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49575 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49576 (acquire_init_state_context, check_halt_node_context):
49577 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49578 (sift_states_backward, clean_state_log_if_needed):
49579 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49580 (find_recover_state, transit_state_sb, transit_state_mb):
49581 (transit_state_bkref, build_trtable, match_ctx_clean):
49583 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49584 to work around an assumption that REG_MISSING is negative.
49586 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49587 (seek_collating_symbol_entry) [defined _LIBC]:
49588 (lookup_collation_sequence_value) [defined _LIBC]:
49589 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49590 Use prototypes rather than old-style function definitions.
49591 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49592 (transit_state_sb) [0]:
49593 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49595 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49598 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49599 (optimize_subexps, lower_subexp):
49600 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49601 since the signed shift might overflow. Use 1u<<31 instead.
49602 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49604 * lib/regexec.c (check_dst_limits_calc_pos_1,
49605 check_subexp_matching_top): Likewise.
49607 * lib/regcomp.c (optimize_subexps, lower_subexp):
49608 Use CHAR_BIT rather than 8, for clarity.
49609 * lib/regexec.c (check_dst_limits_calc_pos_1):
49610 (check_subexp_matching_top): Likewise.
49611 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49612 have to worry about portability issues when shifting it left.
49613 Remove no-longer-needed test for table_size > 0.
49614 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49615 in a word, as the resulting behavior is undefined.
49616 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49617 in one case, a <= should have been an <, and in another case the
49618 whole test was missing.
49619 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49620 the standard name CHAR_BIT.
49621 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49622 this is not true on one's complement and signed-magnitude hosts.
49624 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49626 (struct re_dfa_t): Remove unused member states_alloc.
49627 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49629 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49631 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49632 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49633 and large-file glibc and in 32-bit large-file Solaris.
49635 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49637 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49638 lengths fit in regoff_t; this isn't true if regoff_t is the same
49640 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49641 (= START + RANGE) instead of RANGE. This avoids overflow
49642 problems when regoff_t is the same width as size_t.
49643 All callers changed.
49644 (re_search_2_stub): Check for overflow when adding the
49645 sizes of the two strings.
49646 (re_search_stub): Check for overflow when adding START
49647 to RANGE; if it occurs, substitute the extreme value.
49649 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49651 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49653 2005-08-31 Jim Meyering <jim@meyering.net>
49655 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49656 a pointer-to-const.
49657 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49658 (register_state): Likewise.
49659 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49660 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49661 (group_nodes_into_DFAstates): Likewise.
49663 2005-08-31 Jim Meyering <jim@meyering.net>
49665 * check-module: Add a FIXME comment.
49667 2005-08-31 Eric Blake <ebb9@byu.net>
49669 * modules/unistd-safer (Files): Add unistd--.h.
49670 * modules/stdio-safer (Files): Add stdio--.h.
49672 2005-08-31 Derek Price <derek@ximbiot.com>
49674 * lib/getdelim.c (getdelim): Return EOF on EOF.
49675 Reported by Larry Jones <lawrence.jones@ugs.com>.
49677 2005-08-31 Bruno Haible <bruno@clisp.org>
49679 Avoid unnecessary diffs in the generated lib/Makefile.am.
49680 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49681 the generated files.
49682 (func_import): Don't set cmd.
49684 2005-08-31 Bruno Haible <bruno@clisp.org>
49686 * lib/strstr.c: Include <stddef.h>, for NULL.
49687 * lib/strcasestr.c: Likewise.
49688 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49690 2005-08-31 Bruno Haible <bruno@clisp.org>
49692 * gnulib-tool: New option --macro-prefix.
49693 (func_import): Use macro_prefix.
49694 (import): Handle option --macro-prefix.
49696 2005-08-31 Bruno Haible <bruno@clisp.org>
49698 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49699 Also use new variables cached_lgpl, cached_libtool.
49701 2005-08-31 Bruno Haible <bruno@clisp.org>
49703 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49704 always instantiating them.
49706 2005-08-31 Bruno Haible <bruno@clisp.org>
49708 * gnulib-tool (func_import): Read the previous cached settings
49709 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49710 earlier added by gnulib but are now dropped. Warn when a gnulib file
49711 overwrites a non-gnulib file.
49713 2005-08-31 Bruno Haible <bruno@clisp.org>
49715 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49716 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49717 projects that don't keep autogenerated files in CVS. Put into
49718 actioncmd only the specified modules, not the transitive closure.
49720 2005-08-31 Bruno Haible <bruno@clisp.org>
49722 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49723 Create directories that shall be filled.
49724 (import): Don't look for gl_* macros in configure.ac. Recurse across
49725 all directories containing a gnulib-cache.m4 files, if meaningful.
49727 2005-08-31 Bruno Haible <bruno@clisp.org>
49729 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49730 (import): Set seen_libtool when we see gl_LIBTOOL.
49732 2005-08-31 Bruno Haible <bruno@clisp.org>
49734 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49735 declaration macro definitions from generated gnulib.m4.
49737 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49739 * lib/iconvme.h: Add prototype for iconv_alloc.
49741 2005-08-29 Simon Josefsson <jas@extundo.com>
49743 * lib/iconvme.c: Fix errno.
49745 2005-08-29 Bruno Haible <bruno@clisp.org>
49747 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49748 that it works when the directory contains spaces.
49750 2005-08-29 Bruno Haible <bruno@clisp.org>
49752 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49754 2005-08-29 Bruno Haible <bruno@clisp.org>
49756 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49759 2005-08-29 Bruno Haible <bruno@clisp.org>
49760 and Stepan Kasal <kasal@ucw.cz>
49762 * check-module: If more parameters are given, check each of them
49763 separately; add more exceptions, as noted by Jim Meyering.
49764 (check_module): New procedure.
49765 (%exempt_header): Now contains all exceptions.
49767 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49769 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49771 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49773 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49775 2005-08-28 Bruno Haible <bruno@clisp.org>
49777 * m4/gnulib-tool.m4: New file.
49779 2005-08-27 Jim Meyering <jim@meyering.net>
49781 * modules/unistd-safer (Files): Add pipe-safer.c.
49782 * modules/fcntl-safer (Files): Add creat-safer.c.
49784 2005-08-27 Jim Meyering <jim@meyering.net>
49786 * m4/stdlib-safer.m4: New file. From coreutils.
49787 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49788 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49789 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49790 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49791 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49793 2005-08-27 Jim Meyering <jim@meyering.net>
49795 * lib/fopen-safer.c: Merge minor changes from coreutils.
49796 * lib/dup-safer.c: Likewise.
49797 * lib/fd-safer.c: Likewise.
49799 Merge from coreutils.
49800 * lib/stdio--.h: New file.
49801 * lib/stdlib--.h: New file.
49802 * lib/mkstemp-safer.c: New file.
49804 GNU tar needs these.
49805 * lib/pipe-safer.c: New file.
49806 * lib/creat-safer.c: New file.
49807 * lib/fcntl--.h (creat): Define to creat_safer.
49808 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49809 * lib/unistd--.h (pipe): Define to pipe_safer.
49810 * lib/unistd-safer.h: Declare pipe_safer.
49812 2005-08-26 Simon Josefsson <jas@extundo.com>
49814 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49815 Haible <bruno@clisp.org>.
49817 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49819 * lib/regex_internal.h: Remove all references to
49820 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49822 (bitset_not, bitset_merge, bitset_not_merge):
49823 (bitset_mask, re_string_allocate, re_string_construct):
49824 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49825 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49826 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49827 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49828 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49829 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49830 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49831 (re_acquire_state_context):
49832 Remove unnecessary forward decls.
49833 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49834 Put __attribute at function definition,
49835 now that the function decl has been removed.
49836 * lib/regex_internal.c (re_string_peek_byte_case):
49837 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49840 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49842 * m4/regex.m4: Add AC_PREREQ(2.50).
49843 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49845 2005-08-25 Simon Josefsson <jas@extundo.com>
49847 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49850 2005-08-25 Simon Josefsson <jas@extundo.com>
49852 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49853 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49854 GLIBC specific code.
49856 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49858 Make regex safe for g++. This fixes one real bug (an "err"
49859 that should have been "*err"). g++ problem reported by
49861 * lib/regex_internal.h (re_calloc): New macro, consistent with
49862 re_malloc etc. All callers of calloc changed to use re_calloc.
49863 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49864 not int. All callers changed.
49865 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49866 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49867 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49868 (find_recover_state): Change "err" to "*err"; this fixes what
49869 appears to be a real bug.
49870 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49873 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49875 * modules/regex (Depends-on): Add malloc, since the code
49876 assumes that !malloc(0) means failure.
49878 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49880 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49882 alloca modernization/simplification for regex.
49883 * lib/regex.c: Remove portability cruft for alloca. This no longer
49884 needs to be at the start of the file, and can be moved into
49885 regex_internal.h and simplified.
49886 * lib/regex_internal.h: Include <alloca.h>.
49887 (__libc_use_alloca) [!defined _LIBC]: New macro.
49888 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49889 now works outside glibc.
49891 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49893 * config/srclist.txt: Add glibc bugs 1241, 1245.
49895 2005-08-25 Jim Meyering <jim@meyering.net>
49897 * lib/open-safer.c: Include <config.h>.
49898 Otherwise, we'd lose LARGEFILE support in any file using
49901 2005-08-25 Bruno Haible <bruno@clisp.org>
49903 * m4/minmax.m4: Require autoconf 2.52.
49904 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49905 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49906 alternatives of translit over the alphabet.
49907 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49909 2005-08-24 Simon Josefsson <jas@extundo.com>
49911 * tests/test-getpass.c: New file.
49913 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49915 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49916 for GNU regex features.
49918 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49920 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49921 * lib/regex.h (regerror): Likewise.
49923 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49924 requires this. (The code never needed it.)
49926 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49927 All uses of recently-renamed identifiers changed to use the new,
49928 POSIX-compliant names. The code will build and run just fine
49929 without these changes, but it's better to eat our own dog food
49930 and use the standard-conforming names.
49932 * lib/regex.h: Fix a multitude of POSIX name space violations.
49933 These changes have an effect only for programs that define
49934 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49935 do not change anything for programs compiled in the normal way.
49936 Also, there is no effect on the ABI.
49938 (_REGEX_SOURCE): New macro.
49939 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49940 defined and _GNU_SOURCE is not; this fixes a name space violation.
49942 Rename the following macros to obey POSIX requirements.
49943 The old names are still visible as macros if _REGEX_SOURCE is defined.
49944 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49945 RE_BACKSLASH_ESCAPE_IN_LISTS.
49946 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49947 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49948 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49949 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49950 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49951 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49952 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49953 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49954 (REG_INTERVALS): renamed from RE_INTERVALS.
49955 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49956 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49957 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49958 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49959 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49960 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49961 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49962 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49963 RE_UNMATCHED_RIGHT_PAREN_ORD.
49964 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49965 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49966 (REG_DEBUG): renamed from RE_DEBUG.
49967 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49968 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49969 unusual, since we can't clash with the POSIX REG_ICASE.
49970 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49971 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49972 (REG_NO_SUB): renamed from RE_NO_SUB.
49973 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49974 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49975 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49976 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49977 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49978 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49979 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49980 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49981 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49982 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49983 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49984 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49985 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49986 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49987 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49988 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49989 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49990 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49991 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49992 (REG_FIXED): Renamed from REGS_FIXED.
49993 (REG_NREGS): Renamed from RE_NREGS.
49995 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49996 of other REG_* macros, since POSIX says the user is allowed to
49997 #undef these macros selectively.
49999 (reg_errcode_t): Update comment stating what other tables need
50002 Rename the following enum values to obey POSIX requirements.
50003 The old names are still visible as macros.
50004 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
50005 is not defined, since GNU is supposed to be a superset of POSIX as
50006 much as possible, and since we want reg_errcode_t to be a signed
50007 type for implementation consistency.
50008 (_REG_NOERROR): Renamed from REG_NOERROR.
50009 (_REG_NOMATCH): Renamed from REG_NOMATCH.
50010 (_REG_BADPAT): Renamed from REG_BADPAT.
50011 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50012 (_REG_ECTYPE): Renamed from REG_ECTYPE.
50013 (_REG_EESCAPE): Renamed from REG_EESCAPE.
50014 (_REG_ESUBREG): Renamed from REG_ESUBREG.
50015 (_REG_EBRACK): Renamed from REG_EBRACK.
50016 (_REG_EPAREN): Renamed from REG_EPAREN.
50017 (_REG_EBRACE): Renamed from REG_EBRACE.
50018 (_REG_BADBR): Renamed from REG_BADBR.
50019 (_REG_ERANGE): Renamed from REG_ERANGE.
50020 (_REG_ESPACE): Renamed from REG_ESPACE.
50021 (_REG_BADRPT): Renamed from REG_BADRPT.
50022 (_REG_EEND): Renamed from REG_EEND.
50023 (_REG_ESIZE): Renamed from REG_ESIZE.
50024 (_REG_ERPAREN): Renamed from REG_ERPAREN.
50025 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50026 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50027 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50028 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50030 (_REG_RE_NAME, _REG_RM_NAME): New macros.
50031 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
50032 changed. But support the old name if the new one is not defined
50033 and if _REGEX_SOURCE.
50035 Change the following member names in struct re_pattern_buffer.
50036 The old names are still supported if !_REGEX_SOURCE.
50037 The new names are always supported, regardless of _REGEX_SOURCE.
50038 (re_buffer): Renamed from buffer.
50039 (re_allocated): Renamed from allocated.
50040 (re_used): Renamed from used.
50041 (re_syntax): Renamed from syntax.
50042 (re_fastmap): Renamed from fastmap.
50043 (re_translate): Renamed from translate.
50044 (re_can_be_null): Renamed from can_be_null.
50045 (re_regs_allocated): Renamed from regs_allocated.
50046 (re_fastmap_accurate): Renamed from fastmap_accurate.
50047 (re_no_sub): Renamed from no_sub.
50048 (re_not_bol): Renamed from not_bol.
50049 (re_not_eol): Renamed from not_eol.
50050 (re_newline_anchor): Renamed from newline_anchor.
50052 Change the following member names in struct re_registers.
50053 The old names are still supported if !_REGEX_SOURCE.
50054 The new names are always supported, regardless of _REGEX_SOURCE.
50055 (rm_num_regs): Renamed from num_regs.
50056 (rm_start): Renamed from start.
50057 (rm_end): Renamed from end.
50059 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50060 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50061 Prepend __ to parameter names.
50063 Undo yesterday's changes.
50065 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50067 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50068 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50071 2005-08-24 Jim Meyering <jim@meyering.net>
50073 Sync from coreutils.
50074 * m4/fcntl-safer.m4: New file.
50076 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50077 and object files for this module.
50079 2005-08-24 Jim Meyering <jim@meyering.net>
50081 Sync from coreutils.
50082 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50084 2005-08-24 Jim Meyering <jim@meyering.net>
50086 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50087 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50089 2005-08-24 Jim Meyering <jim@meyering.net>
50091 * modules/fcntl-safer: New module.
50092 * modules/fts (Depends-on): Add fcntl-safer.
50093 * MODULES.html.sh (File descriptor based Input/Output):
50096 2005-08-24 Bruno Haible <bruno@clisp.org>
50098 Support for unit test modules.
50099 * modules/README: Mention tests modules.
50100 * modules/TEMPLATE-TESTS: New file.
50101 * gnulib-tool: New options --extract-tests-module, --with-tests and
50102 --tests-base (unused for the moment).
50103 (testsbase, inctests): New variables.
50104 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50105 (func_verify_module): Exclude TEMPLATE-TESTS.
50106 (func_verify_nontests_module, func_verify_tests_module): New functions.
50107 (func_get_dependencies): Add implicit dependency for tests modules.
50108 (func_get_tests_module): New function.
50109 (func_modules_transitive_closure): When --with-tests was specified,
50110 include the unit tests as well, unless explicitly avoided.
50111 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50112 (func_emit_tests_Makefile_am): New function.
50113 (func_create_testdir): When --with-tests was specified, emit a
50115 * MODULES.html.sh (Future developments): Update.
50117 2005-08-24 Bruno Haible <bruno@clisp.org>
50119 * modules/tls-tests: New file.
50120 * tests/test-tls.c: New file, from GNU gettext.
50122 2005-08-24 Bruno Haible <bruno@clisp.org>
50124 * modules/lock-tests: New file.
50125 * tests/test-lock.c: New file, from GNU gettext.
50127 2005-08-24 Bruno Haible <bruno@clisp.org>
50129 * lib/lock.h: Add multiple inclusion guard.
50130 * lib/tls.h: Add multiple inclusion guard.
50132 2005-08-24 Bruno Haible <bruno@clisp.org>
50134 * gnulib-tool: Add support for the --aux-dir option to
50135 --create-testdir, --create-megatestdir, --test, --megatest.
50136 (func_create_testdir, func_create_megatestdir): Optionally emit a
50137 AC_CONFIG_AUX_DIR directive.
50138 (create-testdir, create-megatestdir, test, megatest): Provide a
50139 default value for $auxdir.
50141 2005-08-24 Bruno Haible <bruno@clisp.org>
50143 * gnulib-tool (import): Use compound statement instead of subshell
50146 2005-08-24 Bruno Haible <bruno@clisp.org>
50148 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50150 2005-08-24 Bruno Haible <bruno@clisp.org>
50152 * gnulib-tool (func_version): Update.
50154 2005-08-24 Bruno Haible <bruno@clisp.org>
50156 * gnulib-tool (func_import, func_create_testdir,
50157 func_create_megatestdir): Quote all autoconf macro arguments.
50159 2005-08-24 Bruno Haible <bruno@clisp.org>
50161 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50162 option --force, because --force causes the aclocal.m4 of each
50163 subdirectory to be newer than the corresponding config.h.in.
50165 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50167 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50168 All contents moved to gl_REGEX.
50169 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50170 assume that it does.
50172 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50174 * lib/regex.h (REG_NOSYS)
50175 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50176 Define, since POSIX requires it as of 2001.
50178 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50179 New private symbol, used to keep the enum signed in all cases.
50180 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50182 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50184 * lib/regex_internal.c (re_string_skip_chars, register_state):
50186 Remove forward decls; no longer needed now that we use prototypes.
50187 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50188 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50189 (clean_state_log_if_needed): Likewise.
50191 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50193 * config/srclist.txt: Add glibc bugs 1231-1233.
50195 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50197 Fix problems reported by Sam Steingold in
50198 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50199 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50200 assumed that reg_errcode_t is a signed type, which is not
50201 necessarily true if _XOPEN_SOURCE is not defined.
50202 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50203 since some compilers warn about it otherwise.
50205 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50207 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50208 (init_word_char, create_initial_state, duplicate_node_closure):
50209 (fetch_token, peek_token_bracket, build_range_exp):
50210 (build_collating_symbol): Remove forward decls; no longer needed
50211 now that we use prototypes.
50214 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50215 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50216 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50217 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50218 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50219 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50220 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50221 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50222 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50223 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50224 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50225 (build_charclass, build_charclass_op, fetch_number, create_tree):
50226 (create_token_tree, mark_opt_subexp, duplicate_tree):
50227 Use prototypes rather than old-style definitions.
50229 * lib/regex_internal.c:
50230 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50231 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50232 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50233 (re_string_reconstruct, re_string_peek_byte_case):
50234 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50235 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50236 (re_node_set_init_copy, re_node_set_add_intersect):
50237 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50238 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50239 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50240 (re_acquire_state, re_acquire_state_context, register_state):
50241 (create_ci_newstate, create_cd_newstate, free_state):
50243 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50245 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50246 (re_search_internal, prune_impossible_nodes):
50247 (acquire_init_state_context, check_matching, static):
50248 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50249 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50250 (update_regs, sift_states_backward, build_sifted_states):
50251 (clean_state_log_if_needed, merge_state_array):
50252 (update_cur_sifted_state, add_epsilon_src_nodes):
50253 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50254 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50255 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50256 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50257 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50258 (check_arrival, check_arrival_add_next_nodes):
50259 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50260 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50261 (check_node_accept_bytes, check_node_accept, extend_buffers):
50262 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50263 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50267 * lib/regex_internal.h:
50268 (re_string_allocate, re_string_construct, re_string_reconstruct):
50269 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50270 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50271 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50272 (re_string_context_at, re_string_peek_byte_case):
50273 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50274 is defined, since we now use prototypes always.
50276 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50277 C89 or better. All uses removed.
50279 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50281 * config/srclist.txt: Add glibc bugs 1220-1227.
50283 2005-08-20 Jim Meyering <jim@meyering.net>
50285 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50286 of unused local, dfa.
50288 2005-08-20 Bruno Haible <bruno@clisp.org>
50290 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50292 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50294 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50295 (re_node_set_insert_last, re_dfa_add_node):
50296 Rename local variables to avoid GCC shadowing warnings.
50298 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50300 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50301 [defined lint]: Suppress bogus uninitialized-variable warnings.
50303 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50304 and let the caller return REG_ESPACE if out of space. This
50305 removes an uninitialied-variable warning with GCC 4.0.1, and also
50306 avoids taking the address of a local variable. All callers
50309 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50311 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50312 $LIBCSRC/posix/regexec.c.
50313 Add glibc bug 1217 for regcomp.c.
50315 2005-08-19 Jim Meyering <jim@meyering.net>
50317 * lib/regexec.c (proceed_next_node): Redo local variables to
50318 avoid GCC shadowing warnings.
50320 2005-08-18 Bruno Haible <bruno@clisp.org>
50322 * lib/strstr.c (strstr): Fix return value in multibyte case.
50323 * lib/strcasestr.c (strcasestr): Likewise.
50325 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50327 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50329 2005-08-17 Jim Meyering <jim@meyering.net>
50331 Make the %s format (seconds since the epoch) work for a negative
50332 number and when used with a zero-padded field width, e.g. %015s.
50334 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50335 label so that it precedes the code to set `digits'. Otherwise,
50336 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50337 print `00-22'. Now, it prints `-0022', as it should.
50339 2005-08-17 Bruno Haible <bruno@clisp.org>
50341 * modules/strstr (Files): Add m4/mbrtowc.m4.
50342 (Depends-on): Add mbuiter.
50344 2005-08-17 Bruno Haible <bruno@clisp.org>
50346 * modules/strcasestr: New file.
50347 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50350 2005-08-17 Bruno Haible <bruno@clisp.org>
50352 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50354 2005-08-17 Bruno Haible <bruno@clisp.org>
50356 * modules/mbuiter: New file.
50357 * MODULES.html.sh (Extended multibyte and wide character utilities):
50360 2005-08-17 Bruno Haible <bruno@clisp.org>
50362 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50363 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50365 2005-08-17 Bruno Haible <bruno@clisp.org>
50367 * m4/strcasestr.m4: New file.
50369 2005-08-17 Bruno Haible <bruno@clisp.org>
50371 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50372 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50374 2005-08-17 Bruno Haible <bruno@clisp.org>
50376 * lib/strcasestr.h: New file.
50377 * lib/strcasestr.c: New file.
50379 2005-08-17 Bruno Haible <bruno@clisp.org>
50381 * lib/strcasecmp.c: Use mbuiter.h.
50383 2005-08-17 Bruno Haible <bruno@clisp.org>
50385 * lib/mbuiter.h: New file.
50387 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50389 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50390 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50391 and gl_GETOPT are both invoked via different paths (as happens
50392 with GNU tar CVS because it uses both argp and getopt), the former
50395 2005-08-16 Bruno Haible <bruno@clisp.org>
50397 * modules/tls: New file.
50398 * MODULES.html.sh (Multithreading): Add tls.
50400 2005-08-16 Bruno Haible <bruno@clisp.org>
50402 * modules/strnlen1: New file.
50403 * MODULES.html.sh (String handling): Add strnlen1.
50405 2005-08-16 Bruno Haible <bruno@clisp.org>
50407 * modules/strcase (Files): Add m4/mbrtowc.m4.
50408 (Depends-on): Add strnlen1, mbchar.
50410 2005-08-16 Bruno Haible <bruno@clisp.org>
50412 * modules/mbiter: New file.
50413 * MODULES.html.sh (Extended multibyte and wide character utilities):
50416 2005-08-16 Bruno Haible <bruno@clisp.org>
50418 * modules/mbfile: New file.
50419 * MODULES.html.sh (Extended multibyte and wide character utilities):
50422 2005-08-16 Bruno Haible <bruno@clisp.org>
50424 * modules/mbchar: New file.
50425 * MODULES.html.sh (Extended multibyte and wide character utilities):
50428 2005-08-16 Bruno Haible <bruno@clisp.org>
50430 * m4/tls.m4: New file, from GNU gettext.
50432 2005-08-16 Bruno Haible <bruno@clisp.org>
50434 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50436 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50438 2005-08-16 Bruno Haible <bruno@clisp.org>
50440 * m4/mbiter.m4: New file.
50442 2005-08-16 Bruno Haible <bruno@clisp.org>
50444 * m4/mbfile.m4: New file.
50446 2005-08-16 Bruno Haible <bruno@clisp.org>
50448 * m4/mbchar.m4: New file.
50450 2005-08-16 Bruno Haible <bruno@clisp.org>
50452 * lib/tls.h: New file, from GNU gettext.
50453 * lib/tls.c: New file, from GNU gettext.
50455 2005-08-16 Bruno Haible <bruno@clisp.org>
50457 * lib/strnlen1.h: New file.
50458 * lib/strnlen1.c: New file.
50460 2005-08-16 Bruno Haible <bruno@clisp.org>
50462 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50463 (mbi_init): Update.
50464 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50465 NUL byte, not after it.
50467 2005-08-16 Bruno Haible <bruno@clisp.org>
50469 * lib/strcase.h (strcasecmp): Add note in comments.
50470 * lib/strncasecmp.c: Use code from strcasecmp.c.
50471 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50472 (strcasecmp): Work correctly in multibyte locales.
50474 2005-08-16 Bruno Haible <bruno@clisp.org>
50476 * lib/mbiter.h: New file.
50478 2005-08-16 Bruno Haible <bruno@clisp.org>
50480 * lib/mbfile.h: New file.
50482 2005-08-16 Bruno Haible <bruno@clisp.org>
50484 * lib/mbchar.h: New file.
50485 * lib/mbchar.c: New file.
50487 2005-08-16 Bruno Haible <bruno@clisp.org>
50489 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50490 the valid ones. Makes the comparison operations transitive:
50491 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50492 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50494 2005-08-15 Simon Josefsson <jas@extundo.com>
50496 * modules/ssize_t (License): Change to 'unlimited'.
50498 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50500 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50502 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50503 Add comments for each pending glibc patch.
50505 2005-08-15 Bruno Haible <bruno@clisp.org>
50507 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50508 __cplusplus is defined.
50510 2005-08-14 Jim Meyering <jim@meyering.net>
50512 Sync from coreutils.
50514 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50515 Use the hash-table-based cycle-detection code not just when
50516 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50517 Reported by James Youngman in
50518 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50519 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50520 FTS_TIGHT_CYCLE_CHECK.
50521 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50522 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50524 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50525 * lib/fts.c (fd_safer): Remove decl.
50526 Include fcntl--.h rather than unistd-safer.h
50527 (fts_safe_changedir): Don't call fd_safer; no longer needed
50528 now that we include fcntl--.h.
50530 2005-08-12 Simon Josefsson <jas@extundo.com>
50532 * modules/getndelim2: Use ssize_t module.
50533 * modules/getnline: Likewise.
50534 * modules/safe-read: Likewise.
50535 * modules/xreadlink: Likewise.
50537 * modules/ssize_t: New file.
50539 2005-08-12 Simon Josefsson <jas@extundo.com>
50541 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50543 2005-08-12 Simon Josefsson <jas@extundo.com>
50545 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50548 2005-08-12 Simon Josefsson <jas@extundo.com>
50550 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50551 readline, getdelim and check_version.
50552 (Support for systems lacking ISO C 99: Sizes of integer types):
50555 2005-08-12 Bruno Haible <bruno@clisp.org>
50557 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50559 2005-08-11 Simon Josefsson <jas@extundo.com>
50561 * modules/readline: New file.
50563 * modules/strnlen (Files): Add strnlen.h.
50565 2005-08-11 Simon Josefsson <jas@extundo.com>
50567 * m4/readline.m4: New file.
50569 2005-08-11 Simon Josefsson <jas@extundo.com>
50571 * lib/readline.h, readline.c: New file.
50573 2005-08-11 Simon Josefsson <jas@extundo.com>
50575 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50578 2005-08-11 Bruno Haible <bruno@clisp.org>
50580 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50582 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50584 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50586 2005-08-10 Simon Josefsson <jas@extundo.com>
50588 * tests/test-iconvme.c: New file.
50590 2005-08-10 Simon Josefsson <jas@extundo.com>
50592 * m4/strnlen.m4: New file.
50594 * m4/strndup.m4: Don't check for strnlen declaration, done in
50597 2005-08-10 Simon Josefsson <jas@extundo.com>
50599 * lib/strndup.c: Use strnlen.h.
50601 * lib/strnlen.h: New file.
50603 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50607 2005-08-02 Simon Josefsson <jas@extundo.com>
50609 * modules/readline: New file.
50611 2005-08-02 Simon Josefsson <jas@extundo.com>
50613 * modules/getdelim: New file.
50615 * modules/getline: Rewrite, don't use getndelim2.
50617 2005-08-02 Simon Josefsson <jas@extundo.com>
50619 * m4/getline.m4: Separate out getdelim stuff into separate module.
50621 * m4/getdelim.m4: New file.
50623 2005-08-02 Simon Josefsson <jas@extundo.com>
50625 * lib/getline.h, getline.c: Rewrite.
50627 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50629 2005-07-31 Bruno Haible <bruno@clisp.org>
50631 * lib/lock.h (gl_lock_initializer): New macro.
50632 (gl_lock_define_initialized): Use it.
50633 (gl_rwlock_initializer): New macro.
50634 (gl_rwlock_define_initialized): Use it.
50635 (gl_recursive_lock_initializer): New macro.
50636 (gl_recursive_lock_define_initialized): Use it.
50638 2005-07-30 Karl Berry <karl@gnu.org>
50640 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50641 Report from Ben Pfaff, regarding getopt.
50643 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50645 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50647 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50648 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50649 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50650 (gl_GETOPT): Use the new macros. Most of the implementation
50651 is moved to the new macros. This is for programs like Emacs
50652 that don't want all the functionality of gl_GETOPT.
50654 2005-07-26 Bruno Haible <bruno@clisp.org>
50656 * m4/lock.m4: Update from GNU gettext.
50658 2005-07-26 Bruno Haible <bruno@clisp.org>
50660 * lib/lock.h: Update from GNU gettext.
50661 * lib/lock.c: Update from GNU gettext.
50663 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50665 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50666 obsolescent AC_TRY_RUN. Include the default includes files, for
50669 2005-07-24 Bruno Haible <bruno@clisp.org>
50671 * modules/visibility: New file.
50672 * MODULES.html.sh (Misc): Add visibility.
50674 2005-07-24 Bruno Haible <bruno@clisp.org>
50676 * m4/visibility.m4: New file.
50678 2005-07-24 Bruno Haible <bruno@clisp.org>
50680 * doc/visibility.texi: New file.
50682 2005-07-22 Bruno Haible <bruno@clisp.org>
50684 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50685 $(ALLOCA_H), redundant through BUILT_SOURCES.
50686 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50687 redundant through BUILT_SOURCES.
50688 * modules/byteswap (Makefile.am): Remove explicit dependency on
50689 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50690 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50691 $(FNMATCH_H), redundant through BUILT_SOURCES.
50692 * modules/getopt (Makefile.am): Remove explicit dependency on
50693 $(GETOPT_H), redundant through BUILT_SOURCES.
50694 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50695 redundant through BUILT_SOURCES.
50696 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50697 redundant through BUILT_SOURCES.
50698 * modules/stdbool (Makefile.am): Remove explicit dependency on
50699 $(STDBOOL_H), redundant through BUILT_SOURCES.
50700 * modules/stdint (Makefile.am): Remove explicit dependency on
50701 $(STDINT_H), redundant through BUILT_SOURCES.
50702 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50703 Remove explicit dependency on $(SYSEXITS_H).
50704 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50706 2005-07-18 Simon Josefsson <jas@extundo.com>
50708 * lib/check-version.c (check_version): Accept identical versions too.
50710 2005-07-18 Bruno Haible <bruno@clisp.org>
50712 * modules/lock: New file.
50713 * MODULES.html.sh (Multithreading): New section.
50715 2005-07-18 Bruno Haible <bruno@clisp.org>
50717 * m4/lock.m4: New file, from GNU gettext.
50719 2005-07-18 Bruno Haible <bruno@clisp.org>
50721 * lib/lock.h: New file, from GNU gettext.
50722 * lib/lock.c: New file, from GNU gettext.
50724 2005-07-18 Bruno Haible <bruno@clisp.org>
50726 * lib/lock.h (gl_once_t): New type.
50727 (gl_once_define, gl_once): New macros.
50728 * lib/lock.c (fresh_once): New variable.
50729 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50732 2005-07-16 Simon Josefsson <jas@extundo.com>
50734 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50735 workaround, suggested by Bruno.
50737 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50739 * modules/xalloc (Depends-on): Add xalloc-die.
50740 * modules/xvasprintf (Depends-on): Add xalloc-die.
50742 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50744 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50745 with a minor change.
50747 2005-07-15 Bruno Haible <bruno@clisp.org>
50749 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50750 When using lib/poll.c, define poll as rpl_poll.
50752 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50754 * modules/argp (Depends-on): Remove unlocked-io.
50756 2005-07-14 Derek Price <derek@ximbiot.com>
50758 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50759 for glob symlink bug.
50761 2005-07-14 Bruno Haible <bruno@clisp.org>
50763 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50764 Instead, test for *_unlocked function declarations directly.
50766 2005-07-11 Simon Josefsson <jas@extundo.com>
50768 * modules/size_max: New file.
50770 * modules/xsize: Depend on size_max module for size_max.m4.
50772 2005-07-11 Simon Josefsson <jas@extundo.com>
50774 * lib/size_max.h: New file.
50776 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50778 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50779 copyright symbol and the year.
50780 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50781 (version_etc_va): Use parameterized copyright notice.
50782 Reword to conform to the current GNU coding standards.
50784 2005-07-11 Karl Berry <karl@gnu.org>
50786 * doc/gnulib.texi (Quoting): new node.
50787 (Initial import): more info, from Patrice.
50789 2005-07-11 Bruno Haible <bruno@clisp.org>
50791 * gnulib-tool (func_usage): Document option --avoid.
50792 (Command line options): Handle --avoid.
50793 (func_acceptable): New function.
50794 (func_modules_transitive_closure): Use it.
50796 2005-07-11 Bruno Haible <bruno@clisp.org>
50798 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50799 Reported by Jim Meyering.
50801 2005-07-10 Bruno Haible <bruno@clisp.org>
50803 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50804 Needed when size_t is smaller than 'unsigned int'.
50805 Reported by Paul Eggert.
50807 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50809 * modules/argp (Depends-on): Add unlocked-io
50811 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50813 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50816 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50818 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50821 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50822 and Paul Eggert <eggert@cs.ucla.edu>
50824 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50825 in wint_t, not wchar_t. Remove now-unnecessary cast.
50827 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50829 * modules/regex (Files): Add lib/regex_internal.c,
50830 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50831 (Depends-on): Add extensions.
50832 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50834 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50836 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50838 * m4/same.m4 (gl_SAME): Likewise.
50839 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50841 * m4/regex.m4: Adjust to new libc regex implementation.
50842 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50843 all the .c and .h parts of (the new) regex.
50844 Quote the m4 stuff better.
50845 Check for RE_ICASE bug of old gnulib.
50846 Check for REG_STARTEND of recent libc.
50847 Rename local variables from jm_* to gl_*.
50848 Quote operand of "test -f".
50849 Say "recent enough" version of libc, not "version 2".
50850 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50851 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50852 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50853 Remove check for btowc, isascii.
50854 Require AM_LANGINFO_CODESET.
50856 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50858 * lib/regex.c, regex.h: Sync from libc.
50859 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50861 New files, synced from libc, except that regex_internal.h
50862 currently has a small porting fix.
50864 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50866 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50867 regex_internal.c, regexec.c.
50868 Add regex_internal.h too, but as a comment, since the libc version
50869 is currently broken in gnulib mode.
50871 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50873 Support programs like Emacs that use gnulib but not gettext.
50874 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50875 * modules/gettext-h: New file.
50876 * modules/gettext (Files): Remove lib/gettext.h.
50877 (Depends-on): Add gettext-h.
50878 (Makefile.am): Remove lib_SOURCES.
50879 * modules/argmatch, modules/c-stack, modules/closeout:
50880 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50881 * modules/execute, modules/file-type, modules/getaddrinfo:
50882 * modules/getopt, modules/human, modules/javacomp:
50883 * modules/javaexec, modules/mkdir-p, modules/obstack:
50884 * modules/openat, modules/pagealign_alloc, modules/pipe:
50885 * modules/quotearg, modules/regex, modules/rpmatch:
50886 * modules/unicodeio, modules/userspec, modules/version-etc:
50887 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50889 Depend on gettext-h, not gettext.
50891 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50893 * gnulib-tool (func_import): Add support for 'public domain' license.
50894 * modules/alloca, modules/atexit, modules/memmove:
50895 Now public domain, not GPL.
50896 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50897 * modules/realloc, modules/strerror, modules/strtod:
50900 2005-07-05 Bruno Haible <bruno@clisp.org>
50902 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50903 autoconf CVS. Needed for mingw.
50905 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50907 Remove the dependency of the strftime module on the tzset module.
50908 * modules/strftime (Depends-on): Remove dependency on tzset.
50910 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50912 Remove the dependency of the strftime module on the tzset module.
50913 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50914 gl_FUNC_TZSET_CLOBBER.
50916 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50918 Remove the dependency of the strftime module on the tzset module.
50919 * lib/strftime.c (my_strftime)
50920 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50921 Copy the input structure, to work around some of the bug with
50922 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50923 Solaris releases, you should also use the tzset module, but we won't
50924 require it as a dependency any more since we don't want LGPLed code
50925 to depend on GPLed code.
50927 2005-07-02 Jim Meyering <jim@meyering.net>
50929 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50930 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50931 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50932 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50934 2005-07-02 Jim Meyering <jim@meyering.net>
50936 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50938 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50940 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50941 declares only 'struct timespec;' (!).
50943 2005-07-01 Jim Meyering <jim@meyering.net>
50945 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50946 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50947 * lib/save-cwd.c, tempname.c:
50948 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50949 and don't include <sys/file.h>).
50951 2005-06-29 Jim Meyering <jim@meyering.net>
50953 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50954 type name. Use the variable name instead.
50955 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50958 2005-06-28 Simon Josefsson <jas@extundo.com>
50960 * modules/check-version (Files): Add check-version.m4.
50962 2005-06-28 Simon Josefsson <jas@extundo.com>
50964 * m4/check-version.m4: New file, suggested by Jim Meyering
50965 <jim@meyering.net>.
50967 2005-06-28 Simon Josefsson <jas@extundo.com>
50969 * lib/check-version.h, lib/check-version.c: New files.
50971 2005-06-28 Simon Josefsson <jas@extundo.com>
50973 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50974 collision with global variable. Better indentation. Don't
50975 increment buffer pointer beyond buffer end. Based on comments
50976 from Paul Eggert <eggert@cs.ucla.edu>.
50978 * lib/base64.h: Indent.
50980 2005-06-28 Simon Josefsson <jas@extundo.com>
50982 * doc/gnulib.texi (Library version handling): New section.
50984 2005-06-28 Jim Meyering <jim@meyering.net>
50986 * check-module (find_included_lib_files): Hard-code another
50987 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50988 but modules/fts-lgpl (correctly) does not list those files.
50990 * modules/canonicalize (Files): Add lib/pathmax.h.
50992 2005-06-25 Simon Josefsson <jas@extundo.com>
50994 * modules/check-version: New file.
50996 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50998 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50999 initializer of struct addrinfo, as an indication that we don't
51000 care how many members the structure has.
51002 2005-06-24 Derek Price <derek@ximbiot.com>
51003 and Bruno Haible <bruno@clisp.org>
51005 Remove stat module & update lstat.
51006 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51007 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51008 * m4/stat.m4: Remove this file.
51010 2005-06-24 Derek Price <derek@ximbiot.com>
51011 and Bruno Haible <bruno@clisp.org>
51013 Remove stat module & update lstat.
51014 * lib/stat.c: Remove this file...
51015 (slash_aware_lstat): ...moving this content and its support...
51016 * lib/lstat.c (rpl_lstat): ...into here.
51017 * lib/lstat.h: New file.
51019 2005-06-24 Derek Price <derek@ximbiot.com>
51020 and Bruno Haible <bruno@clisp.org>
51022 Remove stat module & update lstat.
51023 * config/srclist.txt (libc sources): Remove stat.
51025 2005-06-24 Derek Price <derek@ximbiot.com>
51026 and Bruno Haible <bruno@clisp.org>
51028 Remove stat module & update lstat.
51029 * MODULES.html.sh (stat): Remove.
51030 * MODULES.html: Regenerated.
51031 * modules/lstat (Description): Correct function name.
51032 (Files): Add "lstat.h".
51033 (Depends-on): Remove stat, add xalloc, stat-macros.
51034 * modules/stat: Remove this file.
51035 (Include): Add "lstat.h", remove <sys/stat.h>.
51037 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
51039 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
51040 (ranged_convert): Don't save conversion in a temporary struct.
51041 This causes a warning with GCC 4.0.0, and anyway in the typical
51042 case it's not worth the extra 100 bytes or so of code.
51043 (ranged_convert, __mktime_internal): When calling a function via a
51044 pointer P, use P () rather than (*P) (), as we now assume C89 or
51047 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
51049 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51050 "who -r" failed to give output. Problem reported by Tim Waugh.
51052 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51053 (xcalloc): Use it to avoid needless tests.
51054 Problem reported by Jim Meyering.
51056 2005-06-20 Derek Price <derek@ximbiot.com>
51058 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51059 unnecessary for Autoconfs > 2.59c.
51061 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51063 * lib/argp.h (__option_is_short): Check upper limit of
51064 __key. Isprint() requires its argument to have the value
51065 of an unsigned char or EOF.
51067 2005-06-16 Jim Meyering <jim@meyering.net>
51069 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51070 when either N or S is zero.
51072 2005-06-16 Derek Price <derek@ximbiot.com>
51074 * m4/bison.m4: Declare YACC & YFLAGS precious.
51076 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51078 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51079 multibyte string or pattern, fall back on unibyte matching.
51080 Problem reported by James Youngman.
51082 2005-06-08 Bruno Haible <bruno@clisp.org>
51084 * modules/csharpcomp: New file.
51085 * MODULES.html.sh (C#): Add csharpcomp.
51087 2005-06-08 Bruno Haible <bruno@clisp.org>
51089 * m4/csharpcomp.m4: New file, from GNU gettext.
51091 2005-06-08 Bruno Haible <bruno@clisp.org>
51093 * lib/csharpcomp.h: New file, from GNU gettext.
51094 * lib/csharpcomp.c: New file, from GNU gettext.
51095 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51097 2005-06-08 Bruno Haible <bruno@clisp.org>
51099 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51102 2005-06-07 Derek Price <derek@ximbiot.com>
51105 * lib/glob_.h: Indent nested #ifdef.
51107 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51109 Sync from coreutils.
51110 Use "file name" when talking about file names, instead of "filename"
51111 or "path", as per the GNU coding standards.
51112 * lib/mkdir-p.c: Renamed from makepath.c.
51113 (make_dir_parents): Renamed from make_path. All callers changed.
51114 * lib/mkdir-p.h: Likewise. All includers changed.
51115 * lib/filenamecat.c: Renamed from path-concat.c.
51116 (file_name_concat): Renamed from path_concat. All callers changed.
51117 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51118 * lib/filenamecat.h: Likewise. All includers changed.
51119 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51120 in comments or local variable names.
51121 * lib/basename.c: Likewise.
51122 * lib/canonicalize.c, canonicalize.h: Likewise.
51123 * lib/dirname.c, dirname.h: Likewise.
51124 * lib/euidaccess.c: Likewise.
51125 * lib/exclude.c: Likewise
51126 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51127 * lib/fsusage.c, fsuage.h: Likewise.
51128 * lib/fts.c, fts_.h: Likewise.
51129 * lib/getcwd.c: Likewise.
51130 * lib/getloadavg.c: Likewise.
51131 * lib/mkstemp.c: Likewise.
51132 * lib/mountlist.c, mountlist.h: Likewise.
51133 * lib/openat.c, openat.h: Likewise.
51134 * lib/readlink-stub.c: Likewise.
51135 * lib/readutmp.c, readutmp.h: Likewise.
51136 * lib/rename.c: Likewise.
51137 * lib/rmdir.c: Likewise.
51138 * lib/same.c: Likewise.
51139 * lib/savedir.c: Likewise.
51140 * lib/stripslash.c: Likewise.
51141 * lib/tempname.c: Likewise.
51142 * lib/xreadlink.c: Likewise.
51143 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51145 * lib/exclude.h: Likewise.
51147 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51148 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51149 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51150 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51151 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51152 files have been getting away with it for years (MORE/BSD 4.3
51154 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51155 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51157 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51158 Define to 256, not 255, as per modern POSIX.
51160 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51162 Sync from coreutils.
51163 Use "file name" when talking about file names, instead of "filename"
51164 or "path", as per the GNU coding standards.
51165 * MODULES.html.sh: mkdir-p renamed from makepath.
51166 filenamecat renamed from path-concat.
51167 * modules/filenamecat: Renamed from modules/path-concat.
51168 (Files): filenamecat.h and filenamecat.c renamed from
51169 path-concat.h and path-concat.c.
51170 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51171 (Include): filenamecat.h, not path-concat.h.
51172 * modules/mkdir-p: Renamed from modules/makepath.
51173 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51175 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51176 (Include): mkdir-p.h, not makepath.h.
51178 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51180 Sync from coreutils.
51181 * m4/mkdir-p.m4: Renamed from makepath.m4.
51182 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51183 Rename files from makepath.c to mkdir-p.c, and from
51184 makepath.h to mkdir-p.h.
51185 * m4/filenamecat.m4: Renamed from path-concat.m4.
51186 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51187 Rename files from path-concat.c to filenamecat.c,
51188 and from path-concat.h to filenamecat.h.
51189 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51190 "file name" in local variables or comments.
51191 * m4/rename.m4: Likewise.
51193 2005-06-01 Bruno Haible <bruno@clisp.org>
51195 * modules/csharpexec: New file.
51196 * MODULES.html.sh (C#): New section.
51198 2005-06-01 Bruno Haible <bruno@clisp.org>
51200 * m4/csharp.m4: New file, from GNU gettext.
51201 * m4/csharpexec.m4: New file, from GNU gettext.
51203 2005-06-01 Bruno Haible <bruno@clisp.org>
51205 * lib/csharpexec.h: New file, from GNU gettext.
51206 * lib/csharpexec.c: New file, from GNU gettext.
51207 * lib/csharpexec.sh.in: New file, from GNU gettext.
51209 2005-05-31 Derek Price <derek@ximbiot.com>
51210 Paul Eggert <eggert@cs.ucla.edu>
51213 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51215 2005-05-31 Derek Price <derek@ximbiot.com>
51216 Paul Eggert <eggert@cs.ucla.edu>
51219 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51221 2005-05-29 Derek Price <derek@ximbiot.com>
51223 * config/srclist.txt (glob_.h, glob.c): Add these files.
51225 2005-05-29 Derek Price <derek@ximbiot.com>
51227 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51228 * modules/glob: New file.
51229 * modules/getlogin_r: Add link to POSIX spec in description.
51231 2005-05-29 Derek Price <derek@ximbiot.com>
51232 Paul Eggert <eggert@cs.ucla.edu>
51234 * m4/glob.m4: New file.
51236 2005-05-29 Derek Price <derek@ximbiot.com>
51237 Paul Eggert <eggert@cs.ucla.edu>
51239 * lib/glob_.h, lib/glob.c: New files.
51241 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51243 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51244 * modules/fts-lgpl (Depends-on): Remove gettext.
51246 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51248 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51249 and don't require gt_INTTYPES_PRI.
51251 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51253 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51255 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51256 the configuration hassle isn't worth it.
51257 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51258 (LONGEST_MODIFIER, PRIuMAX): Remove.
51260 2005-05-27 Bruno Haible <bruno@clisp.org>
51262 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51264 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51266 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51267 _POSIX_PTHREAD_SEMANTICS for Solaris.
51269 2005-05-25 Derek Price <derek@ximbiot.com>
51271 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51273 2005-05-25 Derek Price <derek@ximbiot.com>
51274 Paul Eggert <eggert@cs.ucla.edu>
51276 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51277 * lib/getlogin_r.c, getlogin_r.h: New files.
51279 2005-05-25 Bruno Haible <bruno@clisp.org>
51280 Derek Price <derek@ximbiot.com>
51282 * lib/getlogin_r.h: Simplify API documentation.
51284 2005-05-23 Derek Price <derek@ximbiot.com>
51286 * modules/minmax (Files): Add m4/minmax.m4.
51287 (configure.ac): Add gl_MINMAX.
51289 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51291 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51292 so that unistd-safer.h (GPL'ed code) need not be included.
51294 2005-05-22 Bruno Haible <bruno@clisp.org>
51296 * m4/minmax.m4: New file.
51297 Based on a patch by Derek Price <derek@ximbiot.com>.
51299 2005-05-22 Bruno Haible <bruno@clisp.org>
51301 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51302 (INT64_MIN): Fix definition.
51303 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51305 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51306 NEED_SIGNED_INT_TYPES.
51308 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51309 HAVE_SYSTEM_INTTYPES.
51311 2005-05-22 Bruno Haible <bruno@clisp.org>
51313 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51314 Also include <sys/param.h> if it defines MIN, MAX.
51315 Based on a patch by Derek Price <derek@ximbiot.com>.
51317 2005-05-21 Jim Meyering <jim@meyering.net>
51319 * modules/fts (Files): Add m4/inttypes-pri.m4.
51320 (Depends-on): Add lstat and remove gettext. Alphabetize.
51322 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51325 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51326 (setup_dir, free_dir): New functions.
51327 (enter_dir, leave_dir): Define trivial
51328 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51329 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51330 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51331 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51332 Move to fts-cycle.c.
51333 (fts_open): Use setup_dir.
51334 (fts_close): Use free_dir.
51335 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51336 This adds a label and some gotos, but the alternatives were messier.
51337 Check for memory allocation failure when entering a dir.
51338 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51339 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51340 (FTS): New member fts_cycle, that is a union that contains the
51341 old active_dir_ht and cycle_state. All uses changed to mention
51342 fts_cycle.ht and fts_cycle.state.
51343 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51344 fts.c, with the following changes:
51345 (setup_dir, free_dir): New functions.
51346 (enter_dir): Now returns bool. Return true if successful, false
51347 if memory exhausted. All callers changed.
51348 Do not bother partly cleaning up on
51349 memory allocation failure; that is free_dir's job.
51350 However, free ad if hash_insert fails, to avoid memory leak.
51351 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51352 fts->fts_options to see which union member to use.
51354 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51356 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51357 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51359 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51361 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51363 2005-05-20 Jim Meyering <jim@meyering.net>
51365 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51366 Now a macro, to pacify GCC.
51368 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51370 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51373 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51375 * lib/chown.c (rpl_chown): Return -1 on failure.
51377 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51379 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51380 Don't check for stddef.h.
51381 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51382 don't use its results.
51383 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51384 since we include them unconditionally. Don't require
51385 AM_STDBOOL_H, since stdbool is a prerequisite.
51386 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51387 since we assume C89 or better.
51388 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51389 as we don't use their results.
51390 Don't check for fchdir, memmove, memset, strrchr, as we use
51391 them unconditionally.
51392 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51393 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51395 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51397 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51398 Include <stddef.h> unconditionally, since we assume C89 now.
51399 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51400 * lib/fts.c: Include fts_.h first, to check interface.
51401 Do not include intprops.h; no longer needed.
51402 Include cycle-check.h and hash.h, since fts_.h no longer does.
51403 Remove unnecessary casts of closedir to void.
51404 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51405 decide whether to decrement nlinks.
51406 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51407 (FTS): Use struct hash_table * instead of Hash_table, so that
51408 we no longer need to include hash.h here.
51410 2005-05-18 Jim Meyering <jim@meyering.net>
51412 * modules/dirfd (License): Change to LGPL. Most of the code
51413 is already in the public domain.
51415 2005-05-18 Jim Meyering <jim@meyering.net>
51417 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51418 Reported by Yoann Vandoorselaere.
51420 2005-05-17 Jim Meyering <jim@meyering.net>
51422 * m4/fts.m4: New file, from coreutils.
51424 2005-05-17 Jim Meyering <jim@meyering.net>
51426 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51428 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51430 Sync from coreutils.
51431 * m4/unlinkdir.m4: New file.
51433 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51435 Sync from coreutils.
51436 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51437 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51438 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51439 White space changes only.
51440 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51442 * lib/yesno.c: Include getline.h, not ctype.h.
51443 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51444 Use getline to remove arbitrary restriction on response length.
51446 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51448 * config/srclist-update: Spell out "Street" in FSF postal
51449 mail address; this is the style the FSF seems to prefer.
51451 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51452 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51453 this updates FSF postal mail address.
51455 Sync from coreutils.
51456 * modules/unlinkdir: New file.
51457 * modules/yesno (Depends-on): Add getline.
51458 * MODULES.html.sh (File system functions): Add unlinkdir.
51460 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51462 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51464 Change the initial comment to refer to GPL, not LGPL.
51465 gnulib-tool will change it to LGPL as needed.
51467 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51468 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51469 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51470 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51471 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51472 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51473 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51474 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51475 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51476 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51477 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51478 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51479 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51480 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51481 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51482 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51483 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51484 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51485 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51486 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51487 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51488 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51489 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51490 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51491 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51492 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51493 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51494 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51495 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51496 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51497 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51498 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51499 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51500 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51501 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51502 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51503 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51504 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51505 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51506 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51507 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51508 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51509 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51510 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51511 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51512 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51513 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51514 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51515 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51516 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51517 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51518 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51519 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51520 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51521 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51522 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51523 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51524 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51525 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51526 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51527 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51528 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51529 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51530 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51531 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51532 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51533 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51534 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51535 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51536 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51537 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51538 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51539 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51540 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51541 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51542 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51543 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51544 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51545 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51546 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51547 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51548 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51549 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51550 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51551 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51552 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51553 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51554 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51555 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51556 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51557 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51558 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51559 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51560 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51561 lib/yesno.c, lib/yesno.h:
51562 Update FSF postal mail address.
51564 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51566 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51567 tests/test-memmem.c, tests/test-stpncpy.c:
51568 Update FSF postal mail address.
51570 2005-05-13 Bruno Haible <bruno@clisp.org>
51572 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51573 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51574 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51575 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51576 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51577 Add support for 64-bit integers in the MSVC compiler.
51579 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51581 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51583 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51585 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51587 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51589 * doc/getdate.texi (General date syntax): Don't say that date
51590 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51591 Problem reported by Nic Ferrier.
51593 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51595 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51596 specified in ai_socktype. Fix invalid ai_protocol
51597 check. ai_protocol is usually set to 0 or depending on
51598 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51599 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51600 ai_socktype / ai_protocol in the returned addrinfo structure.
51602 2005-05-10 Simon Josefsson <jas@extundo.com>
51604 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51605 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51607 2005-05-10 Karl Berry <karl@gnu.org>
51609 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51610 (from http://www.gnu.org/licenses).
51611 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51612 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51615 2005-05-10 Karl Berry <karl@gnu.org>
51617 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51618 (COPYING.DOC): remove.
51620 * config/srclist-update: new FSF address.
51622 2005-05-10 Derek Price <derek@ximbiot.com>
51624 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51627 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51628 Bruno Haible <bruno@clisp.org>
51630 * modules/inet_ntop: New file.
51631 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51634 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51635 Bruno Haible <bruno@clisp.org>
51637 * m4/inet_ntop.m4: New file.
51639 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51640 Bruno Haible <bruno@clisp.org>
51642 * lib/inet_ntop.h: New file.
51643 * lib/inet_ntop.c: New file, from glibc with modifications.
51645 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51647 * modules/time_r (License): Change to LGPL.
51648 * modules/extensions (License): Change to LGPL. Actually,
51649 the license is more permissive than that, but currently gnulib-tool
51650 doesn't know how to handle more-permissive licenses.
51652 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51653 Problem reported by Dave Love.
51655 2005-05-08 Jim Meyering <jim@meyering.net>
51657 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51660 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51662 * modules/argmatch (Depends-on): Add stdbool.
51663 * modules/backupfile (Depends-on): Likewise.
51664 * modules/chdir-long (Depends-on): Likewise.
51665 * modules/closeout (Depends-on): Likewise.
51666 * modules/cycle-check (Depends-on): Likewise.
51667 * modules/dirname (Depends-on): Likewise.
51668 * modules/fnmatch (Depends-on): Likewise.
51669 * modules/fsusage (Depends-on): Likewise.
51670 * modules/fwriteerror (Depends-on): Likewise.
51671 * modules/getcwd (Depends-on): Likewise.
51672 * modules/getloadavg (Depends-on): Likewise.
51673 * modules/hard-locale (Depends-on): Likewise.
51674 * modules/makepath (Depends-on): Likewise.
51675 * modules/mountlist (Depends-on): Likewise.
51676 * modules/nanosleep (Depends-on): Likewise.
51677 * modules/posixtm (Depends-on): Likewise.
51678 * modules/quotearg (Depends-on): Likewise.
51679 * modules/readtokens (Depends-on): Likewise.
51680 * modules/readtokens0 (Depends-on): Likewise.
51681 * modules/readutmp (Depends-on): Likewise.
51682 * modules/save-cwd (Depends-on): Likewise.
51683 * modules/strftime (Depends-on): Likewise.
51684 * modules/userspec (Depends-on): Likewise.
51685 * modules/utimecmp (Depends-on): Likewise.
51686 * modules/xgetcwd (Depends-on): Likewise.
51687 * modules/xnanosleep (Depends-on): Likewise.
51688 * modules/xstrtod (Depends-on): Likewise.
51689 * modules/yesno (Depends-on): Likewise.
51691 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51693 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51696 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51698 Merge from coreutils. Among other things,
51699 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51700 * lib/fd-safer.c: New file.
51701 * lib/fcntl-safer.h, open-safer.c: Remove.
51702 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51703 * lib/dup-safer.c: Include unistd-safer.h first.
51704 Don't include errno.h.
51705 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51706 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51707 * lib/file-type.c: Rely on file-type.h change.
51708 * lib/getloadavg.c: Include unistd-safer.h.
51709 (getloadavg): Use safer open.
51710 * lib/getusershell.c: Include "stdio-safer.h".
51711 (getusershell): Use safer fopen.
51712 * lib/long-options.c (long_options): Use NULL rather than 0.
51713 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51715 * lib/modechange.c: Likewise.
51716 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51717 (MODE_DONE): New constant.
51718 (struct mode_change): Remove 'next' member.
51719 (make_node_op_equals): New function; like the old one of the
51720 same name, except it allocates an array.
51721 (mode_compile, mode_create_from_ref): Use it.
51722 (mode_compile): Allocate result as an array, not a linked list.
51723 Parse octal string ourself, so that we catch mistakes like "+0".
51724 (mode_adjust): Arg is an array, not a linked list.
51725 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51726 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51727 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51728 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51729 Remove. This is now stat-macros.h's job.
51730 (talloc): Remove. All callers replaced by xalloc, so that
51731 our invokers don't have to worry about reporting memory failures.
51732 (make_node_op_equals): Remove.
51733 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51735 (struct mode_change): Moved here from modechange.h.
51736 (mode_append_entry): Remove.
51737 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51738 apps to have incorrect behavior. Use simpler algorithm for head
51739 and tail. Don't futz with umask; that's now the job of mode_adjust.
51740 Detect more invalid usages rather than having somewhat-random behavior.
51741 Don't insert an "a=" action, as that leads to incorrect behavior.
51742 (mode_compile, mode_create_from_ref): Return NULL on error instead
51743 of an enum, since now there's only one way to have an error. All
51745 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51746 at the correct time. Simplify calculation of "+u" and its ilk.
51747 Don't mishandle "+X".
51748 (mode_free): Remove "register" and localize decls.
51749 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51750 (struct mode_change): Move to modechange.c; callers don't
51751 need to see this stuff.
51752 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51753 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51754 (mode_change, mode_adjust): Reflect the new signatures noted above.
51755 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51756 that might redefine system include files.
51757 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51758 (my_usleep): Use NULL rather than (void *) 0.
51759 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51760 Use siginterrupt to specify that system calls should be interrupted.
51761 (rpl_nanosleep): Move initialization of suspended closer to call of
51763 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51764 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51765 (desirable_utmp_entry): New function.
51766 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51767 using x2nrealloc, to simplify logic.
51768 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51769 size calculation. Do not assume utmp file is a regular file.
51770 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51771 (READ_UTMP_CHECK_PIDS): New constant.
51772 * lib/save-cwd.c: Include unistd-safer.h.
51773 (save_cwd): Use fd_safer.
51774 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51775 [!_LIBC] Include "stat-macros.h" instead.
51776 * lib/unistd-safer.h (fd_safer): New decl.
51778 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51780 * modules/getloadavg (Depends-on): Add unistd-safer.
51781 * modules/getusershell (Depends-on): Add stdio-safer.
51782 * modules/lstat (Depends-on): Remove xalloc.
51783 * modules/mkstemp (Depends-on): Add stat-macros.
51784 * modules/modechange (Depends-on): Remove xstrtol.
51785 Add stat-macros, xalloc.
51786 * modules/save-cwd (Depends-on): Add unistd-safer.
51787 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51788 * modules/unistd-safer (Files): Add lib/fd-safer.c
51789 (Makefile.am): Remove lib_SOURCES.
51791 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51792 Remove fcntl-safer; unistd-safer supersedes it.
51794 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51796 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51798 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51799 (gl_PREREQ_CHOWN): Remove.
51800 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51801 it. Don't require AC_HEADER_STAT.
51802 (gl_PREREQ_LSTAT): Remove.
51803 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51804 Don't require AC_HEADER_STAT.
51805 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51806 (gl_PREREQ_RMDIR): Remove.
51807 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51808 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51809 the stat-macros module a prerequisite.
51810 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51811 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51812 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51813 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51814 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51816 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51817 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51819 * m4/fcntl-safer.m4: Remove.
51820 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51821 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51822 Invoke gl_PREREQ_FD_SAFER.
51823 (gl_PREREQ_FD_SAFER): New macro.
51824 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51825 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51826 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51827 Remove duplicate call to AC_LIBOBJ(readutmp).
51828 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51830 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51831 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51833 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51835 * MODULES.html.sh (Misc): Add byteswap.
51837 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51839 * modules/getcwd (Depends-on): Add extensions.
51840 * modules/openat (Depends-on): Likewise.
51842 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51844 * modules/byteswap: New file.
51846 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51848 * m4/byteswap.m4: New file.
51850 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51852 * lib/byteswap_.h: New file.
51854 2005-04-25 Karl Berry <karl@gnu.org>
51856 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51858 2005-04-25 Albert Chin <china@thewrittenword.com>
51860 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51863 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51865 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51866 (func_ln_if_changed) Remove forcibly for no error message
51867 in case file does not exist.
51869 2005-04-19 Simon Josefsson <jas@extundo.com>
51871 * gnulib-tool (Options): Make --symlink mean --symbolic.
51873 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51875 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51877 2005-04-16 Simon Josefsson <jas@extundo.com>
51879 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51881 2005-04-15 Simon Josefsson <jas@extundo.com>
51883 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51885 2005-04-15 Simon Josefsson <jas@extundo.com>
51887 * gnulib-tool: Rename --symlink to --symbolic.
51889 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51891 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51892 symbolic links to files instead of copying/moving. Add --aux-dir,
51893 specifying directory relative --dir where auxiliary build tools
51896 2005-04-14 Bruno Haible <bruno@clisp.org>
51898 * modules/allocsa (License): Change to LGPL.
51899 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51901 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51903 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51904 that "UTC +1 second" continues to work. Problem reported
51905 by Dmitry V. Levin.
51906 (relunit_snumber): New rule.
51909 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51911 * lib/getdate.y (universal_time_zone_table): New constant.
51912 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51913 universal_time_zone_table.
51914 (lookup_zone): Prefer universal_time_zone_table to
51915 local_time_zone_table, so that "GMT" time stamps are allowed in
51916 London during the summer. Problem reported by Ian Abbott.
51918 2005-04-12 Jim Meyering <jim@meyering.net>
51920 * lib/human.c (humblock): Set *options even when returning due to
51921 xstrtoumax conversion failure. Thanks to a used-uninitialized
51922 warning from gcc-4.
51924 2005-04-09 Jim Meyering <jim@meyering.net>
51926 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51927 -Wuninitialized: initialize tm0.tm_year.
51929 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51931 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51932 count, since there's no maximum. All uses changed.
51933 Add member dsts_seen.
51934 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51936 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51937 Use pc_rels_seen to decide whther a date is absolute.
51939 * lib/getdate.y (number): Don't overwrite year.
51940 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51943 2005-04-02 Simon Josefsson <jas@extundo.com>
51945 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51946 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51948 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51950 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51951 where no absolute path name can be longer than PATH_MAX.
51953 2005-03-27 Jim Meyering <jim@meyering.net>
51955 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51957 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51959 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51960 "one's complement" -> "ones' complement" in comment, as per Knuth.
51961 "value of type" -> "type or expression" in comment.
51962 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51964 2005-03-26 Jim Meyering <jim@meyering.net>
51967 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51968 Correct typos: s/or/of/.
51970 2005-03-26 Jim Meyering <jim@meyering.net>
51972 * modules/check-include-files: Move to ../ and rename to...
51973 * check-module: ...this.
51975 2005-03-25 Jim Meyering <jim@meyering.net>
51977 * modules/xvasprintf (Files): Add xalloc.h.
51979 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51981 * modules/gettext (Files): config/config.rpath ->
51982 build-aux/config.rpath
51983 * modules/iconv (Files): Likewise.
51984 Problem reported by Oskar Liljeblad.
51986 2005-03-23 Jim Meyering <jim@meyering.net>
51988 * modules/check-include-files: New script to check for
51989 missing dependencies, multiple includes, etc.
51991 * modules/c-strtold (Depends-on): Add xalloc.
51992 * modules/c-strtod (Depends-on): Add xalloc.
51993 * modules/hash (Depends-on): Add xalloc.
51994 (Files): Remove lib/xalloc.h.
51996 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51997 * modules/userspec (Files): Add lib/inttostr.h.
51999 2005-03-23 Jim Meyering <jim@meyering.net>
52001 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52003 2005-03-22 Jim Meyering <jim@meyering.net>
52005 * modules/stat-macros: New module.
52006 * modules/canonicalize, modules/euidaccess, modules/file-type,
52007 * modules/filemode, modules/lchown, modules/makepath,
52008 * modules/rmdir, modules/stat: Depend on new stat-macros module
52009 rather than listing lib/stat-macros.h manually.
52010 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52012 2005-03-22 Jim Meyering <jim@meyering.net>
52014 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52016 2005-03-22 Bruno Haible <bruno@clisp.org>
52018 * config/srclist.txt: Replace target directory 'config' with
52020 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52021 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52024 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
52026 * modules/chdir-long (Depends-on): Add mempcpy.
52028 * modules/acl, modules/backupfile, modules/c-strtod,
52029 modules/c-strtold, modules/canon-host, modules/canonicalize,
52030 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52031 modules/exclude, modules/exitfail, modules/file-type,
52032 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52033 modules/getdate, modules/getline, modules/getpagesize,
52034 modules/getpass, modules/getugroups, modules/group-member,
52035 modules/hard-locale, modules/hash, modules/human, modules/idcache,
52036 modules/inttostr, modules/long-options, modules/makepath,
52037 modules/md5, modules/memcasecmp, modules/memcoll,
52038 modules/modechange, modules/mountlist, modules/path-concat,
52039 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52040 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52041 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52042 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52043 modules/strftime, modules/strndup, modules/strverscmp,
52044 modules/timespec, modules/unlocked-io, modules/userspec,
52045 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52047 Remove lib_SOURCES line from Makefile.am section, as this is now
52048 done automatically by the corresponding Autoconf macro.
52050 2005-03-21 Jim Meyering <jim@meyering.net>
52052 Changes imported from coreutils.
52054 * lib/cycle-check.c: Don't include xalloc.h.
52056 * lib/path-concat.c: Don't include assert.h.
52057 (path_concat): Remove assertion that would have triggered
52058 for ABASE starting with more than one slash.
52059 Reported by Andreas Schwab.
52061 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52062 properly when ABASE is an absolute file name.
52063 Correct the description of this function.
52064 Include <assert.h>.
52065 Add an assertion and a test driver.
52066 This fixes a bug introduced on 2004-07-02.
52067 Andreas Schwab reported the resulting failure of cp --parents:
52068 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52070 2005-03-21 Jim Meyering <jim@meyering.net>
52072 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52073 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52075 2005-03-21 Jim Meyering <jim@meyering.net>
52076 and Paul Eggert <eggert@cs.ucla.edu>
52078 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52079 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52080 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52081 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52082 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52083 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52084 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52085 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52086 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52087 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52088 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52089 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52090 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52091 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52092 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52093 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52094 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52097 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52099 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52100 (which shouldn't happen), generate nothing instead of returning 0
52101 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52103 2005-03-16 Bruno Haible <bruno@clisp.org>
52105 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52106 HAVE_LONGLONG_64BIT.
52108 2005-03-16 Bruno Haible <bruno@clisp.org>
52110 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52111 HAVE_LONGLONG_64BIT.
52113 2005-03-16 Bruno Haible <bruno@clisp.org>
52115 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52116 HAVE_LONGLONG_64BIT.
52118 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52120 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52121 reliably distinguish strftime failure from empty output on POSIX
52124 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52126 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52127 (iconv_string): Don't guess a size-zero buffer, as that might cause
52128 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52129 result would be 'too large', where 'too large' is (heuristically)
52130 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52131 overflow concerns. This will prevent some unwanted malloc failures
52132 when the inputs are very large.
52134 2005-03-15 Karl Berry <karl@gnu.org>
52136 * config/srclist.txt (config.rpath): from gettext.
52137 * config/config.rpath: update.
52139 2005-03-15 Bruno Haible <bruno@clisp.org>
52141 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52144 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52147 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52150 2005-03-14 Simon Josefsson <jas@extundo.com>
52152 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52155 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52157 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52158 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52160 * lib/strtol.c: Likewise.
52162 2005-03-14 Jim Meyering <jim@meyering.net>
52164 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52165 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52166 to be nonzero so that we (and caller) can detect the difference
52167 between a valid zero-length expansion and an error return, even
52168 when the underlying strftime fails before writing anything into
52171 2005-03-14 Bruno Haible <bruno@clisp.org>
52173 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52174 Update from GNU gettext 0.14.3.
52176 2005-03-10 Jim Meyering <jim@meyering.net>
52178 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52180 2005-03-10 Jim Meyering <jim@meyering.net>
52182 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52183 so that this module works on systems without fchdir.
52185 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52187 Factor int-properties macros into a single file, except for
52188 glibc-related files.
52189 * lib/intprops.h: New file.
52190 * lib/getloadavg.c: Include it instead of limits.h.
52191 (INT_STRLEN_BOUND): Remove.
52192 * lib/human.c: Include intprops.h.
52193 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52194 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52196 * lib/inttostr.h: Include intprops.h instead of limits.h.
52197 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52198 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52199 for consistency with intprops.h.
52200 (time_t_is_integer, twos_complement_arithmetic): Use them.
52201 * lib/sig2str.h: Include <signal.h>, intprops.h.
52202 (INT_STRLEN_BOUND): Remove.
52203 * lib/strftime.c (TYPE_SIGNED): Remove.
52204 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52205 * lib/strtol.c: Adjust comments to match intprops.h.
52206 * lib/userspec.c: Include intprops.h.
52207 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52208 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52209 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52210 instead of rolling our own expressions.
52211 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52213 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52215 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52216 the right thing even if adding 1900 would overflow. Similarly
52217 for tm_mon + 1 and tm_yday + 1.
52218 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52219 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52220 (DO_SIGNED_NUMBER): New macro.
52221 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52223 2005-03-07 Bruno Haible <bruno@clisp.org>
52225 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52227 2005-03-07 Bruno Haible <bruno@clisp.org>
52229 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52231 2005-03-04 Derek R. Price <derek@ximbiot.com>
52233 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52234 (func_import): Only replace files via --import when they have actually
52237 2005-03-03 Derek R. Price <derek@ximbiot.com>
52239 * m4/mmap-anon.m4: New file.
52240 * m4/pagealign_alloc.m4: New file.
52242 2005-03-03 Derek R. Price <derek@ximbiot.com>
52243 Bruno Haible <bruno@clisp.org>
52245 * modules/pagealign_alloc: New file.
52246 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52248 2005-03-03 Derek R. Price <derek@ximbiot.com>
52249 Bruno Haible <bruno@clisp.org>
52251 * lib/pagealign_alloc.h: New file.
52252 * lib/pagealign_alloc.c: New file.
52254 2005-03-03 Bruno Haible <bruno@clisp.org>
52256 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52257 Use an all-permissive copyright notice, recommended by RMS.
52259 2005-03-02 Bruno Haible <bruno@clisp.org>
52261 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52262 of AIX, the replacement has to be done only after <string.h> is
52263 included, therefore not in config.h. stpncpy.h does the replacement,
52264 and stpncpy.c uses it.
52266 2005-03-02 Bruno Haible <bruno@clisp.org>
52268 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52271 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52273 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52274 The workaround isn't strictly needed for POSIX conformance, and
52275 it's too much of a pain to configure and maintain. We'll ask
52276 people to fix their kernels instead.
52277 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52278 (NANOSLEEP_BUG_WORKAROUND): Remove.
52279 (xnanosleep): Remove the workaround.
52281 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52283 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52284 Reported by Derek Price.
52285 (Include): Add "timespec.h".
52287 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52289 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52291 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52292 to detect nanosleep bug.
52294 2005-03-01 Bruno Haible <bruno@clisp.org>
52296 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52298 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52300 * modules/gethrxtime: New file.
52301 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52302 (Depends-on): Add gethrxtime.
52303 (configure.ac): Add gl_XNANOSLEEP.
52304 (Makefile.am): Remove lib_SOURCES line.
52306 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52308 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52309 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52311 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52313 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52314 * lib/timespec.h (gettime): Return void, since it always
52315 succeeds now. All uses changed.
52316 * lib/gettime.c (gettime) Likewise.
52317 [HAVE_NANOTIME]: Prefer nanotime.
52318 Assume gettimeofday succeeds, as POSIX requires.
52319 Assime time () succeeds, since other code already does.
52320 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52321 (timespec_subtract): Remove.
52322 (NANOSLEEP_BUG_WORKAROUND): New constant.
52323 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52324 things considerably. Use it only on GNU/Linux hosts, since the
52325 workaround shouldn't be needed elsewhere.
52327 2005-02-24 Bruno Haible <bruno@clisp.org>
52329 * modules/gettext (Files): Add m4/glibc2.m4.
52331 2005-02-24 Bruno Haible <bruno@clisp.org>
52333 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52334 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52336 Update from GNU gettext 0.14.2.
52337 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52339 2005-02-24 Bruno Haible <bruno@clisp.org>
52341 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52342 * lib/config.charset: Update from GNU gettext 0.14.2.
52344 2005-02-24 Bruno Haible <bruno@clisp.org>
52346 * lib/gettext.h: Update from GNU gettext 0.14.2.
52348 2005-02-23 Simon Josefsson <jas@extundo.com>
52350 * m4/iconvme.m4: New file.
52352 2005-02-23 Jim Meyering <jim@meyering.net>
52354 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52356 Thanks to Bruno Haible for catching it.
52358 2005-02-22 Simon Josefsson <jas@extundo.com>
52360 * modules/iconvme: New file.
52362 * MODULES.html.sh: Add iconvme.
52364 2005-02-22 Simon Josefsson <jas@extundo.com>
52366 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52368 2005-02-22 Simon Josefsson <jas@extundo.com>
52370 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52372 2005-02-22 Jim Meyering <jim@meyering.net>
52374 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52377 2005-02-20 Neil Conway <neilc@samurai.com>
52379 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52380 returned by OSX/Darwin if the specified buffer is not large
52381 enough for the hostname.
52383 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52385 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52386 pass it to _help, otherwise the latter coredumps trying to
52387 dereference state.root_argp.
52389 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52391 * modules/chdir-long (Depends-on): Add memrchr.
52392 * modules/memrchr (Files): Add lib/memrchr.h.
52393 (Include): "memrchr.h".
52395 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52397 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52399 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52401 * lib/memrchr.h: New file.
52402 * lib/chdir-long.c: Include it.
52403 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52404 Don't bother including stddef.h.
52406 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52408 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52410 Include <sys/types.h>, for dev_t.
52411 (ME_DUMMY, ME_REMOTE): Move from here....
52412 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52413 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52415 Include mountlist.h first, to test the interface.
52417 2005-01-29 Bruno Haible <bruno@clisp.org>
52419 * lib/progname.c (program_name): Initialize.
52420 Needed when linking statically on MacOS X.
52422 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52424 Sync from coreutils.
52425 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52426 (Depends-on): Add c-strtod.
52427 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52429 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52431 Sync from coreutils.
52432 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52434 Remove files that are specific to coreutils.
52435 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52437 2005-01-28 Bruno Haible <bruno@clisp.org>
52439 * modules/javacomp: New file.
52440 * MODULES.html.sh (Java): Add javacomp.
52442 2005-01-28 Bruno Haible <bruno@clisp.org>
52444 * m4/javacomp.m4: New file, from GNU gettext.
52446 2005-01-28 Bruno Haible <bruno@clisp.org>
52448 * lib/javacomp.sh.in: New file, from GNU gettext.
52449 * lib/javacomp.h: New file, from GNU gettext.
52450 * lib/javacomp.c: New file, from GNU gettext.
52452 2005-01-26 Simon Josefsson <jas@extundo.com>
52454 * lib/gai_strerror.c: Use GPL in header.
52456 2005-01-26 Bruno Haible <bruno@clisp.org>
52458 * modules/javaexec: New file.
52459 * MODULES.html.sh (Java): Add javaexec.
52461 2005-01-26 Bruno Haible <bruno@clisp.org>
52463 * m4/javaexec.m4: New file, from GNU gettext.
52465 2005-01-26 Bruno Haible <bruno@clisp.org>
52467 * lib/javaexec.sh.in: New file, from GNU gettext.
52468 * lib/javaexec.h: New file, from GNU gettext.
52469 * lib/javaexec.c: New file, from GNU gettext.
52471 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52473 * modules/lchown (Depends-on): Remove lchown.h
52475 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52477 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52478 must be defined if the header file was not found, in order
52479 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52481 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52483 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52484 initializers for struct pentry_state.
52485 (__argp_error): Check return value of __asprintf
52486 (__argp_failure): Translate error message
52488 * lib/argp-parse.c: Removed braces around the expansion of N_()
52490 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52492 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52493 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52494 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52495 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52496 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52497 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52498 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52499 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52500 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52501 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52502 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52503 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52504 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52505 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52506 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52507 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52508 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52509 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52510 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52511 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52512 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52513 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52514 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52515 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52516 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52517 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52518 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52519 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52520 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52521 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52522 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52523 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52524 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52525 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52526 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52527 Use an all-permissive copyright notice, recommended by RMS.
52529 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52531 * modules/chdir-long (Depends-on): Remove mempcpy.
52533 2005-01-21 Jim Meyering <jim@meyering.net>
52535 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52536 same value as for Solaris 9.
52538 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52539 component length. This included changing the parameter to be
52540 of type `char *' rather than `char const *'.
52541 * lib/chdir-long.h (chdir_long): Update prototype.
52543 * lib/openat.c (fdopendir, fstatat): New functions.
52544 * lib/openat.h: Include headers required for use of DIR and struct
52546 [AT_SYMLINK_NOFOLLOW]: Define.
52547 (fdopendir, fstatat): Add prototypes.
52549 2005-01-21 Bruno Haible <bruno@clisp.org>
52551 * modules/classpath: New file.
52552 * MODULES.html.sh (Java): Add classpath.
52554 2005-01-21 Bruno Haible <bruno@clisp.org>
52556 * lib/classpath.h: New file, from GNU gettext.
52557 * lib/classpath.c: New file, from GNU gettext.
52559 2005-01-20 Simon Josefsson <jas@extundo.com>
52561 * modules/version-etc-fsf: New file.
52563 2005-01-20 Simon Josefsson <jas@extundo.com>
52565 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52566 * lib/version-etc.c: Remove version_etc_copyright.
52567 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52568 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52570 2005-01-20 Simon Josefsson <jas@extundo.com>
52572 * lib/base64.h (isbase64): Add.
52574 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52575 using a unsigned prototype, don't inline.
52576 (base64_decode): Use it.
52578 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52580 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52583 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52585 * lib/save-cwd.c (save_cwd): Remove code to support the case
52586 where fchdir is missing or flaky.
52588 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52590 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52592 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52594 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52595 AC_LIBSOURCES now does this.
52596 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52597 with new ullong_max module.
52599 2005-01-19 Bruno Haible <bruno@clisp.org>
52601 * modules/sh-quote: New file.
52602 * MODULES.html.sh (Executing programs): Add sh-quote.
52604 2005-01-19 Bruno Haible <bruno@clisp.org>
52606 * lib/sh-quote.h: New file, from GNU gettext.
52607 * lib/sh-quote.c: New file, from GNU gettext.
52609 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52611 Merge from coreutils.
52612 * m4/ullong_max.m4: New file.
52613 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52614 (gl_MACROS): Assume localeconv exists.
52616 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52618 Merge changes from coreutils, as described below in several
52619 changelogs dated today.
52621 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52622 (O_DIRECTORY): Remove; not needed here, since "." must be
52623 a directory. All uses removed.
52624 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52625 universal on Suns, and we also need to test for IRIX.
52626 Revamp code to use 'if' rather than '#if'.
52627 Avoid unnecessary comparison of cwd->desc to 0.
52629 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52630 for known valid error numbers rather than observed invalid ones.
52632 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52634 * modules/ullong_max: New file.
52636 * modules/chdir-long, modules/openat: New files.
52637 * modules/save-cwd (Depends-on): Depend on chdir-long.
52638 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52640 2005-01-18 Jim Meyering <jim@meyering.net>
52642 Merge from coreutils.
52643 * m4/chdir-long.m4, m4/openat.m4: New files.
52644 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52645 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52646 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52647 is sane and DOES follow symlinks. Besides, testing 20 different
52648 systems found no broken chown implementations.
52649 Prompted by a change in rsync's copy of this macro.
52650 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52652 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52654 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52655 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52656 NULL-means-set-to-current-time semantics.
52657 Remove temporary file immediately, rather than waiting
52658 for configure's at-exit trap code to do it.
52660 2005-01-18 Jim Meyering <jim@meyering.net>
52662 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52664 * lib/utimens.c (futimens): Account for the fact that futimes
52665 can also fail with errno == ENOSYS or errno == ENOENT.
52666 Patch from Dmitry V. Levin.
52668 Change the name of the robust chdir function from chdir to chdir_long.
52669 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52670 (restore_cwd): Use chdir_long, not chdir.
52671 * lib/chdir-long.c: Renamed from chdir.c.
52672 * lib/chdir-long.h: Renamed from chdir.h.
52673 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52676 2005-01-18 Bruno Haible <bruno@clisp.org>
52678 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52679 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52680 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52681 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52682 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52683 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52684 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52685 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52686 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52687 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52688 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52689 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52690 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52691 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52692 Use an all-permissive copyright notice, recommended by RMS.
52694 2005-01-18 Bob Proulx <bob@proulx.com>
52696 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52697 simplify offsetof() macro construct to avoid compile failure with
52698 native HP-UX 11.0 ANSI C compiler.
52700 2005-01-17 Bruno Haible <bruno@clisp.org>
52702 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52703 redundant because stpncpy.m4 takes care of it.
52705 2005-01-17 Bruno Haible <bruno@clisp.org>
52707 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52709 2005-01-17 Bruno Haible <bruno@clisp.org>
52711 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52714 2005-01-17 Bruno Haible <bruno@clisp.org>
52716 * lib/fwriteerror.h (fwriteerror): Change specification to include
52718 * lib/fwriteerror.c: Include <stdbool.h>.
52719 (fwriteerror): At the end, close the file stream. Record whether
52720 stdout was already closed.
52722 2005-01-17 Bruno Haible <bruno@clisp.org>
52724 * lib/execute.c (environ): Declare if needed.
52725 * lib/pipe.c (environ): Likewise.
52726 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52728 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52730 * modules/argp: Depend on vsnprintf
52732 2005-01-10 Jim Meyering <jim@meyering.net>
52734 * modules/closeout (Depends-on): Add atexit.
52736 2005-01-06 Bruno Haible <bruno@clisp.org>
52738 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52740 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52742 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52743 definitions to be after all include files, to avoid collisions.
52744 Problem reported by Bob Proulx.
52746 2005-01-04 Jim Meyering <jim@meyering.net>
52748 Changes imported from coreutils.
52749 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52750 as the mkstemp template, use a temporary directory and an
52751 8.3-friendly template to avoid trouble on systems like DJGPP.
52752 Reported by Juan M. Guerrero via Stepan Kasal.
52753 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52754 close. Remove the temporary directory right away, rather than waiting
52755 for configure's at-exit trap code to do it.
52756 Suggestion from Stepan Kasal.
52758 2005-01-01 Simon Josefsson <jas@extundo.com>
52760 * gnulib-tool: Print #include directives when --import'ing.
52762 2004-12-28 Simon Josefsson <jas@extundo.com>
52764 * tests/test-base64.c: Include required header files. Remove
52767 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52769 * modules/error (Depends-on): Remove gettext.
52771 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52773 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52774 not needed. This removes a dependency on the gettext module.
52775 [defined _LIBC]: Do not include <libintl.h>; not needed.
52777 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52779 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52780 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52782 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52784 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52787 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52789 * modules/getdate (Depends-on): Remove alloca-opt.
52791 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52793 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52795 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52797 * lib/argp-parse.c: Include <stddef.h>.
52798 (alignof, alignto): New macros.
52799 (parser_init): Don't assume that void * is aligned sufficiently
52802 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52803 need to extend the stack.
52804 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52807 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52809 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52811 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52813 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52814 (2004-10-24) change. Apparently this was a false alarm.
52816 * modules/getdate: Depend on alloca-opt, not alloca.
52818 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52820 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52821 Remove now-obsolete comment about AIX.
52822 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52823 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52824 (YYMAXDEPTH): New macro.
52826 2004-12-18 Simon Josefsson <jas@extundo.com>
52828 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52830 2004-12-18 Bruno Haible <bruno@clisp.org>
52832 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52834 2004-12-18 Bruno Haible <bruno@clisp.org>
52836 * lib/fatal-signal.c (fatal_signals): Make non-const.
52837 (init_fatal_signals): New function.
52838 (uninstall_handlers, install_handlers): Ignore signals that were set to
52840 (at_fatal_signal): Call init_fatal_signals.
52841 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52843 Reported by Paul Eggert.
52845 2004-12-18 Bruno Haible <bruno@clisp.org>
52847 * doc/alloca.texi: New file.
52848 * doc/alloca-opt.texi: New file.
52850 2004-12-17 Jim Meyering <jim@meyering.net>
52852 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52853 Otherwise, install-sh could exit with improper exit status when
52854 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52856 2004-12-16 Simon Josefsson <jas@extundo.com>
52858 * tests/test-base64.c: Add license.
52860 2004-12-15 Stepan Kasal <address@hidden>
52862 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52864 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52866 * modules/getcwd (Files): Add m4/d-ino.m4.
52867 Suggested by Mark D. Baushke.
52869 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52871 * lib/getdate.y (textint): New member "negative".
52872 (time_zone_hhmm): New function.
52873 Expect 14 shift-reduce conflicts, not 13.
52874 (o_colon_minutes): New rule.
52875 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52876 (yylex): Set the "negative" member of signed numbers.
52878 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52880 * doc/getdate.texi (Time of day items, Time zone items):
52881 Describe new formats +00:00, UTC+00:00.
52883 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52885 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52886 spurious "-l"s. Problem reported by Stepan Kasal.
52888 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52890 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52891 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52893 2004-12-04 Simon Josefsson <jas@extundo.com>
52895 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52896 Vandoorselaere <yoann@prelude-ids.org>.
52898 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52900 Changes imported from coreutils.
52901 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52903 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52905 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52907 Changes imported from coreutils.
52908 * lib/hard-locale.c: Assume <locale.h> exists.
52909 Include "strdup.h".
52910 (GLIBC_VERSION): New macro.
52911 (hard_locale): Assume setlocale exists.
52912 Rewrite to avoid #ifdef.
52913 Use strdup rather than malloc + strcpy.
52914 * lib/human.c: Assume <locale.h> exists.
52915 (human_readable): Assume localeconv exists.
52917 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52919 * modules/hard-locale (Depends-on): Add strdup.
52921 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52923 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52924 convert T2, not T. (Imported from libc.)
52926 2004-11-30 Simon Josefsson <jas@extundo.com>
52928 * modules/restrict (License): Change to LGPL.
52930 2004-11-30 Simon Josefsson <jas@extundo.com>
52932 * m4/restrict.m4: Add copyright and copying conditions.
52934 2004-11-30 Simon Josefsson <jas@extundo.com>
52936 * m4/base64.m4: New file.
52938 2004-11-30 Simon Josefsson <jas@extundo.com>
52940 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52943 * tests/test-base64.c: New file.
52945 * modules/base64: New file.
52947 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52949 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52950 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52952 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52954 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52956 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52957 (__getcwd.c): Don't restore errno; glibc doesn't.
52958 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52959 first, falling back to our code only if its results look suspicious.
52960 Ensure that the resulting buffer is only as large as necessary.
52962 * lib/readutmp.c: Include readutmp.h first.
52963 Include <errno.h>, since readutmp.h no longer does that.
52964 * lib/readutmp.h: Don't include <errno.h>,
52965 <sys/param.h>, <time.h>; not needed to establish interface.
52966 (errno): Remove decl.
52967 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52968 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52969 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52971 2004-11-28 Simon Josefsson <jas@extundo.com>
52973 * lib/base64.h, base64.c: New file.
52975 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52977 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52979 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52981 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52982 (Depends-on): Remove pathmax, same. Add mempcpy.
52983 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52984 (Makefile.am): Append getcwd.h to lib_SOURCES.
52985 (Include): Add getcwd.h.
52986 (Maintainer): Change from Jim Meyering to "all, glibc",
52987 since getdate now uses intended-for-glibc code.
52988 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52989 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52991 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52993 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52994 HP's ANSI C compiler.
52995 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52996 Declaring int functions causes warnings on some modern systems and
52997 shouldn't be needed to compile on ancient ones.
52998 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53001 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53002 with the following changes.
53003 (__set_errno): Parenthesize properly.
53004 Include <stdbool.h>.
53005 (MIN, MAX, MATCHING_INO): New macros.
53006 (__getcwd): Define with prototype, not K&R form.
53007 Use heuristics to allocate default buffer on stack if possible.
53008 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53009 behavior, and to avoid the PATH_MAX limit when computing
53011 Use MATCHING_INO to compare inode number to file.
53012 Check for arithmetic overflow in size calculations.
53013 Fix bug in reallocation of dot array that caused getcwd to fail
53014 on directories nested deeper than 75.
53015 Be more careful about saving errno on error.
53016 Do not use realloc; use only free+malloc, as this is a bit
53017 more flexible and avoids a needless copy operation.
53018 Do not inspect st_dev and st_ino for symbolic links; POSIX
53019 doesn't specify the latter.
53020 Check for closedir errors.
53021 Avoid needless casts.
53022 Use "#ifdef weak_alias" around weak_alias, to be like other
53024 The following changes to getcwd.c have effect only when used in
53025 gnulib; they have no effect inside glibc proper.
53026 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53027 as alloca isn't used.
53028 (alloca, __alloca): Likewise.
53029 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53030 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53031 unconditionally, as gnulib assumes C89 or better.
53032 Do not include <sys/param.h>.
53033 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53034 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53036 (NULL) [!defined NULL]: Remove; we assume C89 or better.
53037 Include <dirent.h> in a way that is compatible with modern Autoconf.
53038 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53039 New macros, if not already defined.
53040 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53041 Use "_LIBC", not "defined _LIBC", for consistency.
53042 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53044 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53045 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
53046 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53047 credit only to Jim Meyering and adjust the copyright dates.
53048 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53049 <stdlib.h>, <unistd.h>, "pathmax.h".
53050 Instead, include "xgetcwd.h" (first) and "getcwd.h".
53051 (INITIAL_BUFFER_SIZE): Remove.
53052 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53054 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53056 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53057 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
53058 Use the _ONCE methods, for efficiency.
53059 Check for fcntl.h. In test program, include <errno.h>
53060 and <fcntl.h> if available. Remove old K&R cruft from
53061 test program. Check for common errors in GNU/Linux,
53062 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53063 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53064 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53065 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53067 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53068 accommodate new getcwd.c.
53069 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53070 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53071 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53072 that's all we need now.
53074 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53076 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53077 argp-parse.c depends on getopt internals, that means we should
53078 always use our getopt, to be on the safe side.
53079 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53080 order not to spoil the result of an eventual previous invocation
53081 of gl_GETOPT_SUBSTITUTE.
53083 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53085 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53086 redefinition warnings. To avoid them, include the defines
53087 in `#if !defined __need_getopt ... #endif'. The only place
53088 where __getopt_argv_const is used is in definitions
53089 of getopt_long and getopt_long_only below, which are as well
53090 protected by `#ifndef __need_getopt'.
53091 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53092 __need_getopt after including <stdio.h> and <unistd.h> These
53093 headers might have defined it.
53095 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53097 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53099 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53101 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53102 (futimens): New function, which uses futimes if available.
53103 (futimens, utimens): Support timespec==NULL, with same semantics
53104 as utime and utimens.
53105 * lib/utimens.h (futimens): New decl.
53107 2004-11-23 Jim Meyering <jim@meyering.net>
53109 * lib/getopt_.h: Remove trailing blanks.
53111 2004-11-23 Jim Meyering <jim@meyering.net>
53113 * lib/__fpending.c: Add comment.
53115 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53117 * modules/canonicalize (Depends-on): Add xreadlink.
53118 Problem reported by James Youngman.
53120 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53122 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53124 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53125 optopt): Use them instead of invoking ## directly; otherwise, the
53126 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53128 2004-11-19 Bruno Haible <bruno@clisp.org>
53130 * lib/strtok_r.c: Move comments from here...
53131 * lib/strtok_r.h: ... to here.
53133 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53135 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53136 implementations that mishandle size_t overflow.
53138 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53140 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53141 might fail. Problem reported by Yoann Vandoorselaere.
53142 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53143 implementations that mishandle size_t overflow.
53145 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53147 * modules/canon-host (Depends-on): Add strdup.
53149 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53151 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53153 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53155 * lib/canon-host.c: Include "strdup.h".
53156 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53157 Use strdup instead of malloc/strcpy to duplicate strings.
53159 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53160 (human_space_before_unit): New constant.
53161 * lib/human.c (human_readable): Support it.
53163 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53164 (xgetcwd): Set errno correctly when failing.
53165 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53166 the failure is actually due to a PATH_MAX problem.
53168 Further getopt changes to make it more likely that glibc will
53169 buy the changes back.
53170 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53171 (getopt): Use it, so to preserve glibc semantic
53172 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53173 when compiling for libc.
53174 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53175 (getopt_long, getopt_long_only): Use it.
53177 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53178 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53179 (getopt): Argv is now char * const *, as per standard.
53180 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53181 not char *__getopt_argv_const *.
53182 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53183 _getopt_long_only_r): Likewise.
53184 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53185 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53186 _getopt_long_r, _getopt_long_only_r): Likewise.
53187 * lib/getopt_.h (__getopt_argv_const): Remove.
53188 (getopt): Argv is now char * const *, as per standard.
53190 * lib/getdate.y (tORDINAL): New token.
53191 (day, relunit): Allow it for relative times.
53192 (relative_time_table): Use tORDINAL for ordinals.
53194 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53196 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53197 Document that "second" isn't allowed as an ordinal number.
53199 2004-11-16 Jim Meyering <jim@meyering.net>
53201 * modules/closeout (Depends-on): Add fpending.
53203 2004-11-15 Jim Meyering <jim@meyering.net>
53205 * lib/closeout.c: Include "__fpending.h" once again.
53206 Include <stdbool.h>.
53207 (close_stdout): Don't fail just because stdout was closed initially,
53208 since some programs don't write to stdout in the normal course of
53209 operation (other than --version and --help), and we don't want this
53210 function to make e.g. `touch file >&-' fail.
53211 But do fail if it was closed and someone has tried to write to it.
53212 E.g., `printf foo >&-' must fail.
53214 2004-11-13 Jim Meyering <jim@meyering.net>
53216 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53218 2004-11-12 Simon Josefsson <jas@extundo.com>
53220 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53221 small doc fix is still pending.
53223 2004-11-11 Simon Josefsson <jas@extundo.com>
53225 * modules/strtok_r: New file.
53227 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53230 2004-11-11 Simon Josefsson <jas@extundo.com>
53232 * m4/strtok_r.m4: New file.
53234 * m4/getopt.m4: Replace opterr.
53236 2004-11-11 Simon Josefsson <jas@extundo.com>
53238 * lib/strtok_r.h, strtok_r.c: New file.
53240 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53242 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53243 of replacing opterr, getopt, etc. This should handle the
53244 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53246 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53248 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53249 we can stop lying to compilers about the constness of argv when we
53250 are compiled outside glibc.
53251 (getopt, getopt_long, getopt_long_only): Use it.
53252 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53253 _getopt_internal, getopt): Likewise.
53254 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53255 _getopt_long_only_r): Likewise.
53256 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53257 _getopt_long_r, _getopt_long_only_r): Likewise.
53259 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53260 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53261 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53262 the other external symbols.
53263 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53264 declaration, since the above renaming now works around collisions.
53266 2004-11-11 Jim Meyering <jim@meyering.net>
53268 * lib/linebreak.c: Remove trailing blanks.
53269 * lib/alloca_.h: Likewise.
53270 * lib/acosl.c: Likewise.
53271 * lib/euidaccess.c: Likewise.
53272 * lib/allocsa.h: Likewise.
53274 2004-11-10 Simon Josefsson <jas@extundo.com>
53276 * m4/getaddrinfo.m4: New file.
53278 2004-11-10 Simon Josefsson <jas@extundo.com>
53280 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53282 2004-11-10 Simon Josefsson <jas@extundo.com>
53284 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53287 * modules/getaddrinfo: New file.
53289 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53291 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53293 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53295 * lib/mktime.c (SHR): New macro, which is a portable
53296 substitute for >> that should work even on Crays.
53297 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53298 Problem reported by Mark D. Baushke in
53299 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53300 * lib/getdate.y (SHR): Likewise.
53302 * lib/strftime.c (SHR): Likewise.
53304 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53305 quote_these_too, so that right shifts are well defined. All uses
53308 2004-11-10 Jim Meyering <jim@meyering.net>
53310 Ensure that no close failure goes unreported.
53311 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53312 return early when it seems there's nothing to flush.
53313 Don't include __fpending.h.
53315 2004-11-10 Jim Meyering <jim@meyering.net>
53317 * modules/closeout (Depends-on): Remove fpending.
53319 2004-11-10 Jim Meyering <jim@meyering.net>
53321 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53323 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53325 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53327 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53328 and AC_REQUIRE when possible, to avoid duplicate checks.
53329 Check for <wchar.h>.
53331 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53333 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53335 2004-11-09 Bruno Haible <bruno@clisp.org>
53337 * m4/sockpfaf.m4: New file.
53339 2004-11-05 Bruno Haible <bruno@clisp.org>
53341 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53342 Reported by Mark D. Baushke <mdb@cvshome.org>.
53344 2004-11-04 Bruno Haible <bruno@clisp.org>
53346 2004-09-11 Bruno Haible <bruno@clisp.org>
53347 * allocsa.valgrind: New file.
53348 2004-02-06 Bruno Haible <bruno@clisp.org>
53349 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53350 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53351 Reported by Christopher Seip <chris.seip@hp.com>.
53353 2004-11-04 Bruno Haible <bruno@clisp.org>
53355 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53356 (Makefile.am): Distribute it.
53358 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53360 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53361 with errno == ERANGE if the buffer is too small.
53362 Problem reported by Mark D. Baushke.
53364 2004-11-03 Albert Chin <china@thewrittenword.com>
53365 Paul Eggert <eggert@cs.ucla.edu>
53367 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53368 equivalent, substitute $ac_type for equivalent type rather than
53369 blindly using uint32_t *always* which won't work if uint32_t is not
53370 available. Define _UINT32_T to work around typedef of uint32_t if
53371 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53374 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53376 * m4/jm-macros.m4: Sync from coreutils.
53377 (gl_MACROS): Check for mbrlen, for pathchk.
53378 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53380 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53382 * lib/xreadlink.c (MAXSIZE): New macro.
53383 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53384 size does not exceed MAXSIZE. Avoid cast.
53385 As suggested by Mark D. Baushke in
53386 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53387 if readlink fails with buffer size just under MAXSIZE, try again
53390 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53392 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53394 2004-11-02 Derek R. Price <derek@ximbiot.com>
53395 and Paul Eggert <eggert@cs.ucla.edu>
53397 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53398 (get_date): Overparenthesize to avoid GCC warning.
53400 2004-11-02 Bruno Haible <bruno@clisp.org>
53402 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53405 2004-11-02 Bruno Haible <bruno@clisp.org>
53407 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53408 function returns void.
53410 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53412 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53413 fflush_unlocked, flockfile, funlockfile, funlockfile,
53414 fputs_unlocked, putc_unlocked.
53416 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53418 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53419 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53422 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53424 * modules/getdate (Files): Add doc/getdate.texi.
53425 (Depends-on): Add setenv, xalloc.
53427 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53429 * lib/getdate.y: Add support for TZ="foo" within a date string.
53430 Fix some bugs near time_t boundaries. Reject dates with
53431 out-of-range components, e.g., "Sept 31".
53432 Include <stdlib.h>, "setenv.h", "xalloc.h".
53433 (ISDIGIT_LOCALE): Remove; unused.
53434 Note that the TZ and time functions used here are not reentrant.
53435 (mktime_ok, get_tz): New functions.
53436 (TZBUFSIZE): New constant.
53437 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53438 This requires that we sometimes generate our own TZ="XXX..." setting.
53440 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53442 * doc/getdate.texi: New file, from coreutils with modifications for
53443 the new TZ parsing.
53445 2004-10-27 Derek R. Price <derek@ximbiot.com>
53447 * lib/mktime.c (not_equal_tm): Remove redundant check.
53449 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53451 * modules/regex (lib_SOURCES): Add regex.c.
53452 Reported by James Youngman in
53453 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53455 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53457 * lib/getdate.y: Use Bison 1.875 features, and some minor
53458 code cleanups. This change does not affect semantics.
53459 Don't include <stdlib.h>; no longer needed.
53460 Don't include unlocked-io.h; only the "#if TEST" code uses
53461 stdio, and performance isn't crucial there.
53462 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53463 Bison 1.875 features as described below.
53464 All uses of "PC." replaced by "pc->".
53465 (YYSTYPE): Add a forward declaration.
53466 (yylex, yyerror): Use full prototypes in forward decls.
53467 Use "%pure-parser" rather than obsolescent "%pure_parser".
53468 Use %parse-param and %lex-param instead of obsolescent
53469 YYPARSE_PARAM and YYLEX_PARAM.
53470 (meridian_table, month_and_day_table, time_units_table,
53471 relative_time_table, time_zone_table, military_table,
53472 lookup_zone, lookup_word, get_date):
53473 Use NULL instead of 0 where appropriate.
53474 (to_hour): Avoid abort (), to avoid a dependency on
53476 (yyerror, yylex): Now accepts parser_control * arg.
53477 (main) [TEST]: Use '\0' rather than 0 for char.
53479 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53481 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53483 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53485 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53486 It's now the caller's responsibility to handle the case where
53487 !HAVE_GETPAGESIZE && !defined getpagesize.
53489 * lib/mktime.c (leapyear): Arg is long int, not int.
53491 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53493 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53495 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53497 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53498 missing. Problem reported by James Youngman.
53500 2004-10-16 Simon Josefsson <jas@extundo.com>
53502 * gnulib-tool: Fix comments. Fix parse problem.
53503 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53505 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53507 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53508 implementation of getopt_long. Problem reported by Alexander Taler in:
53509 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53511 2004-10-15 Bruno Haible <bruno@clisp.org>
53513 * gnulib-tool: Untabify. Initialize supplied_libname.
53514 (func_usage): More homogenous output.
53515 (func_modules_transitive_closure, func_modules_to_filelist,
53516 func_emit_lib_Makefile_am): New functions.
53517 (func_import): New function, extracted from big case statement. Use
53518 func_get_license, func_modules_transitive_closure,
53519 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53520 opt_lgpl. Don't use test -a, as it's not portable.
53521 (func_create_testdir): Use func_modules_transitive_closure,
53522 func_modules_to_filelist, func_emit_lib_Makefile_am.
53524 2004-10-15 Bruno Haible <bruno@clisp.org>
53526 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53528 2004-10-15 Bruno Haible <bruno@clisp.org>
53530 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53531 the portions belonging to each module.
53532 Suggested by Derek Robert Price <derek@ximbiot.com>.
53534 2004-10-12 Simon Josefsson <jas@extundo.com>
53536 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53537 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53540 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53542 * modules/vsnprintf: New file.
53544 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53546 * m4/vsnprintf.m4: New file.
53548 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53550 * lib/vsnprintf.h: New file.
53551 * lib/vsnprintf.c: New file.
53553 2004-10-11 Bruno Haible <bruno@clisp.org>
53555 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53558 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53560 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53562 2004-10-07 Bruno Haible <bruno@clisp.org>
53564 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53565 fits into the provided buffer.
53567 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53569 * lib/diacrit.c, diacrit.h: Add GPL notice.
53571 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53573 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53574 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53575 This avoids a potential constant-folding bug.
53577 2004-10-05 Bruno Haible <bruno@clisp.org>
53579 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53580 for the declaration of strsep.
53582 2004-10-05 Bruno Haible <bruno@clisp.org>
53584 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53586 2004-10-04 Simon Josefsson <jas@extundo.com>
53588 * modules/memmem: New file.
53589 * tests/test-memmem.c: New file.
53590 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53592 2004-10-04 Simon Josefsson <jas@extundo.com>
53594 * m4/memmem.m4: New file.
53596 2004-10-04 Simon Josefsson <jas@extundo.com>
53598 * lib/memmem.h: New file.
53599 * lib/memmem.c: New file, taken from glibc.
53601 2004-10-04 Simon Josefsson <jas@extundo.com>
53603 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53604 '#ifdef USE_UNLOCKED_IO'.
53606 2004-10-04 Simon Josefsson <jas@extundo.com>
53608 * config/srclist.txt: Add memmem from glibc.
53610 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53612 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53614 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53615 modules/exclude, modules/getdate, modules/getline,
53616 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53617 modules/getusershell, modules/linebuffer, modules/md5,
53618 modules/mountlist, modules/posixtm, modules/readtokens,
53619 modules/readutmp, modules/regex, modules/sha1,
53620 modules/version-etc, modules/yesno:
53621 Remove dependency on unlocked-io.
53623 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53625 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53627 * m4/unlocked-io.m4: Add copyright notice.
53628 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53630 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53632 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53633 * lib/xmalloc.c (xmemdup): Likewise.
53634 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53635 XFREE): Remove these long-obsolescent macros.
53636 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53637 * lib/xstrdup.c: Remove.
53639 * lib/regex.c (re_comp): Cast gettext return value to char *,
53640 Problem reported by Martin Neitzel via Mark D. Baushke.
53642 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53644 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53645 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53646 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53647 regex.c, sha1.c, version-etc.c, yesno.c:
53648 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53649 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53650 the includer's responsibility.
53652 Sync from coreutils.
53654 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53655 points to the start of a string, as the C Standard says the
53656 resulting behavior is undefined.
53658 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53659 simple -> simple_backups, numbered_existing ->
53660 numbered_existing_backups, numbered -> numbered_backups
53661 to avoid shadowing problems. All uses changed.
53662 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53663 * lib/backupfile.c (check_extension, numbered_backup):
53664 Rename locals to avoid shadowing 'basename'.
53665 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53668 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53669 * lib/.cvsignore: Add getopt.h.
53671 2004-10-04 Bruno Haible <bruno@clisp.org>
53673 * modules/README: New file.
53674 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53677 2004-10-02 Jim Meyering <jim@meyering.net>
53679 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53681 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53683 * modules/strsep: New file.
53685 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53687 * m4/strsep.m4: New file.
53689 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53691 * lib/strsep.h: New file.
53692 * lib/strsep.c: New file.
53694 2004-10-01 Simon Josefsson <jas@extundo.com>
53696 * lib/snprintf.c (snprintf): Handle size==0.
53698 2004-10-01 Simon Josefsson <jas@extundo.com>
53699 Bruno Haible <bruno@clisp.org>
53701 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53702 (snprintf): Declare 'args'.
53704 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53706 * lib/snprintf.c: Remove comments as to why each header is needed.
53708 2004-10-01 Bruno Haible <bruno@clisp.org>
53710 * MODULES.html.sh: Add strsep.
53712 2004-09-30 Simon Josefsson <jas@extundo.com>
53714 * modules/snprintf: New file.
53716 2004-09-30 Simon Josefsson <jas@extundo.com>
53718 * m4/snprintf.m4: New file.
53720 2004-09-30 Simon Josefsson <jas@extundo.com>
53722 * lib/snprintf.h, lib/snprintf.c: New files.
53724 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53726 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53727 (hol_entry_help): Never translate an empty string.
53728 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53729 * lib/argp.h (OPTION_NO_TRANS): New option.
53731 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53733 * modules/argp (Maintainer): Replace Simon Josefsson
53734 by Sergey Poznyakoff.
53736 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53738 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53739 changes merged back into glibc.
53741 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53743 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53745 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53747 * lib/xvasprintf.c: Include xalloc.h.
53748 (xvasprintf): Use xalloc_die, not xmalloc_die.
53750 2004-09-29 Bruno Haible <bruno@clisp.org>
53752 * modules/alloca-opt: New file, derived from modules/alloca.
53753 * modules/allocsa: Depend on alloca-opt instead of alloca.
53754 * modules/setenv: Likewise.
53755 * modules/vasnprintf: Likewise.
53756 * MODULES.html.sh: Add alloca-opt.
53758 2004-09-28 Simon Josefsson <jas@extundo.com>
53760 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53761 LGPL, and to replace license template from GPL to LGPL.
53763 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53765 * modules/dummy: Change license to LGPL.
53767 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53769 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53771 2004-09-24 Simon Josefsson <jas@extundo.com>
53773 * modules/minmax (License): Change from GPL to LGPL.
53775 2004-09-23 Simon Josefsson <jas@extundo.com>
53777 * gnulib-tool (--import): Typo.
53779 2004-09-23 Simon Josefsson <jas@extundo.com>
53781 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53783 2004-09-22 Bruno Haible <bruno@clisp.org>
53785 * modules/*: Add 'License' field.
53786 * gnulib-tool: Accept --extract-license option.
53787 (func_get_license): New function.
53789 2004-09-21 Bruno Haible <bruno@clisp.org>
53791 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53792 Reported by Simon Josefsson.
53794 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53796 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53797 gl_AC_TYPE_LONG_LONG.
53799 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53801 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53803 2004-09-18 Simon Josefsson <jas@extundo.com>
53804 and Paul Eggert <eggert@cs.ucla.edu>
53806 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53807 calls with autoreconf. Define GL_LIB.
53809 2004-09-14 Karl Berry <karl@gnu.org>
53811 * config/srclist.txt: unsync setenv.c, sigh.
53813 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53815 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53816 Problem reported by Bruno Haible in:
53817 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53819 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53821 * config/srclist.txt: Comment out argp-pvh.c.
53823 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53825 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53826 in case some system header has #define'd it. Problem reported by
53827 Soeren D. Schulze in
53828 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53830 2004-09-09 Karl Berry <karl@gnu.org>
53832 * regex.[ch]: delete from the root. These were supposed to be
53833 synced with emacs cvs, but this has not happened for about
53834 a year, and anyway nothing else uses emacs regex.[ch].
53835 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53836 lib/regex[.ch] is untouched.
53838 2004-09-09 Bruno Haible <bruno@clisp.org>
53840 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53842 2004-09-09 Bruno Haible <bruno@clisp.org>
53844 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53846 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53848 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53850 * modules/xvasprintf: New file.
53851 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53853 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53855 * lib/xvasprintf.h: New file.
53856 * lib/xvasprintf.c: New file.
53857 * lib/xasprintf.c: New file.
53859 2004-09-08 Bruno Haible <bruno@clisp.org>
53861 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53863 2004-09-08 Bruno Haible <bruno@clisp.org>
53865 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53866 length is > INT_MAX.
53867 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53870 2004-09-08 Bruno Haible <bruno@clisp.org>
53872 * lib/stdint_.h: New file, taken from GNU clisp.
53874 2004-09-08 Bruno Haible <bruno@clisp.org>
53875 Oskar Liljeblad <oskar@osk.mine.nu>
53877 * modules/stdint: New file.
53878 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53880 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53882 Import from coreutils.
53883 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53884 strings on unbounded length. alloca's performance benefits aren't
53885 that important here.
53886 (V_STRDUP): Remove.
53887 (parse_with_separator): New function, with most of the internals
53888 of the old parse_user_spec. Allow user to omit both user and group,
53889 for compatibility with FreeBSD.
53890 Clone only the user name, not the entire spec.
53891 Do not set *uid, *gid unless entirely successful.
53892 Avoid memory leak in some failing cases.
53893 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53894 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53895 (parse_user_spec): Rewrite to use parse_with_separator.
53897 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53899 * modules/userspec: Don't depend on alloca.
53901 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53903 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53905 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53907 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53908 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53909 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53911 2004-08-16 Simon Josefsson <jas@extundo.com>
53913 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53914 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53915 Add --dry-run for --import.
53916 Let user provided command line parameters override configure.ac
53919 2004-08-12 Simon Josefsson <jas@extundo.com>
53921 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53922 as discussed with Paul Eggert in threads rooted at
53923 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53925 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53926 Before, the test was empty, and relied on ELIDE_CODE in source
53928 (gl_PREREQ_GETOPT): New macro.
53929 (gl_GETOPT): Use them.
53931 2004-08-12 Simon Josefsson <jas@extundo.com>
53933 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53934 * lib/getopt_.h: Renamed from getopt.h.
53936 2004-08-12 Simon Josefsson <jas@extundo.com>
53938 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53939 Change default library name from libfoo to libgnu.
53940 Now, if you have a configure.ac that says:
53943 gl_MODULES(error getopt etcetera)
53945 you can import all you need by running:
53946 ../gnulib/gnulib-tool --import
53948 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53949 (Makefile.am): Rewrite, use logic from argz.
53950 (Include): Use <getopt.h> instead of "getopt.h".
53952 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53954 * modules/argp (Files): Add m4/unlocked-io.m4.
53955 (Depends-on): Add extensions.
53957 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53959 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53960 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53961 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53962 Check for program_invocation_name, program_invocation_short_name,
53963 flockfile, funlockfile, features.h, _getopt_long_only_r.
53965 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53967 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53968 its complicated substitute.
53969 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53970 and program_invocation_name.
53971 (__argp_basename) [!_LIBC]: Remove; the only use was
53972 replaced by its body.
53973 (__argp_short_program_name): Change condition from
53974 !defined __argp_short_program_name to
53975 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53976 to match argp-namefrob.h.
53977 (__argp_failure): Don't assume strerror_r returns char *.
53978 * lib/argp-parse.c (N_): Define unconditionally.
53979 (argp_default_options): Fill out initializers with 0 to avoid
53982 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53984 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53987 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53989 Merge from coreutils.
53991 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53993 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53994 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53996 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53998 Merge from coreutils.
54000 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54001 wmemchr or wmemcpy. Problem reported by Robert Dahlem
54002 for Reliant Unix 5.43.
54004 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54005 (union fooround): Use uintmax_t, not long int.
54006 The rest is a merge from libc:
54007 [defined _LIBC]: Include <shlib-compat.h>.
54008 (_obstack) [defined _LIBC]: Remove after 2.3.4.
54010 * lib/settime.c (settime): Recode to avoid warning with
54013 * lib/strverscmp.c: Convert to UTF-8.
54015 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54017 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54020 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54022 * modules/xalloc-die: New file.
54023 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54025 * modules/md5 (Files): Add m4/uint32_t.m4.
54026 * modules/sha1: Renamed from modules/sha.
54028 Rename lib/sha.h to lib/sha1.h.
54029 Rename lib/sha.c to lib/sha1.c.
54030 Rename m4/sha.m4 to m4/sha1.m4.
54031 (lib_SOURCES): Likewise.
54032 (configure.ac): Rename gl_SHA to gl_SHA1.
54033 (Include): sha.h -> sha1.h.
54035 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54037 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54038 * m4/sha1.m4: Renamed from sha.m4.
54039 (gl_SHA1): Renamed from gl_SHA. All uses changed.
54041 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54043 * lib/obstack.h (obstack_empty_p):
54044 Don't assume that chunk->contents is suitably aligned.
54045 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54046 Likewise. Problem reported by Benno in
54047 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54049 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54050 readable. This could be improved further but it'd take some work.
54052 2004-08-08 Simon Josefsson <jas@extundo.com>
54054 * modules/xgethostname (Depends-on): Remove exit and error (not
54057 * modules/getpass-gnu: Add getpass.h.
54058 (Depends-on): Add stdbool.
54059 * modules/getpass: Add getpass.h.
54061 2004-08-08 Simon Josefsson <jas@extundo.com>
54063 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54064 Check getpass declaration.
54066 2004-08-08 Simon Josefsson <jas@extundo.com>
54068 * lib/xgethostname.c: Don't include error.h (not used).
54070 * lib/getpass.h: Add.
54071 * lib/getpass.c: Include getpass.h first.
54073 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54075 * lib/xalloc-die.c: New file.
54076 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54078 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54079 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54081 (_, N_, xalloc_die): Move to xalloc-die.c.
54082 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54083 so that we needn't mess with xalloc_msg_memory_exhausted.
54085 * lib/sha1.h: Renamed from sha.h.
54086 (SHA1_H): Renamed from _SHA_H.
54087 (sha1_ctx): Renamed from sha_ctx.
54088 (sha1_init_ctx): Renamed from sha_init_ctx.
54089 (sha1_process_block): Renamed from sha_process_block.
54090 (sha1_process_bytes): Renamed from sha_process_bytes.
54091 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54092 (sha1_read_ctx): Renamed from sha_read_ctx.
54093 (sha1_stream): Renamed from sha_stream.
54094 (sha1_buffer): Renamed from sha_buffer.
54095 * lib/sha1.c: Likewise; renamed from sha.c.
54096 Do not include <sys/types.h>.
54097 Include <stddef.h> rather than <stdlib.h>.
54099 2004-08-08 Bruno Haible <bruno@clisp.org>
54101 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54102 FILESYSTEM_PREFIX_LEN.
54103 * lib/progreloc.c: Likewise.
54104 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54106 2004-08-06 Simon Josefsson <jas@extundo.com>
54108 * modules/progname (Depends-on): Don't depend on stdbool.
54110 2004-08-06 Simon Josefsson <jas@extundo.com>
54112 * modules/getsubopt: New file.
54113 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54116 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54118 More merge from coreutils.
54120 * m4/utimens.m4, m4/utimecmp.m4: New files.
54121 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54122 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54123 prereq.m4, sha.m4: Import changes from coreutils.
54125 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54127 More merge from coreutils.
54128 * modules/raise, modules/readtokens0, modules/utimens:
54129 * modules/utimecmp, module/xnanosleep: New files.
54130 * modules/strftime: Add lib/strftime.h.
54131 Change include from <time.h> to "strftime.h".
54132 * modules/yesno: Add lib/yesno.h.
54133 * modules/backupfile: Remove lib/addext.c.
54134 * modules/euidaccess: Add stat-macros.h.
54135 * modules/canonicalize, modules/euidaccess,
54136 modules/filemode, modules/lchown, modules/makepath,
54137 modules/rmdir, modules/stat: Likewise.
54139 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54142 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54143 SIZE_MAX is a valid preprocessor constant.
54144 (__argp_basename): Change from "#ifndef _LIBC"
54145 to "#ifndef __argp_short_program_name", so that
54146 we don't compile these functions for tar.
54148 More merges from coreutils.
54149 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54150 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54151 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54152 * lib/addext.c: Remove; no longer needed.
54153 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54154 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54155 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54156 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54157 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54158 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54159 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54160 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54161 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54162 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54163 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54164 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54165 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54166 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54167 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54168 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54169 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54170 Import changes from coreutils.
54172 2004-08-05 Simon Josefsson <jas@extundo.com>
54174 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54176 2004-08-05 Simon Josefsson <jas@extundo.com>
54178 * m4/getsubopt.m4: New file.
54180 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54182 Merge from coreutils.
54184 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54185 * m4/getcwd-path-max.m4: New files.
54187 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54188 FILESYSTEM_PREFIX_LEN ->
54189 FILE_SYSTEM_PREFIX_LEN.
54190 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54191 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54192 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54193 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54195 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54196 prerequisite modules now handle the DOS stuff.
54197 Don't check for unistd.h.
54199 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54201 Merge from coreutils.
54203 * lib/.gdb-history: Remove; this doesn't belong here.
54205 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54206 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54207 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54208 * lib/getcwd.c: New files.
54210 * lib/dirname.h: Include <stdbool.h>.
54211 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54212 for consistency with POSIX terminology. All uses changed.
54213 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54214 (strip_trailing_slashes): Use bool for booleans.
54215 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54217 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54218 sometimes returns a positive errno value even when it succeeds.
54219 (print_errno_message) [!LIBC]: Fall back on strerror if
54220 __strerror_r fails.
54222 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54223 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54224 (longest_relative_suffix): New function.
54225 (path_concat): Use it. Assume first argument is not NULL.
54226 Port to DOS. Omit redundant separators.
54227 Report an error instead of returning NULL.
54228 Use mempcpy instead of memcpy.
54229 (xpath_concat): Remove: not declared or used.
54231 * lib/same.h: Include <stdbool.h>
54232 (same_name): Return bool, not int.
54233 * lib/same.c (same_name): Likewise.
54234 (errno): Don't declare; we assume C89 or better now.
54236 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54237 if not already defined.
54239 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54240 * lib/dup-safer.c (errno): Likewise.
54242 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54244 Merge from coreutils.
54245 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54246 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54247 * modules/path-concat: Don't depend on strdup.
54249 2004-08-03 Simon Josefsson <jas@extundo.com>
54251 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54252 * lib/progname.h: Don't include stdbool.h.
54254 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54256 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54257 * MODULES.html.sh (func_all_modules): Remove fatal.
54259 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54261 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54263 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54265 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54268 2004-08-02 Simon Josefsson <jas@extundo.com>
54270 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54271 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54272 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54274 2004-08-01 Simon Josefsson <jas@extundo.com>
54276 * lib/xgetdomainname.c: Include stdlib.h, for free().
54278 2004-07-19 Bruno Haible <bruno@clisp.org>
54280 * MODULES.html.sh (func_all_modules): Add dummy.
54282 2004-07-16 Simon Josefsson <jas@extundo.com>
54284 * modules/dummy: New file.
54286 2004-07-16 Simon Josefsson <jas@extundo.com>
54288 * lib/dummy.c: New file.
54290 2004-07-16 Bruno Haible <bruno@clisp.org>
54292 * lib/backupfile.h: Add extern "C" for C++.
54293 * lib/closeout.h: Likewise.
54294 * lib/copy-file.h: Likewise.
54295 * lib/findprog.h: Likewise.
54296 * lib/full-write.h: Likewise.
54297 * lib/pathname.h: Likewise.
54298 * lib/progname.h: Likewise.
54299 * lib/stpcpy.h: Likewise.
54300 * lib/stpncpy.h: Likewise.
54301 * lib/strcase.h: Likewise.
54302 * lib/strstr.h: Likewise.
54303 * lib/xalloc.h: Likewise.
54305 * lib/mbswidth.h: Add extern "C" for C++.
54306 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54308 2004-07-13 Robert Millan <robertmh@gnu.org>
54310 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54312 2004-07-09 Simon Josefsson <jas@extundo.com>
54314 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54315 failed without this.)
54317 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54319 * modules/chown (Files): Add lib/fchown-stub.c, since
54320 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54322 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54324 * lib/fchown-stub.c: New file.
54326 2004-06-24 Jim Meyering <jim@meyering.net>
54328 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54330 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54332 * modules/argz: Omit "#include".
54334 * MODULES.html.sh (func_all_modules): Add calloc, to match
54335 2004-06-01 addition of calloc module.
54337 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54339 * m4/argz.m4: New file, which is autoupdated from libtool.
54341 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54343 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54346 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54348 * config/srclist-update: Don't insist on "USA." before the
54349 close-comment, as libtool omits the period and puts the */ on a
54351 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54352 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54354 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54356 * modules/argz: New file.
54357 * MODULES.html.sh (func_all_modules): Add argz.
54359 2004-06-12 Jim Meyering <jim@meyering.net>
54360 and Paul Eggert <eggert@cs.ucla.edu>
54362 * modules/hash (Files): Add lib/xalloc.h.
54363 * modules/pipe (Depends-on): Add wait-process.
54364 * modules/stat (Depends-on): Add xalloc.
54365 * modules/userspec (Files): Add lib/userspec.h.
54368 Upgrade from gettext-0.13.
54369 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54370 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54371 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54373 2004-06-10 Jim Meyering <jim@meyering.net>
54375 * lib/calloc.c: New file.
54377 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54379 * lib/getdate.y (yylex): Allow space between sign and number.
54380 Problem reported by Dan Jacobson.
54382 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54384 Merge from coreutils CVS.
54386 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54387 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54388 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54389 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54390 xstrtol.m4: Fix copyright date and/or serial number.
54392 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54393 See if we need an fchown replacement.
54394 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54395 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54396 and use the replacement function if we detect either defect.
54398 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54401 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54402 and Jim Meyering <jim@meyering.net>
54404 Merge from coreutils CVS.
54406 * lib/stat-macros.h: New file, with contents from file-type.h
54407 and coreutils' system.h.
54408 * lib/file-type.c: Include "stat-macros.h".
54409 * lib/file-type.h (file_type): Move all macro definitions to new file,
54412 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54413 Wrap old code with this conditional.
54414 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54415 function that does not dereference symlinks.
54416 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54418 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54419 dependency problems.
54420 (xreadlink): Accept new arg SIZE, for efficiency.
54421 All decls and uses changed.
54422 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54424 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54425 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54427 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54430 2004-06-01 Jim Meyering <jim@meyering.net>
54432 * m4/calloc.m4: New file.
54434 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54436 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54437 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54438 Also, fix a typo in a diagnostic.
54440 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54442 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54443 or AC_FUNC_REALLOC.
54445 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54447 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54448 macros to be defined.
54449 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54450 the allocator returns NULL because the requested size is zero.
54452 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54454 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54455 var. Add comment explaining why libc still defines it. This
54456 merges the following patch from glibc:
54457 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54459 2004-05-20 Andreas Schwab <schwab@suse.de>
54461 * m4/free.m4: Replace free if it not known to work, not the other
54464 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54466 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54467 present in glibc since revision 1.1 of this file.
54468 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54469 obstack_alignment_mask, obstack_alloc, obstack_base,
54470 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54471 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54472 obstack_grow0, obstack_init, obstack_int_grow,
54473 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54474 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54475 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54476 nonexistent functions.
54478 2004-05-18 Karl Berry <karl@gnu.org>
54480 * config/srclist.txt: break link for vasnprintf.c.
54482 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54484 Port obstack to the AS/400, where pointers are 16 bytes wide and
54485 you cannot cast an integer to a valid pointer. This patch is
54486 currently waiting to be integrated into glibc; see
54487 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54489 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54490 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54491 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54492 (struct obstack): temp member is now a union of a pointer and
54493 an integer, instead of an integer. All integer uses changed.
54494 This does not affect the physical layout of struct obstack,
54495 except on hosts (like the AS/400) where the size or alignment of
54496 void * is greater than that of ptrdiff_t.
54497 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54498 __STDC__)]: Store temporary in pointer member of union, not
54500 * lib/obstack.c: Include <stddef.h>, for offsetof.
54501 (struct fooalign): Remove; it doesn't need a name.
54502 (union fooround): Change double to long double, and add void *.
54503 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54504 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54505 not a macro. Hence the values are always int; so remove all
54506 casts-to-int in uses.
54508 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54510 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54511 we can get this patch merged into glibc.
54513 2004-05-17 Derek R. Price <derek@ximbiot.com>
54514 Paul Eggert <eggert@cs.ucla.edu>
54516 * m4/argp: Depend on alloca.
54518 2004-05-17 Derek R. Price <derek@ximbiot.com>
54519 Paul Eggert <eggert@cs.ucla.edu>
54521 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54524 2004-05-17 Bruno Haible <bruno@clisp.org>
54526 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54527 precision that consists of a '.' followed by an empty digit string.
54528 Patch by Tor Lillqvist <tml@iki.fi>.
54530 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54532 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54533 for backward compatibility with older code. We need our own
54534 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54535 it under some other name, and our alloca.h will define it.
54537 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54538 Derek Price <derek@ximbiot.com>
54540 * lib/alloca.c: Include <alloca.h>, to get our interface.
54541 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54542 include <alloca.h> first. Use C89 prototype for alloca; this
54543 requires including <stddef.h> for size_t. Use extern "C" if C++.
54544 Use #elif for simplicity, since we can assume C89 now.
54545 Don't try to source the system alloca.h since it will not be found
54546 and to prevent recursively including its replacement.
54547 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54548 * lib/regex.c: Likewise.
54550 2004-05-16 Derek Price <derek@ximbiot.com>
54551 Paul Eggert <eggert@cs.ucla.edu>
54553 getline cleanup. This changes the getndelim2 API: both order of
54554 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54557 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54558 interface does that.
54559 (getline): Always use getdelim, so that we don't have two
54560 copies of this code.
54561 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54563 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54564 (GETNDELIM2_MAXIMUM): New macro.
54565 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54566 instead of the old practice of delim2==0. All callers changed.
54567 Return -1 on overflow, instead of returning junk.
54568 Do not set *linesize unless allocation succeeds.
54569 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54570 that we include sys/types.h.
54571 * lib/getnline.h: Likewise.
54572 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54573 (getndelim2): Reorder arguments.
54574 * lib/getnline.c (getnline, getndelim):
54575 Don't discard the NMAX argument.
54576 (getnline): Invoke getndelim, to avoid code duplication.
54577 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54578 of (size_t) -1 by callers of the getnline family.
54580 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54582 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54583 Check for gettimeofday.
54584 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54585 Check for settimeofday, stime.
54587 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54589 * lib/nanosleep.c (suspended): Change its type from int to
54590 sig_atomic_t volatile.
54591 (first_call): Make it private to rpl_nanosleep, and have it
54592 be zero initially as that's a bit faster.
54593 (my_usleep): Round up fractional times instead of truncating them,
54594 as this is the usual meaning for 'sleep'.
54596 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54598 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54599 (ENOSYS): Define if not defined.
54600 (settime): Fall back on stime if it exists and settimeofday fails.
54601 But don't bother with fallbacks if a method fails with errno == EPERM.
54603 2004-05-11 Jim Meyering <jim@meyering.net>
54605 Prior to this change, the save_cwd caller required read access to the
54606 current directory on most systems (ones with the fchdir function).
54608 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54609 fails, try write-only, and finally, resort to using xgetcwd.
54611 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54613 * lib/obstack.c, obstack.h: Import changes from libc.
54615 2004-04-28 Bruno Haible <bruno@clisp.org>
54617 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54618 also implicitly appends .exe to executables.
54619 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54620 accepts Windows pathnames.
54621 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54622 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54623 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54624 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54625 Reported by Derek Robert Price <derek@ximbiot.com>.
54627 2004-04-21 Karl Berry <karl@gnu.org>
54629 * config/srclist.txt (localcharset.c): break sync.
54631 2004-04-20 Paul Eggert <eggert@twinsun.com>
54633 * m4/host-os.m4: Add a copyright notice.
54635 2004-04-20 Jim Meyering <jim@meyering.net>
54637 Change UTILS_ to gl_ in AC_DEFINE'd names.
54638 Change utils_- and jm_-prefixed variables, too.
54639 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54640 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54641 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54643 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54644 Don't emit trailing blanks.
54645 Also rename jm_-prefixed variables to have gl_ prefix.
54647 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54648 Also rename jm_-prefixed variables to have gl_ prefix.
54650 * m4/jm-macros.m4: Reflect the renamings.
54651 * m4/prereq.m4: Likewise.
54653 2004-04-20 Jim Meyering <jim@meyering.net>
54655 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54658 2004-04-20 Jim Meyering <jim@meyering.net>
54659 Bruno Haible <bruno@clisp.org>
54661 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54662 memory when realloc fails.
54664 2004-04-19 Jim Meyering <jim@meyering.net>
54666 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54667 now that readutmp.c may call `free (0)'.
54669 2004-04-19 Bruno Haible <bruno@clisp.org>
54671 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54672 * m4/inttypes_h.m4: Likewise.
54673 * m4/stdint_h.m4: Likewise.
54674 * m4/intmax_t.m4: Likewise.
54675 * m4/uintmax_t.m4: Likewise.
54677 2004-04-18 Jim Meyering <jim@meyering.net>
54679 * m4/prereq.m4: Don't forbid jm_ prefix.
54681 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54682 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54683 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54684 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54685 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54686 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54687 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54688 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54689 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54690 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54691 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54692 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54693 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54694 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54695 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54696 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54697 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54698 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54699 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54701 2004-04-18 Jim Meyering <jim@meyering.net>
54703 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54704 failure, don't leak memory and do call END_UTMP_ENT.
54706 2004-04-16 Jim Meyering <jim@meyering.net>
54708 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54709 coreutils' stat program.
54710 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54712 2004-04-11 Paul Eggert <eggert@twinsun.com>
54714 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54716 (CHAR_BIT): Remove, since we assume C89.
54717 Include <stdint.h> if available, as per current Autoconf CVS advice.
54719 2004-03-31 Jim Meyering <jim@meyering.net>
54721 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54722 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54723 * m4/xalloc.m4: Likewise.
54725 2004-03-30 Paul Eggert <eggert@twinsun.com>
54727 Merge from coreutils.
54729 * m4/inttostr.m4: New file.
54730 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54731 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54732 Require gl_CLOCK_TIME.
54733 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54735 2004-03-30 Paul Eggert <eggert@twinsun.com>
54737 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54738 not bool, to be more consistent with Unix conventions.
54739 Suggested by Bruno Haible.
54741 Merge from coreutils.
54743 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54744 * lib/umaxtostr.c: New files.
54746 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54747 the usual <time.h> dance.
54748 (get_date): Change signature to support fractional time stamps.
54749 All callers changed.
54750 * lib/getdate.y: Include "getdate.h" first, as we can now
54751 assume C89 and don't need to worry about 'const'.
54752 Similarly, include "unlocked-io.h" near start, not in middle.
54753 Include <limits.h>.
54754 (textint.value): Use long int rather than int.
54755 (textint.digits): Use size_t rather than int.
54756 (BILLION, LOG10_BILLION): New constants.
54757 (parser_control): New member rel_ns. Members day_ordinal,
54758 time_zone, month, day, hour, minutes, rel_year, rel_month,
54759 rel_day, rel_hour, rel_minutes, rel_seconds
54760 are now long int, not int. Member seconds is now struct timespec,
54761 not int. New member timespec_seen. Members dates_seen, days_seen,
54762 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54764 (%union.intval): Now long int, not int.
54765 New member timespec.
54766 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54767 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54768 (spec): Now is a timespec or an item list.
54769 (timespec, items): New nonterminals.
54770 (time, rel, relunit, number, get_date):
54771 Add support for fractional seconds.
54772 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54773 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54774 (to_hour): First arg is now long int, not int.
54775 (to_year): Returns long int, not int.
54776 Don't treat year -70 like 70.
54777 (tm_diff): Returns long int, not int.
54778 (lookup_word): Use bool instead of int when appropriate.
54779 (yylex): Use size_t for count, not int.
54780 Detect overflow when parsing large integer constants.
54781 Add support for fractions.
54782 (get_date): Make pointers 'const' if possible.
54783 Use more-portable code to detect integer overflow.
54784 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54785 Don't use ctime; it's not reliable if the year has >4 digits.
54787 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54788 This is for compatibility with BSD.
54790 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54791 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54792 From coreutils' system.h.
54794 * lib/userspec.c: Don't include "posixver.h".
54795 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54796 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54797 compatible extension. Simplify code by removing a boolean int
54798 that was always nonzero if a string was nonnull.
54800 2004-03-30 Jim Meyering <jim@meyering.net>
54802 Merge from coreutils.
54804 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54805 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54806 on some systems one must include <grp.h> before it.
54807 Reported by Christian Krackowizer.
54809 2004-03-30 Jim Meyering <jim@meyering.net>
54811 Merge from coreutils.
54813 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54815 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54816 an empty input stream.
54818 * lib/readtokens.c: Include <stdbool.h>.
54819 (readtoken): Use `size_t' rather than int/long.
54820 All callers adjusted.
54821 Use `bool' rather than `int' where appropriate.
54822 Use memset rather than an explicit loop.
54823 Use x2nrealloc rather than xrealloc.
54824 Allow the use of `\0' as a delimiter.
54825 (readtokens): Likewise.
54826 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54828 2004-03-30 Jim Meyering <jim@meyering.net>
54830 * m4/realloc.m4: Remove file, since now it does no more than
54831 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54832 the `configure.ac' section of module/realloc.
54833 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54835 2004-03-30 Bruno Haible <bruno@clisp.org>
54837 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54840 2004-03-29 Paul Eggert <eggert@twinsun.com>
54842 Merge changes to getloadavg.c from coreutils and Emacs.
54844 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54845 Define to an expression, not to the empty string.
54846 Include cloexec.h and xalloc.h.
54847 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54848 Use set_cloexec_flag rather than rolling our own.
54849 * lib/cloexec.c, lib/cloexec.h: New files.
54851 2004-03-29 Paul Eggert <eggert@twinsun.com>
54853 * m4/cloexec.m4: New file.
54855 2004-03-18 Paul Eggert <eggert@twinsun.com>
54857 * lib/getopt.h: Sync with libc CVS.
54859 2004-03-18 Paul Eggert <eggert@twinsun.com>
54860 Bruno Haible <bruno@clisp.org>
54862 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54865 2004-03-18 Paul Eggert <eggert@twinsun.com>
54866 Bruno Haible <bruno@clisp.org>
54868 * lib/mbswidth.h: Include <wchar.h> only if
54869 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54871 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54873 2004-03-09 Paul Eggert <eggert@twinsun.com>
54875 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54876 Sync with libc CVS.
54877 * lib/getopt_int.h: New file, also synced from libc.
54879 2004-03-09 Paul Eggert <eggert@twinsun.com>
54881 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54882 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54883 Bring back getopt.c, getopt.h, getopt1.c.
54885 2004-03-07 Paul Eggert <eggert@twinsun.com>
54887 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54888 All uses changed. Check for sa_sigaction member; this fixes
54889 a bug first reported by Jason Andrade in
54890 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54892 2004-03-07 Paul Eggert <eggert@twinsun.com>
54894 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54895 '#if' expressions. Unlike the code it replaces, it does not
54896 depend on (defined _SC_PAGESIZE). However, it does depend on
54897 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54898 first reported by Jason Andrade in
54899 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54901 2004-02-25 Simon Josefsson <jas@extundo.com>
54903 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54905 2004-02-25 Simon Josefsson <jas@extundo.com>
54907 * lib/strdup.h: New file.
54908 * lib/strdup.c: Include it.
54909 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54910 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54912 2004-02-23 Karl Berry <karl@gnu.org>
54914 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54915 (from fencepost.gnu.org:/gd/gnuorg).
54917 2004-02-23 Karl Berry <karl@gnu.org>
54919 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54920 * config/srclist.txt: add maintain/standards documents.
54922 2004-02-18 Bruno Haible <bruno@clisp.org>
54924 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54925 Reported by Derek Robert Price <derek@ximbiot.com>.
54927 2004-02-16 Karl Berry <karl@gnu.org>
54929 * config/mkinstalldirs, install-sh: update from automake.
54931 2004-02-06 Karl Berry <karl@gnu.org>
54933 * m4/po.m4: update from gettext 0.14.1.
54935 2004-02-06 Karl Berry <karl@gnu.org>
54937 * lib/config.charset: update from gettext 0.14.1.
54939 2004-02-05 Paul Eggert <eggert@twinsun.com>
54941 Add comments and code, prompted by suggestions from Bruno Haible
54943 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54944 describing the enum quoting_style values.
54945 * lib/quotearg.c (quotearg_alloc): New function.
54946 (quotearg_buffer_restyled): Treat lone { and } as special.
54947 Treat = as special. Work around bug with older shells
54948 that "see" a '\' that is really the 2nd byte of a multibyte char.
54949 Quote empty string with shell_quoting_style.
54951 2004-02-03 Bruno Haible <bruno@clisp.org>
54953 * m4/pipe.m4: New file, from GNU gettext.
54955 2004-02-03 Bruno Haible <bruno@clisp.org>
54957 * lib/pipe.h: New file, from GNU gettext.
54958 * lib/pipe.c: New file, from GNU gettext.
54960 2004-01-27 Bruno Haible <bruno@clisp.org>
54962 * m4/execute.m4: New file, from GNU gettext.
54964 2004-01-27 Bruno Haible <bruno@clisp.org>
54966 * lib/execute.h: New file, from GNU gettext.
54967 * lib/execute.c: New file, from GNU gettext.
54968 * lib/w32spawn.h: New file, from GNU gettext.
54970 2004-01-24 Paul Eggert <eggert@twinsun.com>
54972 Merge from diffutils.
54974 * lib/file-type.c (file_type): Add typed memory objects.
54975 * lib/file-type.h (S_TYPEISTMO): New macro.
54977 * lib/c-stack.h (c_stack_action): Remove argv argument.
54978 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54979 (die): Don't calculate message unless segv_action returns.
54980 (get_stack_location, min_address_from_argv, max_address_from_argv,
54981 volatile stack_base, volatile_stack_size): Remove.
54982 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54983 that every segmentation violation is a stack overflow. (Ouch!)
54984 See Debian bug 136249 (still outstanding) for more info about why
54985 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54987 2004-01-24 Paul Eggert <eggert@twinsun.com>
54989 Exit-status fix from coreutils.
54991 Use exit_failure consistently in place of EXIT_FAILURE,
54992 so that program exit statuses are consistent on failure.
54994 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54995 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54996 * lib/argmatch.h: Comment fix to match the above.
54997 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54998 Now a macro referring to exit_failure, instead of a separate
54999 variable. Include "exitfail.h" to get it.
55000 * lib/xstrtol.h: Include "exitfail.h".
55001 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55003 * lib/long-options.c (parse_long_options): Use prototype
55004 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
55007 2004-01-21 Jim Meyering <jim@meyering.net>
55009 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55010 so as not to conflict with a different-sized __mktime_internal
55011 function in GNU libc.
55012 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55013 Problem building statically-linked `ls' reported by Michael Brunnbauer.
55015 2004-01-20 Karl Berry <karl@gnu.org>
55017 * config/config.guess: update from config.
55019 * config/srclistvars.sh: GNUWWWLICENSES for karl.
55021 2004-01-20 Bruno Haible <bruno@clisp.org>
55023 Safer stack allocation.
55024 * lib/setenv.c: Include allocsa.h.
55025 (alloca): Remove fallback definition.
55026 (freea): Remove macro.
55027 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55030 2004-01-20 Bruno Haible <bruno@clisp.org>
55032 * m4/eealloc.m4: New file, from GNU gettext.
55034 2004-01-20 Bruno Haible <bruno@clisp.org>
55036 * m4/allocsa.m4: New file, from GNU gettext.
55038 2004-01-20 Bruno Haible <bruno@clisp.org>
55040 * lib/xallocsa.h: New file, from GNU gettext.
55041 * lib/xallocsa.c: New file, from GNU gettext.
55043 2004-01-20 Bruno Haible <bruno@clisp.org>
55045 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55047 2004-01-20 Bruno Haible <bruno@clisp.org>
55049 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55050 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55053 2004-01-20 Bruno Haible <bruno@clisp.org>
55055 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55058 2004-01-20 Bruno Haible <bruno@clisp.org>
55060 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55062 2004-01-20 Bruno Haible <bruno@clisp.org>
55064 * lib/eealloc.h: New file.
55066 2004-01-20 Bruno Haible <bruno@clisp.org>
55068 * lib/binary-io.h: Avoid warnings on Cygwin.
55070 2004-01-20 Bruno Haible <bruno@clisp.org>
55072 * lib/allocsa.h: New file, from GNU gettext.
55073 * lib/allocsa.c: New file, from GNU gettext.
55075 2004-01-18 Karl Berry <karl@gnu.org>
55077 * doc/gpl.texi, doc/lgpl.texi: new files.
55079 2004-01-18 Karl Berry <karl@gnu.org>
55081 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55082 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55084 2004-01-15 Paul Eggert <eggert@twinsun.com>
55086 Merge from coreutils.
55088 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55089 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55090 (gl_DEFAULT_POSIX2_VERSION): Move
55091 the documentation from 'configure' into 'config.hin',
55092 so that 'configure --help' isn't burdened by it and
55093 we don't have to worry about its formatting there.
55094 Reword the documentation so that it's more succinct
55095 and can be run together into a single paragraph.
55096 * m4/same.m4 (gl_SAME): Check for pathconf.
55098 2004-01-15 Paul Eggert <eggert@twinsun.com>
55100 Merge from coreutils.
55102 * lib/posixver.c: Include posixver.h.
55104 * lib/same.c: Include <stdbool.h>, <limits.h>.
55105 (_POSIX_NAME_MAX): Define if not defined.
55107 (same_name): If file names are silently truncated, report
55108 that the file names are the same if they are the same after
55109 the silent truncation.
55111 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55112 conversion function.
55113 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55114 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55117 2004-01-15 Jim Meyering <jim@meyering.net>
55119 Merge from coreutils.
55121 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55122 if no library is required.
55123 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55124 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55125 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55126 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55127 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55128 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55129 value, $ac_cv_search_crypt, if it's "none required".
55130 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55131 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55132 not gl_FUNC_GETLOADAVG.
55133 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55134 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55136 2004-01-15 Jim Meyering <jim@meyering.net>
55138 Merge from coreutils.
55140 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55141 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55142 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55144 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55145 optional configure-time default.
55147 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55149 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55151 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55153 Merge from coreutils.
55155 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55156 value, $ac_cv_search_nanosleep, if it's "none required".
55158 2004-01-14 Paul Eggert <eggert@twinsun.com>
55160 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55161 with like-named macro in fnmatch.c.
55162 (EXT): Use an internal constant instead.
55164 Merge fnmatch patches from glibc.
55165 * lib/fnmatch.c (mbsinit): Remove define.
55166 Add libc_hidden_ver (__fnmatch, fnmatch).
55167 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55168 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55170 2004-01-14 Karl Berry <karl@gnu.org>
55172 * config/install-sh: update from automake.
55174 2004-01-13 Karl Berry <karl@gnu.org>
55176 * config/install-sh: update from automake.
55178 2004-01-09 Karl Berry <karl@gnu.org>
55180 * config/install-sh: update from automake.
55182 2004-01-05 Karl Berry <karl@gnu.org>
55184 * config/config.{sub,guess}: update from config.
55186 2003-12-31 Karl Berry <karl@gnu.org>
55188 * config/depcomp: update from automake.
55190 2003-12-14 Karl Berry <karl@gnu.org>
55192 * lib/config.charset: update from gettext-runtime.
55194 2003-12-03 Paul Eggert <eggert@twinsun.com>
55196 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55197 Bug reported by Alfred M. Szmidt.
55199 2003-12-03 Bruno Haible <bruno@clisp.org>
55201 * m4/gettext.m4: Upgrade from gettext-0.13.
55202 * m4/po.m4: Upgrade from gettext-0.13.
55203 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55204 * m4/intmax.m4: New file, from gettext-0.13.
55205 * m4/printf-posix.m4: New file, from gettext-0.13.
55207 2003-11-29 Karl Berry <karl@gnu.org>
55209 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55211 2003-11-25 Paul Eggert <eggert@twinsun.com>
55212 Bruno Haible <bruno@clisp.org>
55214 * lib/printf-parse.h: Don't include sys/types.h.
55215 (ARG_NONE): New macro.
55216 (char_directive): Change type of *arg_index fields to size_t.
55217 * lib/printf-parse.c: Don't include sys/types.h.
55218 (SSIZE_MAX): Remove macro.
55219 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55220 Remove unnecessary overflow check.
55221 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55224 2003-11-25 Bruno Haible <bruno@clisp.org>
55226 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55228 2003-11-25 Bruno Haible <bruno@clisp.org>
55230 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55233 2003-11-24 Paul Eggert <eggert@twinsun.com>
55235 * modules/alloca: Remove dependency on xalloc.
55237 2003-11-24 Paul Eggert <eggert@twinsun.com>
55239 * lib/alloca.c: Remove dependency on xalloc module.
55240 (xalloc_die): Remove.
55241 (memory_full) [!defined emacs]: New macro.
55242 [!defined emacs]: Don't include xalloc.h.
55243 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55244 address arithmetic overflows. Change datatypes a bit to avoid
55247 2003-11-22 Jim Meyering <jim@meyering.net>
55249 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55252 2003-11-21 Karl Berry <karl@gnu.org>
55254 * config/config.{sub,guess}: update from config.
55256 2003-11-18 Karl Berry <karl@gnu.org>
55258 * config/config.{sub,guess}: update from config.
55260 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55262 2003-11-17 Paul Eggert <eggert@twinsun.com>
55264 * README: Mention that S+T cannot overflow if S is the size of
55265 an existing object and T is sufficiently small.
55267 2003-11-17 Jim Meyering <jim@meyering.net>
55269 On systems without utime and without a utimes function capable of
55270 dealing with a NULL struct utimbuf* argument, this utime replacement
55271 could -- in unusual circumstances -- leak a file descriptor.
55272 * lib/utime.c: Include <unistd.h> and <errno.h>.
55273 (utime_null): Be sure to close `fd' and to preserve errno.
55274 Reported by Geoff Collyer via Arnold Robbins.
55276 2003-11-17 Bruno Haible <bruno@clisp.org>
55278 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55279 (Depends-on): Add xsize.
55281 2003-11-17 Bruno Haible <bruno@clisp.org>
55283 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55285 2003-11-17 Bruno Haible <bruno@clisp.org>
55287 * lib/vasnprintf.c (alloca): Remove fallback definition.
55288 (freea): Remove definition.
55289 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55290 Reported by Paul Eggert.
55292 2003-11-16 Paul Eggert <eggert@twinsun.com>
55293 Bruno Haible <bruno@clisp.org>
55295 Protect against address arithmetic overflow.
55296 * lib/printf-args.h: Include stddef.h.
55297 (arguments): Change type of field 'count' to size_t.
55298 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55299 'unsigned int' where appropriate.
55300 * lib/printf-parse.h: Include sys/types.h.
55301 (char_directive): Change type of *arg_index fields to ssize_t.
55302 (char_directives): Change type of fields 'count', max_*_length to
55304 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55305 (SSIZE_MAX): Define fallback value.
55306 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55307 instead of 'int' where appropriate. Check a_allocated, d_allocated
55308 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55309 * lib/vasnprintf.c: Include xsize.h.
55310 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55311 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55312 overflow. Avoid wraparound when converting a width or precision from
55315 2003-11-16 Bruno Haible <bruno@clisp.org>
55317 Update from GNU gettext.
55318 * lib/printf-parse.c: Generalize to it can be compiled for wide
55320 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55321 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55322 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55323 SNPRINTF): New macros.
55324 Don't include <alloca.h> if the file is used inside libintl.
55325 (local_wcslen): New function, for Solaris 2.5.1.
55326 (VASNPRINTF): Use it instead of wcslen.
55328 2003-11-16 Bruno Haible <bruno@clisp.org>
55330 * lib/xsize.h (xmax): New function.
55331 (xsum, xsum3, xsum4): Declare as "pure" functions.
55333 2003-11-12 Paul Eggert <eggert@twinsun.com>
55335 * modules/xalloc (Files): Undo latest change, since xalloc.h
55336 no longer needs SIZE_MAX or PTRDIFF_MAX.
55338 2003-11-12 Paul Eggert <eggert@twinsun.com>
55340 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55343 2003-11-12 Paul Eggert <eggert@twinsun.com>
55345 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55346 "return", to pacify some unknown compiler. Problem reported
55347 by Joerg Schilling.
55349 2003-11-12 Paul Eggert <eggert@twinsun.com>
55351 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55352 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55353 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55354 heuristic is just as accurate as far as we know, and it removes a
55355 dependency on size_max.m4 and ptrdiff_max.m4.
55357 2003-11-11 Bruno Haible <bruno@clisp.org>
55359 * modules/xsize (Files): Add m4/size_max.m4.
55360 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55362 2003-11-11 Bruno Haible <bruno@clisp.org>
55364 * m4/size_max.m4: New file.
55365 * m4/ptrdiff_max.m4: New file.
55366 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55367 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55368 (gl_XALLOC): Invoke it.
55370 2003-11-11 Bruno Haible <bruno@clisp.org>
55372 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55373 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55376 2003-11-10 Paul Eggert <eggert@twinsun.com>
55378 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55379 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55380 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55382 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55383 not (size_t) -1, since it's defined here.
55385 2003-11-09 Karl Berry <karl@gnu.org>
55387 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55389 2003-11-06 Paul Eggert <eggert@twinsun.com>
55391 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55392 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55393 Reject sizes of exactly SIZE_MAX bytes.
55394 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55395 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55397 2003-11-05 Bruno Haible <bruno@clisp.org>
55399 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55400 SIZE_MAX defined in <limits.h> on Solaris.
55402 2003-11-04 Jim Meyering <jim@meyering.net>
55404 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55405 variable names, rather than @VAR@.
55406 * modules/poll: Likewise.
55408 2003-11-04 Bruno Haible <bruno@clisp.org>
55410 * modules/xsize: New file.
55411 * modules/linebreak: Depend on xsize.
55412 * MODULES.html.sh (func_all_modules): Add xsize.
55414 2003-11-04 Bruno Haible <bruno@clisp.org>
55416 * m4/xsize.m4: New file.
55418 2003-11-04 Bruno Haible <bruno@clisp.org>
55420 * lib/xsize.h: New file.
55421 * lib/linebreak.c: Include xsize.h.
55422 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55423 argument for overflow.
55424 Suggested by Paul Eggert.
55426 2003-11-03 Karl Berry <karl@gnu.org>
55428 * config/config.{guess,sub}: update from config.
55430 2003-11-03 Jim Meyering <jim@meyering.net>
55432 * modules/userspec (lib_SOURCES): Add userspec.h.
55433 (Include): Add "userspec.h".
55434 Improve description.
55436 2003-11-03 Jim Meyering <jim@meyering.net>
55438 * lib/userspec.c: Include "userspec.h".
55439 * lib/userspec.h: New file.
55441 2003-11-03 Bruno Haible <bruno@clisp.org>
55443 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55445 2003-11-03 Bruno Haible <bruno@clisp.org>
55447 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55448 available, to avoid (extremely rare) race condition.
55449 Suggested by Paul Eggert.
55451 2003-11-02 Karl Berry <karl@gnu.org>
55453 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55455 2003-10-31 Paul Eggert <eggert@twinsun.com>
55457 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55458 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55459 (read_filesystem_list): Set and use me_type_malloced.
55460 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55461 whatever the type happens to be), for brevity and consistency.
55462 Check for size calculation overflow on Alphas running OSF/1.
55464 2003-10-31 Jim Meyering <jim@meyering.net>
55466 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55468 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55470 2003-10-30 Paul Eggert <eggert@twinsun.com>
55471 Bruno Haible <bruno@clisp.org>
55473 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55474 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55476 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55478 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55479 netbsd*-gnu*. Suggested by Robert Millan.
55481 2003-10-29 Paul Eggert <eggert@twinsun.com>
55483 * modules/group-member: Depend on stdbool.
55485 2003-10-29 Paul Eggert <eggert@twinsun.com>
55487 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55489 2003-10-29 Paul Eggert <eggert@twinsun.com>
55491 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55492 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55493 after the 'gnu' in these cases. This fixes some bugs in the
55494 previous change, and is based on suggestions by Robert Millan.
55496 2003-10-29 Paul Eggert <eggert@twinsun.com>
55498 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55499 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55501 * lib/quotearg.c (quotearg_n_options): Use it.
55502 * lib/group-member.c: Include <stdbool.h>.
55503 (free_group_info): Arg is now const *; don't free arg.
55504 (get_group_info): Now returns bool and accepts struct group_info *,
55505 rather than returning a malloc'ed struct group_info *.
55506 All uses changed. Check for overflow in internal size calculation.
55508 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55509 rather than xmalloc/xrealloc.
55510 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55511 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55512 conformance bug: the old code used a pointer after freeing the
55513 storage that it addressed.
55514 * lib/hash.c (hash_initialize): Simplify the code by using
55515 xalloc_oversized rather than doing it by hand.
55516 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55517 the buffer preserved. Use free and xmalloc instead.
55518 * lib/quotearg.c (quotearg_n_options): Likewise.
55519 Use a simpler test for size overflow. Don't use xalloc_oversized
55520 because unsigned int might be wider than size_t (!); this suggests
55521 that we should switch from unsigned int to size_t for slot numbers.
55523 2003-10-28 Paul Eggert <eggert@twinsun.com>
55525 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55526 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55527 NetBSD kernels. Requested by Richard Stallman.
55529 2003-10-27 Paul Eggert <eggert@twinsun.com>
55531 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55532 to allocate the returned structure. Do not allocate a subarray,
55533 as x2nrealloc will do that.
55534 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55535 instead of xnrealloc.
55536 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55538 2003-10-27 Bruno Haible <bruno@clisp.org>
55540 * lib/stdbool_.h: Better support for BeOS.
55542 2003-10-26 Paul Eggert <eggert@twinsun.com>
55544 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55547 2003-10-26 Paul Eggert <eggert@twinsun.com>
55549 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55550 callers that want to do their own size-overflow checking. Include
55551 <stdbool.h>, since xalloc_oversized returns bool.
55552 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55553 to use xalloc_oversized.
55555 Add two functions x2realloc, x2nrealloc, for programs that grow
55556 arrays dynamically by doubling their sizes.
55557 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55558 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55561 Port to C99 semantics for 'inline' of external functions.
55562 Bug reported by Bruno Haible.
55563 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55564 with the old contents of xnmalloc.
55565 (xnmalloc, xmalloc): Use it.
55566 (xnrealloc_inline): New static inline function,
55567 with the old contents of xnrealloc.
55568 (xnrealloc, xrealloc): Use it.
55570 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55573 2003-10-26 Karl Berry <karl@gnu.org>
55575 * config/srclist.txt (COPYING.DOC): no longer available from
55576 /gd/gnuorg; don't know where the ultimate source is.
55578 2003-10-25 Paul Eggert <eggert@twinsun.com>
55580 Fix several address-calculation bugs in the hash modules,
55581 plus some minor code cleanup.
55583 * lib/hash.h: Include <stdbool.h>, for bool.
55584 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55585 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55586 hash_get_n_entries, hash_get_max_bucket_length,
55587 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55588 hash_rehash): Use size_t rather than unsigned.
55589 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55590 hash_get_n_buckets_used, hash_get_n_entries,
55591 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55592 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55593 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55595 (SIZE_MAX): Define if not defined.
55596 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55597 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55599 Use const * when possible.
55600 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55601 (check_tuning): Fix bug: if tuning parameters were very close to
55602 0 or 1, rounding errors could have caused subscript violations.
55603 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55604 (hash_initialize): Add 'fail:' label
55605 to free table and return NULL, and use it to simplify code.
55606 Use calloc rather than clearing the storage ourself.
55607 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55608 buffer size calculations.
55609 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55610 Include <stddef.h>, for size_t.
55611 * lib/hash-pjw.c (hash_pjw): Likewise.
55612 Switch to method described by Bruno Haible.
55613 Include <limits.h>, for CHAR_BIT.
55614 (SIZE_BITS): New macro.
55616 2003-10-23 Paul Eggert <eggert@twinsun.com>
55618 * m4/getline.m4 (AM_FUNC_GETLINE):
55619 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55620 hosts. Problem reported by Derek Robert Price in
55621 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55622 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55623 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55625 2003-10-21 Paul Eggert <eggert@twinsun.com>
55627 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55628 ceiling the allocation at NMAX bytes rather than silently
55629 discarding input bytes before NMAX is reached. This makes
55630 a difference only if NMAX exceeds SIZE_MAX / 2.
55632 * lib/obstack.c: Merge from glibc.
55633 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55634 Add libc_hidden_def (_obstack_newchunk).
55635 (_obstack_free) [! defined _LIBC]: Remove.
55636 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55637 a clone of the function body.
55638 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55639 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55641 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55643 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55646 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55647 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55648 Don't use lvalue casts, as GCC plans to remove support for them
55649 in GCC 3.5. Reported by Joseph S. Myers. This bug
55650 was also present in the non-GCC version, indicating that this
55651 code had always been buggy and had never been widely used.
55652 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55653 Use the fast variant of each macro, rather than copying the
55654 definiens of the fast variant; that way, we'll be more likely to
55655 catch future bugs in the fast variants.
55657 2003-10-20 Bruno Haible <bruno@clisp.org>
55659 * modules/wait-process: New file.
55660 * MODULES.html.sh (func_all_modules): Add wait-process.
55662 2003-10-20 Bruno Haible <bruno@clisp.org>
55664 * m4/wait-process.m4: New file.
55666 2003-10-20 Bruno Haible <bruno@clisp.org>
55668 * lib/wait-process.h: New file, from GNU gettext.
55669 * lib/wait-process.c: New file, from GNU gettext.
55671 2003-10-19 Jim Meyering <jim@meyering.net>
55673 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55676 2003-10-18 Karl Berry <karl@gnu.org>
55678 * config/config.guess: update from config.
55680 2003-10-16 Paul Eggert <eggert@twinsun.com>
55682 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55683 (getgroups): First arg is int, not size_t.
55684 Don't let 'free' mangle errno.
55686 2003-10-16 Paul Eggert <eggert@twinsun.com>
55688 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55690 2003-10-16 Karl Berry <karl@gnu.org>
55692 * config/config.{guess,sub}: update from config.
55694 2003-10-16 Jim Meyering <jim@meyering.net>
55696 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55699 2003-10-15 Paul Eggert <eggert@twinsun.com>
55701 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55702 (SIZE_MAX): Remove.
55703 (new_exclude, add_exclude_file): Initial size no longer needs to
55705 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55706 our own address arithmetic overflow checking.
55708 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55709 (fnmatch): Do not alloca more than 2000 wide characters;
55710 instead, use malloc for large buffers.
55711 Check for address arithmetic overflow, and return -1
55712 with errno set to ENOMEM in that case.
55713 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55714 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55715 instead, return -1. Check for address arithmetic overflow.
55717 2003-10-14 Paul Eggert <eggert@twinsun.com>
55719 Handle invalid suffixes and overflow independently, so that
55720 callers can treat them independently as needed. Fix some bugs in
55721 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55722 suffix for a human-readable blocksize. The major caller-visible
55723 change is the addition of a new
55724 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55725 that both overflow and suffix chars were found.
55727 * lib/human.c (humblock): Don't check separately for invalid suffix
55728 char; that is xstrtoumax's job (now that its bug is fixed).
55729 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55730 INTMAX_MAX]: New macros.
55731 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55732 TYPE_MAXIMUM): New macros.
55733 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55734 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55735 if overflow occurs, as it's what __strtol does and it's more useful
55737 (__xstrtol): If __strtol reports some error other than ERANGE,
55738 reflect it to the caller as LONGINT_INVALID. If it reports
55739 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55740 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55741 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55743 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55744 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55745 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55746 [defined UINTMAX_MAX]: New macros.
55748 2003-10-14 Bruno Haible <bruno@clisp.org>
55750 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55752 2003-10-14 Bruno Haible <bruno@clisp.org>
55754 * m4/sig_atomic_t: New file, from GNU gettext.
55755 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55757 2003-10-14 Bruno Haible <bruno@clisp.org>
55759 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55760 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55761 Also use volatile where needed.
55763 2003-10-12 Paul Eggert <eggert@twinsun.com>
55765 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55766 Change maintainer from Bruno Haible to 'all'.
55768 2003-10-12 Paul Eggert <eggert@twinsun.com>
55770 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55772 2003-10-12 Paul Eggert <eggert@twinsun.com>
55774 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55775 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55776 and define in terms of the other primitives.
55777 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55778 (SIZE_MAX): Define if not already defined.
55779 (array_size_overflow): New function.
55780 (xalloc_die): Abort instead of exiting if 'error' returns.
55781 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55782 (xmalloc, xrealloc): Use them.
55783 (xcalloc): Check for address arithmetic overflow.
55784 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55785 a bit faster than strcpy.
55787 2003-10-10 Simon Josefsson <jas@extundo.com>
55789 * modules/argp (Depends-on): Add restrict and strcase.
55791 2003-10-10 Simon Josefsson <jas@extundo.com>
55793 * m4/argp.m4: Add AC_C_INLINE.
55795 2003-10-08 Paul Eggert <eggert@twinsun.com>
55797 Merge getpass from libc, plus a few fixes.
55799 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55800 Include <stdbool.h>.
55801 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55802 __fsetlocking to empty.
55803 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55804 do include <bits/libc-lock.h>.
55805 Do not include <fcntl.h>; not needed.
55806 [_LIBC]: Include <wchar.h>.
55807 (NOTCANCEL_MODE): New macro.
55808 (flockfile, funlockfile) [_LIBC]: New macros.
55809 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55810 [!_LIBC]: New macros.
55811 (call_fclose): New function.
55812 (getpass): Use it. Save tty stream separately; this simplifies the
55813 code and makes it more reliable if stdin happens to equal stdout.
55814 Invoke __fsetlocking on tty.
55815 Handle thread cancellation if needed.
55816 Namespace cleanup (use __tcgetattr, __getline).
55817 Use bool for Booleans.
55818 [USE_IN_LIBIO]: Handle wide streams.
55819 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55820 stream might go where.
55822 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55823 doesn't have to include <stdio.h> before us.
55824 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55825 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55826 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55827 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55828 if not declared, so that we can use getpass.c code from libc without
55830 (flockfile, ftrylockfile, funlockfile): New macros.
55832 2003-10-08 Paul Eggert <eggert@twinsun.com>
55834 * modules/getpass: Depend on stdbool.
55836 2003-10-08 Paul Eggert <eggert@twinsun.com>
55838 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55840 2003-10-07 Karl Berry <karl@gnu.org>
55842 * config/config.{guess,sub}: update from config.
55844 2003-10-06 Jim Meyering <jim@meyering.net>
55845 Bruno Haible <bruno@clisp.org>
55847 This lets translators provide better translations for the
55848 "Written by ..." part of --version output.
55849 * lib/version-etc.h: Include stdarg.h.
55850 (version_etc_copyright): Declare as readonly.
55851 (version_etc): Make this function variadic with a NULL-terminated list
55852 of author name strings.
55853 (version_etc_va): New declaration.
55854 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55855 (version_etc_copyright): Declare as readonly.
55856 (version_etc_va): New function. Provide a different translatable string
55857 for each possible number of authors < 10. Abbreviate when there are 10
55859 (version_etc): Make this function variadic. Call version_etc_va.
55860 Suggestion from Gary V. Vaughan.
55862 * lib/long-options.h (parse_long_options): Change prototype: the
55863 authors string is moved to the end and becomes variadic.
55864 * lib/long-options.c: Include stdarg.h.
55865 (parse_long_options): Make this function variadic, too.
55866 Call version_etc_va, not version_etc.
55868 2003-10-06 Bruno Haible <bruno@clisp.org>
55870 * modules/version-etc-2: Remove file.
55871 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55873 2003-10-06 Bruno Haible <bruno@clisp.org>
55875 * modules/fatal-signal: New file.
55876 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55878 2003-10-06 Bruno Haible <bruno@clisp.org>
55880 * m4/fatal-signal.m4: New file.
55881 * m4/signalblocking.m4: New file, from GNU gettext.
55883 2003-10-06 Bruno Haible <bruno@clisp.org>
55885 * lib/version-etc-2.h: Remove file.
55886 * lib/version-etc-2.c: Remove file.
55888 2003-10-06 Bruno Haible <bruno@clisp.org>
55890 * lib/fatal-signal.h: New file, from GNU gettext.
55891 * lib/fatal-signal.c: New file, from GNU gettext.
55893 2003-10-05 Paul Eggert <eggert@twinsun.com>
55895 * README: Rework advice for preventing empty .o files.
55896 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55899 2003-10-04 Karl Berry <karl@gnu.org>
55901 * lib/argp*: update from libc.
55903 2003-10-04 Karl Berry <karl@gnu.org>
55905 * config/config.{guess,sub}: update from config.
55907 2003-10-02 Bruno Haible <bruno@clisp.org>
55909 * modules/lchown (Include): Add lchown.h.
55910 * modules/time_r (Include): Use "..." syntax.
55911 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55913 2003-10-01 Simon Josefsson <jas@extundo.com>
55915 * MODULES.html.sh (func_all_modules): Move gethostname from section
55916 'based on' to section 'lacking' POSIX:2001.
55918 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55920 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55921 to output mode on the same stream.
55923 2003-09-29 Paul Eggert <eggert@twinsun.com>
55925 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55926 Fix arg typo in previous patch.
55928 2003-09-28 Jim Meyering <jim@meyering.net>
55930 * lib/error.c: Correct cpp indentation.
55932 2003-09-27 Paul Eggert <eggert@twinsun.com>
55934 * modules/free: New file.
55936 2003-09-27 Paul Eggert <eggert@twinsun.com>
55938 * m4/free.m4: New file.
55940 2003-09-27 Paul Eggert <eggert@twinsun.com>
55942 * lib/minmax.h (MIN, MAX)
55943 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55944 Omit the special code that used __typeof__, since we worry that
55945 it could be more trouble than it's worth. See:
55946 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55947 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55949 * lib/free.c: New file.
55951 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55953 Trivial fixes to Makefile.am parts of module listings.
55954 * modules/strstr: Append strstr.h to lib_SOURCES.
55955 * modules/strcase: Likewise, for strcase.h.
55957 2003-09-27 Karl Berry <karl@gnu.org>
55959 * config/mkinstalldirs: update from automake.
55961 2003-09-26 Paul Eggert <eggert@twinsun.com>
55963 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55964 (error_tail): Do not loop, reallocating temporary buffer, since
55965 the output cannot contain more wide characters than the input
55966 contains bytes, the size must be big enough already. This avoids
55967 one potential size overflow calculation. Check for size overflow
55968 when calculating temporary buffer size. Free temporary buffer
55969 when done, if it was allocated with malloc; this plugs a memory
55970 leak. Remove casts from void * to pointers, that are no longer
55971 needed now that we're assuming C89 or better.
55973 Merge error changes from glibc.
55975 * lib/error.c, error.h: Update copyright notice header to match glibc.
55976 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55977 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55978 Disable cancellation while printing error.
55979 * lib/error.h: Prepend __ to parameter names.
55981 2003-09-26 Jim Meyering <jim@meyering.net>
55983 * lib/error.c (error_tail): Move some declarations
55984 into inner scope where the local variables are used.
55986 2003-09-26 Bruno Haible <bruno@clisp.org>
55988 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55990 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55992 2003-09-26 Bruno Haible <bruno@clisp.org>
55994 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55995 (stpncpy): Define as alias for gnu_stpncpy.
55996 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55998 2003-09-25 Simon Josefsson <jas@extundo.com>
56000 * lib/xgetdomainname.h: New file.
56001 * lib/xgetdomainname.c: New file.
56003 2003-09-25 Simon Josefsson <jas@extundo.com>
56004 Bruno Haible <bruno@clisp.org>
56006 * modules/getdomainname: New file.
56007 * modules/xgetdomainname: New file.
56008 * MODULES.html.sh (func_all_modules): Add getdomainname,
56011 2003-09-25 Simon Josefsson <jas@extundo.com>
56012 Bruno Haible <bruno@clisp.org>
56014 * m4/getdomainname.m4: New file.
56016 2003-09-25 Simon Josefsson <jas@extundo.com>
56017 Bruno Haible <bruno@clisp.org>
56019 * lib/getdomainname.h: New file.
56020 * lib/getdomainname.c: New file.
56022 2003-09-25 Karl Berry <karl@gnu.org>
56024 * lib/argp-fmtstream.c, argp-help.c: update from libc.
56026 2003-09-25 Karl Berry <karl@gnu.org>
56028 * config/install-sh: update from automake.
56030 2003-09-25 Bruno Haible <bruno@clisp.org>
56032 * modules/version-etc-2: New file, from modules/version-etc with
56034 * MODULES.html.sh (func_all_modules): Add version-etc-2.
56036 2003-09-25 Bruno Haible <bruno@clisp.org>
56038 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56039 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56041 2003-09-24 Simon Josefsson <jas@extundo.com>
56043 * modules/xgethostname: Add xgethostname.h.
56045 2003-09-24 Paul Eggert <eggert@twinsun.com>
56047 * lib/linebuffer.c (freebuffer): Don't free the argument, just
56048 the buffer associated with the argument. Bug reported by
56051 2003-09-24 Paul Eggert <eggert@twinsun.com>
56053 * README: Document assumptions that 'int' is at least 32 bits
56054 wide, that integer arithmetic is 2's complement without overflow,
56055 that there are no holes in integer values, that adding sizes of
56056 two nonoverlapping objects can't overflow, and that all-bits-zero
56057 yields scalar zero. Fix spelling and capitalization typos.
56059 2003-09-19 Karl Berry <karl@gnu.org>
56061 * lib/argp.h: update from libc.
56063 2003-09-17 Paul Eggert <eggert@twinsun.com>
56065 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56066 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56067 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56069 2003-09-17 Paul Eggert <eggert@twinsun.com>
56071 * gnulib-tool: Use "test -h", not "test -L", for portability
56072 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56073 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56074 (sed_extract_prog): Issue s commands one-by-one, rather than
56075 using \| in one s command.
56077 2003-09-16 Paul Eggert <eggert@twinsun.com>
56079 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56080 input error, instead of returning NULL the next time we are called
56081 (and therefore losing track of errno).
56083 2003-09-16 Bruno Haible <bruno@clisp.org>
56085 * gnulib-tool (func_create_testdir): Warn about duplicated
56088 2003-09-15 Paul Eggert <eggert@twinsun.com>
56090 * modules/argmatch, modules/fatal, modules/obstack,
56091 modules/xalloc, modules/xgethostname: Sort dependencies by
56092 importance, not alphabetically.
56094 2003-09-15 Paul Eggert <eggert@twinsun.com>
56096 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56097 fails, so that the caller gets the proper errno.
56099 * lib/readutmp.c (read_utmp): Likewise.
56100 Check for fstat error. Close stream and free storage
56103 2003-09-14 Karl Berry <karl@gnu.org>
56105 * config/srclist.txt (strdup.c): disable for c89 changes.
56107 2003-09-14 Jim Meyering <jim@meyering.net>
56109 * lib/getloadavg.c: Correct cpp indentation.
56110 * lib/strdup.c: Likewise.
56111 * lib/vasnprintf.c: Likewise.
56113 2003-09-14 Bruno Haible <bruno@clisp.org>
56115 * modules/fwriteerror: New file.
56116 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56118 2003-09-14 Bruno Haible <bruno@clisp.org>
56120 * lib/fwriteerror.h: New file.
56121 * lib/fwriteerror.c: New file.
56123 2003-09-12 Paul Eggert <eggert@twinsun.com>
56125 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56126 modules/xgethostname, modules/xalloc: Depend on exit.
56128 2003-09-12 Paul Eggert <eggert@twinsun.com>
56130 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56132 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56133 and AC_MINIX, too, so that their extensions are available.
56135 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56136 This macro has been superseded by gl_BACKUPFILE.
56138 More patches to assume C89 or better.
56140 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56142 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56144 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56145 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56146 Include <string.h>, <stdlib.h> unconditionally.
56147 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56148 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56149 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56150 headers or for string.h.
56151 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56154 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56156 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56157 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56158 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56159 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56160 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56161 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56163 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56164 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56165 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56167 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56168 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56169 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56172 2003-09-12 Paul Eggert <eggert@twinsun.com>
56174 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56175 * lib/obstack.c [!defined _LIBC]: Likewise.
56176 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56177 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56178 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56180 More changes to assume C89 or better.
56182 * lib/error.c (error_tail): Assume vprintf.
56184 * lib/argmatch.c (getenv): Remove decl.
56185 * lib/progreloc.c (get_full_program_name): Define via prototype.
56186 * lib/setenv.c (clearenv): Likewise.
56187 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56189 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56190 (malloc, memcpy): Remove decls.
56191 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56192 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56193 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56194 (memcpy): Remove macro.
56195 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56196 (__P): Remove. All uses removed.
56197 (PTR): Remove. All uses changed to void *.
56198 (CHAR_BIT, NULL): Remove.
56199 (spaces, zeros, memset_space, memset_zero)
56200 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56202 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56203 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56204 Define with prototype.
56205 Remove now-unnecessary prototype decl.
56206 (extra_args_spec): Assume ANSI C. All uses changed.
56207 (extra_args_spec_iso): Remove.
56208 (my_strftime, emacs_strftimeu): Define via prototype.
56209 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56211 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56212 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56213 (strtoul, strtol): Remove decls.
56214 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56216 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56217 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56218 (LOCALE_PARAM_PROTO): New macro.
56219 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56220 (INTERNAL (strtol), strtol): Define with a prototype.
56221 (PARAMS): Remove. All uses removed.
56222 * lib/tempname.c: Include <string.h> unconditionally.
56223 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56224 * lib/xgethostname.c (main): Define with a prototype.
56225 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56226 Include <stdlib.h> unconditionally.
56227 (calloc, malloc, realloc, free): Remove decls.
56228 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56229 Include <stdlib.h> unconditionally. Sort include file names.
56231 (xstrtod): Define with a prototype.
56232 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56233 (strtol, strtoul): Remove decls.
56235 2003-09-11 Paul Eggert <eggert@twinsun.com>
56237 More patches to assume C89 or better.
56238 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56239 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56240 string.h, memchr, STDC_HEADERS.
56242 2003-09-11 Paul Eggert <eggert@twinsun.com>
56244 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56245 Include <stdlib.h>, <string.h> unconditionally.
56246 Remove now-unnecessary cast to char *.
56247 * lib/strnlen.c: Include <string.h> unconditionally.
56248 * lib/yesno.c (yesno): Define with a prototype.
56250 2003-09-11 Bruno Haible <bruno@clisp.org>
56252 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56254 2003-09-10 Jim Meyering <jim@meyering.net>
56256 * lib/error.c: Correct indentation of cpp directives.
56258 2003-09-10 Bruno Haible <bruno@clisp.org>
56260 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56261 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56262 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56263 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56264 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56265 <stdlib.h> and <string.h> checks.
56266 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56267 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56269 2003-09-10 Bruno Haible <bruno@clisp.org>
56271 * lib/strcspn.c: Include <string.h> unconditionally.
56272 * lib/strpbrk.c: Include <string.h> unconditionally.
56273 * lib/strstr.c: Include <string.h> unconditionally.
56274 * lib/unicodeio.c: Include <string.h> unconditionally.
56275 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56276 * lib/unsetenv.c: Likewise.
56277 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56278 * lib/yesno.c: Include <stdlib.h> unconditionally.
56279 (rpmatch): Add prototype.
56281 2003-09-09 Paul Eggert <eggert@twinsun.com>
56283 More patches to assume C89 or better.
56284 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56285 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56286 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56288 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56290 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56292 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56294 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56295 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56296 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56298 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56299 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56301 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56303 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56304 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56305 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56306 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56307 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56308 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56310 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56311 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56312 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56313 C headers, or for string.h.
56314 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56315 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56316 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56317 headers, memory.h, stdlib.h, string.h, strings.h.
56318 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56319 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56320 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56322 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56323 headers, memory.h, string.h.
56324 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56325 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56327 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56329 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56330 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56331 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56332 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56333 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56335 2003-09-09 Paul Eggert <eggert@twinsun.com>
56339 * lib/acosl.c (main): Use a prototype.
56340 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56343 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56345 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56346 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56347 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56349 * lib/getopt.c (const): Remove macro.
56350 Include <string.h> unconditionally.
56351 (my_index): Remove; all uses changed to strchr.
56352 (strlen): Remove decl.
56353 (exchange): Remove forward decl; no longer needed.
56354 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56355 Define with prototype.
56356 * lib/getopt1.c (const): Remove macro.
56357 (getopt_long, getopt_long_only, main): Define with prototype.
56359 * lib/getugroups.c: Include <string.h> unconditionally.
56361 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56362 (getusershell, setusershell, endusershell, readname, main):
56363 Define with prototypes.
56365 * lib/group-member.c: Include group-member.h first.
56366 Include <stdlib.h> unconditionally.
56368 * lib/hard-locale.c: Include hard-locale.h first.
56369 Include <stdlib.h>, <string.h> unconditionally.
56371 * lib/hash.c (free, malloc): Remove decls.
56372 Include <stdlib.h> unconditionally.
56374 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56375 (getenv): Do not declare.
56377 * lib/idcache.c: Include <string.h> unconditionally.
56379 * lib/long-options.c: Include long-options.h first, to test interface.
56380 Include <stdlib.h> unconditionally.
56382 * lib/makepath.c: Include makepath.h first, to test interface.
56383 Include <stdlib.h> and <string.h> unconditionally.
56385 * lib/linebuffer.c: Include <stdlib.h>.
56386 (free): Remove decl.
56388 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56389 stddef.h. rpl_malloc returns void *, not char *.
56390 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56393 * lib/md5.h: Include <limits.h> unconditionally.
56394 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56395 (__P): Remove; all uses removed.
56396 * lib/md5.c: Include "md5.h" first.
56397 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56398 md5_buffer, md5_process_bytes, md5_process_block):
56399 Define with prototypes.
56400 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56401 * lib/sha.c: Include "sha.h" first.
56402 Include <stdlib.h>, <string.h> unconditionally.
56404 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56405 * lib/memcmp.c (__ptr_t): Likewise.
56406 * lib/memrchr.c (__ptr_t): Likewise.
56407 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56408 Include <string.h> unconditionally.
56409 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56410 * lib/memchr.c: Include <stdlib.h> unconditionally.
56411 * lib/memchr.c (LONG_MAX): Remove.
56412 * lib/memrchr.c (LONG_MAX): Likewise.
56413 * lib/memchr.c (__memchr): Define via a prototype.
56414 * lib/memrchr.c (__memrchr): Likewise.
56415 * lib/memcmp.c (__P): Remove, and remove all uses.
56416 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56417 Remove forward decls; no longer needed.
56418 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56419 Use types required by C89 in prototype.
56421 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56422 * lib/savedir.c: Likewise.
56423 * lib/mkdir.c (free): Remove decl.
56424 * lib/rmdir.c (rmdir): Define with a prototype.
56425 * lib/savedir.c: Include savedir.h first, to test interface.
56427 * lib/mktime.c (STDC_HEADERS): Remove.
56428 Include <stdlib.h>, <string.h> unconditionally.
56430 * lib/modechange.c: Include <stdlib.h> unconditionally.
56431 (malloc): Remove decl.
56433 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56434 (free): Remove decl.
56436 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56437 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56438 (This type really should be intptr_t, but that's a C99ism.)
56439 (_obstack_memcpy): Remove: all uses changed to memcpy.
56440 Include <string.h> unconditionally.
56441 (struct obstack): Assume __STDC__ for types of members
56442 chunkfun, freefun, extra_arg.
56443 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56444 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56445 obstack_begin, obstack_specify_allocation,
56446 obstack_specify_allocation_with_arg, obstack_chunkfun,
56447 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56448 Remove unprototyped decls and the macros that use them.
56449 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56450 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56451 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56452 (defined __STDC__ && __STDC__)]:
56453 Remove nonprototyped code.
56454 Include <stdlib.h> unconditionally.
56455 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56456 _obstack_allocated_p, _obstack_free, obstack_free,
56457 _obstack_memory_used, print_and_abort):
56458 Define using prototypes.
56459 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56460 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56461 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56462 obstack_next_free, obstack_object_size, obstack_room) [0]:
56463 Remove unused, unprototyped code.
56465 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56467 * lib/physmem.c (physmem_total, physmem_available, main): Define
56470 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56471 (main): Define with a prototype.
56473 * lib/posixver.c (getenv): Remove decl.
56475 * lib/putenv.c (malloc): Returns void *, not char *.
56476 Include <string.h> unconditionally.
56477 (strchr, memcpy, NULL): Do not define.
56479 * lib/readtokens.c: Include readtokens.h first, to test interface.
56480 Include <stdlib.h>, <string.h> unconditionally.
56481 (init_tokenbuffer): Define with a prototype.
56483 * lib/regex.c (PARAMS): Remove. All uses removed.
56484 All uses of _RE_ARGS removed, too.
56485 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56487 (bzero): Assume memset exists.
56488 (memcmp, memcpy, NULL): Remove.
56489 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56490 char, or assignments to local vars of type signed char.
56491 (init_syntax_once, PREFIX(extract_number_and_incr),
56492 PREFIX(print_partial_compiled_pattern),
56493 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56494 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56495 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56496 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56497 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56498 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56499 wcs_compile_range, byte_compile_range, truncate_wchar,
56500 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56501 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56502 count_mbs_length, wcs_re_match_2_internal,
56503 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56504 PREFIX(alt_match_null_string_p),
56505 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56506 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56507 regfree, PREFIX(extract_number)): Define with prototype. Remove
56508 now-unnecessary declaration, if any.
56509 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56511 Remove now-unnecessary casts among pointer types.
56512 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56514 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56515 (free): Remove decl.
56517 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56519 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56520 (free): Remove decl.
56522 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56523 * lib/xgetcwd.c: Likewise.
56525 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56526 (free): Remove decl.
56528 * lib/strchrnul.c (strchrnul): Define with a prototype.
56529 Fix bug: c_in was not converted to char before searching.
56531 The following changes are not K&R related:
56533 * lib/group-member.h: Include <sys/types.h>, so that this file is
56535 * lib/makepath.h: Likewise.
56537 * lib/getusershell.c (readname, default_index, line_size, readname):
56538 Use size_t, not int, for sizes.
56539 (readname): If the size overflows, report an error instead of
56542 2003-09-09 Paul Eggert <eggert@twinsun.com>
56544 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56547 2003-09-09 Paul Eggert <eggert@twinsun.com>
56549 * README: New section: portability guidelines.
56551 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56553 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56556 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56558 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56560 2003-09-08 Paul Eggert <eggert@twinsun.com>
56562 Assume C89 or better; remove K&R cruft.
56563 A few of these changes were first proposed by Derek Robert Price
56564 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56566 * lib/addext.c: Include <string.h> unconditionally.
56567 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56568 Don't declare getenv or malloc.
56570 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56571 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56573 (find_stack_direction, alloca): Use prototypes.
56575 * lib/atexit.c (atexit): Define using a prototype.
56577 * lib/basename.c, dirname.c, stripslash.c:
56578 Include <string.h> unconditionally.
56580 * lib/bcopy.c: Include <stddef.h>.
56581 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56583 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56585 * lib/error.h (error, error_at_line, error_print_progname)
56586 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56587 * lib/error.c: Include error.h first, to check interface.
56588 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56589 (VA_START): Remove; all uses changeed to va_start.
56590 (exit, strerror): Remove decls.
56591 (error_print_progname): Prototype uncondionally.
56592 Don't include <errno.h>; no longer needed.
56593 (private_strerror): Remove.
56594 (error_tail): Always define.
56595 (error, error_at_line): Assume C89 or better; always use prototypes.
56596 * lib/fatal.c: Include "fatal.h" first, to test interface.
56597 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56598 (VA_START): Remove; all uses changed to va_start.
56599 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56601 (exit): Remove decl.
56602 (fatal): Prototype unconditionally. Assume va_start works.
56603 Abort at end, to pacify gcc.
56605 * lib/euidaccess.c (main): Define with a prototype.
56607 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56609 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56611 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56613 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56614 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56615 (getenv): Remove decl.
56616 (fnmatch): Define using a prototype.
56617 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56618 (FCT): Define using a prototype.
56620 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56622 * lib/gethostname.c: Include <stddef.h>.
56623 (gethostname): Define with prototype. Length is size_t, not int.
56625 2003-09-08 Paul Eggert <eggert@twinsun.com>
56627 Assume C89 or better; remove K&R cruft.
56628 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56629 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56630 string.h, getenv, malloc.
56631 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56633 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56634 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56635 do not check for strerror.
56636 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56637 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56638 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56639 do not check for doprnt or vprintf.
56640 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56641 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56643 2003-09-08 Paul Eggert <eggert@twinsun.com>
56645 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56646 getversion.c should have been removed then, but was accidentally
56649 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56650 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56652 2003-09-08 Karl Berry <karl@gnu.org>
56654 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56655 config, forget about prep.
56657 * config/depcomp, missing: update from automake.
56659 2003-09-07 Paul Eggert <eggert@twinsun.com>
56661 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56662 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56664 2003-09-07 Paul Eggert <eggert@twinsun.com>
56666 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56667 copy_tm_result. Bug reported by Simon Josefsson in
56668 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56670 2003-09-06 Paul Eggert <eggert@twinsun.com>
56672 * m4/time_r.m4: New file.
56673 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56674 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56675 is. Check for timegm declaration.
56676 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56677 Do not check for gmtime_r.
56678 Replace mktime if __mktime_internal does not exist and if mktime
56679 hasn't been replaced already.
56681 2003-09-06 Paul Eggert <eggert@twinsun.com>
56683 * lib/time_r.c, lib/time_r.h: New files.
56685 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56687 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56688 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56690 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56692 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56693 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56694 Include <time_r.h>.
56696 * lib/timegm.c: Switch to glibc implementation, with the following
56698 [defined HAVE_CONFIG_H]: Include <config.h>.
56699 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56700 (__mktime_internal) [!defined _LIBC]: New decl.
56701 (__gmtime_r) [!defined _LIBC]: New macro and function.
56702 (timegm): Use a prototype, since gnulib assumes C89.
56703 Do not bother declaring tmp to be const, as it's not really usefu.
56704 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56705 (timegm): Declare only if HAVE_DECL_TIMEGM.
56707 2003-09-06 Paul Eggert <eggert@twinsun.com>
56709 * MODULES.html.sh (func_all_modules): Add time_r.
56710 * modules/time_r: New file.
56711 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56712 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56714 2003-09-03 Paul Eggert <eggert@twinsun.com>
56716 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56717 Bug reported by Lute Kamstra in
56718 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56720 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56721 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56722 course with correspondingly smaller numbers for tomorrow and
56723 yesterday. From Tadayoshi Funaba. Originally installed into
56724 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56727 2003-08-31 Simon Josefsson <jas@extundo.com>
56729 * modules/timegm: New file.
56730 * MODULES.html.sh (func_all_modules): Add timegm.
56732 2003-08-31 Simon Josefsson <jas@extundo.com>
56734 * m4/timegm.m4: New file.
56736 2003-08-31 Simon Josefsson <jas@extundo.com>
56738 * lib/timegm.h: New file.
56739 * lib/timegm.c: New file. Based on
56740 wget-1.8.2/src/http.c:mktime_from_utc.
56742 2003-08-31 Karl Berry <karl@gnu.org>
56744 * lib/argp.h: update from libc.
56746 2003-08-28 Bruno Haible <bruno@clisp.org>
56748 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56749 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56750 followed by '#define fnmatch fnmatch_posix' gives an error.
56752 2003-08-28 Bruno Haible <bruno@clisp.org>
56754 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56755 warning on QNX, which defines O_BINARY to 000000.
56757 2003-08-27 Jim Meyering <jim@meyering.net>
56759 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56760 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56761 would fail after 32. Reported by Danny Levinson. Details here:
56762 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56764 2003-08-24 Bruno Haible <bruno@clisp.org>
56766 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56767 MSVC7 <stdio.h> is included later.
56769 2003-08-22 Simon Josefsson <jas@extundo.com>
56771 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56773 2003-08-20 Karl Berry <karl@gnu.org>
56775 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56777 2003-08-20 Bruno Haible <bruno@clisp.org>
56779 * modules/progname: New file.
56780 * MODULES.html.sh (func_all_modules): Add progname.
56782 2003-08-20 Bruno Haible <bruno@clisp.org>
56784 * lib/progname.h: New file, from GNU gettext.
56785 * lib/progname.c: New file, from GNU gettext.
56786 * lib/progreloc.c: New file, from GNU gettext.
56788 2003-08-19 Jim Meyering <jim@meyering.net>
56790 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56791 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56793 2003-08-19 Bruno Haible <bruno@clisp.org>
56795 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56798 2003-08-19 Bruno Haible <bruno@clisp.org>
56800 * lib/xstrdup.c: Assume <string.h> exists.
56802 2003-08-18 Paul Eggert <eggert@twinsun.com>
56804 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56807 2003-08-18 Jim Meyering <jim@meyering.net>
56809 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56810 * m4/lib-ld.m4: Likewise.
56812 2003-08-18 Jim Meyering <jim@meyering.net>
56814 * lib/setenv.h: Indent nested cpp directive.
56815 * lib/vasnprintf.c: Remove trailing blanks.
56817 2003-08-17 Simon Josefsson <jas@extundo.com>
56819 * modules/xstrndup: New file.
56820 * MODULES.html.sh (func_all_modules): Add xstrndup.
56822 2003-08-17 Simon Josefsson <jas@extundo.com>
56824 * modules/argp: Fix autoconf macro name. Add more dependencies.
56826 2003-08-17 Simon Josefsson <jas@extundo.com>
56828 * m4/xstrndup.m4: New file.
56830 2003-08-17 Simon Josefsson <jas@extundo.com>
56832 * m4/argp.m4: New file.
56834 2003-08-17 Simon Josefsson <jas@extundo.com>
56835 Bruno Haible <bruno@clisp.org>
56837 * lib/xstrndup.h: New file.
56838 * lib/xstrndup.c: New file.
56840 2003-08-17 Bruno Haible <bruno@clisp.org>
56842 * modules/strndup (Files, Include): Add lib/strndup.h.
56844 2003-08-17 Bruno Haible <bruno@clisp.org>
56846 * modules/euidaccess (Files): Add lib/euidaccess.h.
56848 2003-08-17 Bruno Haible <bruno@clisp.org>
56850 * lib/strndup.h: New file.
56852 2003-08-17 Bruno Haible <bruno@clisp.org>
56854 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56855 like AC_GNU_SOURCE.
56856 * modules/extensions (configure.ac): Comment out the invocation of
56857 gl_USE_SYSTEM_EXTENSIONS.
56859 2003-08-16 Paul Eggert <eggert@twinsun.com>
56861 Merges from coreutils, etc.
56862 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56863 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56864 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56866 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56867 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56869 2003-08-16 Paul Eggert <eggert@twinsun.com>
56871 Document merge from coreutils.
56872 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56873 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56874 * modules/utime: Add m4/utimes-null.m4.
56876 2003-08-16 Paul Eggert <eggert@twinsun.com>
56878 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56879 space, undoing this 2003-08-12 change:
56880 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56882 2003-08-16 Paul Eggert <eggert@twinsun.com>
56884 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56885 strtoul.c from libc, undoing this 2003-08-12 change:
56886 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56888 2003-08-16 Jim Meyering <jim@meyering.net>
56890 Merges from coreutils.
56891 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56892 prefix. Adjust cache variables similarly. Create 500 rather than
56893 just 300 files, to exercise bug on Darwin6.5, too.
56894 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56896 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56897 AM_SYS_POSIX_TERMIOS.
56898 Reported by mkc@mathdogs.com.
56899 Also change use of $am_cv_sys_posix_termios
56900 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56901 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56902 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56903 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56904 in /proc/mounts until it finds one with matching device number. This
56905 is unnecessary when the FILE argument *is* a mount point. No stat call
56906 is necessary in that case. So, disable the statvfs-testing code on
56907 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56908 as RedHat bug# 84846.
56909 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56910 to 1MB, so as not to render systems with no stack size limit (e.g.,
56911 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56912 Include <unistd.h>. On some systems,
56913 it is required for the definition of _SC_PAGESIZE.
56915 2003-08-16 Jim Meyering <jim@meyering.net>
56917 Merge from coreutils.
56918 * lib/xstrtoimax.c: #else #if -> #elif.
56919 * lib/xstrtoumax.c: Likewise.
56921 2003-08-16 Jim Meyering <jim@meyering.net>
56923 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56924 * m4/utimes.m4: Removed.
56925 * m4/utimes-null.m4: Renamed from utimes.m4.
56927 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56928 to 1MB, so as not to render systems with no stack size limit (e.g.,
56929 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56930 Include <unistd.h>. On some systems,
56931 it is required for the definition of _SC_PAGESIZE.
56933 2003-08-16 Jim Meyering <jim@meyering.net>
56934 and Paul Eggert <eggert@cs.ucla.edu>
56936 Merges from coreutils, etc.
56938 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56939 using the latest version from cvs. This avoids problems with #line
56940 directives using a vendor (Sun) compiler.
56941 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56942 Don't set GETGROUPS_LIB here; now it's
56943 done via getgroups.m4's wrapper function.
56944 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56945 rather than just in sh-util/configure.in, so that the
56946 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56948 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56949 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56950 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56951 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56952 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56953 Remove code that is now done by the newly-required macros.
56954 Append $(EXEEXT) to DF_PROG.
56955 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56956 Do not invoke or require the following here,
56957 since prereq.m4 or some gnulib .m4 now does this for us:
56958 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56959 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56960 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56961 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56962 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56963 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56964 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56966 Do not replace the following functions, as this is now the job
56967 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56968 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56969 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56970 atexit getpass, strdup, getpagesize.
56972 Do not check for the following functions, as this is now the job
56973 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56974 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56976 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56977 Check for sys/sysctl.h.
56978 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56979 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56980 of checking for ssize_t ourselves.
56982 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56983 Require every macro that gnulib/modules/* suggests for us.
56984 (jm_PREREQ_ADDEXT): New macro.
56985 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56986 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56988 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56989 (gl_PHYSMEM): Use it.
56990 Also check for `table' function.
56991 Check for new headers and functions.
56992 Add check for sys/sysmp.h.
56993 With suggestions from Kaveh Ghazi.
56994 Ignore headers that are present but cannot be compiled. This
56995 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56998 2003-08-15 Paul Eggert <eggert@twinsun.com>
57000 Document merge from coreutils.
57001 * modules/userspec: Depend on posixver.
57002 * modules/strftime: Depend on tzset.
57004 2003-08-15 Paul Eggert <eggert@twinsun.com>
57006 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57007 rather than tab, after '#' in shell-script copyright notices.
57008 Suggested by Bruno Haible.
57010 2003-08-15 Paul Eggert <eggert@twinsun.com>
57012 * config/srclist-update: Use three spaces, rather than tab, after '#'
57013 in shell-script copyright notices. Suggested by Bruno Haible.
57014 Remove unnecessary parenthesization in regular expression.
57016 2003-08-15 Jim Meyering <jim@meyering.net>
57018 Merge from coreutils.
57019 * lib/xgethostname.c: Include <stdlib.h>.
57020 (xghostname): Don't exit for anything other than memory-related
57021 failure; just return NULL.
57022 * lib/userspec.c: Include "posixver.h".
57023 (parse_user_spec): Accept `.' as a separator only
57024 in pre-POSIX-200112 mode.
57025 * lib/strtoimax.c: Use #elif rather than #else #if.
57026 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57027 Remove function, now that we can rely on a working tzset function.
57028 [!_LIBC]: Ensure that the required autoconf test has been run.
57029 [!defined _NL_CURRENT && HAVE_STRFTIME]:
57030 Use underlying_strftime for %r.
57031 * lib/sha.c: Merge in some clean-up and optimization changes from
57033 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57034 Ensure that it is a multiple of 64.
57035 Rearrange loop exit tests so as to avoid performing an
57036 additional fread after encountering an error or EOF.
57037 * lib/realloc.c: Update copyright date.
57039 2003-08-15 Jim Meyering <jim@meyering.net>
57040 and Paul Eggert <eggert@twinsun.com>
57042 Merge from coreutils.
57043 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57044 member but strut utmpx does not. Needed for AIX 4.3.3.
57045 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57047 2003-08-15 Jim Meyering <jim@meyering.net>
57048 and Paul Eggert <eggert@cs.ucla.edu>
57050 Merges from coreutils, etc.
57051 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57052 Require gl_FUNC_TZSET_CLOBBER.
57053 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57054 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57057 2003-08-14 Paul Eggert <eggert@twinsun.com>
57059 Help the merge from coreutils.
57060 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57061 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57062 * m4/tzset.m4: Use it too.
57064 2003-08-14 Paul Eggert <eggert@twinsun.com>
57066 * modules/tzset: New file.
57068 2003-08-14 Jim Meyering <jim@meyering.net>
57070 Merges from coreutils.
57071 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57072 variable names, rather than @FNMATCH_H@.
57073 * modules/alloca: Likewise for $(ALLOCA_H).
57075 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57076 the three copies of the literal target, `fnmatch.h'.
57077 * modules/alloca (alloca.h): Likewise.
57079 2003-08-14 Jim Meyering <jim@meyering.net>
57081 Merge from coreutils.
57082 * m4/tzset.m4: New file.
57083 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57084 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57085 otherwise, AIX 5.1 systems would end up using the latter.
57086 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57087 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57088 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57089 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57091 2003-08-14 Jim Meyering <jim@meyering.net>
57093 Merge from coreutils.
57094 * lib/obstack.h: Whitespace changes.
57095 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57096 and xcalloc return values.
57097 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57098 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57099 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57100 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57101 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57103 Use mntctl's return value to drive the entry-processing loop, since
57104 we can't rely on the value of the vmt_length member in the last
57105 entry. On some systems doing so could result in exhausting
57106 virtual memory. Based in part on a patch from Mike Jetzer.
57108 2003-08-14 Jim Meyering <jim@meyering.net>
57109 and Paul Eggert <eggert@twinsun.com>
57111 Merges from coreutils, plus other fixes.
57112 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57113 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57114 for credits and details. Thanks to Kaveh Ghazi for helping
57115 to keep these files in sync.
57116 (ARRAY_SIZE): Define it.
57117 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57118 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57119 (memcasecmp): Don't assume size_t fits in unsigned int.
57120 Remove casts and duplicate code.
57121 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57122 (memcpy): Remove definition.
57123 Merge in some clean-up and optimization changes from glibc.
57124 [BLOCKSIZE]: Move definition to top of file.
57125 Ensure that it is a multiple of 64.
57126 Rearrange loop exit tests so as to avoid performing an
57127 additional fread after encountering an error or EOF.
57128 * lib/md5.h (md5_uintptr): Define.
57129 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57130 return to the initial working directory. Preserve errno
57132 * lib/idcache.c: Include "xalloc.h".
57133 (xmalloc, xrealloc): Remove decls.
57134 (getuser): Remove casts no longer required in C89.
57135 * lib/human.c: Include stdio.h, for sprintf.
57136 * lib/group-member.c: Include "xalloc.h".
57137 (xmalloc, xrealloc): Remove decls.
57138 (get_group_info): Remove casts no longer required in C89.
57139 * lib/getusershell.c (readname): Remove casts no longer required in
57141 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57142 * lib/getline.c: Whitespace fix, from coreutils.
57144 2003-08-13 Paul Eggert <eggert@twinsun.com>
57146 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57149 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57150 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57151 Undo previous (whitespace-only) change.
57153 2003-08-13 Paul Eggert <eggert@twinsun.com>
57155 * lib/exclude.c: Include <ctype.h>
57156 (IN_CTYPE_DOMAIN): New macro.
57157 (is_space): New fn.
57158 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57161 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57162 Undo previous (whitespace-only) change.
57164 2003-08-13 Paul Eggert <eggert@twinsun.com>
57166 * config/srclist-update: Change update back to the old behavior,
57167 leaving whitespace alone. Use one 'sed' command rather than a
57169 (fixlicense): Now a variable, not a function.
57170 (remove_trailing_blanks): Remove.
57171 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57172 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57173 Undo previous (whitespace-only) change.
57175 2003-08-12 Paul Eggert <eggert@twinsun.com>
57177 Merge from coreutils.
57178 * modules/euidaccess: Add lib_SOURCES, include for new
57181 2003-08-12 Paul Eggert <eggert@twinsun.com>
57183 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57184 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57185 Normalize leading white space and remove trailing white space.
57187 Merge from coreutils
57188 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57190 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57191 0.12.1. These files are now being upgraded automatically by
57192 ../config/srclist-update.
57194 2003-08-12 Paul Eggert <eggert@twinsun.com>
57196 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57197 Normalize leading white space and remove trailing white space.
57198 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57199 notice, as per ../config/srclist-update.
57201 Merge from coreutils.
57202 * lib/euidaccess.h: New file.
57203 * lib/euidaccess.c: Include it.
57204 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57205 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57206 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57208 2003-08-12 Paul Eggert <eggert@twinsun.com>
57210 * config/srclist-update: Add copyright notice.
57211 (remove_id_lines, remove_trailing_blanks): New constants.
57212 (fixfile): Use them to normalize spacing a bit in copied files.
57213 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57214 Normalize leading white space and remove trailing white space.
57216 * config/texinfo.tex: Sync with texinfo.
57218 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57219 strtoul.c from libc, to merge coreutils whitespace changes.
57221 * config/srclist.txt: Get the following m4 files from gettext:
57222 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57223 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57224 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57227 2003-08-12 Karl Berry <karl@gnu.org>
57229 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57232 2003-08-11 Paul Eggert <eggert@twinsun.com>
57234 * modules/gnu-source, m4/gnu-source.m4:
57235 Remove; we're assuming Autoconf 2.54 or later now.
57236 Suggested by Bruno Haible.
57237 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57239 2003-08-11 Bruno Haible <bruno@clisp.org>
57241 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57243 2003-08-11 Bruno Haible <bruno@clisp.org>
57245 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57246 (vasnprintf): Use it instead of wcslen.
57248 2003-08-11 Bruno Haible <bruno@clisp.org>
57250 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57251 value to ensure that _Bool promotes to int. Use #define for _Bool when
57252 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57254 2003-08-10 Karl Berry <karl@gnu.org>
57256 * lib/regex.h: update from libc (whitespace fix).
57258 2003-08-09 Paul Eggert <eggert@twinsun.com>
57260 Merge some files from coreutils. These changes were
57261 originally made by Jim Meyering.
57262 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57263 many older Unixes require this.
57264 * lib/alloca.c (alloca): Remove cast to argument of free;
57265 no longer needed in C89.
57266 * lib/alloca_.h, regex.h: Fix white space to match
57267 what GNU indent does.
57269 2003-08-09 Paul Eggert <eggert@twinsun.com>
57271 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57272 apparently Emacs's Unicode mode got confused before my 2003-08-05
57275 2003-08-08 Paul Eggert <eggert@twinsun.com>
57277 * m4/extensions.m4: New file.
57278 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57279 Require gl_USE_SYSTEM_EXTENSIONS.
57280 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57281 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57283 2003-08-08 Paul Eggert <eggert@twinsun.com>
57285 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57286 * modules/extensions, modules/gnu-source: New files.
57287 * modules/timespec, modules/unlocked-io: Depend on extensions.
57289 2003-08-07 Paul Eggert <eggert@twinsun.com>
57291 * modules/restrict: New file.
57292 * MODULES.html.sh (func_all_modules): Add restrict.
57293 * modules/regex: Depend on restrict.
57295 2003-08-07 Paul Eggert <eggert@twinsun.com>
57297 * m4/restrict.m4: New file.
57298 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57300 2003-08-07 Bruno Haible <bruno@clisp.org>
57302 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57303 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57305 2003-08-07 Bruno Haible <bruno@clisp.org>
57307 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57308 makes the module 'getndelim2' compatible with the module 'getline'.
57310 2003-08-05 Paul Eggert <eggert@twinsun.com>
57312 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57313 byte with "\201" to avoid glitches when editing that source file
57314 with multi-gnome-terminal.
57316 2003-08-05 Paul Eggert <eggert@twinsun.com>
57318 * lib/bumpalloc.h: Remove.
57320 2003-08-05 Paul Eggert <eggert@twinsun.com>
57322 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57323 * modules/bumpalloc: Remove.
57325 2003-08-04 Paul Eggert <eggert@twinsun.com>
57327 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57330 Merge from coreutils.
57331 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57333 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57334 from Karl Berry, implemented by Jim Meyering.
57335 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57336 from Dmitry V. Levin.
57337 Remove anachronistic cast of xrealloc.
57338 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57339 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57340 type. Otherwise, it wouldn't compile with at least /bin/cc on
57341 ymp-cray-unicos9.0.2.X.
57342 Combine two mostly-identical uses of alloca into one.
57343 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57345 2003-08-04 Dave Love <d.love@dl.ac.uk>
57349 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57350 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57351 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57352 obsolete NLIST_NAME_UNION.
57353 [__GNU__]: Undef BSD and FSCALE.
57354 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57356 2003-08-03 Paul Eggert <eggert@twinsun.com>
57358 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57359 an enum type, so that it's guaranteed to promote to int. See:
57360 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57362 2003-08-03 Karl Berry <karl@gnu.org>
57364 * config/depcomp: update from automake.
57366 2003-07-31 Paul Eggert <eggert@twinsun.com>
57368 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57369 (strerror): Don't assume that a printable int fits in 14 bytes.
57371 2003-07-31 Bruno Haible <bruno@clisp.org>
57373 * modules/getpass-gnu: New file.
57374 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57376 2003-07-31 Bruno Haible <bruno@clisp.org>
57378 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57380 2003-07-24 Karl Berry <karl@gnu.org>
57382 * config/missing: update from automake.
57384 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57385 Bruno Haible <bruno@clisp.org>
57387 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57388 * lib/getline.c (getline, getdelim): Likewise.
57389 Remove _GNU_SOURCE define; now it's defined in config.h through
57392 2003-07-23 Karl Berry <karl@gnu.org>
57394 * config/config.sub: update from prep.
57396 2003-07-22 Paul Eggert <eggert@twinsun.com>
57398 * modules/xalloc (Depends-on): Add exitfail.
57399 * modules/xmemcoll: Likewise.
57401 2003-07-22 Paul Eggert <eggert@twinsun.com>
57403 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57404 over-parenthesization in macros.
57406 Sync with coreutils.
57408 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57411 Use `exit_failure' for xalloc and xmemcoll instead of their own
57412 private exit-failure variables.
57413 * lib/xalloc.h (xalloc_exit_failure): Remove.
57414 * lib/xmalloc.c: Likewise. Include exitfail.h.
57415 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57416 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57417 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57418 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57420 2003-07-20 Jim Meyering <jim@meyering.net>
57422 * modules/closeout (Depends-on): Add exitfail.
57423 Suggestion from Bruno Haible.
57425 2003-07-19 Karl Berry <karl@gnu.org>
57427 * config/config.sub: update from prep.
57429 2003-07-18 Paul Eggert <eggert@twinsun.com>
57431 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57433 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57434 to test that it can stand by itself. Include "exitfail.h".
57435 Clients should set exit_failure instead.
57436 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57438 2003-07-18 Bruno Haible <bruno@clisp.org>
57440 * modules/getndelim2: New file.
57441 * modules/getline: Share files with module getndelim2.
57442 * modules/getnline: Depend on getndelim2 instead of sharing files with
57443 it. Add getnline.c to lib_SOURCES.
57444 * MODULES.html.sh (func_all_modules): Add getndelim2.
57446 2003-07-18 Bruno Haible <bruno@clisp.org>
57448 * m4/getndelim2.m4: New file.
57449 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57450 invoke gl_PREREQ_GETNDELIM2.
57451 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57452 gl_PREREQ_GETNDELIM2.
57453 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57456 2003-07-18 Bruno Haible <bruno@clisp.org>
57458 * lib/getndelim2.h: New file.
57459 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57461 (getndelim2): Make non-static. Change return type to ssize_t.
57462 * lib/getline.h: Change argument names.
57463 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57464 * lib/getnline.c: Include getndelim2.h.
57466 2003-07-18 Andreas Schwab <schwab@suse.de>
57468 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57470 2003-07-17 Karl Berry <karl@gnu.org>
57472 * config/config.sub: update from prep.
57474 2003-07-17 Bruno Haible <bruno@clisp.org>
57476 * modules/getnline: New file.
57477 * modules/getline: Add lib/getndelim2.c to source file list.
57478 * MODULES.html.sh (func_all_modules): Add getnline.
57480 2003-07-17 Bruno Haible <bruno@clisp.org>
57482 * m4/getnline.m4: New file.
57484 2003-07-17 Bruno Haible <bruno@clisp.org>
57486 * m4/Makefile.am.in: Remove file.
57487 * m4/Makefile.am: Remove file.
57488 * m4/Makefile.in: Remove file.
57490 2003-07-17 Bruno Haible <bruno@clisp.org>
57492 * lib/getnline.h: New file.
57493 * lib/getnline.c: New file.
57494 * lib/getndelim2.c: New file, extracted from getline.c.
57495 (getndelim2): Renamed from getdelim2, with added nmax argument.
57496 * lib/getline.c: Include getndelim2.c.
57497 (getdelim2): Moved out to getndelim2.c.
57498 (getline, getdelim): Update.
57500 2003-07-17 Bruno Haible <bruno@clisp.org>
57502 * lib/Makefile.am: Remove file.
57503 * lib/Makefile.in: Remove file.
57505 2003-07-17 Bruno Haible <bruno@clisp.org>
57507 * configure.in: Remove file.
57508 * Makefile.in: Remove file.
57510 2003-07-17 Bruno Haible <bruno@clisp.org>
57512 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57514 2003-07-16 Karl Berry <karl@gnu.org>
57516 * config/srclist-update: was running fixlicense twice, which caused
57517 texinfo.tex to be nullified for some reason. Simplify,
57518 $gplsrc is no longer needed as far as I can see?
57520 2003-07-16 Jim Meyering <jim@meyering.net>
57522 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57524 2003-07-15 Paul Eggert <eggert@twinsun.com>
57526 * config/srclist.txt: Get the following files from gettext-runtime/intl
57527 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57528 ref-del.sin. From Bruno Haible.
57529 * config/srclist-update (fixfile): Change grep pattern again, since the
57530 previous fix didn't work (there was another trailing $). Use
57531 '[$]' to escape the $s.
57533 2003-07-15 Karl Berry <karl@gnu.org>
57535 * lib/vasnprintf.c: update from gettext.
57537 2003-07-15 Karl Berry <karl@gnu.org>
57539 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57540 gets expanded when surrounded by '$'.
57542 2003-07-15 Jim Meyering <jim@meyering.net>
57544 * modules/save-cwd: Don't depend on error. From Derek Price.
57546 2003-07-15 Jim Meyering <jim@meyering.net>
57548 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57550 2003-07-14 Simon Josefsson <jas@extundo.com>
57552 * modules/mempcpy: New file.
57553 * MODULES.html.sh (func_all_modules): Add mempcpy.
57555 2003-07-14 Simon Josefsson <jas@extundo.com>
57557 * m4/mempcpy.m4: New file.
57559 2003-07-14 Simon Josefsson <jas@extundo.com>
57561 * lib/mempcpy.h: New file.
57562 * lib/mempcpy.c: New file.
57564 2003-07-14 Paul Eggert <eggert@twinsun.com>
57566 * modules/getdate, modules/posixtm: Depend on mktime.
57568 2003-07-14 Paul Eggert <eggert@twinsun.com>
57570 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57571 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57572 unicodeio.c, unicodeio.h, unlocked-io.h:
57573 Switch from LGPL to GPL.
57575 2003-07-14 Paul Eggert <eggert@twinsun.com>
57577 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57578 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57579 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57580 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57581 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57582 updated automatically by ../config/srclist-update. This changes
57583 their license from LPGL to GPL.
57585 2003-07-14 Paul Eggert <eggert@twinsun.com>
57587 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57588 assumed to refer to the root of the most recent stable gettext version.
57589 * config/srclistvars.sh: Add defaults for eggert.
57590 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57591 Match "This program" as well as "The program". This is needed
57594 2003-07-14 Jim Meyering <jim@meyering.net>
57596 Don't emit diagnostics. Let callers do that.
57597 * lib/save-cwd.c: Don't include "error.h".
57598 (save_cwd): Don't call error. Ensure that errno is valid
57599 when returning nonzero.
57601 * lib/save-cwd.h (restore_cwd): Update prototype.
57602 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57603 Simplify. Don't call error upon failure. Let callers do that.
57604 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57605 when auditing is enabled. But don't bother updating the #if.
57607 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57609 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57610 it breaks C++ compilation.
57611 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57613 2003-07-10 Simon Josefsson <jas@extundo.com>
57615 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57617 2003-07-10 Jim Meyering <jim@meyering.net>
57619 * m4/clock_time.m4: Remove trailing blank.
57620 * m4/intmax_t.m4: Likewise.
57622 2003-07-10 Jim Meyering <jim@meyering.net>
57624 * lib/vasnprintf.c: Remove trailing blanks.
57625 Make cpp indentation consistent.
57627 2003-07-09 Paul Eggert <eggert@twinsun.com>
57629 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57630 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57631 Switch from LGPL to GPL.
57633 2003-07-09 Paul Eggert <eggert@twinsun.com>
57635 * config/srclist.txt: Sort sublists. Add
57636 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57637 that differ from gnulib for one reason or another; we'd like this list
57638 to be smaller but for now let's document what we have.
57640 2003-07-08 Paul Eggert <eggert@twinsun.com>
57642 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57643 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57644 and sweeter "eval x=$x".
57645 * config/srclist.txt: Get lib/argp* from glibc.
57647 2003-07-07 Paul Eggert <eggert@twinsun.com>
57649 * lib/mktime.c: Fix some boundary cases and remove need for floating
57652 Issue a compile-time diagnostic if time_t is floating point, or if
57653 two's complement arithmetic is not in effect, or if arithmetic
57654 right shift does not propagate the sign. These assumptions were
57655 all in the original code but they weren't checked.
57657 (TIME_T_MIDPOINT, verify): New macros.
57658 (__isleap): Remove; it has integer overflow problems.
57659 (leapyear): New function, without those problems.
57660 (ydhms_tm_diff): Remove; splitting into two parts.
57661 (ydhms_diff): New function, containing the arithmetic part of
57662 the old ydhms_tm_diff function. Issue a compile-time
57663 diagnostic if we are not using C99 integer division.
57664 Avoid casts when possible.
57665 (guess_time_tm): New function, containing the checking part of
57666 the old ydhms_tm_diff function. Return the new value, rather than
57667 the difference between it and the old. Accept a new argument T
57668 so that *T specifies the old value. Check for overflow in the result.
57670 (__mktime_internal): Use a time_t offset, not a long int offset.
57671 This undoes the 2003-06-04 change, which is no longer needed now
57672 that we have better overflow checking.
57673 (localtime_offset): Likewise.
57675 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57676 and long are 64-bit but int is only 32-bit.
57677 (ydhms_diff): Use long int to store year1 and yday1.
57678 Issue a compile-time diagnostic if long int is not wide enough.
57680 (__mktime_internal): Use long int to store adjusted year and yday.
57681 Use plain C rather than preprocessor commands, if that doesn't
57683 Check for overflow (and try to repair) after each probe
57684 rather than checking only at the very end. This avoids some bugs
57685 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57686 does not equal GMT offset at maximum time).
57687 Use integer to check for overflow rather than floating point; this
57688 is more portable to non-IEEE hosts, and is a tad faster.
57689 When we detect that we are oscillating between two values,
57690 don't check whether tm_isdst has the requested value, since
57691 we already know the answer. When tm_isdst has the wrong value,
57692 use a different heuristic to find the right one, based on the
57693 extreme values actually observed in practice in tz2003a,
57694 rather than the (overly optimistic) "previous 3 calendar quarters".
57696 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57697 "T const" to accommodate glibc style.
57698 (check_result): Use less-confusing report format. "long" -> "long int.
57700 Don't loop if the iteration overflows time_t.
57701 Allow a negative step in the iteration.
57703 2003-07-06 Karl Berry <karl@gnu.org>
57705 * config/depcomp: update from automake.
57706 * config/config.sub: update from prep.
57708 2003-07-03 Karl Berry <karl@gnu.org>
57710 * config/config.guess: update from prep.
57712 2003-07-01 Paul Eggert <eggert@twinsun.com>
57714 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57715 xreadlink.c now includes it unconditionally.
57717 2003-07-01 Paul Eggert <eggert@twinsun.com>
57719 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57720 having it depend on HAVE_SYS_TYPES_H.
57722 2003-07-01 Bruno Haible <bruno@clisp.org>
57724 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57725 <sys/types.h> should be sufficient.
57726 Reported by Paul Eggert.
57728 2003-06-26 Karl Berry <karl@gnu.org>
57730 * config/depcomp: update from automake.
57732 2003-06-26 Bruno Haible <bruno@clisp.org>
57734 * modules/human: Depend on module stdbool.
57736 2003-06-25 Bruno Haible <bruno@clisp.org>
57738 * modules/readlink: New file.
57739 * modules/xreadlink: Depend on it.
57740 * MODULES.html.sh (func_all_modules): Add readlink.
57742 2003-06-25 Bruno Haible <bruno@clisp.org>
57744 * m4/readlink.m4: New file.
57746 2003-06-25 Bruno Haible <bruno@clisp.org>
57748 * lib/readlink.c: New file.
57750 2003-06-22 Karl Berry <karl@gnu.org>
57752 * config/srclist.txt: update mkinstalldirs from automake.
57753 * config/mkinstalldirs: update.
57755 2003-06-22 Bruno Haible <bruno@clisp.org>
57757 Portability to mingw32.
57758 * m4/ssize_t.m4: New file, from GNU gettext.
57759 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57760 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57762 2003-06-22 Bruno Haible <bruno@clisp.org>
57764 * modules/safe-read: Add m4/ssize_t.m4.
57765 * modules/xreadlink: Add m4/ssize_t.m4.
57767 2003-06-20 Bruno Haible <bruno@clisp.org>
57769 Assume C89, so PARAMS isn't needed.
57770 * lib/unicodeio.h (PARAMS): Remove.
57771 * lib/unicodeio.c: Don't use PARAMS.
57773 2003-06-18 Karl Berry <karl@gnu.org>
57775 * config/config.{guess,sub}: update from prep.
57777 2003-06-18 Jim Meyering <jim@meyering.net>
57779 Merge changes from coreutils.
57780 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57781 Remove explicit declarations of xmalloc and realloc.
57783 (read_utmp): Remove anachronistic cast of xmalloc.
57785 2003-06-17 Paul Eggert <eggert@twinsun.com>
57787 Assume C89, so PARAMS isn't needed.
57788 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57789 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57790 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57791 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57792 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57793 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57794 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57795 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57796 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57797 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57798 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57799 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57800 no longer needed. Anyway, config.h should always be included before any
57803 2003-06-11 Simon Josefsson <jas@extundo.com>
57805 * modules/sysexits: New file.
57806 * MODULES.html.sh (func_all_modules): Add sysexits.
57808 2003-06-11 Simon Josefsson <jas@extundo.com>
57810 * lib/sysexit_.h: New file.
57812 2003-06-11 Derek Price <derek@ximbiot.com>
57814 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57817 2003-06-11 Bruno Haible <bruno@clisp.org>
57819 * m4/sysexits.m4: New file.
57821 2003-06-10 Simon Josefsson <jas@extundo.com>
57823 * lib/argp.h: New file, from glibc.
57824 * lib/argp-ba.c: New file, from glibc.
57825 * lib/argp-eexst.c: New file, from glibc.
57826 * lib/argp-fmtstream.c: New file, from glibc.
57827 * lib/argp-fmtstream.h: New file, from glibc.
57828 * lib/argp-fs-xinl.c: New file, from glibc.
57829 * lib/argp-help.c: New file, from glibc.
57830 * lib/argp-namefrob.h: New file, from glibc.
57831 * lib/argp-parse.c: New file, from glibc.
57832 * lib/argp-pv.c: New file, from glibc.
57833 * lib/argp-pvh.c: New file, from glibc.
57834 * lib/argp-xinl.c: New file, from glibc.
57836 2003-06-10 Simon Josefsson <jas@extundo.com>
57838 * modules/strchrnul: New file.
57840 2003-06-10 Simon Josefsson <jas@extundo.com>
57842 * modules/argp: New file.
57844 2003-06-10 Simon Josefsson <jas@extundo.com>
57846 * m4/strchrnul.m4: New file.
57848 2003-06-10 Simon Josefsson <jas@extundo.com>
57850 * lib/strchrnul.h: New file.
57851 * lib/strchrnul.c: New file.
57853 2003-06-10 Bruno Haible <bruno@clisp.org>
57855 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57857 2003-06-07 Karl Berry <karl@gnu.org>
57859 * config/config.{guess,sub}: update from prep.
57861 2003-06-07 Jim Meyering <jim@meyering.net>
57863 * modules/strtod: Use $(...) notation, not @...@ for
57864 AC_REPLACE'd variables.
57865 * modules/localcharset: Likewise.
57867 2003-06-07 Jim Meyering <jim@meyering.net>
57869 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57870 in place of my name in the copyright comment.
57871 Remove definition and uses of __P.
57874 * lib/stat.c: Don't declare xmalloc explicitly.
57875 Instead, include "xalloc.h".
57876 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57877 xrealloc, and xcalloc return values.
57878 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57880 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57882 2003-06-07 Bruno Haible <bruno@clisp.org>
57884 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57885 avoid AC_CONFIG_LINKS.
57886 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57887 fnmatch.h, to avoid AC_CONFIG_LINKS.
57888 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57890 2003-06-07 Bruno Haible <bruno@clisp.org>
57892 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57893 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57894 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57896 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57897 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57900 2003-06-06 Jim Meyering <jim@meyering.net>
57902 Merge from coreutils.
57903 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57904 Consolidate declarations and initializations of *_base* locals.
57906 Merge from coreutils.
57907 This avoids a core dump on systems without GNU putenv,
57908 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57909 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57910 (unsetenv): New static function, from GNU libc.
57911 (rpl_putenv): Use it.
57913 * lib/modechange.c: Remove trailing blanks.
57915 Merge from coreutils.
57916 * lib/fsusage.c: Remove declaration of statfs.
57917 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57919 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57921 2003-06-06 Jim Meyering <jim@meyering.net>
57923 * lib/stdbool_.h: Renamed from stdbool.h.in.
57925 2003-06-06 Jim Meyering <jim@meyering.net>
57926 Bruno Haible <bruno@clisp.org>
57928 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57929 Adjust Makefile.am snippet not to redirect directly to target.
57930 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57932 2003-06-05 Paul Eggert <eggert@twinsun.com>
57934 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57935 mismatch, look in future quarters as well as past. This fixes a
57936 bug when processing fall-backwards gaps immediately after a long
57937 period of daylight-saving time.
57939 * lib/mktime.c: Assume freestanding C89 or better.
57940 (HAVE_LIMITS_H): Remove. Assume it's 1.
57941 (__P): Remove; not used.
57942 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57943 (mktime, not_equal_tm, print_tm, check_result,
57944 main): Use prototypes. Use const * where appropriate.
57945 (main): Fix typo in testing code that uncovered by above changes.
57946 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57948 2003-06-04 Paul Eggert <eggert@twinsun.com>
57950 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57951 locale.h, localeconv. This merges changes from coreutils.
57953 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57954 It can be removed after the next Autoconf is released.
57955 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57958 2003-06-04 Paul Eggert <eggert@twinsun.com>
57960 * lib/mktime.c: Fix Debian bug 177940
57961 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57962 (localtime_offset): Now long int, not time_t, because we want it
57963 to be guaranteed to be signed. All uses changed.
57964 (__mktime_internal): If overflow would occur when adding offset,
57967 Merge 'human' changes from coreutils. Rewrite to support
57968 locale-specific notations like thousands separators.
57969 * lib/human.c: Simplify authorship notice.
57970 Include human.h immediately after config.h.
57971 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57972 <limits.h>: Do not include, since human.h does.
57973 (SIZE_MAX, UINTMAX_MAX): New macros.
57974 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57975 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57976 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57977 (power_letter): Renamed from suffixes.
57978 (generate_suffix_backwards): Remove.
57979 (adjust_value): Now takes int style (because of human.h changes)
57980 and long double value (for greater precision on some platforms).
57981 (group_number): New function.
57982 (human_readable): Use it. Use integer options, not enum.
57983 Put the options before the sizes in the arg list.
57984 Support all the new options.
57985 The old human_readable function has been removed;
57986 use inttostr.h instead.
57987 (human_readable, default_block_size, humblock):
57988 Use uintmax_t, not int, for block sizes.
57989 (human_readable_inexact, block_size_types): Remove.
57990 (block_size_opts): New constant.
57991 (human_options): Renamed from human_block_size, with new signature
57992 that allows block sizes up to UINTMAX_MAX. All callers changed.
57993 * lib/human.h: Add copyright and authorship notice.
57994 Include <limits.h> and <stdbool.h> unconditionally.
57995 (PARAMS): Remove. All uses removed.
57996 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57997 (enum human_inexact_style): Remove tag; now a nameless enum.
57998 (human_floor, human_ceiling, human_round_to_even): Now have
57999 values 2, 0, 1 rather than -1, 1, 0.
58000 (human_group_digits, human_suppress_point_zero, human_autoscale,
58001 human_base_1024, human_SI, human_B): New constants.
58002 (human_readable_inexact, human_block_size): Remove.
58003 (human_readable): Size args are now uintmax_t, not int.
58004 (human_options): New decl.
58006 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58007 unnecessary now that we assume C89 or better. This change
58008 imported from coreutils.
58010 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58011 arbitrarily. This is the same patch as 2003-05-28, but it got lost
58012 in the 2003-05-30 sync from glibc.
58014 .h files should stand alone, but we shouldn't include <sys/types.h>
58015 if we can get away with just <stddef.h>.
58017 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58018 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58019 rather than <sys/types.h>, as we merely need size_t.
58020 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58022 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58023 Include <stdio.h>, to get FILE.
58024 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58025 memcasecmp.h has included <stddef.h> and all we need is size_t.
58026 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58027 our interface, instead of including <sys/types.h>
58029 2003-06-04 Paul Eggert <eggert@twinsun.com>
58031 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58032 now, as glibc mktime is buggy on non-glibc systems.
58034 2003-06-03 Karl Berry <karl@gnu.org>
58036 * config/config.sub: update from prep.
58038 2003-06-02 Paul Eggert <eggert@twinsun.com>
58041 Fix some minor time-related bugs with POSIX time arguments.
58042 Some valid time stamps were being rejected (notably -1, and
58043 time stamps before 1900 on 64-bit hosts). And some invalid
58044 time stamps were being accepted, e.g. September 31.
58046 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58047 that we can return (time_t) -1 successfully.
58048 * lib/posixtm.c: Likewise.
58049 [HAVE_STDBOOL_H]: Include <stdbool.h>.
58050 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58051 (t): Remove static var.
58052 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58053 of static var. All uses changed.
58054 (year): Do not reject years before 1900; they can occur with
58056 (posix_time_parse): Do not check for out-of-range components;
58057 that is now the caller's responsibility, since our checks were
58058 only approximations.
58059 (posixtime): Use mktime to check for out-of-range components,
58060 since it knows them exactly.
58061 If mktime returns (time_t) -1, check whether an error actually occurred
58062 by invoking localtime on -1.
58063 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58064 posixtime failures better.
58065 Improve the test data (in comments only).
58067 2003-06-02 Karl Berry <karl@gnu.org>
58069 * config/mkinstalldirs (version): new variable.
58070 (--version): new option.
58071 (usage): improve message.
58073 2003-05-30 Karl Berry <karl@gnu.org>
58075 * lib/mktime.c: update from libc.
58077 2003-05-30 Bruno Haible <bruno@clisp.org>
58079 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58080 * config/config.rpath: Upgrade to gettext-0.12.1.
58082 2003-05-30 Bruno Haible <bruno@clisp.org>
58084 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58085 * m4/nls.m4: New file, from gettext-0.12.1.
58086 * m4/po.m4: New file, from gettext-0.12.1.
58087 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58089 2003-05-30 Bruno Haible <bruno@clisp.org>
58091 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58092 * lib/localcharset.h: Likewise.
58093 * lib/localcharset.c: Likewise.
58095 2003-05-29 Karl Berry <karl@gnu.org>
58097 * config/config.rpath: update from gettext.
58099 2003-05-28 Paul Eggert <eggert@twinsun.com>
58101 Assume the headers required for C89 freestanding compilers.
58102 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58103 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58104 * m4/human.m4 (gl_HUMAN): Likewise.
58105 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58106 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58107 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58108 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58109 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58110 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58112 2003-05-28 Paul Eggert <eggert@twinsun.com>
58114 Assume the headers required for C89 freestanding compilers.
58115 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58116 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58117 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58118 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58119 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58120 define, since <limits.h> is guaranteed to do that.
58121 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58122 * lib/exclude.c: Include <stdbool.h> unconditionally.
58123 * lib/tempname.c: Include <stddef.h> unconditionally.
58124 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58125 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58126 <stddef.h> does that.
58127 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58128 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58129 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58131 * lib/xstrtol.c: Likewise.
58132 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58133 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58135 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58136 warnings on some platforms.
58138 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58141 2003-05-26 Jim Meyering <jim@meyering.net>
58143 Merge in a change from coreutils:
58144 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58145 that is guaranteed to be `no'. Use `no_such_member' to indicate
58146 that condition, rather than `-1' which is slightly misleading.
58147 Change the name of the cache variable to have the gl_ prefix.
58148 Prompted by a patch from Richard Dawe for DJGPP.
58150 2003-05-24 Karl Berry <karl@gnu.org>
58152 * config/config.guess: update from prep.
58154 2003-05-22 Karl Berry <karl@gnu.org>
58156 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58158 2003-05-20 Karl Berry <karl@gnu.org>
58160 * config/config.guess: update from prep.
58162 2003-05-18 Karl Berry <karl@gnu.org>
58164 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58165 might actually be set by the user.
58167 * config/depcomp, install-sh, mdate-sh: update from automake.
58169 2003-05-17 Bruno Haible <bruno@clisp.org>
58171 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58172 invalid expansion for AC_EGREP_CPP.
58173 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58174 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58175 Suggested by Akim Demaille <akim@epita.fr> in
58176 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58178 2003-05-12 Jim Meyering <jim@meyering.net>
58180 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58181 the space-padded-by-default conversion specifiers, %e, %k, %l.
58183 2003-05-12 Bruno Haible <bruno@clisp.org>
58185 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58186 the string is longer than 4 KB.
58188 2003-05-11 Karl Berry <karl@gnu.org>
58190 * config/config.{guess,sub}: update from prep.
58192 2003-05-09 Bruno Haible <bruno@clisp.org>
58194 * modules/error: Add m4/strerror_r.m4 to file list.
58196 2003-05-03 Bruno Haible <bruno@clisp.org>
58198 Upgrade to Unicode-4.0.
58199 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58200 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58201 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58202 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58203 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58204 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58205 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58206 Change width of U+E0100..U+E01EF from 1 to 0.
58208 2003-04-25 Jim Meyering <jim@meyering.net>
58210 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58211 of type size_t, not int.
58213 2003-04-25 Bruno Haible <bruno@clisp.org>
58215 * lib/copy-file.c: Include <stddef.h>, for size_t.
58217 2003-04-21 Paul Eggert <eggert@twinsun.com>
58219 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58220 code which expansion is under static control. Patch imported from
58221 Akim Demaille's patch to Bison; see
58222 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58224 2003-04-14 Bruno Haible <bruno@clisp.org>
58226 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58228 2003-04-11 Jim Meyering <jim@meyering.net>
58230 Merge changes from Coreutils.
58232 2003-03-22 Jim Meyering <jim@meyering.net>
58234 * lib/strftime.c (widen): Cast alloca return value to proper type.
58236 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58239 * lib/strftime.c (my_strftime): Handle very large width
58240 specifications for numeric values correctly. Improve checks for
58243 2003-01-19 Jim Meyering <jim@meyering.net>
58245 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58247 (nl_get_alt_digit) [! defined my_strftime]: Define.
58248 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58249 _nl_get_alt_digit and _nl_get_walt_digit.
58251 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58252 libc. These changes have no effect outside of _LIBC.
58254 2003-04-10 Bruno Haible <bruno@clisp.org>
58256 * modules/findprog: New file.
58257 * MODULES.html.sh (func_all_modules): Add it.
58259 2003-04-10 Bruno Haible <bruno@clisp.org>
58261 * m4/findprog.m4: New file.
58262 * m4/eaccess.m4: New file.
58264 2003-04-10 Bruno Haible <bruno@clisp.org>
58266 * lib/findprog.h: New file, from GNU gettext.
58267 * lib/findprog.c: New file, from GNU gettext.
58269 2003-04-05 Jim Meyering <jim@meyering.net>
58271 Merge changes from Coreutils.
58273 * lib/exclude.h (PARAMS): Remove definition and uses.
58274 * lib/exclude.c: Remove uses of `PARAMS'.
58276 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58277 Add test-cases for DOS filenames. Declare program_name.
58278 (main): Set up program_name. Patch by Rich Dawe.
58280 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58282 Use mntctl's return value to drive the entry-processing loop, since
58283 we can't rely on the value of the vmt_length member in the last
58284 entry. On some systems doing so could result in exhausting
58285 virtual memory. Based in part on a patch from Mike Jetzer.
58287 2003-04-04 Bruno Haible <bruno@clisp.org>
58289 * modules/linebreak: New file.
58290 * MODULES.html.sh (func_all_modules): Add it.
58292 2003-04-04 Bruno Haible <bruno@clisp.org>
58294 * m4/linebreak.m4: New file.
58296 2003-04-04 Bruno Haible <bruno@clisp.org>
58298 * lib/linebreak.h: New file, from GNU gettext.
58299 * lib/linebreak.c: New file, from GNU gettext with slight
58301 * lib/lbrkprop.h: New file, from GNU gettext.
58303 2003-04-03 Bruno Haible <bruno@clisp.org>
58305 * modules/utf8-ucs4: New file.
58306 * modules/utf16-ucs4: New file.
58307 * modules/ucs4-utf8: New file.
58308 * modules/ucs4-utf16: New file.
58309 * MODULES.html.sh (func_all_modules): Add them.
58311 2003-04-03 Bruno Haible <bruno@clisp.org>
58313 * m4/utf-ucs4.m4: New file.
58314 * m4/ucs4-utf.m4: New file.
58316 2003-04-03 Bruno Haible <bruno@clisp.org>
58318 * lib/utf8-ucs4.h: New file, from GNU gettext.
58319 * lib/utf16-ucs4.h: New file, from GNU gettext.
58320 * lib/ucs4-utf8.h: New file, from GNU gettext.
58321 * lib/ucs4-utf16.h: New file, from GNU gettext.
58323 2003-04-02 Bruno Haible <bruno@clisp.org>
58325 * modules/binary-io: New file.
58326 * MODULES.html.sh (func_all_modules): Add it.
58328 2003-04-02 Bruno Haible <bruno@clisp.org>
58330 * lib/binary-io.h: New file, from GNU gettext.
58332 2003-04-01 Bruno Haible <bruno@clisp.org>
58334 * modules/pathname: New file.
58335 * MODULES.html.sh (func_all_modules): Add it.
58337 2003-04-01 Bruno Haible <bruno@clisp.org>
58339 * lib/pathname.h: New file, from GNU gettext.
58340 * lib/concatpath.c: New file, from GNU gettext.
58342 2003-03-30 Bruno Haible <bruno@clisp.org>
58344 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58346 2003-03-30 Bruno Haible <bruno@clisp.org>
58348 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58349 function chown() doesn't exist.
58351 2003-03-28 Bruno Haible <bruno@clisp.org>
58353 * modules/copy-file: New file.
58354 * MODULES.html.sh (func_all_modules): Add it.
58356 2003-03-28 Bruno Haible <bruno@clisp.org>
58358 * m4/copy-file.m4: New file.
58360 2003-03-28 Bruno Haible <bruno@clisp.org>
58362 * lib/copy-file.h: New file, from GNU gettext.
58363 * lib/copy-file.c: New file, from GNU gettext.
58365 2003-03-18 Jim Meyering <jim@meyering.net>
58367 * lib/quote.c (quote_n): Fix typo in comment.
58369 2003-03-18 Bruno Haible <bruno@clisp.org>
58371 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58373 * m4/onceonly_2_57.m4: Likewise.
58375 2003-03-17 Bruno Haible <bruno@clisp.org>
58377 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58378 (m4_quote): Remove macro.
58379 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58381 2003-03-14 Jim Meyering <jim@meyering.net>
58383 Merge changes from Coreutils.
58384 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58385 to be const, in order to avoid warnings.
58386 (obstack_room): Likewise.
58387 (obstack_empty_p): Likewise.
58389 2003-03-14 Bruno Haible <bruno@clisp.org>
58391 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58392 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58394 2003-03-13 Paul Eggert <eggert@twinsun.com>
58396 Merge changes from Bison.
58397 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58398 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58399 when compiling Bison 1.875's `bitset bset = obstack_alloc
58400 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58401 * lib/hash.c: Include <stdbool.h> unconditionally.
58403 2003-03-13 Paul Eggert <eggert@twinsun.com>
58405 * m4/onceonly.m4 (m4_quote): New macro.
58406 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58407 Quote AC_FOREACH variable-expansions properly.
58409 2003-03-13 Paul Eggert <eggert@twinsun.com>
58411 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58413 2003-03-09 Paul Eggert <eggert@twinsun.com>
58415 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58416 Reported by Bruce Becker; see:
58417 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58419 2003-03-03 Paul Eggert <eggert@twinsun.com>
58420 Bruno Haible <bruno@clisp.org>
58422 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58423 Reported by John Hughes, see
58424 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58426 2003-02-20 Bruno Haible <bruno@clisp.org>
58428 * MODULES.html.sh (func_all_modules): Add poll.
58430 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58432 * modules/poll: New file.
58434 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58436 * lib/poll_.h: New file.
58437 * lib/poll.c: New file.
58439 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58441 * m4/poll.m4: New file.
58443 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58445 * modules/mathl: New file.
58447 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58449 * lib/mathl.h: New file.
58450 * lib/acosl.c: New file.
58451 * lib/asinl.c: New file.
58452 * lib/atanl.c: New file.
58453 * lib/ceill.c: New file.
58454 * lib/cosl.c: New file.
58455 * lib/expl.c: New file.
58456 * lib/floorl.c: New file.
58457 * lib/frexpl.c: New file.
58458 * lib/ldexpl.c: New file.
58459 * lib/logl.c: New file.
58460 * lib/sincosl.c: New file.
58461 * lib/sinl.c: New file.
58462 * lib/sqrtl.c: New file.
58463 * lib/tanl.c: New file.
58464 * lib/trigl.c: New file.
58465 * lib/trigl.h: New file.
58467 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58469 * m4/mathl.m4: New file.
58471 2003-02-18 Bruno Haible <bruno@clisp.org>
58473 * MODULES.html.sh (func_all_modules): Add mathl.
58475 2003-02-17 Bruno Haible <bruno@clisp.org>
58477 * modules/mkdtemp: New module.
58478 * MODULES.html.sh (func_all_modules): Add it.
58480 2003-02-17 Bruno Haible <bruno@clisp.org>
58482 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58484 2003-02-17 Bruno Haible <bruno@clisp.org>
58486 * lib/mkdtemp.h: New file, from GNU gettext.
58487 * lib/mkdtemp.c: New file, from GNU gettext.
58489 2003-02-02 Jim Meyering <jim@meyering.net>
58491 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58494 2003-01-31 Bruno Haible <bruno@clisp.org>
58496 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58498 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58500 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58502 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58505 2003-01-31 Bruno Haible <bruno@clisp.org>
58507 * lib/rename.c: #undef rename before defining rpl_rename.
58508 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58510 2003-01-30 Bruno Haible <bruno@clisp.org>
58512 * modules/vasnprintf, modules/vasprintf: New modules.
58513 * MODULES.html.sh (func_all_modules): Add them.
58515 2003-01-30 Bruno Haible <bruno@clisp.org>
58517 * m4/signed.m4: New file, from GNU gettext.
58518 * m4/longdouble.m4: New file, from GNU gettext.
58519 * m4/wchar_t.m4: New file, from GNU gettext.
58520 * m4/wint_t.m4: New file, from GNU gettext.
58521 * m4/vasnprintf.m4: New file.
58522 * m4/vasprintf.m4: New file.
58524 2003-01-30 Bruno Haible <bruno@clisp.org>
58526 * lib/printf-args.h: New file, from GNU gettext.
58527 * lib/printf-args.c: New file, from GNU gettext.
58528 * lib/printf-parse.h: New file, from GNU gettext.
58529 * lib/printf-parse.c: New file, from GNU gettext.
58530 * lib/vasnprintf.h: New file, from GNU gettext.
58531 * lib/vasnprintf.c: New file, from GNU gettext.
58532 * lib/asnprintf.c: New file, from GNU gettext.
58533 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58534 * lib/vasprintf.c: New file, from GNU gettext.
58535 * lib/asprintf.c: New file, from GNU gettext.
58537 2003-01-29 Bruno Haible <bruno@clisp.org>
58539 * modules/stpncpy: New module.
58540 * MODULES.html.sh (func_all_modules): Add it.
58542 2003-01-29 Bruno Haible <bruno@clisp.org>
58544 * m4/stpncpy.m4: New file.
58546 2003-01-29 Bruno Haible <bruno@clisp.org>
58548 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58549 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58551 2003-01-28 Bruno Haible <bruno@clisp.org>
58553 * modules/c-ctype: New module.
58554 * MODULES.html.sh (func_all_modules): Add it.
58556 2003-01-28 Bruno Haible <bruno@clisp.org>
58558 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58560 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58563 2003-01-27 Bruno Haible <bruno@clisp.org>
58565 * modules/xsetenv: New module.
58566 * MODULES.html.sh (func_all_modules): Add it.
58568 2003-01-27 Bruno Haible <bruno@clisp.org>
58570 * lib/xsetenv.h: New file, from GNU gettext.
58571 * lib/xsetenv.c: New file, from GNU gettext.
58573 2003-01-23 Jim Meyering <jim@meyering.net>
58575 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58576 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58578 2003-01-23 Bruno Haible <bruno@clisp.org>
58580 * modules/minmax: New module.
58581 * MODULES.html.sh (func_all_modules): Add it.
58583 2003-01-23 Bruno Haible <bruno@clisp.org>
58585 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58588 2003-01-22 Bruno Haible <bruno@clisp.org>
58590 * modules/exit: New module.
58591 * MODULES.html.sh (func_all_modules): Add it.
58593 2003-01-22 Bruno Haible <bruno@clisp.org>
58595 * lib/exit.h: New file, from GNU gettext.
58597 2003-01-19 Bruno Haible <bruno@clisp.org>
58599 * gnulib-tool: Recognize option --extract-maintainer.
58600 (func_get_maintainer): New function.
58601 * modules/*: Add Maintainer entry.
58603 2003-01-16 Jim Meyering <jim@meyering.net>
58605 * m4/regex.m4: The `regex' struct is both input and output.
58606 Initialize it before each use. Patch by Tim Waugh.
58608 2003-01-16 Bruno Haible <bruno@clisp.org>
58610 * MODULES.html.sh: Add a table of contents. Add the module name as
58611 leftmost column. Add hyperlinks.
58613 2003-01-15 Bruno Haible <bruno@clisp.org>
58615 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58617 2003-01-15 Bruno Haible <bruno@clisp.org>
58619 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58620 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58623 2003-01-15 Bruno Haible <bruno@clisp.org>
58625 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58627 2003-01-15 Bruno Haible <bruno@clisp.org>
58629 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58630 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58632 2003-01-14 Jim Meyering <jim@meyering.net>
58634 * lib/same.c (same_name): Tweak a comment.
58636 2003-01-14 Bruno Haible <bruno@clisp.org>
58638 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58639 when a string comparison is sufficient.
58641 2003-01-14 Bruno Haible <bruno@clisp.org>
58643 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58646 2003-01-14 Bruno Haible <bruno@clisp.org>
58648 * lib/hash-pjw.c: Add comment about low quality of this function.
58650 2003-01-13 Bruno Haible <bruno@clisp.org>
58652 * modules/stpcpy: Distribute lib/stpcpy.h.
58653 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58655 2003-01-13 Bruno Haible <bruno@clisp.org>
58657 * modules/*: Add a description.
58658 * modules/strpbrk: Fix Makefile.am snippet.
58659 * modules/strtoimax: Fix dependencies.
58660 * modules/strtoumax: Likewise.
58662 2003-01-13 Bruno Haible <bruno@clisp.org>
58664 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58665 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58666 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58668 2003-01-13 Bruno Haible <bruno@clisp.org>
58670 * gnulib-tool (func_create_testdir): Store config/* files in the main
58672 * config.rpath: Move to ...
58673 * config/config.rpath: ... here.
58674 * modules/gettext: Contains config/config.rpath, not config.rpath.
58675 * modules/iconv: Likewise.
58677 2003-01-12 Paul Eggert <eggert@twinsun.com>
58679 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58680 to avoid collisions with libcurses and libreadline.
58682 * m4/getstr.m4: Remove.
58683 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58685 2003-01-12 Paul Eggert <eggert@twinsun.com>
58687 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58688 to avoid collisions with libcurses and libreadline.
58690 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58691 * lib/getstr.h, getstr.c: Remove.
58692 * lib/getline.c: Include "getline.h", to check interface.
58693 Move body of old getstr.c here: this defines MIN_CHUNK and
58694 declares getdelim2, which is renamed from getstr.
58695 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58697 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58699 * lib/linebuffer.h: Likewise.
58700 (readline): Remove backward-compatibility macro.
58702 2003-01-12 Paul Eggert <eggert@twinsun.com>
58704 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58705 to avoid collisions with libcurses and libreadline.
58707 * MODULES.html.sh: Remove getstr.
58708 * modules/getline: Depend on unlocked-io, not getstr.
58710 2003-01-12 Jim Meyering <jim@meyering.net>
58712 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58714 2003-01-10 Bruno Haible <bruno@clisp.org>
58716 * modules/alloca: Change Makefile.am requirements. Simplify Include
58717 requirements. Add lib/alloca_.h to file list.
58719 2003-01-10 Bruno Haible <bruno@clisp.org>
58721 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58723 2003-01-10 Bruno Haible <bruno@clisp.org>
58725 * lib/alloca_.h: New file.
58726 * lib/getdate.y: Unconditionally include alloca.h.
58727 * lib/makepath.c: Likewise.
58728 * lib/setenv.c: Likewise.
58729 * lib/userspec.c: Likewise.
58731 2003-01-09 Karl Berry <karl@gnu.org>
58733 * MODULES.html.sh: include `dirname $0` in PATH, to find
58736 2003-01-09 Bruno Haible <bruno@clisp.org>
58738 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58739 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58741 2003-01-09 Bruno Haible <bruno@clisp.org>
58743 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58745 2003-01-09 Bruno Haible <bruno@clisp.org>
58747 * lib/stdbool.h.in: New file.
58749 2003-01-09 Bruno Haible <bruno@clisp.org>
58751 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58752 * MODULES.html.sh: Likewise.
58754 2003-01-08 Jim Meyering <jim@meyering.net>
58756 * lib/full-write.c: Undefine and define-away `const' after inclusion
58757 of errno.h, not before. Suggestion from Bruno Haible.
58759 2003-01-08 Bruno Haible <bruno@clisp.org>
58761 * modules/full-read: Depend on full-write.
58763 2003-01-08 Bruno Haible <bruno@clisp.org>
58765 * lib/safe-read.c: Include specification header first, to ensure its
58767 * lib/full-write.c: Likewise.
58769 2003-01-07 Jim Meyering <jim@meyering.net>
58771 * lib/full-write.c: Rework so that it may serve to define full_read,
58773 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58775 2003-01-07 Bruno Haible <bruno@clisp.org>
58777 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58779 * lib/xstrtol.h: Likewise.
58780 * lib/xstrtoimax.c: Likewise.
58781 * lib/xstrtoumax.c: Likewise.
58782 * lib/human.h: Likewise.
58784 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58785 on systems that have <inttypes.h> but not <stdint.h>.
58787 2003-01-07 Bruno Haible <bruno@clisp.org>
58789 * MODULES.html.sh: Add copyright notice.
58790 (missed_files): Omit CVS directory entries.
58791 (func_module): Make it work with sed-3.02.
58792 * MODULES.txt: Remove file.
58794 2003-01-06 Jim Meyering <jim@meyering.net>
58796 * lib/version-etc.c: Update year in translatable copyright string.
58798 2003-01-03 Karl Berry <karl@gnu.org>
58800 * config/config.{guess,sub}: update from prep.
58802 2003-01-02 Karl Berry <karl@gnu.org>
58804 * doc/COPYING.DOC: belatedly updated to 1.2.
58806 2003-01-01 Karl Berry <karl@gnu.org>
58808 * gnulib-tool (func_verify_module): report module name $module in
58809 error message, not $1.
58810 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58811 be created, only if it doesn't exist.
58812 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58814 2002-12-31 Paul Eggert <eggert@twinsun.com>
58816 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58818 2002-12-31 Paul Eggert <eggert@twinsun.com>
58820 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58821 memcmp if strcoll doesn't work.
58823 2002-12-31 Bruno Haible <bruno@clisp.org>
58825 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58828 2002-12-31 Bruno Haible <bruno@clisp.org>
58830 * lib/memcoll.c (STRCOLL): New macro.
58833 2002-12-31 Bruno Haible <bruno@clisp.org>
58835 * lib/localcharset.h: New file.
58836 * lib/localcharset.c: Include it.
58837 * lib/unicodeio.c: Likewise.
58839 2002-12-31 Bruno Haible <bruno@clisp.org>
58841 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58842 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58844 2002-12-31 Bruno Haible <bruno@clisp.org>
58846 * lib/getline.h: Include <stddef.h>, for size_t.
58848 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58849 * lib/unicodeio.c: Don't include <stddef.h>.
58851 2002-12-31 Bruno Haible <bruno@clisp.org>
58853 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58856 2002-12-24 Karl Berry <karl@gnu.org>
58858 * config/config.guess: update from prep.
58860 2002-12-24 Bruno Haible <bruno@clisp.org>
58862 General infrasructure.
58863 * m4/README: Rewritten.
58864 * m4/onceonly.m4: New file.
58865 * m4/onceonly_2_57.m4: New file.
58868 * m4/atexit.m4: New file.
58871 * m4/strtod.m4: New file.
58874 * m4/strtol.m4: New file.
58877 * m4/strtoul.m4: New file.
58880 * m4/memchr.m4: New file.
58883 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58884 (jm_FUNC_MEMCMP): Invoke it.
58887 * m4/memcpy.m4: New file.
58890 * m4/memmove.m4: New file.
58893 * m4/memset.m4: New file.
58896 * m4/strcspn.m4: New file.
58899 * m4/strpbrk.m4: New file.
58902 * m4/strstr.m4: New file.
58905 * m4/strerror.m4: New file.
58908 * m4/mktime.m4: Renamed from jm-mktime.m4.
58909 (gl_PREREQ_MKTIME): New macro.
58910 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58913 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58914 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58915 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58918 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58919 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58920 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58923 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58924 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58925 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58927 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58930 * m4/xalloc.m4: New file.
58933 * m4/alloca.m4: New file.
58936 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58937 (jm_FUNC_PUTENV): Invoke it.
58940 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58941 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58942 when invoked twice.
58943 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58947 * m4/memrchr.m4: New file.
58950 * m4/stpcpy.m4: New file.
58953 * m4/strcase.m4: New file.
58956 * m4/strdup.m4: New file.
58959 * m4/strnlen.m4: New file.
58962 * m4/strndup.m4: New file.
58965 * m4/xstrtod.m4: New file.
58968 * m4/xstrtol.m4: New file.
58971 * m4/getdate.m4: New file.
58973 Module unlocked-io.
58974 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58975 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58976 * m4/jm-glibc-io.m4n: Remove file.
58978 Module long-options.
58979 * m4/long-options.m4: New file.
58982 * m4/md5.m4: New file.
58985 * m4/sha.m4: New file.
58988 * m4/getstr.m4: New file.
58991 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58992 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58993 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58994 simply getline. Infoke gl_PREREQ_GETLINE.
58997 * m4/obstack.m4: New file.
59000 * m4/hash.m4: New file.
59003 * m4/readtokens.m4: New file.
59006 * m4/strverscmp.m4: New file.
59009 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59013 * m4/strtoll.m4: New file.
59016 * m4/strtoull.m4: New file.
59019 * m4/strtoimax.m4: New file.
59022 * m4/strtoumax.m4: New file.
59025 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59026 jm_AC_PREREQ_XSTRTOIMAX.
59027 Moved the strtol prerequisites to strtol.m4.
59028 Moved the strtoll prerequisites to strtoll.m4.
59029 Moved the strtoimax prerequisites to strtoimax.m4.
59032 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59033 jm_AC_PREREQ_XSTRTOUMAX.
59034 Moved the strtoul prerequisites to strtoul.m4.
59035 Moved the strtoull prerequisites to strtoull.m4.
59036 Moved the strtoumax prerequisites to strtoumax.m4.
59039 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59040 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59043 * m4/dup2.m4: New file.
59046 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59047 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59050 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59051 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59053 Module gettimeofday.
59054 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59055 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59056 gl_PREREQ_GETTIMEOFDAY.
59059 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59060 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59063 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59064 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59065 jm_AC_TYPE_UINTMAX_T.
59066 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59069 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59070 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59073 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59074 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59077 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59078 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59079 * m4/st_mtim.m4: Indentation.
59082 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59083 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59084 gl_PREREQ_NANOSLEEP.
59087 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59088 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59089 (gl_REGEX): New macro.
59092 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59093 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59096 * m4/rmdir.m4: New file.
59099 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59100 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59101 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59104 * m4/dirname.m4: New file.
59107 * m4/getopt.m4: New file.
59109 Module unistd-safer.
59110 * m4/unistd-safer.m4: New file.
59113 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59115 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59116 (gl_FUNC_FNMATCH_POSIX): New macro.
59117 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59118 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59122 * m4/exclude.m4: New file.
59125 * m4/human.m4: New file.
59131 * m4/backupfile.m4: New file.
59132 * m4/d-ino.m4: Indentation.
59135 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59136 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59137 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59140 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59144 * m4/euidaccess.m4: New file.
59147 * m4/file-type.m4: New file.
59150 * m4/fileblocks.m4: New file.
59153 * m4/filemode.m4: New file.
59156 * m4/isdir.m4: New file.
59159 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59160 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59163 * m4/makepath.m4: New file.
59166 * m4/modechange.m4: New file.
59169 * m4/mountlist.m4: New file.
59170 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59173 Module path-concat.
59174 * m4/path-concat.m4: New file.
59177 * m4/pathmax.m4: New file.
59180 * m4/same.m4: New file.
59183 * m4/save-cwd.m4: New file.
59186 * m4/savedir.m4: New file.
59189 * m4/xgetcwd.m4: New file.
59190 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59193 * m4/xreadlink.m4: New file.
59196 * m4/safe-read.m4: New file.
59199 * m4/safe-write.m4: New file.
59202 * m4/closeout.m4: New file.
59204 Module stdio-safer.
59205 * m4/stdio-safer.m4: New file.
59208 * m4/getpass.m4: New file.
59211 * m4/getugroups.m4: New file.
59213 Module group-member.
59214 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59215 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59218 * m4/idcache.m4: New file.
59221 * m4/userspec.m4: New file.
59224 * m4/clock_time.m4: New file.
59225 * m4/gettime.m4: New file.
59228 * m4/settime.m4: New file.
59231 * m4/posixtm.m4: New file.
59233 Module gethostname.
59234 * m4/gethostname.m4: New file.
59237 * m4/canon-host.m4: New file.
59240 * m4/codeset.m4: New file, from gettext-0.11.5.
59241 * m4/gettext.m4: New file, from gettext-0.11.5.
59242 * m4/glibc21.m4: New file, from gettext-0.11.5.
59243 * m4/iconv.m4: New file, from gettext-0.11.5.
59244 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59245 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59246 * m4/inttypes.m4: New file, from gettext-0.11.5.
59247 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59248 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59249 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59250 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59251 * m4/lib-link.m4: New file, from gettext-0.11.5.
59252 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59253 * m4/progtest.m4: New file, from gettext-0.11.5.
59254 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59255 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59256 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59258 Module localcharset.
59259 * m4/localcharset.m4: New file.
59261 Module hard-locale.
59262 * m4/hard-locale.m4: New file.
59265 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59267 * m4/mbrtowc.m4: Add comment.
59270 * m4/memcasecmp.m4: New file.
59273 * m4/memcoll.m4: New file.
59276 * m4/unicodeio.m4: New file.
59279 * m4/rpmatch.m4: New file.
59282 * m4/yesno.m4: New file.
59285 * m4/exitfail.m4: New file.
59288 * m4/c-stack.m4 (gl_C_STACK): New macro.
59289 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59292 * m4/error.m4 (gl_ERROR): New macro.
59293 (jm_PREREQ_ERROR): Use onceonly macros.
59296 * m4/fatal.m4: New file.
59299 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59300 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59302 Module getpagesize.
59303 * m4/getpagesize.m4: New file.
59305 Module getusershell.
59306 * m4/getusershell.m4: New file.
59309 * m4/physmem.m4: New file.
59312 * m4/posixver.m4: New file.
59315 * m4/quotearg.m4: New file.
59318 * m4/quote.m4: New file.
59321 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59324 * m4/sig2str.m4: New file.
59327 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59329 * m4/intmax_t.m4: New file.
59330 * m4/d-type.m4: Indentation.
59331 * m4/jm-macros.m4: Update.
59332 * m4/prereq.m4 (jm_PREREQ): Update.
59333 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59334 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59335 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59336 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59337 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59338 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59339 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59340 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59341 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59342 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59343 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59344 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59345 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59346 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59347 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59348 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59349 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59350 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59351 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59353 2002-12-24 Bruno Haible <bruno@clisp.org>
59355 * MODULES.txt: Update according to m4/ changes.
59358 * config.rpath: New file, from gettext-0.11.5.
59360 * modules/*: New module descriptions.
59361 * gnulib-tool: New file.
59362 * MODULES.html.sh: New file.
59364 2002-12-21 Karl Berry <karl@gnu.org>
59366 * doc/fdl.texi: update to version 1.2.
59368 2002-12-19 Karl Berry <karl@gnu.org>
59370 * config/config.guess: update from prep.
59372 2002-12-18 Bruno Haible <bruno@clisp.org>
59374 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59375 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59377 2002-12-17 Bruno Haible <bruno@clisp.org>
59379 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59380 stdlib.h, string.h.
59382 2002-12-17 Bruno Haible <bruno@clisp.org>
59384 * lib/canon-host.c (strdup): Remove unused declaration.
59386 * lib/fsusage.c: Include full_read.h.
59387 (get_fs_usage): Use full_read instead of safe_read.
59389 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59391 2002-12-12 Karl Berry <karl@gnu.org>
59393 * config/config.guess: update from prep.
59395 2002-12-11 Bruno Haible <bruno@clisp.org>
59397 * m4/setenv.m4: New file, from gettext-0.11.5.
59399 2002-12-11 Bruno Haible <bruno@clisp.org>
59401 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59403 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59406 2002-12-11 Bruno Haible <bruno@clisp.org>
59408 * setenv.c (alloca): Fall back to malloc.
59409 (freea): New macro.
59410 (setenv): Use freea() to free memory allocated with alloca().
59412 2002-11-13 Bruno Haible <bruno@clisp.org>
59414 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59415 function declarations.
59416 * unsetenv.c (unsetenv): Likewise.
59418 2002-03-04 Bruno Haible <bruno@clisp.org>
59420 Portability to AIX 4.3.3.
59421 * unsetenv.c: New file, extracted from setenv.c.
59422 * setenv.c: Move the unsetenv() function to unsetenv.c.
59424 2001-12-20 Bruno Haible <bruno@clisp.org>
59426 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59427 use malloc instead. For SunOS 4.
59429 2001-12-11 Bruno Haible <bruno@clisp.org>
59431 * setenv.c: Declare alloca.
59432 (compar_fn_t): New typedef.
59433 (KNOWN_VALUE, STORE_VALUE): Use it.
59435 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59438 2002-12-10 Paul Eggert <eggert@twinsun.com>
59440 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59441 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59442 Choose values that are less likely to collide with system fnmatch
59444 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59445 defined (e.g., a pure POSIX system).
59446 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59447 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59449 2002-12-06 Paul Eggert <eggert@twinsun.com>
59451 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59452 a pain in practice to deal with generated m4 files. This change
59453 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59455 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59456 and jm-glibc-io.m4, as they are no longer a special case.
59457 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59458 kludge and the auto-generation stuff. Check only whether the
59459 functions are declared, not whether they exist, since older hosts
59460 that don't declare the functions can't use the optimization anyway.
59462 2002-12-06 Jim Meyering <jim@meyering.net>
59464 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59466 Merge in changes from libc's misc/error.c, in preparation
59467 for the merge of gnulib's changes back into libc.
59469 * lib/error.c (_): Define only if not already defined.
59470 Move definition to follow all #include directives.
59471 Include unlocked-io.h only if !_LIBC.
59472 [_LIBC]: Include <libio/libioP.h>.
59473 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59474 (fflush): Tweak definition to use INTUSE.
59477 2002-12-05 Paul Eggert <eggert@twinsun.com>
59479 * lib/alloca.c [defined emacs]: Include "lisp.h".
59480 (xalloc_die) [defined emacs]: New macro.
59481 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59482 [! defined emacs]: Include <xalloc.h>.
59483 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59484 (pointer): Typedef to POINTER_TYPE *.
59485 (malloc): Remove decl; we now always use xmalloc.
59486 (alloca): Use old-style definition, since Emacs needs this.
59487 Check for arithmetic overflow when computing combined size.
59489 2002-12-04 Paul Eggert <eggert@twinsun.com>
59491 Do not generate unlocked-io.h automatically, since it's easier to
59492 maintain it by hand.
59494 * lib/unlocked-io.h: New file, from GNU diffutils,
59495 but with proper copyright notice and attribution.
59496 * lib/gen-uio: Remove.
59497 * lib/Makefile.am: Add copyright notice.
59498 (libfetish_a_SOURCES): Add unlocked-io.h.
59499 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59500 (DISTCLEANFILES, io_functions): Remove macros.
59501 (EXTRA_DIST): Remove gen_uio.
59502 (unlocked-io.h): Remove rule.
59504 2002-12-04 Jim Meyering <jim@meyering.net>
59506 Reflect the fact that stat.c and lstat.c are no longer generated.
59507 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59508 (DISTCLEANFILES): Likewise.
59509 (EXTRA_DIST): Likewise.
59510 (all_local): Don't depend on stat.c or lstat.c.
59511 (stat.c, lstat.c): Remove rules.
59512 (EXTRA_DIST): Remove xstat.in.
59514 * lib/xstat.in: Remove file. Contents moved into stat.c.
59515 * lib/stat.c: New file. Contents mostly from xstat.in.
59516 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59517 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59519 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59521 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59523 2002-12-03 Jim Meyering <jim@meyering.net>
59525 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59526 but not semantics, to minimize the differences between these two files.
59527 (safe_read): Change comment to mention SAFE_READ_ERROR.
59529 * lib/safe-read.c (IS_EINTR): Define.
59530 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59532 2002-12-02 Jim Meyering <jim@meyering.net>
59534 * lib/safe-read.c (EINTR): Define.
59535 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59536 (INT_MAX): Provide fallback.
59537 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59539 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59541 2002-12-02 Bruno Haible <bruno@clisp.org>
59543 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59544 Define, taken from safe-read.c.
59545 (INT_MAX): Provide fallback.
59546 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59547 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59549 * lib/safe-read.c (EINTR): Remove definition.
59550 (safe_read): Don't use EINTR if it is absent.
59552 2002-12-01 Jim Meyering <jim@meyering.net>
59554 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59556 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59558 2002-11-27 Paul Eggert <eggert@twinsun.com>
59560 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59561 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59562 with `if (! (value < limit)) abort ();', for readability.
59564 2002-11-26 Karl Berry <karl@gnu.org>
59566 * lib/strdup.c: copy from libc again, with jim's ok.
59567 * lib/.cppi-disable: re-add strdup.c
59569 2002-11-25 Karl Berry <karl@gnu.org>
59571 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59572 instead of "strtol.c".
59574 2002-11-25 Karl Berry <karl@gnu.org>
59576 * config/install-sh: update from automake for variable quoting, $0 in
59579 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59580 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59583 2002-11-25 Jim Meyering <jim@meyering.net>
59585 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59587 2002-11-24 Karl Berry <karl@gnu.org>
59589 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59590 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59592 2002-11-24 Jim Meyering <jim@meyering.net>
59594 Update from coreutils:
59596 * lib/mktime.c: Merge in changes from libc.
59598 Avoid a link-time failure on some Linux systems.
59599 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59601 (__mon_yday): Declare with the STATIC attribute.
59602 (__mktime_internal): Likewise.
59603 Based on a report from Greg Schafer.
59605 2002-11-23 Jim Meyering <jim@meyering.net>
59607 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59608 Use `unsigned', not `int', as type of index.
59610 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59612 * lib/fsusage.c: Remove unneeded parentheses around operands of
59615 2002-11-22 Paul Eggert <eggert@twinsun.com>
59617 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59618 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59619 so that we can be included first.
59620 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59621 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59622 No need to include stddef.h or sys/types.h any more.
59623 Surround local include files with "", not "<>".
59624 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59625 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59626 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59627 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59628 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59629 (ISPRINT): Remove; no longer needed now that we assume C89.
59631 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59634 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59635 quotearg_char): Use SIZE_MAX rather than
59636 (size_t) -1 when we are talking about "infinity".
59638 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59640 2002-11-22 Paul Eggert <eggert@twinsun.com>
59642 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59643 hint that one should use `if (! x) abort ();' rather than `assert
59644 (x);', and anyway it's one less thing to worry about configuring.
59645 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59646 hash_rehash, hash_insert): Use abort rather than assert.
59648 2002-11-22 Bruno Haible <bruno@clisp.org>
59650 * lib/safe-read.h: Assume C89. Add comments.
59651 (safe_read): Change return type to size_t.
59652 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59653 byte counts > SSIZE_MAX correctly.
59654 * lib/safe-write.h: New file.
59655 * lib/safe-write.c: New file.
59656 * lib/full-read.h: New file.
59657 * lib/full-read.c: New file.
59658 * lib/full-write.h: Assume C89. Add comments.
59659 * lib/full-write.c: Include safe-write.h.
59660 (full_write): Rewritten to use safe_write.
59661 Suggested by Jim Meyering and Paul Eggert.
59663 2002-11-21 Jim Meyering <jim@meyering.net>
59665 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59667 Merge in changes from the coreutils.
59669 2002-09-25 Paul Eggert <eggert@twinsun.com>
59670 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59672 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59673 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59674 int. Work more efficiently if X is the same width as uintmax_t.
59675 Do not compare X to -1, to avoid bogus compiler warning.
59676 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59677 Don't assume that f_frsize and f_bsize are the same type.
59679 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59680 warning on FreeBSD.
59682 * lib/makepath.c (make_path): Restore umask *before* creating the final
59684 (make_path): Minor reformatting.
59686 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59687 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59688 HAVE_MALLOC/HAVE_REALLOC.
59690 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59691 dummy ones. At least on GNU/Linux systems, `auto' means something
59693 From Michael Stone.
59695 2002-11-21 Bruno Haible <bruno@clisp.org>
59697 Remove case insensitive option matching.
59698 * lib/argmatch.h (argcasematch): Remove declaration.
59699 (ARGCASEMATCH): Remove macro.
59700 (__xargmatch_internal): Remove case_sensitive argument.
59701 (XARGMATCH): Update.
59702 (XARGCASEMATCH): Remove macro.
59703 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59704 case_sensitive argument.
59705 (argcasematch): Remove function.
59706 (__xargmatch_internal): Remove case_sensitive argument.
59707 (main): Use XARGMATCH instead of XARGCASEMATCH.
59709 * lib/xmalloc.c: Change compile-time error message. Add comment about
59710 required autoconf version.
59712 2002-11-20 Paul Eggert <eggert@twinsun.com>
59714 Merge argmatch cleanups from Bison. Assume C89.
59716 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59717 Include stdlib.h, for EXIT_FAILURE.
59718 Always include <string.h>, since we assume C89.
59719 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59720 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59721 Include <stddef.h> instead, since it's all we need for size_t.
59722 (PARAMS): Remove. All uses removed.
59723 (ARRAY_CARDINALITY): Do not bother to #undef.
59724 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59725 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59726 Remove unnecessary parentheses.
59727 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59728 Insert necessary parentheses.
59729 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59730 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59732 2002-11-19 Bruno Haible <bruno@clisp.org>
59734 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59735 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59737 * lib/mbswidth.h (PARAMS): Remove macro.
59738 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59739 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59741 * lib/gcd.h (PARAMS): Remove macro.
59742 (gcd): Use ANSI C function declarations.
59743 * lib/gcd.c (gcd): Likewise.
59745 2002-11-15 Bruno Haible <bruno@clisp.org>
59747 * lib/strcspn.c: Include <stddef.h>.
59748 (strcspn): Use ANSI C function declaration. Change return type to
59750 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59751 (strpbrk): Use NULL.
59752 * lib/strpbrk.h (PARAMS): Remove macro.
59753 (strpbrk): Use ANSI C function declaration.
59754 * lib/strstr.c: Don't include <sys/types.h>.
59755 * lib/strstr.h (PARAMS): Remove macro.
59756 (strstr): Use ANSI C function declarations.
59758 2002-11-14 Karl Berry <karl@gnu.org>
59760 * config/mkinstalldirs: `do' on separate line, instead of
59763 2002-11-06 Bruno Haible <bruno@clisp.org>
59765 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59766 * lib/gcd.c (gcd): Likewise.
59768 2002-11-05 Bruno Haible <bruno@clisp.org>
59770 * lib/gcd.h: New file, from gettext-0.11.5.
59771 * lib/gcd.c: New file, from gettext-0.11.5.
59773 2002-11-05 Bruno Haible <bruno@clisp.org>
59775 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59776 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59777 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59778 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59780 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59782 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59785 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59786 * lib/human.c: Include gettext.h instead of <libintl.h>.
59787 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59788 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59789 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59790 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59791 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59792 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59793 (textdomain): Remove definition.
59794 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59796 * lib/long-options.c: Remove include of <libintl.h> and definition of
59798 * lib/same.c: Remove include of <libintl.h> and definition of _.
59800 2002-11-04 Owen Taylor <otaylor@redhat.com>
59802 * lib/config.charset: A few additions for Solaris.
59804 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59806 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59807 * lib/localcharset.c (locale_charset): Declare as extern "C".
59809 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59811 * lib/config.charset: msdos in uk_UA uses CP1125.
59813 2002-11-04 Bruno Haible <bruno@clisp.org>
59815 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59816 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59817 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59818 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59819 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59821 2002-11-04 Bruno Haible <bruno@clisp.org>
59823 * lib/localcharset.c (locale_charset): Don't return an empty string.
59825 2002-11-04 Bruno Haible <bruno@clisp.org>
59827 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59830 2002-11-04 Bruno Haible <bruno@clisp.org>
59832 * lib/config.charset: Update for newest glibc. Add canonical names
59833 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59835 2002-11-04 Bruno Haible <bruno@clisp.org>
59837 * lib/config.charset: Add support for NetBSD.
59839 2002-11-04 Bruno Haible <bruno@clisp.org>
59841 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59843 2002-11-01 Bruno Haible <bruno@clisp.org>
59845 * configure.in: Add AC_CONFIG_AUX_DIR call.
59846 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59848 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59850 2002-09-28 Karl Berry <karl@gnu.org>
59852 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59853 installed automake until the next release, since changes have been
59856 2002-09-25 Karl Berry <karl@gnu.org>
59858 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59859 * lib/getopt*: copy from libc/posix.
59860 * lib/gettext.h: copy from gettext.
59861 * lib/.cppi-disable: add strdup.c, gettext.h.
59863 2002-09-25 Karl Berry <karl@gnu.org>
59865 * config/srclist.txt: enable gettext.h check.
59866 * config/config.{guess,sub}: update from prep.
59867 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59868 from automake 1.6.3.
59871 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59873 * regex.c (PATFETCH): Remove the translating fetch.
59874 (PATFETCH_RAW): Rename to PATFETCH.
59875 (set_image_of_range): New fun.
59876 (SET_RANGE_TABLE_WORK_AREA): Use it.
59877 (regex_compile): Don't translate the pattern chars so eagerly.
59878 Only do it when inserting an `exactn' bytecode or when handling
59880 (mutually_exclusive_p): Avoid empty statement.
59882 2002-07-06 Jim Meyering <meyering@lucent.com>
59884 * m4/README: Don't mention Makefile.am.in.
59885 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59887 2002-07-01 Jim Meyering <meyering@lucent.com>
59889 * lib/c-stack.c: Include sys/time.h.
59890 From Volker Borchert.
59892 2002-06-26 Paul Eggert <eggert@twinsun.com>
59894 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59896 2002-06-26 Paul Eggert <eggert@twinsun.com>
59898 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59899 New macro. Use it uniformly instead of
59900 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59901 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59902 reported by Vin Shelton.
59904 2002-06-22 Paul Eggert <eggert@twinsun.com>
59906 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59907 Do not assume SA_SIGINFO behavior.
59908 Bug reported by Jim Meyering on NetBSD 1.5.2.
59910 2002-06-22 Jim Meyering <meyering@lucent.com>
59912 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59913 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59915 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59916 now that configure.ac uses AC_GNU_SOURCE.
59917 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59918 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59920 Update to latest tools. Suggestions from Paul Eggert.
59921 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59922 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59923 * m4/fnmatch.m4: Likewise.
59924 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59925 to AC_HEADER_STDBOOL
59927 2002-06-22 Jim Meyering <meyering@lucent.com>
59929 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59930 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59932 2002-06-22 Jim Meyering <meyering@lucent.com>
59934 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59936 * lib/exitfail.c, exitfail.h: Likewise.
59937 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59939 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59941 (EXTRA_DIST): Add fnmatch_loop.c.
59942 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59944 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59945 * lib/fnmatch.c: Update from diffutils-2.8.2.
59946 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59947 * lib/fnmatch.h: Remove file.
59949 2002-06-21 Jim Meyering <meyering@lucent.com>
59951 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59952 * m4/mbrtowc.m4: Likewise.
59954 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59955 * m4/mbswidth.m4: Reflect name change:
59956 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59957 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59959 * m4/lib-link.m4: Update from gettext-0.11.2.
59960 * m4/gettext.m4: Likewise.
59962 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59963 From Alfred M. Szmidt.
59965 2002-06-18 Paul Eggert <eggert@twinsun.com>
59967 * lib/file-type.h: Report an error if neither S_ISREG nor
59968 S_IFREG is defined, instead of using a test specific to glibc
59969 2.2. This should be safe, since POSIX requires S_ISREG and
59970 Unix Version 7 had S_IFREG. We don't need to check for
59971 <sys/types.h> since we don't use any symbols that it defines.
59973 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59975 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59976 $@-t, so that each temporary file name is unique and valid in the first
59977 8 characters, for operation under DOS.
59979 2002-06-15 Paul Eggert <eggert@twinsun.com>
59981 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59983 2002-06-15 Jim Meyering <meyering@lucent.com>
59985 Work even with DJGPP 2.03, which lacks support for symlinks.
59987 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59989 * lib/lchown.c (S_ISLNK): Likewise.
59991 2002-06-15 Jim Meyering <meyering@lucent.com>
59993 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59994 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59995 have been included before this file.
59997 2002-06-14 Jim Meyering <meyering@lucent.com>
59999 * lib/file-type.h: Use the version from diffutils-2.8.2.
60000 * lib/file-type.c: Likewise.
60002 2002-06-07 Jim Meyering <meyering@lucent.com>
60004 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60005 They're needed at least for NetBSD 1.5.2.
60006 ($statxfs_includes): Include those same headers.
60007 ($statxfs_includes): Include sys/vfs.h if available.
60008 ($statxfs_includes): Likewise for sys/statvfs.h.
60009 Check for the following members in both structs statfs and statvfs:
60010 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60012 2002-06-01 Jim Meyering <meyering@lucent.com>
60014 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60015 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60017 2002-05-28 Jim Meyering <meyering@lucent.com>
60019 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60020 Reported by Volker Borchert.
60022 2002-05-27 Jim Meyering <meyering@lucent.com>
60024 Fix a problem seen only on nonconforming systems whereby ls.c's
60025 use of localtime, and then of gettimeofday would cause trouble:
60026 the localtime call used to initialize rpl_gettimeofday's save
60027 mechanism would clobber ls's current local time information so
60028 that in any long listing the first file would always be listed
60029 with date 1970-01-01. Analysis by Volker Borchert.
60031 * lib/gettimeofday.c (localtime): Undefine.
60032 (rpl_localtime): New function.
60034 2002-05-27 Jim Meyering <meyering@lucent.com>
60036 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60039 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60040 use the replacement function; it wouldn't resolve at link time.
60041 Reported by Volker Borchert.
60043 2002-05-22 Jim Meyering <meyering@lucent.com>
60045 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60047 * lib/file-type.h: New file.
60048 * lib/file-type.c (file_type): New file/function. Extracted from
60051 2002-04-30 Jim Meyering <meyering@lucent.com>
60053 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60055 2002-04-29 Paul Eggert <eggert@twinsun.com>
60057 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60059 2002-04-29 Paul Eggert <eggert@twinsun.com>
60061 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60062 Do not check for alloca.h (no longer used) or stdbool.h (was never
60063 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60065 2002-04-29 Paul Eggert <eggert@twinsun.com>
60067 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60069 2002-04-29 Jim Meyering <meyering@lucent.com>
60071 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60072 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60073 Use AC_FUNC_STRNLEN here instead.
60075 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60076 With autoconf-2.53a, it's part of AC_PROG_CC.
60078 2002-04-28 Paul Eggert <eggert@twinsun.com>
60080 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60081 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60083 2002-04-28 Paul Eggert <eggert@twinsun.com>
60085 * lib/sig2str.h, lib/sig2str.c: New files.
60086 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60088 2002-04-28 Paul Eggert <eggert@twinsun.com>
60090 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60091 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60092 of 127, since 64 is the largest conceivable number for ancient
60094 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60096 2002-04-28 Jim Meyering <meyering@lucent.com>
60098 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60100 2002-04-24 Jim Meyering <meyering@lucent.com>
60102 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60103 (jm_PREREQ): Use it.
60105 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60106 mach/mach.h fcntl.h.
60107 Check for this function: setlocale.
60109 2002-04-24 Jim Meyering <meyering@lucent.com>
60111 * lib/gettext.h: New file, from Gettext.
60112 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60113 (libfetish_a_SOURCES): Add gettext.h.
60115 2002-04-16 Jim Meyering <meyering@lucent.com>
60117 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60118 ut_pid, ut_id, ut_exit.
60120 2002-04-16 Jim Meyering <meyering@lucent.com>
60122 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60123 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60124 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60126 2002-04-12 Jim Meyering <meyering@lucent.com>
60128 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60129 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60130 existence of the getmntinfo function. Needed for Darwin 5.3.
60132 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60133 This is necessary at least on Darwin 5.3.
60135 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60136 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60137 strnlen.o in the library, and that makes some versions of ranlib
60140 2002-04-12 Jim Meyering <meyering@lucent.com>
60142 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60144 2002-04-09 Jim Meyering <meyering@lucent.com>
60146 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60147 to be more precise. Rather than saying we're checking whether the
60148 function `works', say what we're testing.
60149 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60150 Reported by Bruno Haible.
60152 2002-03-10 Jim Meyering <meyering@lucent.com>
60154 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60155 Suggestion from Santiago Vila.
60157 2002-03-08 Jim Meyering <meyering@lucent.com>
60159 * lib/rename.c: Mention that this wrapper is needed also on
60160 mips-dec-ultrix4.4 systems.
60162 2002-03-02 Jim Meyering <meyering@lucent.com>
60164 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60165 not HAVE_CLOCK_SETTIME.
60167 2002-02-27 Paul Eggert <eggert@twinsun.com>
60169 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60170 Check for clock_settime.
60172 2002-02-27 Paul Eggert <eggert@twinsun.com>
60174 * lib/nanosleep.h: Rename to....
60175 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60177 * lib/gettime.c: New file.
60178 * lib/settime.c: New file.
60179 * lib/stime.c: Remove.
60181 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60182 timespec.h. Remove nanosleep.h.
60184 2002-02-25 Paul Eggert <eggert@twinsun.com>
60186 * m4/acl.m4: New file.
60187 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60188 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60190 2002-02-25 Paul Eggert <eggert@twinsun.com>
60192 * lib/acl.c, lib/acl.h: New files.
60193 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60195 2002-02-24 Jim Meyering <meyering@lucent.com>
60197 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60198 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60199 cause trouble. Reported by Nelson Beebe.
60201 2002-02-23 Paul Eggert <eggert@twinsun.com>
60203 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60204 compilers that don't know that xalloc_die never returns.
60206 2002-02-20 Jim Meyering <meyering@lucent.com>
60208 * lib/getdate.c: Regenerate using bison-1.33.
60210 2002-02-17 Jim Meyering <meyering@lucent.com>
60212 * config/config.guess (main): Don't use `head -1'; it's no longer
60213 portable. Use `sed 1q' instead.
60215 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60217 * m4/codeset.m4: Upgrade to gettext-0.11.
60218 * m4/gettext.m4: Upgrade to gettext-0.11.
60219 * m4/glibc21.m4: Upgrade to gettext-0.11.
60220 * m4/iconv.m4: Upgrade to gettext-0.11.
60221 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60222 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60223 * m4/lib-ld.m4: New file, from gettext-0.11.
60224 * m4/lib-link.m4: New file, from gettext-0.11.
60225 * m4/lib-prefix.m4: New file, from gettext-0.11.
60226 * m4/progtest.m4: Upgrade to gettext-0.11.
60228 2002-02-15 Paul Eggert <eggert@twinsun.com>
60230 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60231 (jm_PREREQ): Use it.
60233 2002-02-15 Paul Eggert <eggert@twinsun.com>
60235 * lib/posixver.c, lib/posixver.h: New files.
60236 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60238 2002-02-02 Paul Eggert <eggert@twinsun.com>
60239 Bruno Haible <bruno@clisp.org>
60241 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60242 (fwrite_success_callback): New declaration.
60243 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60244 print_unicode_char. Call failure callback instead of error.
60245 (fwrite_success_callback): New function.
60246 (exit_failure_callback): New function.
60247 (fallback_failure_callback): New function.
60248 (print_unicode_char): Call unicode_to_mb.
60250 2002-01-26 Jim Meyering <meyering@lucent.com>
60252 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60253 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60255 2002-01-26 Jim Meyering <meyering@lucent.com>
60257 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60259 2002-01-22 Paul Eggert <eggert@twinsun.com>
60261 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60263 2002-01-22 Jim Meyering <meyering@lucent.com>
60265 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60266 Otherwise, some versions of automake would omit the rule that makes
60267 Makefile from Makefile.in.
60269 2002-01-21 Paul Eggert <eggert@twinsun.com>
60271 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60272 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60273 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60274 (memcoll): Set errno to zero if there is no error.
60276 * lib/quotearg.c (quotearg_buffer_restyled):
60277 Fix bug with quoting buffers containing NUL when backslashing escapes.
60278 This bug was exposed by the other changes in this patch.
60279 (quotearg_n_options): New arg ARGSIZE.
60280 All callers changed.
60281 (quoting_options_from_style): New function.
60282 (quotearg_n_style): Use it.
60283 (quotearg_n_style_mem): New function.
60285 * lib/quotearg.h (quotearg_n_style_mem): New function.
60287 2002-01-19 Jim Meyering <meyering@lucent.com>
60289 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60290 Remove useless quotes: DF_PROG="df".
60291 * m4/strnlen.m4: New file.
60293 2002-01-16 Paul Eggert <eggert@twinsun.com>
60295 * lib/backupfile.c (ISDIGIT): Comment fix.
60296 * lib/getdate.y (ISDIGIT): Likewise.
60297 * lib/posixtm.c (ISDIGIT, year): Likewise.
60298 * lib/strverscmp.c (ISDIGIT): Likewise.
60299 * lib/userspec.c (ISDIGIT): Likewise.
60301 2002-01-16 Jim Meyering <meyering@lucent.com>
60303 * lib/getdate.y: Add three semicolons, each just before a closing
60304 brace. Bison (as of version 1.31) no longer papers over that mistake.
60306 2002-01-05 Jim Meyering <meyering@lucent.com>
60308 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60310 2001-12-19 Paul Eggert <eggert@twinsun.com>
60312 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60313 not silently exit merely because the output buffer happens to
60314 have nothing pending.
60316 2001-12-18 Paul Eggert <eggert@twinsun.com>
60318 See the big note in ../ChangeLog.
60319 * lib/human.c (suffixes): Prefer K to k for 1024.
60320 (generate_suffix_backwards): New function.
60321 (human_readable_inexact): Use it.
60322 * lib/xstrtol.c (__xstrtol): If there is no number but there
60323 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60324 Accept 'K' as well as 'k'.
60326 2001-12-15 Jim Meyering <meyering@lucent.com>
60328 * lib/regex.h (__restrict_arr): Update from libc.
60330 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60331 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60334 2001-12-14 Jim Meyering <meyering@lucent.com>
60336 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60337 Suggestion from Bruno Haible.
60339 2001-12-10 Jim Meyering <meyering@lucent.com>
60341 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60342 xrealloc, Instead, include "xalloc.h".
60343 (initbuffer): Don't cast xmalloc return value to char*.
60344 (readline): Reword comment.
60345 Don't cast xrealloc return value to char*
60346 Return NULL, not 0.
60348 2001-12-09 Jim Meyering <meyering@lucent.com>
60350 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60351 about `signed and unsigned type in conditional expression'.
60352 * lib/posixtm.c (posix_time_parse): Likewise.
60354 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60356 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60357 to avoid a pedantic warning.
60359 * lib/getstr.c: Don't include assert.h.
60360 (getstr): Remove warning-evoking assertions.
60361 Return -1 if offset parameter is out of bounds.
60362 Change the type of a local from int to size_t.
60364 * lib/strftime.c (my_strftime_localtime_r): Include this function
60365 definition in the `#if ! HAVE_TM_GMTOFF' block.
60367 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60368 Include xalloc.h instead.
60370 2001-12-02 Jim Meyering <meyering@lucent.com>
60372 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60373 2001-11-18. It's no longer necessary, now that stdlib.h is always
60376 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60377 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60379 2001-11-30 Akim Demaille <akim@epita.fr>
60381 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60382 before being defined.
60384 2001-11-27 Paul Eggert <eggert@twinsun.com>
60386 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60387 First arg is int, not unsigned.
60388 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60389 (SIZE_MAX, UINT_MAX): New macros.
60390 (quotearg_n_options): Abort if N is negative.
60391 Avoid overflow check on hosts where size_t is 64 bits and int
60392 is 32 bits, as overflow is impossible there.
60393 Fix off-by-one typo that caused unnecessary reallocation.
60395 2001-11-27 Jim Meyering <meyering@lucent.com>
60397 * lib/tempname.c: Merge with version from libc.
60398 * lib/regex.c: Likewise.
60400 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60401 systems for which STDC_HEADERS is 0, it was not included, resulting in
60402 a warning about an integer-to-pointer conversion problem with getenv.
60403 Reported by Volker Borchert.
60405 2001-11-26 Jim Meyering <meyering@lucent.com>
60407 * lib/gtod.h: Remove file.
60408 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60409 * lib/gettimeofday.c: Don't include gtod.h.
60410 (GTOD_init): Remove function.
60411 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60412 Suggestion from Volker Borchert.
60414 2001-11-23 Jim Meyering <meyering@lucent.com>
60416 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60418 * lib/hash.c (struct hash_table): Define it here instead.
60420 2001-11-22 Jim Meyering <meyering@lucent.com>
60422 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60424 2001-11-20 Jim Meyering <meyering@lucent.com>
60426 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60427 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60429 2001-11-19 Jim Meyering <meyering@lucent.com>
60431 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60432 directory. Use "conftestXXXXXX" as the template.
60433 Suggestion from Paul Eggert.
60435 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60436 immediately, so the test doesn't mistakenly hit the max-open-files
60439 2001-11-18 Paul Eggert <eggert@twinsun.com>
60441 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60442 (TEMPORARIES): New macro.
60443 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60444 removes an artificial limitation (e.g. HP-UX 10.20, where
60447 2001-11-18 Jim Meyering <meyering@lucent.com>
60449 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60451 2001-11-18 Jim Meyering <meyering@lucent.com>
60453 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60456 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60457 files will be created before anything else.
60459 2001-11-17 Paul Eggert <eggert@twinsun.com>
60461 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60462 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60464 2001-11-17 Jim Meyering <meyering@lucent.com>
60466 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60467 Prompted by a report from Bob Proulx.
60469 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60470 Instead, require UTILS_FUNC_MKSTEMP.
60472 2001-11-17 Jim Meyering <meyering@lucent.com>
60474 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60475 Now, that's done as part of AC_FUNC_STRTOD.
60477 2001-11-17 Jim Meyering <meyering@lucent.com>
60479 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60480 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60481 rather than group writable. Patch by Juan F. Codagnone.
60483 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60484 xrealloc, Instead, include "xalloc.h".
60486 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60487 Remove explicit declarations of xmalloc, xrealloc,
60488 and xstrdup. Instead, include "xalloc.h".
60490 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60492 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60494 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60496 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60497 Reported by Padraig Brady.
60499 * lib/mkstemp.c: #undef mkstemp.
60501 (rpl_mkstemp): Rename from mkstemp.
60504 2001-11-16 Jim Meyering <meyering@lucent.com>
60506 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60507 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60508 determine the amount of total physical memory, use pstat_getstatic.
60509 HPUX-11 doesn't define _SC_PHYS_PAGES.
60510 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60511 If sysconf couldn't be used to determine the amount of available
60512 physical memory, use both pstat_getstatic and pstat_getdynamic.
60513 Based on a patch from Bob Proulx.
60515 2001-11-10 Jim Meyering <meyering@lucent.com>
60517 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60518 (jm_PREREQ): Use it.
60520 2001-11-09 Jim Meyering <meyering@lucent.com>
60522 * m4/jm-macros.m4: Require autoconf-2.52f.
60523 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60524 Use these AC_-prefixed names, not the AM_-prefixed ones.
60526 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60528 2001-11-05 Jim Meyering <meyering@lucent.com>
60530 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60532 2001-11-04 Jim Meyering <meyering@lucent.com>
60534 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60537 2001-11-03 Jim Meyering <meyering@lucent.com>
60539 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60542 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60543 know the name of the variable in the macro definition.
60545 2001-11-03 Jim Meyering <meyering@lucent.com>
60547 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60548 in argmatch_to_argument call.
60550 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60553 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60554 e.g., a fault due to an attempt to free a NULL pointer.
60556 2001-11-01 Jim Meyering <meyering@lucent.com>
60558 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60559 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60561 2001-11-01 Jim Meyering <meyering@lucent.com>
60563 * lib/dirfd.c, lib/dirfd.h: New files.
60564 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60566 * lib/hash.c (hash_print) [TESTING]: Clean up.
60568 2001-10-22 Paul Eggert <eggert@twinsun.com>
60570 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60571 to avoid a warning if -Wall.
60573 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60576 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60577 (per RMS's instructions, this is now the canonical source)
60578 * lgpl/, gpl/: New directories.
60580 2001-10-21 Paul Eggert <eggert@twinsun.com>
60582 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60584 2001-10-21 Jim Meyering <meyering@lucent.com>
60586 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60587 this code would end up calling gettext even in packages built
60588 with --disable-nls.
60589 * lib/getopt.c (_): Likewise.
60590 * lib/regex.c (_): Likewise.
60592 2001-10-20 Paul Eggert <eggert@twinsun.com>
60594 * m4/error.m4 (jm_PREREQ_ERROR):
60595 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60596 AC_FUNC_STRERROR_R does that.
60597 Check for strerror declaration.
60599 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60600 are supposed to have them these days.
60601 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60602 Merge changes from latest Autoconf CVS.
60603 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60604 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60605 POSIX decided to standardize on the int flavor of strerror_r.
60607 2001-10-20 Paul Eggert <eggert@twinsun.com>
60609 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60610 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60611 Use strerror_r that is only a macro, even if it is not a function.
60612 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60613 (private_strerror): Use prototypes, not old-style function definition.
60614 (print_errno_message): New function.
60615 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60616 char*-flavored one.
60617 (error_tail, error, error_at_line): Use it.
60619 2001-10-11 Jim Meyering <meyering@lucent.com>
60621 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60622 and quote_n (1, ... to avoid clobbering a buffer.
60624 2001-10-05 Jim Meyering <meyering@lucent.com>
60626 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60628 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60629 * lib/hash-pjw.h: New file.
60631 2001-09-30 Jim Meyering <meyering@lucent.com>
60633 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60634 `struct fsstat' has the `f_fstypename' member.
60635 Use that to define FS_TYPE, which is now used to make
60636 the getfsstat link test tighter.
60638 2001-09-30 Jim Meyering <meyering@lucent.com>
60640 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60641 Include <sys/ucred.h>, for Apple Darwin.
60642 Include sys/mount.h and sys/fs_types.h only if available.
60644 (read_filesystem_list): Use FS_TYPE.
60646 2001-09-29 Paul Eggert <eggert@twinsun.com>
60648 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60651 2001-09-29 Jim Meyering <meyering@lucent.com>
60653 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60654 [one-argument getmntent function]): Include stdio.h before mntent.h.
60655 SunOS 4.1.x needs it for the declaration of `FILE'.
60656 Patch by Volker Borchert.
60658 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60659 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60660 sys/fs_types.h, and make the link-test for getfsstat guard #include
60661 directives with appropriate #if HAVE_*_H tests so that we can
60662 detect getfsstat on Apple Darwin1.3.7 systems.
60663 Reported by Nelson Beebe.
60664 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60666 2001-09-28 Paul Eggert <eggert@twinsun.com>
60668 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60669 #defines strtoimax. Also treat the other strto* functions
60672 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60673 Check for strtoul and strtoumax,
60674 as those declarations are made even in the signed case.
60675 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60676 Likewise, for strtol and strtoimax.
60678 2001-09-28 Paul Eggert <eggert@twinsun.com>
60680 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60681 #defines strtoimax. Also treat the other strto* functions
60684 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60685 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60686 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60688 2001-09-26 Jim Meyering <meyering@lucent.com>
60690 Most macros in unlocked-io.h had the wrong number of arguments.
60691 * lib/gen-uio: New script.
60692 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60693 * lib/unlocked-io.hin: Remove file.
60694 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60695 rather than trying to embed it here.
60696 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60697 Reported by Padraig Brady.
60699 2001-09-25 Volker Borchert <bt@teknon.de>
60701 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60704 2001-09-24 Jim Meyering <meyering@lucent.com>
60706 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60708 2001-09-23 Jim Meyering <meyering@lucent.com>
60710 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60711 instead of the mere test for existence of mntent.h. The latter
60712 would get a false-positive on AIX 3.4 systems.
60713 In the outer getmntent if-block, don't die if neither of the getmntent
60714 tests succeeds. Instead, just fall through and continue with the
60717 2001-09-23 Jim Meyering <meyering@lucent.com>
60719 * lib/mountlist.c: Remove useless parentheses in #if directives.
60720 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60721 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60723 2001-09-22 Jim Meyering <meyering@lucent.com>
60725 * m4/gettext.m4: New file. From gettext.
60726 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60727 * m4/progtest.m4: Likewise
60728 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60729 * m4/glibc21.m4: Likewise.
60731 * m4/libintl.m4: Remove. No longer used.
60733 2001-09-22 Jim Meyering <meyering@lucent.com>
60735 * lib/localcharset.c: Update from latest gettext.
60736 * lib/config.charset: Likewise.
60738 2001-09-20 Jim Meyering <meyering@lucent.com>
60740 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60742 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60745 2001-09-20 Jim Meyering <meyering@lucent.com>
60747 * lib/xstrtol.c (strtoimax): Guard declaration with
60748 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60749 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60750 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60751 (strtoumax): Likewise, for completeness (it wasn't necessary).
60753 2001-09-17 Paul Eggert <eggert@twinsun.com>
60755 * lib/strtoimax.c (HAVE_LONG_LONG):
60756 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60757 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60758 to work around bug in IBM C compiler.
60760 2001-09-17 Jim Meyering <meyering@lucent.com>
60762 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60763 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60764 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60765 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60766 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60767 whenever the right hand side need not be expanded by the shell.
60769 2001-09-16 Paul Eggert <eggert@twinsun.com>
60771 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60772 library. It's not correct, as some older glibcs are buggy.
60773 fnmatch wasn't fixed until glibc 2.2.
60775 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60776 special shell magic here.
60778 2001-09-16 Jim Meyering <meyering@lucent.com>
60780 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60781 * m4/jm-macros.m4: Require it.
60783 2001-09-16 Jim Meyering <meyering@lucent.com>
60785 * lib/mkdir.c: New file.
60787 2001-09-15 Jim Meyering <meyering@lucent.com>
60789 * m4/jm-macros.m4: Check for help2man.
60791 2001-09-11 Jim Meyering <meyering@lucent.com>
60793 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60794 The body, by Paul Eggert, was moved here from configure.in.
60795 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60797 2001-09-04 Paul Eggert <eggert@twinsun.com>
60799 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60800 (jm_PREREQ): Use it.
60802 2001-09-04 Paul Eggert <eggert@twinsun.com>
60804 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60805 Use ssize_t, not int, to store result of readlink.
60806 Check for ssize_t overflow as well as size_t overflow,
60807 as POSIX says the result of readlink is implementation-defined
60808 when ssize_t overflows.
60809 Remove unnecessary cast to char*.
60810 Use free+malloc instead of realloc, as the storage doesn't need
60811 to be preserved and it's clearer and can be more efficient that way.
60812 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60813 * lib/xreadlink.h (xreadlink): Update prototype.
60815 2001-09-04 Paul Eggert <eggert@twinsun.com>
60817 * lib/xgetcwd.c: Revert some of the previous change; intead,
60818 fix the HAVE_GETCWD_NULL code to behave more like the
60819 !HAVE_GETCWD_NULL code used to.
60821 Include "xalloc.h".
60822 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60825 2001-09-03 Paul Eggert <eggert@twinsun.com>
60827 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60828 sys/param.h, as pathmax.h includes them.
60830 2001-09-03 Paul Eggert <eggert@twinsun.com>
60832 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60833 (jm_PREREQ_XGETCWD): New macro.
60835 * m4/getcwd.m4: New file.
60837 2001-09-03 Paul Eggert <eggert@twinsun.com>
60839 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60840 like the HAVE_GETCWD_NULL code.
60841 Include pathmax.h if not HAVE_GETCWD.
60842 Do not include xalloc.h.
60843 (INITIAL_BUFFER_SIZE): New symbol.
60844 Do not use xmalloc / xrealloc, since the caller is responsible for
60845 handling errors. Preserve errno around `free' during failure.
60846 Do not overrun buffer when using getwd.
60848 2001-09-03 Paul Eggert <eggert@twinsun.com>
60850 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60851 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60854 2001-09-03 Paul Eggert <eggert@twinsun.com>
60856 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60857 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60858 spotted by Jim Meyering.
60860 2001-09-03 Jim Meyering <meyering@lucent.com>
60862 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60865 2001-09-02 Jim Meyering <meyering@lucent.com>
60867 * lib/error.c: Update from GNU libc.
60869 2001-09-01 Jim Meyering <meyering@lucent.com>
60871 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60874 2001-09-01 Jim Meyering <meyering@lucent.com>
60876 * lib/xreadlink.c: New file.
60877 * lib/xreadlink.h: New file.
60878 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60881 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60882 doesn't conflict with sparc Solaris 7's definition in
60883 /usr/include/sys/int_types.h.
60885 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60887 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60888 and strncasecmp as r-values. Unixware didn't have declarations.
60890 2001-08-31 Paul Eggert <eggert@twinsun.com>
60892 * lib/xstrtol.h: Add copyright notice.
60893 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60894 LONGINT_INVALID_SUFFIX_CHAR.
60896 2001-08-31 Paul Eggert <eggert@twinsun.com>
60898 * lib/xstrtol.c (strtoimax): New decl.
60900 2001-08-31 Paul Eggert <eggert@twinsun.com>
60902 * lib/xgetcwd.c: Don't include pathmax.h.
60903 Include stdlib.h and unistd.h if available.
60905 (xmalloc, xstrdup, free): Remove decls.
60906 (xgetcwd): Don't assume sizes fit in unsigned.
60907 Check for overflow when computing sizes.
60908 Simplify reallocation code.
60910 2001-08-31 Paul Eggert <eggert@twinsun.com>
60912 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60913 a directory's st_size can have an arbitrary value, so the old
60914 usage could waste an arbitrary amount of memory. All uses
60916 * lib/savedir.h: Update prototype.
60918 2001-08-31 Paul Eggert <eggert@twinsun.com>
60920 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60922 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60925 Also, make the following further changes to make this file's
60926 configuration more similar to that of strtol.c:
60927 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60928 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60929 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60930 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60931 changed to signed values.
60933 And make the following changes as well:
60934 Fix copyright notice, as 1999 was missing.
60935 (verify): New macro.
60936 (strtoimax): Check sizes at compile-time, not run-time.
60937 Prefer strtol to strtoll if both work.
60938 (main): Remove; it was not that useful and was a pain to maintain.
60940 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60942 2001-08-31 Jim Meyering <meyering@lucent.com>
60944 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60945 Use an initial, malloc'd, buffer of length 128 rather than
60946 a statically allocated one of length 1024.
60948 2001-08-30 Paul Eggert <eggert@twinsun.com>
60950 Simplify code, partly by assuming autoconf 2.52 semantics.
60952 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60954 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60955 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60957 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60958 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60959 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60960 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60961 jm_AC_HEADER_INTTYPES_H.
60962 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60964 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60966 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60967 Quote first arg of AC_DEFUN.
60968 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60969 since they are needed to parse the include file even if we need
60970 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60971 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60972 but with opposite signedness.
60974 2001-08-30 Paul Eggert <eggert@twinsun.com>
60976 Merge 'exclude' changes from tar 1.13.22.
60977 This fixes one or two unlikely storage allocation overflow bugs,
60978 but doesn't change user-visible behavior otherwise.
60980 2001-08-30 Paul Eggert <eggert@twinsun.com>
60982 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60983 (jm_PREREQ_EXCLUDE): New macro.
60985 2001-08-30 Paul Eggert <eggert@twinsun.com>
60987 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60990 2001-08-30 Paul Eggert <eggert@twinsun.com>
60992 * lib/hash.c: Remove '2001' from copyright notice.
60994 2001-08-30 Paul Eggert <eggert@twinsun.com>
60996 * lib/full-write.h: New file.
60997 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60998 * lib/full-write.c: Correct credits, as cccp.c no longer
60999 exists and anyway it was so heavily changed from the old cccp
61000 code as to be unrecognizable. Include full-write.h.
61001 (full_write) Return size_t, with short writes meaning failure.
61002 All callers changed. This fixes a bug with large buffers
61004 * lib/utime.c: Include full-write.h.
61006 2001-08-30 Paul Eggert <eggert@twinsun.com>
61008 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61009 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61010 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61011 Include if available.
61012 (<xalloc.h>): Include
61013 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61014 (verify): New macro. Use it to verify that EXCLUDE macros do not
61015 collide with FNM macros.
61016 (struct patopts): New struct.
61017 (struct exclude): Use it, as exclude patterns now come with options.
61018 (new_exclude): Support above changes.
61019 (new_exclude, add_exclude_file):
61020 Initial size must now be a power of two to simplify overflow checking.
61021 (free_exclude, fnmatch_no_wildcards): New function.
61022 (excluded_filename): No longer requires options arg, as the options
61023 are determined by add_exclude. Now returns bool, not int.
61024 (excluded_filename, add_exclude):
61025 Add support for the fancy new exclusion options.
61026 (add_exclude, add_exclude_file): Now takes int options arg.
61027 Check for arithmetic overflow when computing sizes.
61028 (add_exclude_file): xrealloc might modify errno, so don't
61029 realloc until after errno might be used.
61031 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61033 (free_exclude): New decl.
61034 (add_exclude, add_exclude_file): Now takes int options arg.
61035 (excluded_filename): No longer requires options arg, as the options
61036 are determined by add_exclude. Now returns bool, not int.
61038 2001-08-30 Paul Eggert <eggert@twinsun.com>
61040 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61042 2001-08-27 Jim Meyering <meyering@lucent.com>
61044 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61046 * lib/version-etc.c (N_): Remove definition.
61047 Revert most of last change.
61048 Instead, simply don't mark the `Copyright...' string for translation.
61049 Based on advice from Paul Eggert.
61051 * lib/strtoxmax.c: Tweak comment.
61053 2001-08-26 Jim Meyering <meyering@lucent.com>
61055 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61057 * m4/xstrtoimax.m4: New file.
61058 * m4/xstrtoumax.m4: Add comments explaining why we
61059 AC_REPLACE_FUNCS(strtol).
61061 2001-08-26 Jim Meyering <meyering@lucent.com>
61063 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61064 of copyright with `%s' so translators don't get an untranslated
61066 (COPYRIGHT_YEAR): Define.
61067 (version_etc): Use fprintf rather than fputs.
61068 Suggestion from Ulrich Drepper.
61070 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61072 * lib/strtoll.c: New file, from GNU libc.
61073 * lib/xstrtoimax.c: New file.
61075 * lib/xstrtol.h: Add xstrtoimax.
61076 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61077 * lib/strtoimax.c: New file. Likewise, but first define
61080 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61082 * lib/strtoxmax.c: ... then renamed to this.
61084 2001-08-18 Paul Eggert <eggert@twinsun.com>
61086 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61087 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61088 (jm_AC_TYPE_INTMAX_T): New macro.
61089 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61091 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61093 * m4/longlong.m4: Renamed from ulonglong.m4.
61094 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61095 * m4/uintmax_t.m4: Removed.
61097 2001-08-13 Paul Eggert <eggert@twinsun.com>
61099 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61100 Port to Solaris 8, where 'sed' requires a space after the 'r'
61101 command, and where sh dislikes "$/". Clean up the spacing a bit.
61102 Redirect output to $tmp just once.
61104 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61106 * lib/addext.c (<errno.h>): Include.
61107 (errno): Declare if not defined.
61108 (addext): Work correctly when pathconf returns -1 and leaves
61109 errno alone because there is no limit. Also, work even if
61110 pathconf returns a value greater than SIZE_MAX.
61112 2001-08-12 Jim Meyering <meyering@lucent.com>
61114 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61115 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61116 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61117 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61118 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61119 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61120 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61121 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61122 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61123 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61124 utime.m4, utimes.m4, xstrtoumax.m4:
61125 Quote the first argument in each use of AC_DEFUN.
61127 2001-08-12 Jim Meyering <meyering@lucent.com>
61129 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61130 Simply `return getcwd (NULL, 0);'.
61131 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61132 Use 1300 as initial value for length, not PATH_MAX.
61134 * lib/pathmax.h: Clean up cpp syntax.
61136 2001-08-12 Jim Meyering <meyering@lucent.com>
61138 * lib/gettimeofday.c: New file.
61139 * lib/gtod.h: New file.
61140 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61142 2001-08-05 Jim Meyering <meyering@lucent.com>
61144 * m4/jm-macros.m4: Require autoconf-2.52.
61146 2001-08-04 Jim Meyering <meyering@lucent.com>
61148 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61149 stmt, to get in sync with glibc.
61151 2001-08-03 Paul Eggert <eggert@twinsun.com>
61153 The following changes are from gettext 0.10.39 as maintained by
61156 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61157 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61158 with inverted sense. All uses changed.
61160 * lib/mbswidth.c: Don't include <limits.h>.
61161 Include <stdlib.h> and <string.h> unconditionally.
61162 (iswcntrl, mbsinit, ISCNTRL): New macros.
61163 (mbsnwidth): Use K&R style function declarations.
61164 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61165 can optimize it when MB_CUR_MAX == 1.
61166 The width of control characters is zero, not 1.
61168 2001-08-03 Paul Eggert <eggert@twinsun.com>
61170 The following changes are from gettext 0.10.39 as maintained by
61171 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61173 * m4/codeset.m4: Upgrade to serial AM1.
61174 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61175 all uses changed. Quote first arg of AC_DEFUN.
61176 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61178 * m4/iconv.m4: Upgrade to serial AM2.
61179 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61180 Add --with-libconv-prefix.
61181 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61182 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61183 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61184 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61185 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61187 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61188 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61189 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61190 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61191 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61192 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61193 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61194 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61195 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61197 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61200 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61201 not the default value.
61203 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61204 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61205 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61206 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61207 Also check for iswcntrl, used for wcwidth fallback.
61208 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61211 2001-08-03 Jim Meyering <meyering@lucent.com>
61213 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61214 as it was in the original. Reported by Paul Eggert.
61216 2001-07-16 Jim Meyering <meyering@lucent.com>
61218 * m4/gettimeofday.m4: New file.
61219 Prompted by a report from Bernhard Baehr.
61221 2001-07-15 Jim Meyering <meyering@lucent.com>
61223 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61224 stuff. Now it's in ../Makefile.cfg.
61226 2001-07-15 Jim Meyering <meyering@lucent.com>
61228 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61229 (BUILT_SOURCES): Add unlocked-io.h.
61230 (io_functions): Define.
61231 (unlocked-io.h): New rule.
61232 (DISTCLEANFILES): Add unlocked-io.h.
61233 (all-local): Depend on unlocked-io.h, to ensure it is created.
61235 * lib/unlocked-io.hin: New file
61237 * lib/regex.c: Update from glibc.
61239 2001-07-05 Jim Meyering <meyering@lucent.com>
61241 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61243 (libfetish_a_SOURCES): Put all .h files here instead.
61244 Remove a thus-exposed (better checks in automake) duplicate and
61245 two unnecessary .h files.
61247 2001-07-04 Jim Meyering <meyering@lucent.com>
61249 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61250 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61253 2001-07-02 Jim Meyering <meyering@lucent.com>
61255 The following changes were prompted by suggestions from Bruno Haible.
61257 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61259 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61260 definition of EXTRA_DIST.
61261 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61262 ensure that the generated file is created/updated whenever the list
61263 of $(unlocked_functions) is changed.
61264 (jm-glibc-io.m4): New rule.
61265 (unlocked-io.h): New rule -- currently unused.
61267 2001-06-24 Jim Meyering <meyering@lucent.com>
61269 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61270 unmatched right bracket, rather than kludging it with an extra,
61271 falsely-matching quote in a comment. Patch by Akim Demaille.
61273 2001-06-11 Jim Meyering <meyering@lucent.com>
61275 * lib/regex.c: Update from GNU libc.
61277 2001-05-27 Jim Meyering <meyering@lucent.com>
61279 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61280 Check for ut_type in struct utmp.
61282 2001-05-27 Jim Meyering <meyering@lucent.com>
61284 * lib/readutmp.h (UT_TYPE): Define.
61286 2001-05-24 Jim Meyering <meyering@lucent.com>
61288 * lib/argmatch.c: Include "quote.h".
61289 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61290 quote function. Reported by Göran Uddeborg.
61292 2001-05-22 Jim Meyering <meyering@lucent.com>
61294 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61295 now that we use the package-supplied version unconditionally.
61296 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61298 2001-05-21 Jim Meyering <meyering@lucent.com>
61300 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61301 shell syntax errors.
61303 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61305 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61307 2001-05-20 Paul Eggert <eggert@twinsun.com>
61309 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61310 Don't bother to check library strftime, since
61311 we'll be using our own my_strftime function anyway.
61312 Define my_strftime instead of strftime.
61314 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61316 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61317 which is not yet declared.
61319 2001-05-15 Jim Meyering <meyering@lucent.com>
61321 * m4/regex.m4: Use proper quoting so brackets appear in the test
61323 Reported by, and with help from, Bruno Haible.
61325 2001-05-13 Jim Meyering <meyering@lucent.com>
61327 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61330 2001-05-11 Paul Eggert <eggert@twinsun.com>
61332 dirname code cleanup. base_name now behaves more compatibly
61333 with POSIX basename when given file names that have trailing
61334 slashes, and similarly for dir_name. Add new primitives
61335 base_len and dir_len. Put the directory-name-related decls
61338 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61339 * lib/backupfile.c (base_name): Likewise.
61340 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61341 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61342 * lib/makepath.c (strip_trailing_slashes): Likewise.
61343 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61344 ISSLASH): Likewise.
61345 * lib/rename.c (strip_trailing_slashes): Likewise.
61346 * lib/same.c (base_name): Likewise.
61347 * lib/stripslash.c (ISSLASH): Likewise.
61349 * lib/addext.c: Include <dirname.h> after size_t is defined.
61350 * lib/backupfile.c: Likewise.
61352 * lib/addext.c (addext): Use base_len to trim redundant
61353 trailing slashes instead of doing it ourselves.
61354 But do not trim the last slash if it is not redundant.
61356 * lib/backupfile.c (find_backup_file_name,
61357 max_backup_version): Use base_len instead of rolling it ourselves.
61358 Handle the case of "" and (on DOS) "C:" correctly.
61360 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61361 needed. Include <string.h>, <dirname.h>.
61362 (base_name): Allow file names ending in slashes, other than names
61363 that are all slashes. In this case, return the basename followed
61364 by the slashes. This is more general, and can be used in places
61365 where the original base_name purposely had an assertion failure.
61366 (base_len): New function.
61368 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61369 Do not include <assert.h>; no longer needed.
61371 (memrchr): Remove decl.
61372 (dir_name_r): Remove.
61373 (dir_len): Renamed from dirlen. All callers changed.
61374 Rewrite in terms of base_name, for simplicity and consistency.
61375 (dir_name): Never return NULL. All callers changed.
61376 Do not include <stdlib.h> in test program; no longer needed.
61377 return 0; is fine for test program.
61379 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61381 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61383 * lib/path-concat.c (path_concat): Use base_len to compute
61384 base length, not strlen; this means we cannot rely on memcpy
61387 * lib/same.c (STREQ): Remove.
61388 (same_name): Handle the case where the basename ends in trailing '/'.
61390 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61391 a slash was stripped. Do not strip the last slash after a
61392 file system prefix.
61394 2001-05-11 Paul Eggert <eggert@twinsun.com>
61396 * lib/Makefile.am (libfetish_a_SOURCES):
61397 Add strftime.c, since we now compile it on all hosts.
61399 * lib/strftime.c (my_strftime):
61400 Define to nstrftime if emacs, but only if my_strftime is not defined.
61401 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61402 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61403 Add one more extra argument: a nanoseconds value.
61406 (my_strftime function): Add %N format.
61407 (emacs_strftimeu): Renamed from emacs_strftime,
61408 with extra ut argument.
61410 2001-05-09 Paul Eggert <eggert@twinsun.com>
61412 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61414 2001-04-21 Jim Meyering <meyering@lucent.com>
61416 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61419 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61421 * m4/ftruncate.m4: Check for chsize.
61422 Link with ftruncate.o unconditionally if ftruncate is missing.
61423 This was required when cross-compiling to i586-mingw32msvc.
61425 2001-04-08 Jim Meyering <meyering@lucent.com>
61427 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61428 recomputed; that's necessary when the offset spans a DST transition.
61429 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61431 2001-04-02 Jim Meyering <meyering@lucent.com>
61433 * lib/regex.h, regex.c: Update from GNU libc.
61435 2001-03-24 Jim Meyering <meyering@lucent.com>
61437 * m4/jm-macros.m4: Require autoconf-2.49d.
61439 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61441 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61443 2001-03-19 Paul Eggert <eggert@twinsun.com>
61445 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61447 2001-03-17 Jim Meyering <meyering@lucent.com>
61449 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61450 now that the version in autoconf is equivalent.
61451 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61453 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61454 Suggestion from Akim Demaille.
61456 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61457 (jm_PREREQ_TEMPNAME): New function.
61459 2001-03-16 Paul Eggert <eggert@twinsun.com>
61461 * lib/tempname.c (uint64_t): Define to uintmax_t if
61462 not defined, and if UINT64_MAX is not defined.
61463 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61464 Reported by John David Anglin.
61466 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61468 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61469 resolve alias if codeset is empty.
61470 * lib/config.charset (BeOS): Use wildcard syntax.
61472 2001-03-13 Jim Meyering <meyering@lucent.com>
61474 * lib/path-concat.c (path_concat)
61475 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61476 concatenating e.g., `C:' and `foo'.
61479 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61481 * lib/localcharset.c (locale_charset): Don't use
61482 setlocale(LC_CTYPE,NULL). Don't return NULL.
61483 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61485 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61487 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61488 support for DOS/DJGPP.
61490 2001-03-01 Paul Eggert <eggert@twinsun.com>
61492 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61493 lacks mkstemp. Compile our own tempname.c if we compile our own
61494 mkstemp.c, as mkstemp relies on tempname.
61496 2001-03-01 Jim Meyering <meyering@lucent.com>
61498 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61499 AH_VERBATIM really does output its argument verbatim.
61501 2001-02-28 Paul Eggert <eggert@twinsun.com>
61503 * lib/Makefile.am (libfetish_a_SOURCES):
61504 Add dup-safer.c, fopen-safer.c.
61505 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61507 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61508 * lib/unistd-safer.h: New files.
61510 2001-02-25 Paul Eggert <eggert@twinsun.com>
61512 The mkstemp replacement is taken from glibc 2.2.2, with some
61513 portability fixes for use outside glibc, as follows:
61515 * lib/tempname.c (struct_stat64): New macro.
61516 (direxists, __gen_tempname): Use it.
61517 This avoids a portability problem with Solaris 8.
61519 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61520 (<stddef.h>, <stdint.h>, <string.h>):
61521 Include only if STDC_HEADERS || _LIBC.
61522 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61523 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61524 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61525 (__set_errno): Define this macro if <errno.h> doesn't.
61526 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61527 Define these macros if <stdio.h> doesn't.
61528 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61529 Define these macros if <sys/stat.h>
61530 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61531 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61532 __xstat64): Define if not _LIBC.
61533 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61534 (__gen_tempname): Invoke gettimeofday only if
61535 HAVE_GETTIMEOFDAY || _LIBC;
61536 otherwise, fall back on plain "time".
61537 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61539 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61541 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61543 2001-02-18 Paul Eggert <eggert@twinsun.com>
61545 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61547 2001-02-17 Paul Eggert <eggert@twinsun.com>
61549 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61550 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61551 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61552 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61554 2001-02-17 Paul Eggert <eggert@twinsun.com>
61556 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61557 Remove workaround macros for hosts that have mbrtowc but not
61558 mbstate_t, as we now insist on proper declarations for both
61559 before using mbrtowc.
61561 2001-02-17 Jim Meyering <meyering@lucent.com>
61563 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61564 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61565 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61568 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61569 rather than AC_CACHE_VAL.
61571 2001-02-17 Jim Meyering <meyering@lucent.com>
61573 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61574 around included file name.
61576 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61578 * lib/strftime.c: Update from GNU libc (the only changes were to
61581 2001-02-17 Jim Meyering <meyering@lucent.com>
61583 * lib/regex.c: Update from libc.
61585 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61587 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61590 2001-02-16 Paul Eggert <eggert@twinsun.com>
61592 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61593 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61594 Reported by Mark Hounschell via Paul Eggert.
61596 2001-02-07 Jim Meyering <meyering@lucent.com>
61598 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61600 2001-02-05 Jim Meyering <meyering@lucent.com>
61602 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61603 it includes the patch required for `large file' support with at least
61604 HP-UX's 10.20 /bin/cc.
61606 2001-02-03 Jim Meyering <meyering@lucent.com>
61608 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61609 AS_IF, now that it works once again (mysteriously).
61610 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61612 2001-01-30 Jim Meyering <meyering@lucent.com>
61614 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61615 * m4/chown.m4: Rename conftestchown to conftest.chown.
61616 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61617 s/conftestdir2/conftest.d2/.
61618 * m4/utimes.m4: s/conftestdata/conftest.data/
61619 Inspired by Pavel Roskin's change in autoconf.
61621 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61623 * lib/config.charset: Update for FreeBSD 4.2.
61625 2001-01-27 Jim Meyering <meyering@lucent.com>
61627 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61629 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61631 2001-01-26 Jim Meyering <meyering@lucent.com>
61633 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61634 quotearg.c includes it.
61636 2001-01-26 Jim Meyering <meyering@lucent.com>
61638 * lib/quotearg.c: Include stddef.h.
61639 * lib/quote.c: Include stddef.h.
61640 Reported by Axel Kittenberger.
61642 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61643 line in double quotes so that it evokes a better diagnostic.
61644 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61645 Reported by Axel Kittenberger.
61647 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61649 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61650 as if it was a `charset'.
61652 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61654 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61657 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61659 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61660 to avoid a warning. Add back 'const' to inptr.
61662 2001-01-20 Jim Meyering <meyering@lucent.com>
61664 Be sure that headers are checked before used in code compiled
61665 for the type checks.
61666 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61667 In place of that, invoke jm_CHECK_ALL_TYPES.
61668 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61669 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61670 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61671 The check for ssize_t was mistakenly run before the test for unistd.h.
61673 The configure-time check for stdbool.h was missing.
61674 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61675 (jm_PREREQ_HASH): New function.
61677 2001-01-17 Jim Meyering <meyering@lucent.com>
61679 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61680 for autoconf-2.49c.
61681 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61683 2001-01-16 Jim Meyering <meyering@lucent.com>
61685 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61688 2001-01-14 Jim Meyering <meyering@lucent.com>
61690 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61691 foo and bar. Create conftestdir/ in the script, not in the C code.
61692 Remove directories in the script, not in the C code.
61693 Remove conftestdir{,2} before trying to create the directory.
61694 Make the entire configure script fail if the mkdir fails.
61696 2001-01-14 Jim Meyering <meyering@lucent.com>
61698 * lib/rename.c: New file. From Volker Borchert.
61699 Include stdlib.h, string.h or strings.h, and xalloc.h.
61700 Use strip_trailing_slashes rather than open-coding it.
61702 2001-01-03 Paul Eggert <eggert@twinsun.com>
61704 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61706 2001-01-03 Jim Meyering <meyering@lucent.com>
61708 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61709 of local `inptr' to avoid warning with some system declarations of
61712 2001-01-02 Volker Borchert <bt@teknon.de>
61714 * m4/rename.m4: New file.
61715 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61717 2001-01-01 Jim Meyering <meyering@lucent.com>
61719 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61720 even on systems with utmpx.h. It's necessary for the declaration of
61721 utmp's ut_user member. Reported by Andreas Jaeger.
61723 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61724 available. They are required for the declarations of getgrgid and
61726 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61727 Reported by Andreas Jaeger.
61729 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61731 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61732 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61733 so `make install' also works in VPATH builds.
61735 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61737 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61738 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61739 can be used in subdirectories.
61741 2000-12-29 Paul Eggert <eggert@twinsun.com>
61743 * lib/modechange.c: Do not assume that mode_t uses the
61744 traditional octal encoding. E.g. "chmod 1 FOO" should set
61745 the other-execute bit of FOO even if S_IXOTH != 1.
61747 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61748 WOTH, XOTH, ALLM): New macros.
61749 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61750 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61752 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61753 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61755 No need to use uintmax_t; unsigned long is long enough.
61756 Don't bother to get suffix since we don't use it.
61758 2000-12-26 Jim Meyering <meyering@lucent.com>
61760 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61761 better with autoheader.
61763 2000-12-24 Jim Meyering <meyering@lucent.com>
61765 * lib/hash.c (is_prime): Return explicit boolean values.
61766 (hash_get_first): Return NULL to appease Irix5.6's 89.
61767 Reported by Nelson Beebe.
61769 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61771 * lib/localcharset.c (locale_charset): Add support for Win32.
61773 2000-12-18 Paul Eggert <eggert@twinsun.com>
61775 * lib/physmem.h, lib/physmem.c: New files.
61777 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61778 (noinst_HEADERS): Add physmem.h.
61780 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61781 't' for compatibility with Solaris 8 sort.
61783 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61785 * lib/config.charset: Add support for BeOS.
61787 2000-12-17 Jim Meyering <meyering@lucent.com>
61789 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61790 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61792 2000-12-16 Jim Meyering <meyering@lucent.com>
61794 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61795 N and M) would have treated it like `chown N:N FILE'.
61797 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61799 2000-12-16 Jim Meyering <meyering@lucent.com>
61801 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61802 SHELLS_FILE to a file name that's useful on djgpp systems.
61804 (ADDITIONAL_DEFAULT_SHELLS): Define.
61805 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61806 Based mostly on a patch from Prashant TR.
61808 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61810 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61811 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61812 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61814 2000-12-08 Andreas Schwab <schwab@suse.de>
61816 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61817 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61819 2000-12-07 Jim Meyering <meyering@lucent.com>
61821 * lib/stripslash.c (ISSLASH): Define.
61822 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61826 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61827 (dir_name_r): Declare this function as static.
61828 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61829 manifest itself on a name containing a mix of slashes and
61831 Make this function work with names starting with a DOS-style
61832 drive letter and colon prefix.
61833 (dir_name): Append `.' if necessary.
61834 Based mostly on patches from Prashant TR and Eli Zaretskii.
61836 * lib/dirname.h (dir_name_r): Remove prototype.
61838 2000-12-06 Paul Eggert <eggert@twinsun.com>
61840 * m4/off_t-format.m4: Remove this file.
61841 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61843 2000-12-06 Jim Meyering <meyering@lucent.com>
61845 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61846 replacement strtoull, we may well need the replacement strtoul, too.
61847 Check for declarations of strtoul and strtoull.
61848 Check for strtol. Mainly as a cue to cause automake to include
61849 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61850 Check for limits.h -- strtol.c needs it.
61852 2000-12-05 Jim Meyering <meyering@lucent.com>
61854 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61856 2000-12-04 Jim Meyering <meyering@lucent.com>
61858 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61859 Also include memory.h, stdlib.h, unistd.h if appropriate.
61860 Reported by Andreas Jaeger (conflicting declaration of malloc).
61862 2000-12-02 Jim Meyering <meyering@lucent.com>
61864 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61865 * m4/jm-macros.m4 (jm_MACROS): require it.
61867 2000-12-02 Jim Meyering <meyering@lucent.com>
61869 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61871 2000-12-01 Paul Eggert <eggert@twinsun.com>
61873 * lib/memrchr.c: Include <config.h> before any system include file.
61875 2000-11-30 Jim Meyering <meyering@lucent.com>
61877 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61879 2000-11-30 Jim Meyering <meyering@lucent.com>
61881 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61883 2000-11-29 Paul Eggert <eggert@twinsun.com>
61885 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61887 2000-11-26 Jim Meyering <meyering@lucent.com>
61889 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61891 2000-11-22 Paul Eggert <eggert@twinsun.com>
61893 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61894 size of (size_t) -1; it's not portable.
61896 2000-11-17 Jim Meyering <meyering@lucent.com>
61898 * lib/strstr.c: Update from GNU libc.
61900 2000-11-17 Akim Demaille <akim@epita.fr>
61902 * lib/obstack.h: Formatting changes.
61903 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61904 prevent type checking.
61905 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61906 cast the value to (void *): assigning a `foo *' to a `void *'
61908 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61910 2000-11-16 Jim Meyering <meyering@lucent.com>
61912 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61914 2000-11-11 Jim Meyering <meyering@lucent.com>
61916 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61918 2000-11-10 Jim Meyering <meyering@lucent.com>
61920 * lib/obstack.h: Update from GNU libc.
61921 * lib/obstack.c: Likewise.
61923 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61925 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61927 2000-11-06 Paul Eggert <eggert@twinsun.com>
61929 * lib/getusershell.c (setusershell): Use rewind rather than
61930 fseek/fseeko, to avoid configuration hassles with fseeko.
61931 Don't bother opening SHELLS_FILE if shellstream is NULL;
61932 it's not necessary.
61934 2000-11-05 Jim Meyering <meyering@lucent.com>
61936 * lib/makepath.h (make_dir): Declare.
61937 * lib/makepath.c (make_dir): Remove `static' attribute.
61940 2000-11-04 Jim Meyering <meyering@lucent.com>
61942 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61944 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61946 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61947 last one in a bucket, advance to the next bucket.
61949 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61951 * lib/fnmatch.c: Do not comment out all the code if we are using
61952 the GNU C library, because in some cases we are replacing buggy
61953 code in the GNU C library itself.
61955 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61957 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61958 (regex_compile): Catch bogus \(\1\).
61960 2000-10-30 Paul Eggert <eggert@twinsun.com>
61962 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61963 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61964 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61966 2000-10-30 Paul Eggert <eggert@twinsun.com>
61968 * lib/error.h, getline.h, modechange.h:
61969 Remove "2000" from Copyright line, as the file hasn't been
61970 changed this year other than in the copyright notice.
61972 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61973 was changed this year.
61975 2000-10-29 Jim Meyering <meyering@lucent.com>
61977 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61979 * m4/ls-mntd-fs.m4: Likewise
61981 2000-10-29 Jim Meyering <meyering@lucent.com>
61983 * lib/xstat.in: Fix grammar in comment.
61985 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61987 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61988 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61989 doesn't define __restrict_arr.
61991 2000-10-28 Jim Meyering <meyering@lucent.com>
61993 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61994 (jm_PREREQ_MEMCHR): New function.
61996 2000-10-28 Jim Meyering <meyering@lucent.com>
61998 * lib/memchr.c: Update from libc.
61999 Adjust for portability:
62000 [HAVE_STDLIB_H]: Include stdlib.h.
62001 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62002 Undef __memchr, too.
62003 [!weak_alias]: Define __memchr to memchr.
62005 * lib/regex.c: Update from libc.
62006 * lib/regex.h: Likewise.
62007 * lib/getopt1.c: Likewise.
62008 * lib/memcmp.c: Likewise.
62010 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62011 Avoid using fseek, when possible -- it's broken by design.
62012 Patch by Ulrich Drepper.
62014 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
62016 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62017 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62018 Giving in to popular pressure to shut up the compiler with casts.
62020 2000-10-26 Jim Meyering <meyering@lucent.com>
62022 * lib/strftime.c: Update from libc.
62024 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
62026 * regex.c: More `unsigned char' -> `re_char' changes.
62027 Also change several `int' into `re_wchar_t'.
62028 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62029 (PUSH_FAILURE_POINTER): Don't cast any more.
62030 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62031 We want GCC to complain, since this piece of code makes
62032 re_match non-reentrant, which *should* be fixed.
62033 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62034 (EXTEND_BUFFER): Use RETALLOC.
62035 (SET_LIST_BIT): Don't cast.
62036 (re_wchar_t): New type.
62037 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62038 that those two functions will always properly return.
62039 (IMMEDIATE_QUIT_CHECK): Cast to void.
62040 (analyse_first): Use recursion rather than an explicit stack.
62041 (re_compile_fastmap): Can't fail anymore.
62042 (re_search_2): Don't check re_compile_fastmap for failure.
62043 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62044 Now also sets the new value (passed in a new argument).
62045 (re_match_2_internal): Use it.
62046 Also, use a new var `reg' of type size_t when looping through regs
62047 rather than reuse the inappropriate `mcnt'.
62049 2000-10-25 Jim Meyering <meyering@lucent.com>
62051 * lib/obstack.c: Update from libc.
62053 2000-10-24 Kenichi Handa <handa@etl.go.jp>
62055 * regex.c (regex_compile): Change the way of handling a range from
62056 a char less than 256 to a char not less than 256.
62058 2000-10-24 Andrew Innes <andrewi@gnu.org>
62060 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62062 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62063 so that re_search functions only quit when callers expect them to.
62065 2000-10-23 Jim Meyering <meyering@lucent.com>
62067 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62068 wrong. That set_locale call must not have any side effects.
62071 2000-10-22 Jim Meyering <meyering@lucent.com>
62073 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62074 [CYCLIC]: Remove now-unused definition.
62076 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62077 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62078 Suggestion from Ulrich Drepper.
62080 2000-10-21 Jim Meyering <meyering@lucent.com>
62082 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62083 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62084 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62086 2000-10-21 Jim Meyering <meyering@lucent.com>
62088 * lib/dirname.c (memrchr): Declare if necessary.
62089 (dir_name): Remove the restriction that there be no
62090 trailing slashes. Now, this code skips past them, effectively
62092 [TEST_DIRNAME] (main): New unit tests.
62094 * lib/memrchr.c: New file from GNU libc.
62095 Undef __memrchr, too.
62096 [!weak_alias]: Define __memrchr to memrchr.
62097 Guard weak_alias use with `#ifdef weak_alias'.
62099 2000-10-21 Jim Meyering <meyering@lucent.com>
62101 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62102 (dir_name): Use dir_name_r.
62103 * lib/dirname.h (dir_name_r): Declare it.
62105 2000-10-17 Jim Meyering <meyering@lucent.com>
62107 * lib/quote.h (PARAMS): Define and use.
62108 Reported by Akim Demaille.
62110 * lib/getopt.c: Update from libc.
62112 2000-10-16 Jim Meyering <meyering@lucent.com>
62114 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62118 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62120 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62122 2000-09-25 Jim Meyering <meyering@lucent.com>
62124 * lib/md5.h (rol): Define (from GnuPG).
62126 * lib/sha.c: Give credit (GnuPG) where due.
62127 (M): Use rol rather than open-coding it.
62128 Add a FIXME comment.
62130 2000-09-21 Jim Meyering <meyering@lucent.com>
62132 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62133 Reported by Michael Stone.
62135 2000-09-20 Jim Meyering <meyering@lucent.com>
62137 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62138 (noinst_HEADERS): Add sha.h.
62139 Based on code from Scott G. Miller and from GnuPG.
62141 2000-09-18 Jim Meyering <meyering@lucent.com>
62143 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62144 LIBS. Otherwise, everyone ends up linking with -lelf for some
62146 Reported by Mike Stone.
62148 2000-09-15 Jim Meyering <meyering@lucent.com>
62150 * lib/regex.c: Update from libc.
62152 2000-09-10 Jim Meyering <meyering@lucent.com>
62154 * lib/getopt.c (_getopt_internal): Update from glibc.
62156 2000-09-09 Jim Meyering <meyering@lucent.com>
62158 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62159 think it should be used as a general replacement for isascii.
62160 * lib/fnmatch.c: Likewise.
62161 * lib/mbswidth.c: Likewise
62162 * lib/regex.c: Likewise.
62165 * lib/userspec.c: Include sys/param.h and limits.h.
62167 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62168 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62169 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62170 UID, GID. Check range.
62172 2000-09-06 Jim Meyering <meyering@lucent.com>
62174 * lib/getopt.c (_getopt_internal): Update from glibc.
62176 2000-08-30 Jim Meyering <meyering@lucent.com>
62178 * lib/strftime.c: Merge in changes from GNU libc.
62180 2000-08-26 Jim Meyering <meyering@lucent.com>
62182 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62183 * m4/fpending.m4: New file.
62185 2000-08-26 Jim Meyering <meyering@lucent.com>
62187 * lib/closeout.c: Include "__fpending.h".
62188 (close_stdout_status): Return right away if there's nothing to flush.
62190 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62191 * lib/__fpending.c: New file.
62192 * lib/__fpending.h: New file.
62194 2000-08-20 Jim Meyering <meyering@lucent.com>
62196 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62197 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62198 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62200 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62202 Improve fileutils installation on systems where running
62203 programs (like install) can't be unlinked.
62204 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62205 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62207 2000-08-07 Paul Eggert <eggert@twinsun.com>
62209 Standardize on "memory exhausted" instead of "Memory exhausted"
62210 or "virtual memory exhausted".
62211 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62212 "virtual memory exhausted".
62213 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62215 * lib/userspec.c (parse_user_spec): Likewise.
62216 * lib/bumpalloc.h: comment fix
62217 * lib/same.c, userspec.c: Include xalloc.h.
62219 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62220 not char *const and pointing to a constant array.
62221 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62222 (xrealloc): Comment fix.
62224 * lib/userspec.c (parse_user_spec):
62225 Don't translate a message until just before returning,
62226 to avoid unnecessary translation.
62228 2000-08-07 Jim Meyering <meyering@lucent.com>
62230 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62231 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62232 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62233 getgroups.c, gethostname.c, getopt.h, group-member.c,
62234 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62235 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62236 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62237 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62238 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62239 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62240 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62241 yesno.c: Back out Copyright date changes for each file with no change
62242 this year. This eases coordination with other programs using the same
62243 source code modules. From Paul Eggert.
62245 2000-08-06 Paul Eggert <eggert@twinsun.com>
62247 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62248 not char, for compatibility with glibc 2.1.3 strftime.c.
62250 2000-08-03 Greg McGary <greg@mcgary.org>
62252 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62253 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62254 (EXTEND_BUFFER): Use them.
62256 2000-08-01 Jim Meyering <meyering@lucent.com>
62258 * lib/dirname.c (ISSLASH): Define.
62259 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62260 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62261 both `\' and `/' may be use as path separators.
62262 Based on a patch from Prashant TR.
62264 2000-07-31 Paul Eggert <eggert@twinsun.com>
62266 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62267 slot vector a constant, since it might get modified.
62269 2000-07-31 Jim Meyering <meyering@lucent.com>
62271 * lib/xmalloc.c: Use `virtual memory exhausted', not
62272 `Memory exhausted'.
62273 * lib/obstack.c (print_and_abort): Likewise.
62275 2000-07-30 Paul Eggert <eggert@twinsun.com>
62277 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62278 buffer, so that the caller can always quote one small
62279 component of a "memory exhausted" message in slot 0.
62280 From a suggestion by Jim Meyering.
62282 2000-07-30 Jim Meyering <meyering@lucent.com>
62284 * lib/makepath.c (make_path): Quote the other instance, too.
62286 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62287 (STATIC_BUF_SIZE): Define.
62288 (quotearg_n_options): Use only statically allocated storage when
62289 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62290 than STATIC_BUF_SIZE.
62292 2000-07-29 Jim Meyering <meyering@lucent.com>
62294 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62295 * lib/dirname.c (dir_name): Likewise.
62297 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62300 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62301 (dir_name): Assert that there are no trailing slashes.
62303 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62305 * lib/mbswidth.h (mbswidth): Add a flags argument.
62306 (mbswidth): New declaration.
62307 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62308 * lib/mbswidth.c (mbswidth): Add a flags argument.
62309 (mbsnwidth): New function.
62311 2000-07-24 Jim Meyering <meyering@lucent.com>
62313 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62315 2000-07-23 Paul Eggert <eggert@twinsun.com>
62317 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62319 2000-07-23 Paul Eggert <eggert@twinsun.com>
62321 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62322 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62323 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62324 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62325 invoke multibyte primitives.
62327 2000-07-23 Paul Eggert <eggert@twinsun.com>
62330 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62331 so that mbstate_t is always defined.
62333 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62334 be 1 in at least one GCC installation, and this configuration
62335 error is likely to be common. Ignoring MB_LEN_MAX hurts
62336 performance on hosts that have mbrtowc but have only unibyte
62337 locales, but I assume these hosts are rare.
62339 2000-07-23 Paul Eggert <eggert@twinsun.com>
62341 * lib/mbswidth.c (_XOPEN_SOURCE):
62342 Don't define; this causes problems on Solaris 7.
62343 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62345 2000-07-23 Jim Meyering <meyering@lucent.com>
62347 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62348 too: getgrgid, getpwuid, getuid.
62350 2000-07-23 Jim Meyering <meyering@lucent.com>
62352 * lib/basename.c (base_name): Add an assertion.
62354 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62356 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62357 shadow its mbsinit function.
62359 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62361 * lib/mbswidth.h: New file.
62362 * lib/mbswidth.c: New file.
62363 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62364 (noinst_HEADERS): Add mbswidth.h.
62366 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62368 * lib/config.charset: Add support for FreeBSD. Improve support for
62371 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62373 * m4/mbswidth.m4: New file.
62374 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62376 2000-07-15 Jim Meyering <meyering@lucent.com>
62378 * lib/makepath.c: Include quote.h.
62379 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62380 corresponding argument in a `quote (...)' call.
62381 Give better diagnostics.
62383 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62384 (noinst_HEADERS): Add quote.h.
62386 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62387 from tar's src/misc.c.
62388 * lib/quote.h: New file. Prototypes for same.
62390 2000-07-14 Paul Eggert <eggert@twinsun.com>
62392 From a suggestion by Bruno Haible.
62393 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62394 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62395 to decide whether to define the BeOS workaround macro;
62396 this adjusts to the change to AC_MBSTATE_T.
62398 2000-07-14 Jim Meyering <meyering@lucent.com>
62400 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62401 jm_AC_TYPE_UINTMAX_T.
62403 2000-07-13 Paul Eggert <eggert@twinsun.com>
62405 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62407 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62408 quotearg_buffer_restyled): Add support for
62409 clocale_quoting_style. Undo previous change to
62410 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62411 and "{RIGHT QUOTATION MARK}" msgids.
62413 2000-07-10 Paul Eggert <eggert@twinsun.com>
62415 From a suggestion by Bruno Haible.
62416 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62417 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62418 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62419 and mbstate_t, to a single-part test that simply defines mbstate_t.
62420 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62421 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62423 2000-07-10 Jim Meyering <meyering@lucent.com>
62425 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62427 * m4/gnu-source.m4: Output to confdefs.h directly.
62428 Suggestion from Akim Demaille.
62430 2000-07-09 Paul Eggert <eggert@twinsun.com>
62432 The old behavior of quoting `like this' doesn't look good with
62433 newer, ISO-style fonts. See:
62434 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62436 Instead, quote "like this" by default. Let the translator
62437 tailor the locale-specific quoting behavior by providing
62438 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62440 * lib/quotearg.c (N_): New macro.
62441 (gettext_default): New function.
62442 (quotearg_buffer_restyled): Use
62443 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62444 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62446 2000-07-09 Jim Meyering <meyering@lucent.com>
62448 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62449 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62451 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62452 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62454 2000-07-09 Jim Meyering <meyering@lucent.com>
62456 * lib/Most files: Update copyright dates to include 2000.
62458 2000-07-08 Jim Meyering <meyering@lucent.com>
62460 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62462 (xgethostname): Remove now-unnecessary #ifdef.
62463 Move declaration of `err' into loop where it's used.
62465 2000-07-05 Paul Eggert <eggert@twinsun.com>
62466 and Bruno Haible <haible@clisp.cons.org>
62468 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62469 only if the test for an object-type mbstate_t fails. This
62470 prevents us from mistakenly reporting that mbstate_t is a
62471 system object type after we "#define mbstate_t int" to work
62474 2000-07-05 Paul Eggert <eggert@twinsun.com>
62475 and Bruno Haible <haible@clisp.cons.org>
62477 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62479 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62481 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62483 Include <ctype.h> for use of isalpha.
62485 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62487 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62488 by allocating a larger buffer. Test the gethostname return value for
62489 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62490 returns an error and ENAMETOOLONG isn't defined.
62492 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62494 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62497 2000-07-04 Jim Meyering <meyering@lucent.com>
62499 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62500 of the deprecated AC_CHECKING.
62502 2000-07-04 Jim Meyering <meyering@lucent.com>
62504 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62505 Reported by Bruno Haible.
62507 2000-07-04 Jim Meyering <meyering@lucent.com>
62509 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62510 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62513 2000-07-03 Paul Eggert <eggert@twinsun.com>
62515 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62516 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62518 2000-07-03 Paul Eggert <eggert@twinsun.com>
62519 and Bruno Haible <haible@clisp.cons.org>
62521 * lib/quotearg.c (mbrtowc):
62522 Assign to *pwc, and return 1 only if result is nonzero.
62523 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62525 2000-07-03 Jim Meyering <meyering@lucent.com>
62527 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62529 2000-07-03 Jim Meyering <meyering@lucent.com>
62531 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62532 This is necessary to get a definition of e.g., UTMP_FILE on
62536 2000-07-02 Jim Meyering <meyering@lucent.com>
62538 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62540 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62541 AC_LIBOBJ(function_name).
62542 * m4/chown.m4: Likewise.
62543 * m4/fnmatch.m4: Likewise.
62544 * m4/ftruncate.m4: Likewise.
62545 * m4/getgroups.m4: Likewise.
62546 * m4/getline.m4: Likewise.
62547 * m4/group-member.m4: Likewise.
62548 * m4/jm-macros.m4: Likewise.
62549 * m4/lstat.m4: Likewise.
62550 * m4/malloc.m4: Likewise.
62551 * m4/memcmp.m4: Likewise.
62552 * m4/nanosleep.m4: Likewise.
62553 * m4/putenv.m4: Likewise.
62554 * m4/realloc.m4: Likewise.
62555 * m4/regex.m4: Likewise.
62556 * m4/stat.m4: Likewise.
62557 * m4/strftime.m4: Likewise.
62559 2000-07-02 Jim Meyering <meyering@lucent.com>
62561 * lib/quotearg.c (mbstate_t): Don't define here.
62563 2000-07-02 Jim Meyering <meyering@lucent.com>
62565 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62567 2000-07-01 Jim Meyering <meyering@lucent.com>
62569 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62571 2000-07-01 Jim Meyering <meyering@lucent.com>
62573 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62576 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62578 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62579 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62581 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62583 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62584 per change in ../m4/ls-mntd-fs.m4.
62585 (read_filesystem_list): Ignore symbolic links.
62587 2000-06-29 Jim Meyering <meyering@lucent.com>
62589 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62590 for declaration of strcmp.
62592 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62594 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62595 Avoid warning by casting result to `char *' to remove `const'.
62597 2000-06-28 Jim Meyering <meyering@lucent.com>
62599 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62600 included by quotearg.c, for which we perform this test. From
62603 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62605 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62606 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62607 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62609 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62611 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62613 2000-06-26 Paul Eggert <eggert@twinsun.com>
62615 savedir now sets errno on failure and invokes xmalloc to get memory.
62616 Fix a couple of other minor bugs while we're at it.
62618 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62619 (NAMLEN): Remove macro.
62620 (malloc, realloc): Remove decls.
62621 (stpcpy): Likewise.
62622 ("xalloc.h"): Include.
62623 (NAME_SIZE_DEFAULT): New macro.
62624 (savedir): Use xmalloc / xrealloc to allocate memory.
62625 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62626 Skip "" directory entries.
62627 Use strlen to calculate directory entry length, since the old method
62628 is rarely used these days and isn't worth supporting.
62629 Don't use a pointer after freeing it.
62630 Check for integer overflow when calculating allocation size.
62631 Use memcpy to copy entries, instead of stpcpy.
62632 Set errno properly when returning NULL.
62633 Check for readdir error.
62635 2000-06-26 Jim Meyering <meyering@lucent.com>
62637 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62639 2000-06-25 Jim Meyering <meyering@lucent.com>
62641 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62642 Linux header bug when _XOPEN_SOURCE is defined to 500.
62644 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62646 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62649 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62651 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62653 Don't include <stdlib.h>. Don't declare malloc, realloc.
62655 2000-06-24 Jim Meyering <meyering@lucent.com>
62657 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62658 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62659 for which strerror does return char*, but which lacks a conveniently
62660 accessible declaration of the function. If the compile-test says
62661 strerror_r doesn't work, then resort to a `run'-test that works on
62662 BeOS and segfaults on DEC Unix.
62664 2000-06-24 Jim Meyering <meyering@lucent.com>
62666 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62668 2000-06-23 Paul Eggert <eggert@twinsun.com>
62670 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62671 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62673 2000-06-23 Paul Eggert <eggert@twinsun.com>
62675 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62676 (mbrtowc, mbstate_t): Define substitutes if
62677 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62678 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62679 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62681 2000-06-23 Jim Meyering <meyering@lucent.com>
62683 * m4/afs.m4: Add missing AC_MSG_RESULT.
62684 Reported by Bruno Haible.
62686 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62687 Suggestion from Bruno Haible.
62689 2000-06-23 Jim Meyering <meyering@lucent.com>
62691 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62693 2000-06-21 Jim Meyering <meyering@lucent.com>
62695 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62697 2000-06-21 Jim Meyering <meyering@lucent.com>
62699 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62700 (noinst_HEADERS): Add getstr.h.
62702 * lib/getline.c (getstr): Move into a separate file.
62703 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62704 the following changes: new parameter, delim2; both delim[12]
62705 parameters have type `int', not `char'. The latter would lose
62706 with 8-bit delimiters.
62707 * lib/getstr.h: New file.
62709 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62711 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62712 than 1024, return a memory chunk of least possible size, instead
62713 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62714 Use free/xmalloc instead of xrealloc to avoid copying for very long
62717 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62719 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62722 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62724 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62725 address, not strdup. Include <stdlib.h> and don't declare free().
62727 2000-06-19 Jim Meyering <meyering@lucent.com>
62729 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62731 2000-06-18 Jim Meyering <meyering@lucent.com>
62733 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62735 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62736 `checking whether...' message to be consistent with that of the
62739 2000-06-18 Jim Meyering <meyering@lucent.com>
62741 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62742 Besides, these days every porting target provides a mkdir function.
62744 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62745 needed. (this snippet comes from src/system.h).
62747 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62749 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62751 2000-06-15 Paul Eggert <eggert@twinsun.com>
62753 * lib/human.c (adjust_value): New function.
62754 (human_readable_inexact): Apply rounding style even when
62755 printing approximate values.
62757 2000-06-14 Paul Eggert <eggert@twinsun.com>
62759 * lib/human.c (human_readable_inexact): Allow an input block
62760 size that is not a multiple of the output block size, and vice versa.
62761 Reported by Piergiorgio Sartor.
62763 2000-06-14 Paul Eggert <eggert@twinsun.com>
62765 * lib/getdate.y (get_date): Apply relative times after time
62766 zone indicator, not before. Reported by Todd A. Jacobs.
62768 2000-06-13 Jim Meyering <meyering@lucent.com>
62770 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62772 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62774 2000-06-12 Paul Eggert <eggert@twinsun.com>
62776 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62778 2000-06-12 Jim Meyering <meyering@lucent.com>
62780 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62781 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62783 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62784 the optional argument, `lib'.
62786 2000-06-08 Jim Meyering <meyering@lucent.com>
62788 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62790 2000-06-04 Paul Eggert <eggert@twinsun.com>
62792 Rewrite largefile configuration so that we don't need to run
62793 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62794 AC_CANONICAL_HOST in configure.in -- jmm]
62796 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62797 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62798 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62799 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62800 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62802 Instead of inspecting the output of getconf, try to compile the
62803 test program without and with the macro definition.
62804 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62805 for getconf. Instead, check for the needed flags by compiling
62808 2000-06-04 Paul Eggert <eggert@twinsun.com>
62810 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62812 2000-06-04 Jim Meyering <meyering@lucent.com>
62814 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62815 SunOS 4.1.4 for which gid_t is an unsigned type.
62817 2000-06-03 Jim Meyering <meyering@lucent.com>
62819 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62820 now that autoconf requires that.
62822 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62823 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62824 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62826 2000-06-03 Jim Meyering <meyering@lucent.com>
62828 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62830 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62832 * m4/glibc21.m4: New file.
62833 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62835 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62837 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62838 newer, don't install charset.alias.
62839 * lib/config.charset: Change the Linux/glibc rules so they become empty
62840 on glibc-2.1 or newer.
62842 2000-06-02 Jim Meyering <meyering@lucent.com>
62844 * lib/mountlist.c: Back out last change. Instead, do this...
62845 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62846 me_dummy member using the same `ignore'-testing code.
62847 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62851 2000-05-29 Jim Meyering <meyering@lucent.com>
62853 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62854 mounts with the `ignore' attribute. Based on a patch from
62857 2000-05-28 Jim Meyering <meyering@lucent.com>
62859 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62860 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62861 * m4/stat.m4: Likewise.
62862 * m4/lstat.m4: Likewise.
62863 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62865 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62866 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62868 2000-05-26 Jim Meyering <meyering@lucent.com>
62870 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62872 2000-05-24 Jim Meyering <meyering@lucent.com>
62874 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62875 autoconf requires that.
62876 * m4/lib-check.m4: Likewise.
62877 * m4/jm-macros.m4: Likewise.
62878 * m4/strftime.m4: Likewise.
62880 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62881 AC_CHECK_DECLS, now that autoconf requires that.
62883 2000-05-22 Jim Meyering <meyering@lucent.com>
62885 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62886 * m4/lstat.m4: Likewise.
62888 2000-05-22 Jim Meyering <meyering@lucent.com>
62890 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62892 2000-05-20 Jim Meyering <meyering@lucent.com>
62894 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62895 (jm_PREREQ): Use it.
62897 2000-05-18 Jim Meyering <meyering@lucent.com>
62899 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62900 back, too, since it may have been modified by allocate_entry.
62901 (hash_delete): Rewrite to use neither the assignment operator
62902 nor the comma operator in an if-expression.
62904 2000-05-15 Paul Eggert <eggert@twinsun.com>
62907 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62908 Remove; no longer needed.
62909 "quotearg.h": Add include.
62910 (file_name): Do not bother to explicitly initialize to NULL; it's less
62911 efficient on some hosts.
62912 (close_stdout_status): Remove test as to whether stdout was already
62913 closed; it breaks for the case "echo x | sort >&-".
62914 Quote file name colons.
62915 Do not assume that _("write error") lacks format strings.
62917 2000-05-15 Jim Meyering <meyering@lucent.com>
62919 * lib/version-etc.c (version_etc_copyright): Update the copyright
62920 string used in all --version output.
62922 2000-05-14 Jim Meyering <meyering@lucent.com>
62924 * lib/closeout.c (close_stdout_set_file_name): New function.
62925 (close_stdout_status): Use new file-scoped global.
62926 Return right away if fstat says the stdout file descriptor is invalid.
62927 * lib/closeout.h (close_stdout_set_file_name): Declare.
62929 2000-05-10 Jim Meyering <meyering@lucent.com>
62931 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62932 (close_stdout_set_status): New function.
62933 * lib/closeout.h (close_stdout_set_status): Declare.
62935 2000-05-09 Jim Meyering <meyering@lucent.com>
62937 * m4/gettext.m4: Rename this...
62938 * m4/libintl.m4: ...to this.
62940 2000-05-08 Jim Meyering <meyering@lucent.com>
62942 * lib/long-options.c: Don't include closeout.h.
62943 (parse_long_options): Don't call close_stdout for --version.
62945 2000-05-06 Paul Eggert <eggert@twinsun.com>
62947 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62948 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62949 2.1.3 bug. This avoids a clash when files like regex.c define
62952 2000-05-06 Jim Meyering <meyering@lucent.com>
62954 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62955 (AC_REPLACE_FUNCS): Add strnlen.
62957 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62958 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62960 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62961 AC_SEARCH_LIBS call for nanosleep.
62962 (LIB_NANOSLEEP): Set and AC_SUBST.
62964 2000-05-06 Jim Meyering <meyering@lucent.com>
62966 * lib/strnlen.c: Undefine __strnlen and strnlen.
62967 [!weak_alias]: Define __strnlen to strnlen.
62969 * lib/atexit.c: New file, from libiberty.
62971 2000-05-06 Jim Meyering <meyering@lucent.com>
62973 * lib/closeout.c (close_stdout_status): Also check for errors on the
62976 2000-05-05 Jim Meyering <meyering@lucent.com>
62978 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62979 AC_SEARCH_LIBS call for clock_gettime.
62980 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62982 * m4/search-libs.m4: Update from autoconf.
62984 su doesn't work on Solaris 2.6.
62985 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62986 <shadow.h>. Reported by Dragos Harabor.
62988 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62990 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62991 memcpy instead of xmalloc, xrealloc, path_concat.
62992 (locale_charset): Treat empty environment variables as absent.
62993 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62995 2000-05-04 Jim Meyering <meyering@lucent.com>
62997 * lib/getopt.c: Update from glibc.
62998 * lib/obstack.c: Likewise.
62999 * lib/obstack.h: Likewise.
63000 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
63003 * lib/regex.h: Likewise.
63004 * lib/strndup.c: Likewise.
63005 * lib/strnlen.c: New file, from glibc.
63007 2000-05-03 Jim Meyering <meyering@lucent.com>
63009 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63011 2000-05-02 Paul Eggert <eggert@twinsun.com>
63013 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63014 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
63015 compile-time test, rather than inspecting host and OS, to
63016 decide whether to define _LARGEFILE_SOURCE.
63018 2000-05-01 Jim Meyering <meyering@lucent.com>
63020 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63022 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63023 Based on a patch from Bruno Haible.
63025 2000-05-01 Jim Meyering <meyering@lucent.com>
63027 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63029 2000-04-29 Jim Meyering <meyering@lucent.com>
63031 * lib/path-concat.c: Declare strdup only if it's not defined.
63032 * lib/canon-host.c: Likewise.
63034 2000-04-28 Jim Meyering <meyering@lucent.com>
63036 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63037 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
63038 is included first, then limits.h is included by locale.h by libintl.h.
63039 From John David Anglin.
63041 2000-04-25 Jim Meyering <meyering@lucent.com>
63043 * lib/makepath.c (S_IRWXUGO): Define.
63044 (make_path): Always perform explicit chmod if MODE specifies any
63045 of the `special' permission bits. Prompted by a bug report against
63046 install from Mate Wierdl and Joost van Baal.
63048 2000-04-18 Jim Meyering <meyering@lucent.com>
63050 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63051 (jm_PREREQ): Use it.
63053 2000-04-18 Jim Meyering <meyering@lucent.com>
63055 * lib/README: New file.
63057 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63058 getpagesize. For BeOS. Based on a patch from Bruno Haible.
63060 2000-04-17 Jim Meyering <meyering@lucent.com>
63063 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63064 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63065 Suggestion from Akim Demaille.
63067 2000-04-17 Jim Meyering <meyering@lucent.com>
63069 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63070 the definition of it to rpl_strftime also defined-away the system's
63073 2000-04-15 Jim Meyering <meyering@lucent.com>
63075 Use `C' to denote so-called `contiguous' files, the same way
63077 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63078 (ftypelet): Use S_ISCTG.
63079 From Michael Deutschmann.
63081 2000-04-14 Jim Meyering <meyering@lucent.com>
63083 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63084 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63087 2000-04-14 Jim Meyering <meyering@lucent.com>
63089 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63091 2000-04-13 Jim Meyering <meyering@lucent.com>
63093 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63094 AH_VERBATIM to insert required #ifndef into config.h.in.
63095 Suggestion from Akim Demaille.
63097 2000-04-12 Jim Meyering <meyering@lucent.com>
63099 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63100 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63101 Christian Krackowizer.
63103 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63104 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63105 (AC_SYS_LARGEFILE): Require.
63106 (AM_C_PROTOTYPES): Require.
63108 2000-04-08 Jim Meyering <meyering@lucent.com>
63110 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63111 names don't conflict. Reported by Eli Zaretskii.
63113 2000-04-07 Jim Meyering <meyering@lucent.com>
63115 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63116 sys/types.h, to work around system header problems on AIX 3.2.5.
63119 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63121 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63122 bug. Deal with the different error behavior of Irix iconv.
63124 2000-04-05 Paul Eggert <eggert@twinsun.com>
63126 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63127 IRIX if the installer said otherwise.
63129 2000-04-05 Jim Meyering <meyering@lucent.com>
63131 Portability tweaks required for ultrix4.3.
63132 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63133 (jm_CHECK_DECLS): Add getutent to the list of functions.
63134 (_jm_DECL_HEADERS): Add utmpx.h.
63135 From John David Anglin.
63137 * m4/strftime.m4: Back out the 2000-04-02 change.
63138 Instead of that change, simply undefine putenv in the test program.
63140 2000-04-05 Jim Meyering <meyering@lucent.com>
63142 Portability tweaks required for ultrix4.3.
63143 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63145 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63146 * lib/canon-host.c: Declare strdup.
63147 * lib/path-concat.c: Likewise.
63148 From John David Anglin.
63150 2000-04-04 Jim Meyering <meyering@lucent.com>
63152 Be more DOS 8.3-friendly.
63153 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63154 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63155 * lib/Makefile.am: Reflect renaming.
63156 Reported by Eli Zaretskii.
63158 Use a temporary file name that won't clash with `charset.alias'
63159 in the DOS 8.3 name space.
63160 * lib/Makefile.am (charset_tmp): Define.
63161 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63162 (uninstall-local): Likewise.
63163 Reported by Eli Zaretskii.
63165 2000-04-03 Jim Meyering <meyering@lucent.com>
63167 * m4/gettext.m4: Fix typo in comment.
63169 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63170 textutils/configure.in). Suggestion from Paul Eggert.
63171 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63173 2000-04-02 Paul Eggert <eggert@twinsun.com>
63175 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63176 variable in the shell rather than using putenv, which isn't
63177 portable. This avoids the configure-time inter-test dependency
63178 on the potentially-renamed putenv function.
63180 2000-03-30 Paul Eggert <eggert@twinsun.com>
63182 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63183 before checking struct stat.st_blksize, so that
63184 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63186 2000-03-29 Paul Eggert <eggert@twinsun.com>
63188 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63189 since strftime.c uses HAVE_STRFTIME to decide whether to use
63190 the underlying strftime.
63192 2000-03-29 Paul Eggert <eggert@twinsun.com>
63194 * lib/time/strftime.c (my_strftime): Make sure we call the system
63195 strftime, not ourselves, when invoking the underlying strftime.
63197 2000-03-24 Jim Meyering <meyering@lucent.com>
63199 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63200 (charset_alias): Define.
63201 (install-exec-local): Factor out common code.
63202 (uninstall-local): Split lines longer than 80.
63203 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63204 (SUFFIXES): Define.
63205 (.sed.in.sed): New rule. Don't redirect directly to $@.
63206 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63208 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63210 * lib/config.charset: Output a line containing "Packages using this
63212 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63213 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63214 ref-del.sed): New rules.
63216 2000-03-17 Jim Meyering <meyering@lucent.com>
63218 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63219 Otherwise, include <strings.h>
63221 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63223 * lib/unicodeio.c (utf8_wctomb): New function.
63224 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63225 format instead of in UCS-4 with platform dependent endianness.
63227 2000-03-10 Jim Meyering <meyering@lucent.com>
63229 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63230 From Marco Franzen.
63232 2000-03-07 Paul Eggert <eggert@twinsun.com>
63234 * lib/savedir.c (savedir): Work even if directory size is
63235 negative; this can happen with some screwy NFS configurations.
63237 2000-03-06 Jim Meyering <meyering@lucent.com>
63239 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63240 if it's NULL (because we ran out of memory). From Bruno Haible.
63242 2000-03-05 Jim Meyering <meyering@lucent.com>
63244 * lib/localcharset.c ("path-concat.h"): Include.
63245 (get_charset_aliases): Use path_concat instead of ANSI string
63248 * lib/unicodeio.h (PARAMS): Define.
63249 Use it to guard prototype.
63251 2000-03-04 Jim Meyering <meyering@lucent.com>
63253 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63254 for lib/localcharset.c.
63256 2000-03-04 Jim Meyering <meyering@lucent.com>
63258 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63259 installing into it.
63260 (uninstall-local): Uncomment this rule so `make distcheck' works
63263 * lib/unicodeio.c (<errno.h>): Include it.
63264 (errno): Declare if not defined.
63266 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63268 * lib/config.charset: New version, incorporating remarks from a linux
63269 i18n mailing list. From Bruno Haible.
63271 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63273 * m4/codeset.m4: New file.
63274 * m4/iconv.m4: New file.
63275 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63277 2000-03-03 Jim Meyering <meyering@lucent.com>
63279 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63281 2000-03-02 Jim Meyering <meyering@lucent.com>
63283 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63284 the messages come out on separate lines.
63286 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63287 rather than jm_CHECK_DECLARATIONS.
63288 * m4/decl.m4: Remove now-unused file.
63290 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63293 2000-03-02 Jim Meyering <meyering@lucent.com>
63295 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63297 2000-03-01 Jim Meyering <meyering@lucent.com>
63299 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63300 * lib/unicodeio.c: Likewise.
63302 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63304 * lib/config.charset: New file.
63305 * lib/localcharset.c: New file.
63306 * lib/unicodeio.h, lib/unicodeio.c: New files.
63307 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63308 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63309 (noinst_HEADERS): Add unicodeio.h.
63310 (all-local, install-exec-local, charset.alias): New targets.
63312 2000-02-28 Paul Eggert <eggert@twinsun.com>
63314 * lib/quotearg.c (ALERT_CHAR): New macro.
63315 (quotearg_buffer_restyled): Use it.
63317 2000-02-27 Jim Meyering <meyering@lucent.com>
63319 * m4/check-decl.m4: Add getenv to the list.
63321 2000-02-27 Jim Meyering <meyering@lucent.com>
63323 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63324 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63326 * lib/backupfile.c: Guard inclusion of stdlib.h with
63327 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63328 Declare malloc if needed.
63330 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63331 `#ifndef HAVE_DECL..'
63332 now that autoconf always defines the HAVE_DECL_ symbols.
63333 * lib/human.c: Likewise.
63334 * lib/same.c: Likewise.
63335 * lib/strtoumax.c: Likewise.
63337 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63338 declaration check was not run.
63339 * lib/hash.c: Likewise.
63340 * lib/human.c: Likewise.
63341 * lib/same.c: Likewise.
63342 * lib/strtoumax.c: Likewise.
63344 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63345 `.', then first look up the entire `.'-containing string as a login
63348 2000-02-23 Jim Meyering <meyering@lucent.com>
63350 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63351 in place of my hack.
63353 2000-02-18 Paul Eggert <eggert@twinsun.com>
63355 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63356 (textint): New typedef.
63357 (parser_control): Member year changed from int to textint.
63359 (YYSTYPE): Removed; replaced by %union with int and textint members.
63360 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63361 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63362 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63363 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63364 (date, number, to_year): Use width of number in digits, not its value,
63365 to determine whether it's a 2-digit year, or a 2-digit time.
63366 (yylex): Store number of digits of numeric tokens.
63367 Reported by John Kendall.
63369 (parser_control): Changed from struct parser_control to typedef (for
63370 consistency). All uses changed.
63372 (tID): Removed; not used.
63373 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63375 2000-02-14 Paul Eggert <eggert@twinsun.com>
63377 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63378 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63380 2000-02-12 Jim Meyering <meyering@lucent.com>
63382 * lib/userspec.c (ISDIGIT): Define it.
63383 (isdigit): Remove definition.
63384 (is_number): Use ISDIGIT, not isdigit.
63385 <libintl.h>: Include.
63386 (_ and N_): Define.
63387 (parse_user_spec): Mark translatable strings.
63389 2000-02-10 Jim Meyering <meyering@lucent.com>
63391 With these changes, nanosleep.[ch] are finally enough like the other
63392 lib/* replacement files to compile on a few more losing systems.
63394 * lib/nanosleep.h: Don't include config.h.
63395 Remove prototype from declaration of nanosleep.
63396 (PARAMS): Remove now-unneeded definition.
63397 * lib/nanosleep.c: #undef nanosleep.
63398 (rpl_nanosleep): Rename from nanosleep.
63400 2000-02-10 Jim Meyering <meyering@lucent.com>
63402 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63403 gnu_nanosleep to rpl_nanosleep.
63405 2000-02-09 Jim Meyering <meyering@lucent.com>
63407 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63408 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63410 2000-02-08 Akim Demaille <akim@epita.fr>
63412 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63413 `[' and `]' and remove uses of `changequote'.
63414 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63415 (AC_SYS_LARGEFILE): Likewise.
63416 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63417 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63419 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63420 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63421 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63422 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63424 2000-02-05 Jim Meyering <meyering@lucent.com>
63426 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63427 Remove explicit use of AC_HEADER_TIME. It is required by
63428 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63429 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63430 in autoconf whereby the expansion of the latter ended up preceding
63431 the expansion of its prerequisite, AC_HEADER_TIME.
63432 Reported by Volker Borchert.
63434 2000-02-03 Jim Meyering <meyering@lucent.com>
63436 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63438 2000-02-03 Jim Meyering <meyering@lucent.com>
63440 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63441 rather than with `#if HAVE_UTMPNAME'.
63443 2000-02-02 Jim Meyering <meyering@lucent.com>
63445 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63446 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63447 Reported by Eli Zaretskii.
63449 2000-02-01 Jim Meyering <meyering@lucent.com>
63451 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63453 2000-01-31 Jim Meyering <meyering@lucent.com>
63455 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63456 functions. Add the time.h and sys/time.h headers along with the
63457 AC_REQUIRE'ment of AC_HEADER_TIME.
63459 2000-01-31 Jim Meyering <meyering@lucent.com>
63461 * lib/nanosleep.h (nanosleep): Guard declaration with
63462 `#if ! HAVE_DECL_NANOSLEEP'.
63463 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63464 the declaration in that vendor's sys/timers.h.
63465 Reported by Christian Krackowizer.
63467 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63468 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63469 (ISPRINT): Likewise.
63470 Reported by Tom Tromey.
63472 2000-01-30 Jim Meyering <meyering@lucent.com>
63474 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63476 * m4/prereq.m4 (utmp_includes): Define.
63477 Check for ut_user and ut_name members in both struct utmpx
63480 2000-01-30 Jim Meyering <meyering@lucent.com>
63482 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63483 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63484 header files where only utmpx.ut_user is declared.
63486 * lib/readutmp.h (UT_USER): Define.
63488 2000-01-29 Jim Meyering <meyering@lucent.com>
63490 * m4/lib-check.m4: New file containing library-related checks from
63491 fileutils and sh-utils (textutils had none).
63493 2000-01-28 Jim Meyering <meyering@lucent.com>
63495 * m4/perl.m4: Change format of warning message to look more like that
63496 from the missing script. Suggestion from François Pinard.
63498 2000-01-25 Jim Meyering <meyering@lucent.com>
63500 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63501 well as time.h in the compile check.
63502 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63503 Fix typo in cross-compiling case: s/yes/no/.
63505 2000-01-23 Jim Meyering <meyering@lucent.com>
63507 * m4/jm-macros.m4: Move df-related tests here from
63508 fileutils/configure.in
63510 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63511 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63513 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63514 s/space/ac_fsusage_space/.
63515 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63517 * m4/ftruncate.m4: New file (derived from part of
63518 fileutils/configure.in).
63519 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63520 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63522 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63523 AC_SUBST these here, rather than just in sh-util/configure.in, so
63524 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63526 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63527 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63528 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63529 (AC_SUBST(POW_LIBM)): Likewise.
63530 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63532 2000-01-23 Jim Meyering <meyering@lucent.com>
63534 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63537 2000-01-22 Jim Meyering <meyering@lucent.com>
63539 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63541 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63543 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63545 (AC_CHECK_HEADERS): Likewise for sh-utils.
63546 (AC_CHECK_HEADERS): Likewise for textutils.
63547 Merge the three lists of headers.
63549 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63550 from fileutils' configure.in.
63552 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63553 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63556 * m4/check-decl.m4: Use #if rather than #ifdef.
63557 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63558 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63559 (_jm_DECL_HEADERS): Define new function.
63560 (jm_CHECK_DECLARATIONS): Require it.
63562 2000-01-22 Jim Meyering <meyering@lucent.com>
63564 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63565 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63566 Required for some AIX systems. Reported by Christian Krackowizer.
63567 [TESTING] (main): New function.
63569 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63570 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63573 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63576 * lib/strverscmp.c (ISDIGIT): Define.
63577 (strverscmp): Use ISDIGIT, not isdigit.
63579 2000-01-19 Jim Meyering <meyering@lucent.com>
63581 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63582 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63583 defines `struct timespec' in <sys/time.h>
63585 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63586 Thanks to Akim for explaining.
63588 2000-01-17 Paul Eggert <eggert@twinsun.com>
63590 * lib/nanosleep.c (nanosleep):
63591 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63592 POSIX.1 doesn't require SA_INTERRUPT and some systems
63593 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63594 it's been part of POSIX.1 since day 1 (in 1988).
63596 2000-01-17 Jim Meyering <meyering@lucent.com>
63598 * lib/interlock: Remove unused file. Reported by François Pinard.
63600 2000-01-16 Paul Eggert <eggert@twinsun.com>
63602 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63603 alert, backslash, formfeed, and vertical tab unnecessarily in
63604 shell quoting style.
63606 2000-01-16 Jim Meyering <meyering@lucent.com>
63608 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63609 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63610 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63611 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63613 2000-01-16 Jim Meyering <meyering@lucent.com>
63615 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63616 because the latter didn't work.
63618 2000-01-15 Jim Meyering <meyering@lucent.com>
63620 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63621 (AC_REPLACE_FUNCS): Add memcpy and memset.
63622 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63624 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63626 2000-01-12 Jim Meyering <meyering@lucent.com>
63628 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63629 (jm_PREREQ): Use it.
63630 (jm_PREREQ_READUTMP): New macro.
63631 (jm_PREREQ): Use it.
63633 2000-01-11 Paul Eggert <eggert@twinsun.com>
63635 Quote multibyte characters correctly.
63636 * m4/c-bs-a.m4: New file.
63637 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63638 (jm_PREREQ): Use it.
63640 2000-01-11 Paul Eggert <eggert@twinsun.com>
63642 * m4/uintmax_t.m4: Port to autoconf 2.13.
63644 2000-01-08 Jim Meyering <meyering@ascend.com>
63646 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63647 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63649 2000-01-04 Jim Meyering <meyering@ascend.com>
63651 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63652 jm_STRUCT_DIRENT_D_TYPE.
63653 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63654 jm_STRUCT_DIRENT_D_INO.
63655 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63657 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63659 * m4/utime.m4: Likewise.
63661 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63662 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63664 2000-01-03 Paul Eggert <eggert@twinsun.com>
63666 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63667 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63669 2000-01-02 Jim Meyering <meyering@ascend.com>
63671 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63672 remember if this is necessary.
63674 1999-12-26 Jim Meyering <meyering@ascend.com>
63676 * m4/jm-macros.m4: Use it here.
63677 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63679 1999-12-23 Jim Meyering <meyering@ascend.com>
63681 * m4/jm-macros.m4: Check for clock_gettime (moved from
63682 fileutils/configure.in)
63683 Check for gettimeofday.
63685 1999-12-20 Jim Meyering <meyering@ascend.com>
63687 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63688 autoconf-2.14a-1999-12-20.
63690 1999-12-19 Jim Meyering <meyering@ascend.com>
63692 * m4/lstat-slash.m4: New file.
63693 * m4/jm-macros.m4: Use the new macro:
63694 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63696 1999-12-07 Jim Meyering <meyering@ascend.com>
63698 * m4/perl.m4: Require that File::Compare be available, too.
63699 Too many systems seem to lack it.
63701 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63702 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63704 1999-11-18 Paul Eggert <eggert@twinsun.com>
63706 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63707 problem with the QNX 4.25 shell, which doesn't propagate exit
63708 status of failed commands inside shell assignments.
63710 1999-11-17 Jim Meyering <meyering@ascend.com>
63712 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63714 1999-11-07 Jim Meyering <meyering@ascend.com>
63716 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63718 1999-11-06 Jim Meyering <meyering@ascend.com>
63720 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63721 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63723 1999-11-05 Jim Meyering <meyering@ascend.com>
63725 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63726 configure.in of textutils, fileutils, and sh-utils into this one
63727 (shared between those packages) file.
63728 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63729 AC_STRUCT_ST_BLKSIZE.
63731 1999-11-03 Jim Meyering <meyering@ascend.com>
63733 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63734 of AC_CHECK_TYPE checks includes unistd.h.
63735 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63736 Suggestion from Akim Demaille.
63738 1999-10-30 Jim Meyering <meyering@ascend.com>
63740 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63742 * m4/ls-mntd-fs.m4: Likewise.
63743 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63744 * m4/jm-winsz1.m4: Likewise.
63746 * m4/const.m4: Remove file, since the fix made it into the experimental
63747 version of autoconf.
63748 * m4/mktime.m4: Likewise.
63750 * m4/check-type.m4: Remove file, now that the latest version of
63751 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63753 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63754 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63757 1999-10-04 Jim Meyering <meyering@ascend.com>
63759 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63761 1999-09-22 Paul Eggert <eggert@twinsun.com>
63763 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63764 2.95.1 bug with HP-UX 10.20.
63766 1999-09-17 Jim Meyering <meyering@ascend.com>
63768 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63769 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63770 due to missing strdup (against sh-utils-2.0).
63772 1999-08-29 Jim Meyering <meyering@ascend.com>
63774 * m4/jm-macros.m4: Require jm_BISON.
63775 * m4/bison.m4: New file.
63777 1999-08-17 Paul Eggert <eggert@twinsun.com>
63779 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63780 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63782 1999-08-05 Jim Meyering <meyering@ascend.com>
63784 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63785 to avoid conflicts with `conftest' on 8+3 filesystems.
63786 Suggestion from Eli Zaretskii.
63788 1999-08-04 Jim Meyering <meyering@ascend.com>
63790 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63791 fileutils and sh-utils (textutils's getline test was inadequate).
63792 (AM_FUNC_GETLINE): Run this test.
63793 (AC_CHECK_FUNCS): Check for getdelim.
63794 Reported by Bob Proulx.
63796 1999-08-02 Jim Meyering <meyering@ascend.com>
63798 * m4/jm-macros.m4: Add a comment.
63800 1999-08-01 Paul Eggert <eggert@twinsun.com>
63802 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63803 <inttypes.h> defines strtoumax as a macro (and not as a
63806 1999-08-01 Paul Eggert <eggert@twinsun.com>
63808 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63809 that we can shift, multiply and divide unsigned long long
63810 values; Ultrix cc can't do it.
63812 1999-08-01 Paul Eggert <eggert@twinsun.com>
63814 * m4/mktime.m4: New file, which is a preview of what should appear
63815 in the next public autoconf release.
63817 1999-08-01 Paul Eggert <eggert@twinsun.com>
63819 * m4/lfs.m4: Remove this file.
63820 * m4/largefile.m4: New file. It contains the old contents of
63821 lfs.m4, except that all names with prefix AC_LFS have been
63822 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63823 compatible with future autoconf versions. Also, some minor m4
63824 quoting problems have been fixed.
63826 1999-08-01 Paul Eggert <eggert@twinsun.com>
63828 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63829 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63830 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63831 and simplify the shell code.
63833 1999-08-01 Jim Meyering <meyering@ascend.com>
63835 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63838 1999-07-20 Jim Meyering <meyering@ascend.com>
63840 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63842 1999-07-15 Jim Meyering <meyering@ascend.com>
63844 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63846 1999-05-22 Jim Meyering <meyering@ascend.com>
63848 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63850 1999-05-20 Jim Meyering <meyering@ascend.com>
63852 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63853 Add a colon after each `then' in case $4 is empty.
63855 1999-05-16 Jim Meyering <meyering@ascend.com>
63857 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63859 1999-05-10 Jim Meyering <meyering@ascend.com>
63861 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63863 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63866 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63868 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63870 1999-05-04 Paul Eggert <eggert@twinsun.com>
63872 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63873 not CPPFLAGS, so that linking works correctly in IRIX.
63875 1999-04-30 Paul Eggert <eggert@twinsun.com>
63877 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63879 1999-04-20 Paul Eggert <eggert@twinsun.com>
63881 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63882 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63883 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63884 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63885 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63887 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63889 1999-04-20 Jim Meyering <meyering@ascend.com>
63891 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63892 AC_REPLACE xstroull if necessary. From Paul Eggert.
63893 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63895 1999-04-18 Jim Meyering <meyering@ascend.com>
63897 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63898 * m4/jm-macros.m4: Use it.
63900 1999-04-06 Jim Meyering <meyering@ascend.com>
63902 * m4/strftime.m4: Remove test for %f.
63904 1999-03-29 Jim Meyering <meyering@ascend.com>
63906 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63907 superset of the AC_TYPE_* checks in the textutils, fileutils,
63908 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63911 1999-03-28 Jim Meyering <meyering@ascend.com>
63913 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63914 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63915 replaced e.g., in the *.sh files of the sh-utils.
63917 1999-03-20 Jim Meyering <meyering@ascend.com>
63919 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63920 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63921 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63923 1999-03-19 Jim Meyering <meyering@ascend.com>
63925 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63927 1999-03-12 Jim Meyering <meyering@ascend.com>
63929 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63931 1999-03-07 Jim Meyering <meyering@ascend.com>
63933 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63936 1999-02-17 Jim Meyering <meyering@ascend.com>
63938 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63939 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63941 1999-02-07 Jim Meyering <meyering@ascend.com>
63943 * m4/group-member.m4: New file -- extracted from sh-utils'
63946 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63947 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63949 1999-02-06 Jim Meyering <meyering@ascend.com>
63951 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63952 * m4/fnmatch.m4: Likewise.
63953 * m4/getgroups.m4: Likewise.
63954 * m4/lstat.m4: Likewise.
63955 * m4/malloc.m4: Likewise.
63956 * m4/putenv.m4: Likewise.
63957 * m4/realloc.m4: Likewise.
63958 * m4/regex.m4: Likewise.
63959 * m4/stat.m4: Likewise.
63960 * m4/strftime.m4: Likewise.
63961 Suggestion from Alain Magloire.
63963 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63964 * m4/fnmatch.m4: Likewise.
63965 * m4/getgroups.m4: Likewise.
63966 * m4/getline.m4: Likewise.
63967 * m4/lstat.m4: Likewise.
63968 * m4/malloc.m4: Likewise.
63969 * m4/memcmp.m4: Likewise.
63970 * m4/putenv.m4: Likewise.
63971 * m4/realloc.m4: Likewise.
63972 * m4/regex.m4: Likewise.
63973 * m4/stat.m4: Likewise.
63974 * m4/strftime.m4: Likewise.
63975 Suggestion from Alain Magloire.
63977 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63980 * m4/regex.m4: Add a run-time Test for proper operation of
63981 re_compile_pattern.
63983 1999-01-31 Jim Meyering <meyering@ascend.com>
63985 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63987 1999-01-30 Jim Meyering <meyering@ascend.com>
63989 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63991 * m4/jm-mktime.m4: Make this a wrapper around the official
63992 AM_FUNC_MKTIME rather than my private copy, now that the official one
63994 * m4/mktime.m4: Remove file.
63996 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63997 * m4/uptime.m4: Likewise.
63998 * m4/uintmax_t.m4: Likewise.
64000 1999-01-28 Jim Meyering <meyering@ascend.com>
64002 * m4/jm-macros.m4: Use jm_AFS.
64003 * m4/afs.m4: New file (from fileutils' configure.in).
64005 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64006 * m4/chown.m4: Likewise.
64007 * m4/d-ino.m4: Likewise.
64008 * m4/d-type.m4: Likewise.
64009 * m4/fnmatch.m4: Likewise.
64010 * m4/getgroups.m4: Likewise.
64011 * m4/gettext.m4: Likewise.
64012 * m4/jm-mktime.m4: Likewise.
64013 * m4/jm-winsz2.m4: Likewise.
64014 * m4/lcmessage.m4: Likewise.
64015 * m4/ls-mntd-fs.m4: Likewise.
64016 * m4/malloc.m4: Likewise.
64017 * m4/memcmp.m4: Likewise.
64018 * m4/putenv.m4: Likewise.
64019 * m4/realloc.m4: Likewise.
64020 * m4/st_mtim.m4: Likewise.
64021 * m4/strftime.m4: Likewise.
64023 1999-01-16 Jim Meyering <meyering@ascend.com>
64025 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64026 (ARGMATCH_DIE_DECL): Define.
64028 1999-01-12 Jim Meyering <meyering@ascend.com>
64030 * m4/Makefile.am.in: Rewrite to avoid using fmt.
64031 Reported by Lars Hecking.
64033 1999-01-10 Jim Meyering <meyering@ascend.com>
64035 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64037 * m4/inttypes_h.m4: Likewise.
64038 * m4/lstat.m4: Likewise.
64039 * m4/malloc.m4: Likewise.
64040 * m4/readdir.m4: Likewise.
64041 * m4/realloc.m4: Likewise.
64042 * m4/st_dm_mode.m4: Likewise.
64043 * m4/stat.m4: Likewise.
64044 * m4/utimbuf.m4: Likewise.
64045 * m4/utimes.m4: Likewise.
64047 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64048 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
64049 comments in config.h.in are meaningful.
64051 * m4/jm-macros.m4: Require autoconf-2.13 here.
64053 * m4/regex.m4: By default, don't use the included regex.c on systems
64054 with glibc 2. Suggestion from Uli Drepper.
64056 1999-01-02 Jim Meyering <meyering@ascend.com>
64058 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64060 1998-12-18 Jim Meyering <meyering@ascend.com>
64062 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64063 Based on a suggestion from Lars Hecking.
64065 1998-11-16 Paul Eggert <eggert@twinsun.com>
64067 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64069 1998-11-16 Jim Meyering <meyering@ascend.com>
64071 * m4/lfs.m4: Double-quote the `uname...` expression.
64073 1998-11-14 Jim Meyering <meyering@ascend.com>
64075 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64076 * m4/stat.m4: Likewise.
64078 1998-11-03 Jim Meyering <meyering@ascend.com>
64080 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64081 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64083 1998-10-18 Jim Meyering <meyering@ascend.com>
64085 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64087 1998-10-17 Jim Meyering <meyering@ascend.com>
64089 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64090 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64091 calls for those previously hard-coded headers. Instead, take a new
64093 (jm_CHECK_DECLARATIONS): Reflect interface change.
64094 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64095 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64097 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64099 1998-10-14 Jim Meyering <meyering@ascend.com>
64101 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64102 instead of "TZ=America/Vancouver". From Paul Eggert.
64104 1998-10-11 Jim Meyering <meyering@ascend.com>
64106 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64107 This adds a test for a recently added compatibility fix for mktime.c.
64108 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64110 1998-09-27 Jim Meyering <meyering@ascend.com>
64112 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64114 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64115 ../configure.in, including a change from Gordon Matzigkeit to allow
64116 cross-compiling for the Hurd.
64118 * m4/glibc.m4: New file/macro to test for the GNU C Library
64119 versions 1 and 2. From Gordon Matzigkeit.
64122 1998-09-21 Jim Meyering <meyering@ascend.com>
64124 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64126 1998-08-18 Paul Eggert <eggert@twinsun.com>
64128 Port nanosecond-resolution times to UnixWare 2.1.2 and
64129 pedantic Solaris 2.6.
64131 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64133 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64134 Generate name of ns member, instead of just 1 or undef.
64135 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64137 1998-08-15 Jim Meyering <meyering@ascend.com>
64139 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64140 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64141 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64142 instead of jm_TYPE_SSIZE_T.
64144 1998-08-12 Jim Meyering <meyering@ascend.com>
64146 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64148 1998-08-02 Jim Meyering <meyering@ascend.com>
64150 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64151 in acconfig.h manually.
64153 1998-07-31 Paul Eggert <eggert@twinsun.com>
64155 * m4/st_mtim.m4: New file.
64157 1998-07-28 Jim Meyering <meyering@ascend.com>
64159 * m4/utimes.m4: Undef stat.
64161 1998-07-25 Jim Meyering <meyering@ascend.com>
64163 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64164 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64166 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64168 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64169 uid and gid actually remain unchanged.
64171 1998-07-07 Jim Meyering <meyering@ascend.com>
64173 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64175 1998-07-04 Jim Meyering <meyering@ascend.com>
64177 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64178 to prove that this macro can be used in packages without regex.c.
64180 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64182 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64185 1998-07-03 Jim Meyering <meyering@ascend.com>
64187 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64189 * m4/gettext.m4: New file -- from gettext-0.10.35.
64190 * m4/lcmessage.m4: Likewise.
64191 * m4/progtest.m4: Likewise.
64193 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64194 * m4/jm-macros.m4: Require the new macro.
64196 1998-06-29 Jim Meyering <meyering@ascend.com>
64198 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64199 for the definition of NGROUPS (used in a system header included
64202 1998-06-28 Jim Meyering <meyering@ascend.com>
64204 * m4/ls-mntd-fs.m4: New file.
64205 * m4/fstypename.m4: New file.
64207 * m4/jm-macros.m4: Require the new macro.
64208 * m4/jm-glibc-io.m4: New file.
64210 1998-05-19 Jim Meyering <meyering@ascend.com>
64212 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64213 * m4/lchown.m4: New file.
64215 * m4/Makefile.am.in: New file.
64216 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64218 1998-05-14 Jim Meyering <meyering@ascend.com>
64220 * m4/Makefile.am (EXTRA_DIST): Add them.
64221 * m4/jm-macros.m4: New file.
64222 * m4/utimbuf.m4: New file.
64224 1998-05-12 Jim Meyering <meyering@ascend.com>
64226 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64228 1998-05-11 Jim Meyering <meyering@ascend.com>
64230 * m4/isc-posix.m4: New file.
64232 1998-05-10 Jim Meyering <meyering@ascend.com>
64234 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64236 1998-05-09 Jim Meyering <meyering@ascend.com>
64238 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64239 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64242 * m4/ssize_t.m4: New file.
64243 * m4/mktime.m4: Remove file -- the new automake has this now.
64245 1998-04-26 Jim Meyering <meyering@ascend.com>
64247 * m4/assert.m4: New file.
64248 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64250 1998-04-05 Jim Meyering <meyering@ascend.com>
64252 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64253 (jm_PREREQ): Use it here.
64255 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64257 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64260 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64262 * m4/prereq.m4: New file.
64263 * m4/error.m4: New file.
64264 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64266 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64268 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64269 cache-check for the same variable -- that defeated the purpose of
64270 the test; the test program was never run. This was a problem only
64271 on systems with losing getline functions -- HP-UX 10.20 is one.
64272 Reported by Bjorn Helgaas.
64274 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64276 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64278 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64280 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64282 * m4/const.m4: New file. Use an initializer in this declaration
64283 typedef int charset[2]; const charset x;
64284 Reported by Bob Glickstein.
64286 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64288 * m4/chown.m4: Fix reversed types on -1 args to chown.
64291 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64293 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64294 Add lseek and memchr.
64296 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64297 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64298 have a 20-character limit on names.
64300 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64302 * m4/inttypes_h.m4: New file.
64303 * m4/uintmax_t.m4: New file.
64304 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64313 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64315 Copying and distribution of this file, with or without
64316 modification, are permitted provided the copyright notice
64317 and this notice are preserved.