1 2010-03-07 Bruno Haible <bruno@clisp.org>
3 sys_time: Avoid #define replacements in C++ mode.
4 * lib/sys_time.in.h: Include c++defs.h.
5 (gettimeofday): In C++, define a namespaced alias symbol.
6 * modules/sys_time (Depends-on): Add c++defs.
7 (Makefile.am): Update sys/time.h rule.
9 sys_stat: Avoid #define replacements in C++ mode.
10 * lib/sys_stat.in.h: Include c++defs.h.
11 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13 namespaced alias symbol.
14 In C++, define a namespaced alias symbol.
15 * modules/sys_stat (Depends-on): Add c++defs.
16 (Makefile.am): Update sys/stat.h rule.
18 sys_socket: Avoid #define replacements in C++ mode.
19 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21 definitions also when the system has a <sys/socket.h>.
22 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24 In C++, define a namespaced alias symbol.
25 * modules/sys_socket (Depends-on): Add c++defs.
26 (Makefile.am): Update sys/socket.h rule.
28 sys_select: Avoid #define replacements in C++ mode.
29 * lib/sys_select.in.h: Include c++defs.h. Enable the function
30 definitions also when the system has a <sys/select.h>.
31 (select): In C++, define a namespaced alias symbol.
32 * modules/sys_select (Depends-on): Add c++defs.
33 (Makefile.am): Update sys/select.h rule.
35 sys_ioctl: Avoid #define replacements in C++ mode.
36 * lib/sys_ioctl.in.h: Include c++defs.h.
37 (ioctl): In C++, define a namespaced alias symbol.
38 * modules/sys_ioctl (Depends-on): Add c++defs.
39 (Makefile.am): Update sys/ioctl.h rule.
41 string: Avoid #define replacements in C++ mode.
42 * lib/string.in.h: Include c++defs.h.
43 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
44 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
45 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
46 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
47 strsignal, strverscmp): In C++, define a namespaced alias symbol.
48 * modules/string (Depends-on): Add c++defs.
49 (Makefile.am): Update string.h rule.
51 stdlib: Avoid #define replacements in C++ mode.
52 * lib/stdlib.in.h: Include c++defs.h.
53 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
54 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
56 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
58 * modules/stdlib (Depends-on): Add c++defs.
59 (Makefile.am): Update stdlib.h rule.
61 stdio: Avoid #define replacements in C++ mode.
62 * lib/stdio.in.h: Include c++defs.h.
63 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
64 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
65 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
66 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68 namespaced alias symbol.
69 * modules/stdio (Depends-on): Add c++defs.
70 (Makefile.am): Update stdio.h rule.
72 spawn: Avoid #define replacements in C++ mode.
73 * lib/spawn.in.h: Include c++defs.h.
74 (posix_spawn, posix_spawnp, posix_spawnattr_init,
75 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
78 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
79 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
80 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
81 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
82 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
83 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
84 In C++, define a namespaced alias symbol.
85 * modules/spawn (Depends-on): Add c++defs.
86 (Makefile.am): Update spawn.h rule.
88 signal: Avoid #define replacements in C++ mode.
89 * lib/signal.in.h: Include c++defs.h.
90 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
91 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
92 namespaced alias symbol.
93 * modules/signal (Depends-on): Add c++defs.
94 (Makefile.am): Update signal.h rule.
96 search: Avoid #define replacements in C++ mode.
97 * lib/search.in.h: Include c++defs.h.
98 (_gl_search_compar_fn, _gl_search_action_fn): New types.
99 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
101 * modules/search (Depends-on): Add c++defs.
102 (Makefile.am): Update search.h rule.
104 math: Avoid #define replacements in C++ mode.
105 * lib/math.in.h: Include c++defs.h.
106 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
107 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
108 trunc, truncl): In C++, define a namespaced alias symbol.
109 * modules/math (Depends-on): Add c++defs.
110 (Makefile.am): Update math.h rule.
112 locale: Avoid #define replacements in C++ mode.
113 * lib/locale.in.h: Include c++defs.h.
114 (duplocale): In C++, define a namespaced alias symbol.
115 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
116 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
117 * modules/locale (Depends-on): Add c++defs.
118 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
120 langinfo: Avoid #define replacements in C++ mode.
121 * lib/langinfo.in.h: Include c++defs.h.
122 (nl_langinfo): In C++, define a namespaced alias symbol.
123 * modules/langinfo (Depends-on): Add c++defs.
124 (Makefile.am): Update langinfo.h rule.
126 iconv-h: Avoid #define replacements in C++ mode.
127 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
128 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
130 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
131 whenever iconv is present.
132 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
133 (Makefile.am): Update iconv.h rule.
135 glob: Avoid #define replacements in C++ mode.
136 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
137 (_gl_glob_errfunc_fn): New type.
138 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
140 * modules/glob (Depends-on): Add c++defs, warn-on-use.
141 (Makefile.am): Update glob.h rule.
143 fcntl-h: Avoid #define replacements in C++ mode.
144 * lib/fcntl.in.h: Include c++defs.h.
145 (fcntl, open, openat): In C++, define a namespaced alias symbol.
146 * modules/fcntl-h (Depends-on): Add c++defs.
147 (Makefile.am): Update fcntl.h rule.
149 dirent: Avoid #define replacements in C++ mode.
150 * lib/dirent.in.h: Include c++defs.h.
151 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
152 namespaced alias symbol.
153 (dirfd): Update declaration.
154 * modules/dirent (Depends-on): Add c++defs.
155 (Makefile.am): Update dirent.h rule.
157 ctype: Make it usable in C++ code.
158 * lib/ctype.in.h: Include c++defs.h.
159 (isblank): Declare as extern "C".
160 * modules/ctype (Depends-on): Add c++defs.
161 (Makefile.am): Update ctype.h rule.
163 New module 'c++defs'.
164 * modules/c++defs: New file.
165 * build-aux/c++defs.h: New file.
166 Reported by John W. Eaton <jwe@gnu.org>.
168 2010-03-07 Bruno Haible <bruno@clisp.org>
170 logb: Provide missing declaration for Cygwin.
171 * lib/math.in.h (logb): New declaration.
172 * m4/logb.m4: New file.
173 * modules/logb (Files): Add m4/logb.m4.
174 (Depends-on): Add math.
175 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
176 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
177 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
178 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
179 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
181 2010-03-07 Bruno Haible <bruno@clisp.org>
183 Fix test-cond link error.
184 * tests/test-cond.c: Include <stdio.h>.
186 2010-03-07 Bruno Haible <bruno@clisp.org>
188 Fix test-dirent-safer link error.
189 * modules/dirent-safer-tests (Makefile.am): Define
190 test_dirent_safer_LDADD.
192 2010-03-07 Bruno Haible <bruno@clisp.org>
194 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
195 among default module list.
197 2010-03-07 Bruno Haible <bruno@clisp.org>
199 Fix link error on platforms with GNU libiconv.
200 * modules/unistr/u8-strcoll-tests (Makefile): Define
201 test_u8_strcoll_LDADD.
202 * modules/unistr/u16-strcoll-tests (Makefile): Define
203 test_u16_strcoll_LDADD.
204 * modules/unistr/u32-strcoll-tests (Makefile): Define
205 test_u32_strcoll_LDADD.
207 2010-03-07 Bruno Haible <bruno@clisp.org>
209 Use POSIX declarations for socket functions.
210 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
211 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
212 rpl_sendto): Change declaration to match POSIX.
213 * lib/connect.c (rpl_connect): Likewise.
214 * lib/accept.c (rpl_accept): Likewise.
215 * lib/bind.c (rpl_bind): Likewise.
216 * lib/getpeername.c (rpl_getpeername): Likewise.
217 * lib/getsockname.c (rpl_getsockname): Likewise.
218 * lib/recv.c (rpl_recv): Likewise.
219 * lib/send.c (rpl_send): Likewise.
220 * lib/recvfrom.c (rpl_recvfrom): Likewise.
221 * lib/sendto.c (rpl_sendto): Likewise.
223 2010-03-06 Bruno Haible <bruno@clisp.org>
225 Clarify access, euidaccess, faccessat.
226 * doc/posix-functions/faccessat.texi: Mention security problem under
227 "Other problems", not "Portability problems".
228 * doc/posix-functions/access.texi: Likewise. Mention a related security
230 * doc/glibc-functions/euidaccess.texi: Mention security problems.
231 * lib/euidaccess.c: Add comments about platforms.
232 * lib/unistd.in.h (access, euidaccess): Add warnings.
234 2010-03-07 Bruno Haible <bruno@clisp.org>
236 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
237 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
238 (POSIX_SPAWN_SETSCHEDULER): Likewise.
239 (POSIX_SPAWN_USEVFORK): Define in a way that works when
240 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
241 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
242 declare when POSIX_SPAWN_SETSCHEDULER is zero.
243 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
244 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
245 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
246 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
247 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
248 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
249 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
250 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
251 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
252 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
253 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
254 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
255 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
257 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
258 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
259 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
261 * tests/test-spawn.c (main): Make it work when
262 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
264 2010-03-07 Bruno Haible <bruno@clisp.org>
266 Fix incorrect Makefile.am generation in German locale.
267 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
268 Execute sed command with character range in C locale.
270 2010-03-06 Bruno Haible <bruno@clisp.org>
272 Tests for module 'iconv-h'.
273 * modules/iconv-h-tests: New file.
274 * tests/test-iconv-h.c: New file.
276 New module 'iconv-h'.
277 * modules/iconv-h: New file.
278 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
279 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
280 (configure.ac): Remove gl_ICONV_H.
281 (Makefile.am): Remove rule for iconv.h.
283 2010-03-06 Bruno Haible <bruno@clisp.org>
285 More consistent naming of *.m4 files.
286 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
287 * modules/wctype (Files): Update.
289 More consistent naming of *.m4 files.
290 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
291 * modules/wchar (Files): Update.
293 2010-03-06 Jim Meyering <meyering@redhat.com>
295 euidaccess: relax license to LGPLv2+
296 * modules/euidaccess (License): Relax to LGPLv2+.
298 2010-03-06 Bruno Haible <bruno@clisp.org>
300 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
301 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
302 (Makefile.am): Augment lib_SOURCES instead.
304 2010-03-04 Jim Meyering <meyering@redhat.com>
306 utime: remove obsolete module
307 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
308 unnecessary for years, and has been marked as obsolete for 10 months.
309 * modules/utime: Remove file.
310 * lib/utime.c: Remove file.
311 * m4/utime.m4: Remove file.
312 * m4/utimes-null.m4: Remove file.
313 * doc/posix-functions/utime.texi (utime): Remove reference to
314 the module. Move the sole "fixed by gnulib" item into the
315 "problems not fixed by Gnulib" list.
316 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
318 2010-03-05 Simon Josefsson <simon@josefsson.org>
320 * modules/exit (License): Relax license to LGPLv2+.
321 (Status): Mark as obsolete.
322 * NEWS: Mention deprecated 'exit' module.
323 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
324 of now obsolete 'exit'.
326 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
328 fts-lgpl: remove unused module
329 * modules/fts-lgpl: Remove.
330 * MODULES.html.sh (func_all_modules): Adjust.
331 * check-module (find_included_lib_files): Adjust.
332 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
334 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
336 copy-acl: enhance Solaris ACL error handling
337 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
338 * lib/set-mode-acl.c (qset_acl): Likewise.
340 2010-03-02 Bruno Haible <bruno@clisp.org>
342 spawn: Don't override the system defined values on FreeBSD 8.
343 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
344 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
345 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
346 if HAVE_POSIX_SPAWN is 1.
347 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
349 2010-03-01 Bruno Haible <bruno@clisp.org>
351 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
354 2010-02-25 Bruno Haible <bruno@clisp.org>
356 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
357 * gnulib-tool: Define 'echo' as a function only before the ksh alias
358 setting, not afterwards.
359 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
361 2010-02-24 Eric Blake <eblake@redhat.com>
363 bootstrap, git-version-gen: use timestamp
364 * build-aux/git-version-gen (scriptversion): Force UTC.
365 * build-aux/bootstrap (scriptversion): New variable.
367 bootstrap: allow older git
368 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
369 older than 1.6.4. Requested by the libvirt project.
371 2010-02-23 Eric Blake <eblake@redhat.com>
373 warn-on-use: work with old autoconf
374 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
375 AS_VAR semantics of autoconf 2.60.
376 Reported by Bruno Haible.
378 bootstrap: improve some comments
379 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
380 clarification comments.
382 gettimeofday: provide correct function
383 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
384 when replacement is declared, otherwise provide gettimeofday.
385 Reported by Michael Goffioul.
387 2010-02-23 Jim Meyering <meyering@redhat.com>
389 lib-ignore: relax license to "unlimited", not LGPLv2+
390 * modules/lib-ignore (License): Relax to "unlimited".
392 2010-02-23 Jim Meyering <meyering@redhat.com>
394 lib-ignore: relax license to LGPLv2+
395 * modules/lib-ignore (License): Relax to LGPLv2+.
397 2010-02-22 Eric Blake <eblake@redhat.com>
399 lseek: avoid bash 3.2 broken pipe bug
400 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
401 warning from bash 3.2.
402 Reported by Ben Pfaff, with analysis from Bruno Haible.
404 bootstrap: support non-FSF copyright holder
405 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
406 bootstrap.conf override of COPYRIGHT_HOLDER.
407 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
409 bootstrap: interoperate with gettext 0.14.1
410 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
412 bootstrap: allow for alternate submodule location
413 * build-aux/bootstrap (gnulib_path): New variable; use instead of
414 hardcoding submodule location.
415 (gnulib_mk): Allow direct use of Makefile.am.
417 bootstrap: use GNULIB_SRCDIR to reduce disk usage
418 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
419 rather than reconfiguring where the submodule points.
421 gettimeofday: restore support for platforms that lack function
422 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
423 replacement if function is missing.
424 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
425 * modules/sys_time (Makefile.am): Substitute it.
426 * lib/sys_time.in.h (gettimeofday): Check it.
427 Reported by Michael Goffioul.
429 2010-02-21 Bruno Haible <bruno@clisp.org>
431 * lib/stdio.in.h (obstack_printf): Fix typo.
433 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
435 vc-list-files: use bzr ls's -R option
436 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
437 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
439 2010-02-21 Jim Meyering <meyering@redhat.com>
441 init.sh: fix EXEEXT shims to work also for names like test-prog
442 * tests/init.sh: Re-exec a better shell, when needed.
443 If the current shell lacks support for posix $(...), an init.sh-using
444 test will now try to find a shell that supports that. If EXEEXT is
445 nonempty, we also require support for hyphen-in-alias-name and shell
446 substitutions like ${var#glob}. Failure to find such a shell results
449 2010-02-21 Bruno Haible <bruno@clisp.org>
451 Really work around around "broken pipe" error message from bash 3.2.
452 * gnulib-tool (func_reset_sigpipe): Remove function.
453 (echo): In bash 3.2, define to a function that uses printf.
454 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
456 2010-02-20 Bruno Haible <bruno@clisp.org>
458 Restore support for automake 1.9.6 with autoconf 2.61.
459 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
460 Reported by James Youngman <jay@gnu.org>.
462 2010-02-20 Bruno Haible <bruno@clisp.org>
464 Improve *printf warning condition.
465 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
466 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
467 and the function is overridden due to SIGPIPE emulation.
469 2010-02-20 Bruno Haible <bruno@clisp.org>
471 * lib/stdio.in.h: Tweak comments.
473 2010-02-19 Bruno Haible <bruno@clisp.org>
475 Make it easier to find modules. New gnulib-tool option '--find'.
476 * gnulib-tool: New option --find.
477 (func_usage): Document it.
478 (func_sanitize_modulelist): New function, extracted from
480 (func_all_modules): Invoke it.
481 * doc/gnulib-tool.texi (Which modules?): New node.
483 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
485 * lib/sys_select.in.h: Provide select replacement even if
486 sys/select.h exists on a system, for Interix.
488 2010-02-18 Jim Meyering <meyering@redhat.com>
490 init.sh: don't use $(...) just yet
491 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
492 to accommodate e.g., Solaris' /bin/sh.
494 2010-02-17 Bruno Haible <bruno@clisp.org>
496 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
497 Reported by Ludovic Courtès <ludo@gnu.org>.
499 2010-02-16 Simon Josefsson <simon@josefsson.org>
501 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
504 2010-02-17 Simon Josefsson <simon@josefsson.org>
506 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
507 if not provided by the system's netdb.h. Reported by
508 ludo@gnu.org (Ludovic Courtès).
510 2010-02-15 Jim Meyering <meyering@redhat.com>
512 init.sh: improve portability and efficiency
513 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
514 "dummy" in a for loop.
515 Use '!', not '^' to select the complement of a character set used
516 in a "case" statement.
517 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
518 Suggestions from Eric Blake.
520 init.sh: automatically accommodate programs with the .exe suffix
521 Automatically arrange for an invocation of "prog" to execute the
522 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
523 may use the simpler "prog", yet still work when built on a system
524 that requires specifying the added suffix.
525 Do this by constructing a function named "prog" that invokes
526 "prog.exe" for each .exe file in selected directories.
527 * tests/init.sh (find_exe_basenames_): New function.
528 (create_exe_shim_functions_): New function.
529 (path_prepend_): Use it.
531 maint.mk: mark syntax-check sc_*.m rules as .PHONY
532 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
533 "make -t syntax-check" doesn't create a ton of sc_*.m files.
535 2010-02-14 Jim Meyering <meyering@redhat.com>
537 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
538 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
539 (sc_prohibit_hash_pjw_without_use): New rule.
541 maint.mk: allow the default upload destination dir to be overridden
542 * top/maint.mk (upload_dest_dir_): Define with a default that
543 preserves the status quo.
544 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
545 Reported by Peter Simons.
547 maint.mk: prohibit inclusion of "hash.h" without_use
548 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
550 2010-02-10 Jim Meyering <meyering@redhat.com>
552 maint.mk: prohibit inclusion of "ignore-value.h" without_use
553 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
555 2010-02-09 Eric Blake <ebb9@byu.net>
556 and Bruno Haible <bruno@clisp.org>
558 obstack-printf-posix: ensure declaration
559 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
560 extracted from gl_FUNC_OBSTACK_PRINTF.
561 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
562 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
564 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
565 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
568 2010-02-08 Bruno Haible <bruno@clisp.org>
570 gnulib-tool: Fix typo in 2010-02-07 commit.
571 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
572 Reported by Eric Blake.
574 2010-02-07 Bruno Haible <bruno@clisp.org>
576 gnulib-tool: Fix up caching patches.
577 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
578 option --no-cache. Use associative arrays when supported by the shell.
579 (sed_comments): New variable.
580 (modcache): Renamed from do_cache.
581 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
582 abbreviate unnecessarily.
583 (have_associative): New variable.
584 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
585 way also for ksh and zsh.
586 (func_init_sed_convert_to_cache_statements): New function, extracted
587 from func_cache_lookup_module. Add support for associative arrays.
588 Don't set the c_MODULE_cached variable here. Ignore all lines before
589 the first field header. Remove only the final newline, not all trailing
590 newlines. Support empty fields correctly. Limit the use of 'eval' to
592 (func_get_description, func_get_status, func_get_notice,
593 func_get_applicability, func_get_filelist, func_get_dependencies,
594 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
595 func_get_automake_snippet, func_get_include_directive,
596 func_get_link_directive, func_get_license, func_get_maintainer):
597 Update documentation. List the unoptimized code first. Add support for
598 associative arrays. Limit the use of 'eval' to assignments.
599 (func_get_applicability): Undo stylistic pessimisations.
600 (func_get_automake_snippet, func_get_include_directive): Reduce code
602 (func_modules_transitive_closure, func_modules_add_dummy,
603 func_modules_notice, func_modules_to_filelist, func_add_file,
604 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
605 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
606 func_create_testdir, func_create_megatestdir): Update documentation.
608 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
610 * gnulib-tool (func_cache_lookup_module): Store the module name
611 belonging to the cache variable; error out if two different
612 module names map to the same cache variable name.
614 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
616 gnulib-tool: Make caching optional.
617 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
618 Update matching short versions of --no-changelog.
619 (func_usage): Update.
620 (sed_extract_cache_prog): Renamed from ...
621 (sed_extract_prog): ... this; revert to old extraction script.
622 (func_get_description, func_get_status)
623 (func_get_notice, func_get_applicability, func_get_filelist)
624 (func_get_dependencies, func_get_autoconf_early_snippet)
625 (func_get_autoconf_snippet, func_get_automake_snippet)
626 (func_get_include_directive, func_get_link_directive)
627 (func_get_license, func_get_maintainer): If $do_cache is false,
628 use old, non-caching extraction scripts.
629 Suggestion by Bruno Haible.
631 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
633 gnulib-tool: cache module metainformation.
634 * gnulib-tool (sed_extract_prog): Match newline before each
635 header, and rewrite header to a shell variable suffix.
636 (func_cache_var, func_cache_lookup_module): New functions,
637 to turn a module name into a cache variable prefix, and to
638 look up and cache module metainformation.
639 (func_get_description, func_get_status)
640 (func_get_notice, func_get_applicability, func_get_filelist)
641 (func_get_dependencies, func_get_autoconf_early_snippet)
642 (func_get_autoconf_snippet, func_get_automake_snippet)
643 (func_get_include_directive, func_get_link_directive)
644 (func_get_license, func_get_maintainer): Use
645 func_cache_lookup_module.
647 2010-02-07 Bruno Haible <bruno@clisp.org>
649 fnctl: Fix missing dependency.
650 * modules/fcntl (Depends-on): Add getdtablesize.
651 Reported by John W. Eaton <jwe@gnu.org>.
653 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
655 Argp: fix recognition of short alias options.
657 * lib/argp-parse.c (convert_options): Fix improper use of
658 `|' between character values.
659 * tests/test-argp.c (group1_option): New alias option
661 (group1_parser): Special handling for 'r'.
662 (test15): New test case.
663 (test_fun): Add test15.
664 * tests/test-argp-2.sh: Update expected --help and --usage
667 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
669 * tests/test-argp.c: Fix indentation.
671 2010-02-04 Eric Blake <ebb9@byu.net>
673 gettimeofday: expose type of second argument
674 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
675 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
676 * tests/test-gettimeofday.c: Use it to silence warning.
677 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
680 2010-02-03 Jim Meyering <meyering@redhat.com>
682 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
683 * lib/regcomp.c (TYPE_SIGNED): Define.
684 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
686 regcomp.c: avoid a new -Wshadow warning
687 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
689 2010-02-01 Jim Meyering <meyering@redhat.com>
691 removing useless parentheses in cpp #define directives
692 For motivation, see commit c0221df4, "define STREQ(a,b)
693 consistently, removing useless parentheses"
694 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
695 * lib/mountlist.c (MNT_IGNORE): Likewise.
696 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
698 2010-02-01 Eric Blake <ebb9@byu.net>
700 sys_time: use link-warning
701 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
702 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
703 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
704 * modules/sys_time (Depends-on): Add warn-on-use.
705 (Makefile.am): Always build replacement.
706 (configure.ac): Update substitutions.
707 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
708 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
709 bother with SYS_TIME_H.
710 * modules/gettimeofday (configure.ac): Declare indicator.
711 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
714 closein-tests: silence compiler warning
715 * tests/test-closein.c (main): Ignore fread result.
716 * modules/closein-tests (Depends-on): Add ignore-value.
718 tests: silence warning about system return
719 * tests/test-areadlink-with-size.c (main): Ignore system result.
720 * tests/test-areadlink.c (main): Likewise.
721 * tests/test-areadlinkat-with-size.c (main): Likewise.
722 * tests/test-areadlinkat.c (main): Likewise.
723 * tests/test-canonicalize-lgpl.c (main): Likewise.
724 * tests/test-canonicalize.c (main): Likewise.
725 * tests/test-chown.c (main): Likewise.
726 * tests/test-fchownat.c (main): Likewise.
727 * tests/test-fdutimensat.c (main): Likewise.
728 * tests/test-fstatat.c (main): Likewise.
729 * tests/test-futimens.c (main): Likewise.
730 * tests/test-lchown.c (main): Likewise.
731 * tests/test-link.c (main): Likewise.
732 * tests/test-linkat.c (main): Likewise.
733 * tests/test-lstat.c (main): Likewise.
734 * tests/test-mkdir.c (main): Likewise.
735 * tests/test-mkdirat.c (main): Likewise.
736 * tests/test-mkfifo.c (main): Likewise.
737 * tests/test-mkfifoat.c (main): Likewise.
738 * tests/test-mknod.c (main): Likewise.
739 * tests/test-readlink.c (main): Likewise.
740 * tests/test-remove.c (main): Likewise.
741 * tests/test-rename.c (main): Likewise.
742 * tests/test-renameat.c (main): Likewise.
743 * tests/test-rmdir.c (main): Likewise.
744 * tests/test-symlink.c (main): Likewise.
745 * tests/test-symlinkat.c (main): Likewise.
746 * tests/test-unlink.c (main): Likewise.
747 * tests/test-unlinkat.c (main): Likewise.
748 * tests/test-utimens.c (main): Likewise.
749 * tests/test-utimensat.c (main): Likewise.
750 * modules/areadlink-tests (Depends-on): Add ignore-value.
751 * modules/areadlink-with-size-tests (Depends-on): Likewise.
752 * modules/areadlinkat-tests (Depends-on): Likewise.
753 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
754 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
755 * modules/canonicalize-tests (Depends-on): Likewise.
756 * modules/chown-tests (Depends-on): Likewise.
757 * modules/fdutimensat-tests (Depends-on): Likewise.
758 * modules/futimens-tests (Depends-on): Likewise.
759 * modules/lchown-tests (Depends-on): Likewise.
760 * modules/link-tests (Depends-on): Likewise.
761 * modules/linkat-tests (Depends-on): Likewise.
762 * modules/lstat-tests (Depends-on): Likewise.
763 * modules/mkdir-tests (Depends-on): Likewise.
764 * modules/mkfifo-tests (Depends-on): Likewise.
765 * modules/mkfifoat-tests (Depends-on): Likewise.
766 * modules/mknod-tests (Depends-on): Likewise.
767 * modules/openat-tests (Depends-on): Likewise.
768 * modules/readlink-tests (Depends-on): Likewise.
769 * modules/remove-tests (Depends-on): Likewise.
770 * modules/rename-tests (Depends-on): Likewise.
771 * modules/renameat-tests (Depends-on): Likewise.
772 * modules/rmdir-tests (Depends-on): Likewise.
773 * modules/symlink-tests (Depends-on): Likewise.
774 * modules/symlinkat-tests (Depends-on): Likewise.
775 * modules/unlink-tests (Depends-on): Likewise.
776 * modules/utimens-tests (Depends-on): Likewise.
777 * modules/utimensat-tests (Depends-on): Likewise.
779 2010-01-31 Bruno Haible <bruno@clisp.org>
781 Perform the same test for many <math.h> functions.
782 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
783 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
784 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
786 * modules/acos (configure.ac): Likewise.
787 * modules/asin (configure.ac): Likewise.
788 * modules/atan (configure.ac): Likewise.
789 * modules/atan2 (configure.ac): Likewise.
790 * modules/cbrt (configure.ac): Likewise.
791 * modules/copysign (configure.ac): Likewise.
792 * modules/cos (configure.ac): Likewise.
793 * modules/cosh (configure.ac): Likewise.
794 * modules/erf (configure.ac): Likewise.
795 * modules/erfc (configure.ac): Likewise.
796 * modules/exp (configure.ac): Likewise.
797 * modules/fmod (configure.ac): Likewise.
798 * modules/hypot (configure.ac): Likewise.
799 * modules/j0 (configure.ac): Likewise.
800 * modules/j1 (configure.ac): Likewise.
801 * modules/jn (configure.ac): Likewise.
802 * modules/lgamma (configure.ac): Likewise.
803 * modules/log (configure.ac): Likewise.
804 * modules/log10 (configure.ac): Likewise.
805 * modules/log1p (configure.ac): Likewise.
806 * modules/pow (configure.ac): Likewise.
807 * modules/remainder (configure.ac): Likewise.
808 * modules/sin (configure.ac): Likewise.
809 * modules/sinh (configure.ac): Likewise.
810 * modules/tan (configure.ac): Likewise.
811 * modules/tanh (configure.ac): Likewise.
812 * modules/y0 (configure.ac): Likewise.
813 * modules/y1 (configure.ac): Likewise.
814 * modules/yn (configure.ac): Likewise.
815 Suggested by Paolo Bonzini.
817 2010-01-31 Bruno Haible <bruno@clisp.org>
819 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
821 2010-01-31 Bruno Haible <bruno@clisp.org>
823 Work around getdelim() bug on FreeBSD 8.0.
824 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
825 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
827 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
829 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
830 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
831 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
833 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
835 2010-01-31 Bruno Haible <bruno@clisp.org>
837 Work around getline() bug on FreeBSD 8.0.
838 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
840 * tests/test-getline.c (main): Likewise.
841 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
842 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
844 2010-01-28 Eric Blake <ebb9@byu.net>
846 regex: fix build failure
847 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
850 2010-01-28 Jim Meyering <meyering@redhat.com>
852 regex: do not ignore memory allocation failure
853 * lib/regex_internal.c (create_cd_newstate): Detect
854 re_node_set_init_copy failure. Extracted from glibc commit
855 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
857 regex: sync more white-space changes from libc
858 * lib/regex_internal.c: White-space only changes.
859 * lib/regexec.c: Likewise.
861 regex: add many uses of __attribute_warn_unused_result__
862 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
863 * lib/regexec.c: Likewise.
864 Extracted from a messy glibc commit.
866 regcomp.c: spelling and merge-artifact from glibc
867 * lib/regcomp.c: Merge remainder of glibc's
868 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
870 regcomp.c: sync white-space changes from glibc
871 * lib/regcomp.c: Merge to accommodate white space
872 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
874 regcomp.c: do not ignore internal return values
875 * lib/regcomp.c: Do not ignore internal return values.
876 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
877 but without its white-space changes and spelling fixes.
879 regex_internal.h: define __attribute_warn_unused_result__
880 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
882 maint: add a syntax-check rule to check for vulnerable Makefile.in
883 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
885 2010-01-27 Jim Meyering <meyering@redhat.com>
887 ncftpput-ftp: clean up spaces
888 * build-aux/ncftpput-ftp: Make Copyright line consistent.
889 Remove trailing blanks.
891 2010-01-27 Simon Josefsson <simon@josefsson.org>
893 * build-aux/git-version-gen: Fix copyright statement.
894 * build-aux/gnupload: Likewise.
895 * tests/test-arcfour.c: Likewise.
896 * tests/test-arctwo.c: Likewise.
897 * tests/test-count-one-bits.c: Likewise.
898 * tests/test-crc.c: Likewise.
899 * tests/test-des.c: Likewise.
900 * tests/test-gc-arcfour.c: Likewise.
901 * tests/test-gc-arctwo.c: Likewise.
902 * tests/test-gc-des.c: Likewise.
903 * tests/test-gc-hmac-md5.c: Likewise.
904 * tests/test-gc-hmac-sha1.c: Likewise.
905 * tests/test-gc-md2.c: Likewise.
906 * tests/test-gc-md4.c: Likewise.
907 * tests/test-gc-md5.c: Likewise.
908 * tests/test-gc-pbkdf2-sha1.c: Likewise.
909 * tests/test-gc-rijndael.c: Likewise.
910 * tests/test-gc-sha1.c: Likewise.
911 * tests/test-gc.c: Likewise.
912 * tests/test-gethostname.c: Likewise.
913 * tests/test-gettimeofday.c: Likewise.
914 * tests/test-hash.c: Likewise.
915 * tests/test-hmac-md5.c: Likewise.
916 * tests/test-hmac-sha1.c: Likewise.
917 * tests/test-md2.c: Likewise.
918 * tests/test-md4.c: Likewise.
919 * tests/test-md5.c: Likewise.
920 * tests/test-memchr.c: Likewise.
921 * tests/test-memchr2.c: Likewise.
922 * tests/test-memcmp.c: Likewise.
923 * tests/test-memmem.c: Likewise.
924 * tests/test-memrchr.c: Likewise.
925 * tests/test-rawmemchr.c: Likewise.
926 * tests/test-read-file.c: Likewise.
927 * tests/test-rijndael.c: Likewise.
928 * tests/test-sockets.c: Likewise.
929 * tests/test-strchrnul.c: Likewise.
930 * tests/test-strstr.c: Likewise.
931 * tests/test-strtod.c: Likewise.
932 * build-aux/ncftpput-ftp: Likewise.
934 2010-01-26 Eric Blake <ebb9@byu.net>
936 ignore-value: update recommended header name
937 * modules/ignore-value (Include): Only use <> for headers that
940 2010-01-26 Jim Meyering <meyering@redhat.com>
942 test-userspec.c: avoid compiler warnings
943 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
944 and "initialization discards qualifiers..." warnings.
945 Put the first "uid" in its own scope, and make char* members "const".
947 2010-01-25 Bruno Haible <bruno@clisp.org>
949 gnulib-tool: Make warning diagnostics consistent.
950 * gnulib-tool (func_warning): New function.
951 Use it everywhere where gnulib-tool produces output to stderr and it is
954 2010-01-25 Bruno Haible <bruno@clisp.org>
956 Fix test dependencies.
957 * modules/xstrtol-tests (Depends-on): Add inttypes.
958 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
960 2010-01-25 Pádraig Brady <P@draigBrady.com>
962 syntax-check: detect incorrect boolean macro values in config.h
963 * modules/maintainer-makefile (configure.ac): Parameterize the location
964 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
965 The logic is from Eric Blake and the location indicated by Jim Meyering.
966 Note the more natural CONFIG_HEADER name is prohibited by automake
967 for backwards compatibility reasons.
968 * top/maint.mk (sc_Wundef_boolean): New rule.
970 2010-01-25 Jim Meyering <meyering@redhat.com>
972 bootstrap: detect MacOS 10.6's shasum, too
973 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
974 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
976 2010-01-23 Jim Meyering <meyering@redhat.com>
979 * modules/xstrtoll: New file.
980 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
981 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
982 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
983 ./configure fails if you use this module and lack "long long".
984 * modules/xstrtoll-tests: New module.
985 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
986 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
987 new init.sh-based test framework.
989 2010-01-24 Bruno Haible <bruno@clisp.org>
991 Tests for module 'yn'.
992 * modules/yn-tests: New file.
993 * tests/test-yn.c: New file.
995 Tests for module 'y1'.
996 * modules/y1-tests: New file.
997 * tests/test-y1.c: New file.
999 Tests for module 'y0'.
1000 * modules/y0-tests: New file.
1001 * tests/test-y0.c: New file.
1003 Tests for module 'tanh'.
1004 * modules/tanh-tests: New file.
1005 * tests/test-tanh.c: New file.
1007 Tests for module 'tan'.
1008 * modules/tan-tests: New file.
1009 * tests/test-tan.c: New file.
1011 Tests for module 'sqrt'.
1012 * modules/sqrt-tests: New file.
1013 * tests/test-sqrt.c: New file.
1015 Tests for module 'sinh'.
1016 * modules/sinh-tests: New file.
1017 * tests/test-sinh.c: New file.
1019 Tests for module 'sin'.
1020 * modules/sin-tests: New file.
1021 * tests/test-sin.c: New file.
1023 Tests for module 'rint'.
1024 * modules/rint-tests: New file.
1025 * tests/test-rint.c: New file.
1027 Tests for module 'remainder'.
1028 * modules/remainder-tests: New file.
1029 * tests/test-remainder.c: New file.
1031 Tests for module 'pow'.
1032 * modules/pow-tests: New file.
1033 * tests/test-pow.c: New file.
1035 Tests for module 'nextafter'.
1036 * modules/nextafter-tests: New file.
1037 * tests/test-nextafter.c: New file.
1039 Tests for module 'modf'.
1040 * modules/modf-tests: New file.
1041 * tests/test-modf.c: New file.
1043 Tests for module 'logb'.
1044 * modules/logb-tests: New file.
1045 * tests/test-logb.c: New file.
1047 Tests for module 'log1p'.
1048 * modules/log1p-tests: New file.
1049 * tests/test-log1p.c: New file.
1051 Tests for module 'log10'.
1052 * modules/log10-tests: New file.
1053 * tests/test-log10.c: New file.
1055 Tests for module 'log'.
1056 * modules/log-tests: New file.
1057 * tests/test-log.c: New file.
1059 Tests for module 'lgamma'.
1060 * modules/lgamma-tests: New file.
1061 * tests/test-lgamma.c: New file.
1063 Tests for module 'ldexp'.
1064 * modules/ldexp-tests: New file.
1065 * tests/test-ldexp.c: New file.
1067 Tests for module 'jn'.
1068 * modules/jn-tests: New file.
1069 * tests/test-jn.c: New file.
1071 Tests for module 'j1'.
1072 * modules/j1-tests: New file.
1073 * tests/test-j1.c: New file.
1075 Tests for module 'j0'.
1076 * modules/j0-tests: New file.
1077 * tests/test-j0.c: New file.
1079 Tests for module 'hypot'.
1080 * modules/hypot-tests: New file.
1081 * tests/test-hypot.c: New file.
1083 Tests for module 'fmod'.
1084 * modules/fmod-tests: New file.
1085 * tests/test-fmod.c: New file.
1087 Tests for module 'fabs'.
1088 * modules/fabs-tests: New file.
1089 * tests/test-fabs.c: New file.
1091 Tests for module 'exp'.
1092 * modules/exp-tests: New file.
1093 * tests/test-exp.c: New file.
1095 Tests for module 'erfc'.
1096 * modules/erfc-tests: New file.
1097 * tests/test-erfc.c: New file.
1099 Tests for module 'erf'.
1100 * modules/erf-tests: New file.
1101 * tests/test-erf.c: New file.
1103 Tests for module 'cosh'.
1104 * modules/cosh-tests: New file.
1105 * tests/test-cosh.c: New file.
1107 Tests for module 'cos'.
1108 * modules/cos-tests: New file.
1109 * tests/test-cos.c: New file.
1111 Tests for module 'copysign'.
1112 * modules/copysign-tests: New file.
1113 * tests/test-copysign.c: New file.
1115 Tests for module 'cbrt'.
1116 * modules/cbrt-tests: New file.
1117 * tests/test-cbrt.c: New file.
1119 Tests for module 'atan2'.
1120 * modules/atan2-tests: New file.
1121 * tests/test-atan2.c: New file.
1123 Tests for module 'atan'.
1124 * modules/atan-tests: New file.
1125 * tests/test-atan.c: New file.
1127 Tests for module 'asin'.
1128 * modules/asin-tests: New file.
1129 * tests/test-asin.c: New file.
1131 Tests for module 'acos'.
1132 * modules/acos-tests: New file.
1133 * tests/test-acos.c: New file.
1135 2010-01-24 Bruno Haible <bruno@clisp.org>
1137 Fix tests for common <math.h> functions.
1138 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1139 code snippet that references the function pointer, rather than merely
1140 calling the function. Substitute the FUNC_LIBM variable.
1141 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1142 * modules/acos (configure.ac): Likewise.
1143 * modules/asin (configure.ac): Likewise.
1144 * modules/atan (configure.ac): Likewise.
1145 * modules/atan2 (configure.ac): Likewise.
1146 * modules/cbrt (configure.ac): Likewise.
1147 * modules/copysign (configure.ac): Likewise.
1148 * modules/cos (configure.ac): Likewise.
1149 * modules/cosh (configure.ac): Likewise.
1150 * modules/erf (configure.ac): Likewise.
1151 * modules/erfc (configure.ac): Likewise.
1152 * modules/exp (configure.ac): Likewise.
1153 * modules/fabs (configure.ac): Likewise.
1154 * modules/fmod (configure.ac): Likewise.
1155 * modules/hypot (configure.ac): Likewise.
1156 * modules/j0 (configure.ac): Likewise.
1157 * modules/j1 (configure.ac): Likewise.
1158 * modules/jn (configure.ac): Likewise.
1159 * modules/ldexp (configure.ac): Likewise.
1160 * modules/lgamma (configure.ac): Likewise.
1161 * modules/log (configure.ac): Likewise.
1162 * modules/log10 (configure.ac): Likewise.
1163 * modules/log1p (configure.ac): Likewise.
1164 * modules/logb (configure.ac): Likewise.
1165 * modules/modf (configure.ac): Likewise.
1166 * modules/nextafter (configure.ac): Likewise.
1167 * modules/pow (configure.ac): Likewise.
1168 * modules/remainder (configure.ac): Likewise.
1169 * modules/rint (configure.ac): Likewise.
1170 * modules/sin (configure.ac): Likewise.
1171 * modules/sinh (configure.ac): Likewise.
1172 * modules/tan (configure.ac): Likewise.
1173 * modules/tanh (configure.ac): Likewise.
1174 * modules/y0 (configure.ac): Likewise.
1175 * modules/y1 (configure.ac): Likewise.
1176 * modules/yn (configure.ac): Likewise.
1178 2010-01-24 Bruno Haible <bruno@clisp.org>
1180 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1181 * tests/test-acosl.c (x): New variable.
1182 (main): Store argument in x and fetch it from x.
1183 * tests/test-asinl.c (x): New variable.
1184 (main): Store argument in x and fetch it from x.
1185 * tests/test-atanl.c (x): New variable.
1186 (main): Store argument in x and fetch it from x.
1187 * tests/test-cosl.c (x): New variable.
1188 (main): Store argument in x and fetch it from x.
1189 * tests/test-expl.c (x): New variable.
1190 (main): Store argument in x and fetch it from x.
1191 * tests/test-logl.c (x): New variable.
1192 (main): Store argument in x and fetch it from x.
1193 * tests/test-sinl.c (x): New variable.
1194 (main): Store argument in x and fetch it from x.
1195 * tests/test-sqrtl.c (x): New variable.
1196 (main): Store argument in x and fetch it from x.
1197 * tests/test-tanl.c (x): New variable.
1198 (main): Store argument in x and fetch it from x.
1200 2010-01-24 Bruno Haible <bruno@clisp.org>
1202 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1203 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1204 assignments to the initial TESTS_ENVIRONMENT.
1205 * doc/gnulib.texi (Unit test modules): Document it.
1206 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1208 * modules/btowc-tests (Makefile.am): Likewise.
1209 * modules/c-stack-tests (Makefile.am): Likewise.
1210 * modules/c-strcase-tests (Makefile.am): Likewise.
1211 * modules/copy-file-tests (Makefile.am): Likewise.
1212 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1213 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1214 * modules/mbrtowc-tests (Makefile.am): Likewise.
1215 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1216 * modules/mbscasestr-tests (Makefile.am): Likewise.
1217 * modules/mbschr-tests (Makefile.am): Likewise.
1218 * modules/mbscspn-tests (Makefile.am): Likewise.
1219 * modules/mbsinit-tests (Makefile.am): Likewise.
1220 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1221 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1222 * modules/mbspbrk-tests (Makefile.am): Likewise.
1223 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1224 * modules/mbsrchr-tests (Makefile.am): Likewise.
1225 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1226 * modules/mbsspn-tests (Makefile.am): Likewise.
1227 * modules/mbsstr-tests (Makefile.am): Likewise.
1228 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1229 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1230 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1231 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1232 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1233 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1234 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1235 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1236 * modules/wcrtomb-tests (Makefile.am): Likewise.
1237 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1238 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1239 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1240 assignments from TESTS_ENVIRONMENT.
1241 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1243 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1244 * modules/atexit-tests (Makefile.am): Likewise.
1245 * modules/binary-io-tests (Makefile.am): Likewise.
1246 * modules/closein-tests (Makefile.am): Likewise.
1247 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1248 * modules/exclude-tests (Makefile.am): Likewise.
1249 * modules/fflush-tests (Makefile.am): Likewise.
1250 * modules/fpending-tests (Makefile.am): Likewise.
1251 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1252 * modules/freadahead-tests (Makefile.am): Likewise.
1253 * modules/freadptr-tests (Makefile.am): Likewise.
1254 * modules/freadseek-tests (Makefile.am): Likewise.
1255 * modules/fseek-tests (Makefile.am): Likewise.
1256 * modules/fseeko-tests (Makefile.am): Likewise.
1257 * modules/ftell-tests (Makefile.am): Likewise.
1258 * modules/ftello-tests (Makefile.am): Likewise.
1259 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1260 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1261 * modules/lseek-tests (Makefile.am): Likewise.
1262 * modules/parse-duration-tests (Makefile.am): Likewise.
1263 * modules/perror-tests (Makefile.am): Likewise.
1264 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1265 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1266 * modules/pipe-tests (Makefile.am): Likewise.
1267 * modules/pread-tests (Makefile.am): Likewise.
1268 * modules/printf-posix-tests (Makefile.am): Likewise.
1269 * modules/select-tests (Makefile.am): Likewise.
1270 * modules/sigpipe-tests (Makefile.am): Likewise.
1271 * modules/tsearch-tests (Makefile.am): Likewise.
1272 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1273 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1274 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1275 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1276 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1277 * modules/version-etc-tests (Makefile.am): Likewise.
1278 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1279 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1280 * modules/xalloc-die-tests (Makefile.am): Likewise.
1281 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1282 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1283 * modules/xstrtol-tests (Makefile.am): Likewise.
1284 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1285 * modules/yesno-tests (Makefile.am): Likewise.
1286 Suggested by Jim Meyering.
1288 2010-01-24 Bruno Haible <bruno@clisp.org>
1291 * doc/gnulib.texi (Writing modules): New chapter.
1292 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1295 2010-01-24 Jim Meyering <meyering@redhat.com>
1297 maint.mk: do not prepend "./" after filtering
1298 * top/maint.mk (_prepend_srcdir_prefix): New variable
1299 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1300 "./" when $(srcdir) is ".".
1302 define STREQ(a,b) consistently, removing useless parentheses
1303 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1304 since the only risk is that "a" or "b" contains an unparenthesized
1305 comma, but if either did that, STREQ would have 3 or more arguments.
1306 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1307 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1308 * lib/hash-triple.c (STREQ): Likewise.
1309 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1310 * lib/getugroups.c (STREQ): Likewise.
1312 2010-01-23 Jim Meyering <meyering@redhat.com>
1314 maint.mk: fix syntax-check in a non-srcdir build directory
1315 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1316 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1318 2010-01-22 Jim Meyering <meyering@redhat.com>
1320 userspec: add unit tests
1321 * tests/test-userspec.c: New file.
1322 * modules/userspec-tests: Likewise.
1324 2010-01-21 Jim Meyering <meyering@redhat.com>
1326 maint.mk: handle source file names containing "." robustly
1327 * top/maint.mk (_dot_escaped_srcdir): Define.
1328 (VC_LIST): Use it in LHS of sed substitution.
1330 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1332 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1333 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1334 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1335 from a non-srcdir build.
1337 2010-01-20 Eric Blake <ebb9@byu.net>
1339 warn-on-use: use instead of link-warning
1340 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1341 * modules/unistd (Depends-on, Makefile.am): Likewise.
1342 * modules/arpa_inet (Depends-on): Replace link-warning with
1344 (Makefile.am): Update rules accordingly.
1345 * modules/ctype (Depends-on, Makefile.am): Likewise.
1346 * modules/dirent (Depends-on, Makefile.am): Likewise.
1347 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1348 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1349 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1350 * modules/locale (Depends-on, Makefile.am): Likewise.
1351 * modules/math (Depends-on, Makefile.am): Likewise.
1352 * modules/search (Depends-on, Makefile.am): Likewise.
1353 * modules/signal (Depends-on, Makefile.am): Likewise.
1354 * modules/spawn (Depends-on, Makefile.am): Likewise.
1355 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1356 * modules/string (Depends-on, Makefile.am): Likewise.
1357 * modules/strings (Depends-on, Makefile.am): Likewise.
1358 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1359 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1360 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1361 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1362 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1363 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1364 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1365 * modules/wchar (Depends-on, Makefile.am): Likewise.
1366 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1368 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1369 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1370 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1371 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1372 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1373 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1374 * m4/math_h.m4 (gl_MATH_H): Likewise.
1375 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1376 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1377 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1378 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1379 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1380 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1381 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1382 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1383 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1384 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1385 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1386 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1387 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1388 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1389 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1390 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1391 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1393 * lib/ctype.in.h: Likewise.
1394 * lib/dirent.in.h: Likewise.
1395 * lib/fcntl.in.h: Likewise.
1396 * lib/inttypes.in.h: Likewise.
1397 * lib/langinfo.in.h: Likewise.
1398 * lib/locale.in.h: Likewise.
1399 * lib/math.in.h: Likewise.
1400 * lib/search.in.h: Likewise.
1401 * lib/signal.in.h: Likewise.
1402 * lib/spawn.in.h: Likewise.
1403 * lib/stdio.in.h: Likewise.
1404 * lib/stdlib.in.h: Likewise.
1405 * lib/string.in.h: Likewise.
1406 * lib/strings.in.h: Likewise.
1407 * lib/sys_file.in.h: Likewise.
1408 * lib/sys_ioctl.in.h: Likewise.
1409 * lib/sys_select.in.h: Likewise.
1410 * lib/sys_socket.in.h: Likewise.
1411 * lib/sys_stat.in.h: Likewise.
1412 * lib/sys_times.in.h: Likewise.
1413 * lib/sys_utsname.in.h: Likewise.
1414 * lib/unistd.in.h: Likewise.
1415 * lib/wchar.in.h: Likewise.
1417 2010-01-20 Bruno Haible <bruno@clisp.org>
1419 Avoid duplicate -lm.
1420 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1421 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1422 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1423 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1424 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1425 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1426 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1427 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1428 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1429 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1430 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1431 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1432 Reported by Paolo Bonzini.
1434 2010-01-19 Bruno Haible <bruno@clisp.org>
1436 langinfo, nl_langinfo: Relicense under LGPLv2+.
1437 * modules/langinfo (License): Change to LGPLv2+.
1438 * modules/nl_langinfo (License): Likewise.
1439 Patch by David Lutterkort <lutter@redhat.com>.
1441 2010-01-19 Bruno Haible <bruno@clisp.org>
1443 Avoid compilation error with cc on OSF/1 5.1.
1444 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1445 statement, not before.
1446 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1448 2010-01-18 Bruno Haible <bruno@clisp.org>
1450 Avoid a link error due to the __printf__ symbol.
1451 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1453 (__format__, __printf__): Remove definitions.
1454 * lib/argp-fmtstream.h: Likewise.
1455 * lib/argp.h: Likewise.
1456 * lib/error.h: Likewise.
1457 * lib/vasnprintf.h: Likewise.
1458 * lib/xprintf.h: Likewise.
1459 * lib/xvasprintf.h: Likewise.
1460 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1462 2010-01-18 Bruno Haible <bruno@clisp.org>
1464 Tests for module 'tanl'.
1465 * modules/tanl-tests: New file.
1466 * tests/test-tanl.c: New file.
1468 Tests for module 'sqrtl'.
1469 * modules/sqrtl-tests: New file.
1470 * tests/test-sqrtl.c: New file.
1472 Tests for module 'sinl'.
1473 * modules/sinl-tests: New file.
1474 * tests/test-sinl.c: New file.
1476 Tests for module 'logl'.
1477 * modules/logl-tests: New file.
1478 * tests/test-logl.c: New file.
1480 Tests for module 'expl'.
1481 * modules/expl-tests: New file.
1482 * tests/test-expl.c: New file.
1484 Tests for module 'cosl'.
1485 * modules/cosl-tests: New file.
1486 * tests/test-cosl.c: New file.
1488 Tests for module 'atanl'.
1489 * modules/atanl-tests: New file.
1490 * tests/test-atanl.c: New file.
1492 Tests for module 'asinl'.
1493 * modules/asinl-tests: New file.
1494 * tests/test-asinl.c: New file.
1496 Tests for module 'acosl'.
1497 * modules/acosl-tests: New file.
1498 * tests/test-acosl.c: New file.
1500 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1501 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1502 tanl): Use the standard gnulib idiom.
1503 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1504 * lib/sinl.c: Likewise.
1505 * lib/tanl.c: Don't include trigl.c.
1506 (kernel_tanl): Make static.
1507 * lib/sincosl.c: Include trigl.h first.
1508 * lib/trigl.c: Likewise.
1509 * m4/acosl.m4: New file.
1510 * m4/asinl.m4: New file.
1511 * m4/atanl.m4: New file.
1512 * m4/cosl.m4: New file.
1513 * m4/expl.m4: New file.
1514 * m4/logl.m4: New file.
1515 * m4/sinl.m4: New file.
1516 * m4/sqrtl.m4: New file.
1517 * m4/tanl.m4: New file.
1518 * m4/mathl.m4: Remove file.
1519 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1520 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1521 Don't initialize GNULIB_MATHL.
1522 * modules/acosl: New file.
1523 * modules/asinl: New file.
1524 * modules/atanl: New file.
1525 * modules/cosl: New file.
1526 * modules/expl: New file.
1527 * modules/logl: New file.
1528 * modules/sinl: New file.
1529 * modules/sqrtl: New file.
1530 * modules/tanl: New file.
1531 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1532 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1533 substitute GNULIB_MATHL.
1534 * modules/mathl: Rewritten.
1535 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1536 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1537 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1538 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1539 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1540 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1541 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1542 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1543 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1545 2010-01-18 Bruno Haible <bruno@clisp.org>
1547 sqrt: Make gl_FUNC_SQRT requirable.
1548 * m4/sqrt.m4: New file.
1549 * modules/sqrt (Files): Add it.
1550 (configure.ac): Invoke gl_FUNC_SQRT.
1552 2010-01-18 Bruno Haible <bruno@clisp.org>
1554 New modules for common <math.h> functions.
1555 * m4/mathfunc.m4: New file.
1556 * modules/acos: New file.
1557 * modules/asin: New file.
1558 * modules/atan: New file.
1559 * modules/atan2: New file.
1560 * modules/cbrt: New file.
1561 * modules/copysign: New file.
1562 * modules/cos: New file.
1563 * modules/cosh: New file.
1564 * modules/erf: New file.
1565 * modules/erfc: New file.
1566 * modules/exp: New file.
1567 * modules/fabs: New file.
1568 * modules/fmod: New file.
1569 * modules/hypot: New file.
1570 * modules/j0: New file.
1571 * modules/j1: New file.
1572 * modules/jn: New file.
1573 * modules/ldexp: New file.
1574 * modules/lgamma: New file.
1575 * modules/log: New file.
1576 * modules/log10: New file.
1577 * modules/log1p: New file.
1578 * modules/logb: New file.
1579 * modules/modf: New file.
1580 * modules/nextafter: New file.
1581 * modules/pow: New file.
1582 * modules/remainder: New file.
1583 * modules/rint: New file.
1584 * modules/sin: New file.
1585 * modules/sinh: New file.
1586 * modules/sqrt: New file.
1587 * modules/tan: New file.
1588 * modules/tanh: New file.
1589 * modules/y0: New file.
1590 * modules/y1: New file.
1591 * modules/yn: New file.
1592 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1593 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1594 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1595 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1596 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1597 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1598 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1599 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1600 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1601 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1602 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1603 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1604 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1605 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1606 * doc/posix-functions/j0.texi: Mention the 'j0' module.
1607 * doc/posix-functions/j1.texi: Mention the 'j1' module.
1608 * doc/posix-functions/jn.texi: Mention the 'jn' module.
1609 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1610 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1611 * doc/posix-functions/log.texi: Mention the 'log' module.
1612 * doc/posix-functions/log10.texi: Mention the 'log10' module.
1613 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1614 * doc/posix-functions/logb.texi: Mention the 'logb' module.
1615 * doc/posix-functions/modf.texi: Mention the 'modf' module.
1616 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1617 * doc/posix-functions/pow.texi: Mention the 'pow' module.
1618 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1619 * doc/posix-functions/rint.texi: Mention the 'rint' module.
1620 * doc/posix-functions/sin.texi: Mention the 'sin' module.
1621 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1622 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1623 * doc/posix-functions/tan.texi: Mention the 'tan' module.
1624 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1625 * doc/posix-functions/y0.texi: Mention the 'y0' module.
1626 * doc/posix-functions/y1.texi: Mention the 'y1' module.
1627 * doc/posix-functions/yn.texi: Mention the 'yn' module.
1629 2010-01-18 Jim Meyering <meyering@redhat.com>
1631 ignore-value: relax license to LGPLv2+
1632 * modules/ignore-value (License): Relax to LGPLv2+.
1634 getdate: don't leak when TZ contains two or more '"'s
1635 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1636 double quote in TZ after the first one.
1638 readtokens: do not leak internal token_lengths buffer
1639 * lib/readtokens.c (readtokens): Free the local, lengths,
1640 when the supplied "token_lengths" parameter is NULL.
1642 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1644 Fix a couple of missing LIBTHREAD link failures on AIX.
1645 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1647 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1649 Link test-poll against INET_PTON_LIB.
1650 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1651 for inet_pton on Solaris 10.
1653 2010-01-17 Bruno Haible <bruno@clisp.org>
1655 unistdio/*-sprintf: Fix typo in module description.
1656 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1657 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1658 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1659 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1660 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1661 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1662 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1663 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1665 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1667 gnulib-tool: fix filelist for AIX, HP-UX ksh.
1668 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1669 variables in shell case patterns, for AIX and HP-UX ksh.
1671 Split large sed scripts, for HP-UX sed.
1672 * modules/stdio: Split sed scripts around 50 sed commands,
1673 to avoid HP-UX limit of 99 commands, in the near future.
1674 * modules/string: Likewise.
1675 * modules/unistd: Likewise.
1677 gnulib-tool: avoid writing in the current directory.
1678 * gnulib-tool (func_emit_lib_Makefile_am)
1679 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1680 not in the current directory, so concurrent gnulib-tool
1681 instances do not interfere.
1683 2010-01-16 Jim Meyering <meyering@redhat.com>
1685 doc: update users.txt
1686 * users.txt: Add grep.
1687 (diffutils, gzip): Update URLs.
1689 2010-01-12 Bruno Haible <bruno@clisp.org>
1691 posix_spawn: Avoid test failure on Cygwin.
1692 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1694 Reported by Simon Josefsson.
1696 2010-01-12 Bruno Haible <bruno@clisp.org>
1698 * tests/test-cond.c (main): When skipping the test, show the reason.
1700 2010-01-12 Simon Josefsson <simon@josefsson.org>
1702 * lib/striconv.c (str_cd_iconv): Avoid if before free.
1704 2010-01-12 Simon Josefsson <simon@josefsson.org>
1706 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1707 VC_LIST_ALWAYS_EXCLUDE_REGEX.
1709 2010-01-12 Eric Blake <ebb9@byu.net>
1711 build: guarantee AS_VAR_IF
1712 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1713 (gl_AS_VAR_IF): Move...
1714 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1715 Reported by Simon Josefsson.
1717 2010-01-12 Simon Josefsson <simon@josefsson.org>
1719 * lib/stdio.in.h: Fix typo.
1721 2010-01-12 Simon Josefsson <simon@josefsson.org>
1723 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1726 2010-01-12 Simon Josefsson <simon@josefsson.org>
1728 * tests/test-xalloc-die.sh: Use $EXEEXT.
1730 2010-01-12 Simon Josefsson <simon@josefsson.org>
1731 Bruno Haible <bruno@clisp.org>
1733 getlogin, getlogin_r: Avoid test failure.
1734 * tests/test-getlogin.c: Include <stdio.h>.
1735 (main): Skip the test when the function fails because stdin is not a
1737 * tests/test-getlogin_r.c: Include <stdio.h>.
1738 (main): Skip the test when the function fails because stdin is not a
1741 2010-01-11 Eric Blake <ebb9@byu.net>
1743 tests: avoid more large file warnings
1744 * tests/test-fflush.c: Avoid warning about ftell use.
1745 * tests/test-fseek.c: Avoid warning about fseek use.
1747 2010-01-10 Bruno Haible <bruno@clisp.org>
1749 nproc: Work better on Linux when /proc and /sys are not mounted.
1750 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1751 as lower bound when, on glibc/Linux systems,
1752 sysconf (_SC_NPROCESSORS_CONF) returns 1.
1753 Suggested by Pádraig Brady <P@draigbrady.com>.
1754 Reported by Dmitry V. Levin <ldv@altlinux.org>.
1757 * lib/nproc.c (num_processors_via_affinity_mask): New function,
1758 extracted from num_processors.
1759 (num_processors): Call it.
1761 2010-01-11 Jim Meyering <meyering@redhat.com>
1763 utimecmp: avoid new warning from upcoming gcc-4.5.0
1764 * lib/utimecmp.c (BILLION): Define using #define rather than an
1765 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1767 2010-01-11 Eric Blake <ebb9@byu.net>
1769 math: add portability warnings for classification macros
1770 * modules/math (Depends-on): Add warn-on-use.
1771 (Makefile.am): Provide new substitutions.
1772 * m4/math_h.m4 (gl_MATH_H): Require inline.
1773 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1774 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1775 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1778 unistd: warn on use of environ without module
1779 * modules/unistd (Depends-on): Add warn-on-use.
1780 (Makefile.am): Provide new substitutions.
1781 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1782 * lib/unistd.in.h (environ): Wrap with a warning helper function.
1784 stdio: warn on suspicious uses
1785 * modules/stdio (Depends-on): Add warn-on-use.
1786 (Makefile.am): Provide new substitutions.
1787 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1789 * lib/stdio.in.h (gets): Always warn on use.
1790 (fseek, ftell): Adjust when warnings are issued, and honor
1791 _GL_NO_LARGE_FILES as a way to silence the warning.
1792 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1793 any warning about large file offsets.
1794 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1795 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1796 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1797 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1798 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1799 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1800 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1801 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1803 warn-on-use: new module
1804 * modules/warn-on-use: New file.
1805 * build-aux/warn-on-use.h: Likewise.
1806 * m4/warn-on-use.m4: Likewise.
1807 * MODULES.html.sh (Support for building): Mention it.
1809 2010-01-10 Bruno Haible <bruno@clisp.org>
1811 Tests for module 'unistr/u32-strdup'.
1812 * modules/unistr/u32-strdup-tests: New file.
1813 * tests/unistr/test-u32-strdup.c: New file.
1815 Tests for module 'unistr/u16-strdup'.
1816 * modules/unistr/u16-strdup-tests: New file.
1817 * tests/unistr/test-u16-strdup.c: New file.
1819 Tests for module 'unistr/u8-strdup'.
1820 * modules/unistr/u8-strdup-tests: New file.
1821 * tests/unistr/test-u8-strdup.c: New file.
1822 * tests/unistr/test-strdup.h: New file.
1824 Tests for module 'unistr/u32-strncmp'.
1825 * modules/unistr/u32-strncmp-tests: New file.
1826 * tests/unistr/test-u32-strncmp.c: New file.
1828 Tests for module 'unistr/u16-strncmp'.
1829 * modules/unistr/u16-strncmp-tests: New file.
1830 * tests/unistr/test-u16-strncmp.c: New file.
1832 Tests for module 'unistr/u8-strncmp'.
1833 * modules/unistr/u8-strncmp-tests: New file.
1834 * tests/unistr/test-u8-strncmp.c: New file.
1835 * tests/unistr/test-strncmp.h: New file.
1837 Tests for module 'unistr/u32-strcoll'.
1838 * modules/unistr/u32-strcoll-tests: New file.
1839 * tests/unistr/test-u32-strcoll.c: New file.
1841 Tests for module 'unistr/u16-strcoll'.
1842 * modules/unistr/u16-strcoll-tests: New file.
1843 * tests/unistr/test-u16-strcoll.c: New file.
1845 Tests for module 'unistr/u8-strcoll'.
1846 * modules/unistr/u8-strcoll-tests: New file.
1847 * tests/unistr/test-u8-strcoll.c: New file.
1849 Tests for module 'unistr/u32-strcmp'.
1850 * modules/unistr/u32-strcmp-tests: New file.
1851 * tests/unistr/test-u32-strcmp.c: New file.
1852 * tests/unistr/test-u32-strcmp.h: New file.
1854 Tests for module 'unistr/u16-strcmp'.
1855 * modules/unistr/u16-strcmp-tests: New file.
1856 * tests/unistr/test-u16-strcmp.c: New file.
1857 * tests/unistr/test-u16-strcmp.h: New file.
1859 Tests for module 'unistr/u8-strcmp'.
1860 * modules/unistr/u8-strcmp-tests: New file.
1861 * tests/unistr/test-u8-strcmp.c: New file.
1862 * tests/unistr/test-u8-strcmp.h: New file.
1863 * tests/unistr/test-strcmp.h: New file.
1865 Tests for module 'unistr/u32-strncat'.
1866 * modules/unistr/u32-strncat-tests: New file.
1867 * tests/unistr/test-u32-strncat.c: New file.
1869 Tests for module 'unistr/u16-strncat'.
1870 * modules/unistr/u16-strncat-tests: New file.
1871 * tests/unistr/test-u16-strncat.c: New file.
1873 Tests for module 'unistr/u8-strncat'.
1874 * modules/unistr/u8-strncat-tests: New file.
1875 * tests/unistr/test-u8-strncat.c: New file.
1876 * tests/unistr/test-strncat.h: New file.
1878 Tests for module 'unistr/u32-strcat'.
1879 * modules/unistr/u32-strcat-tests: New file.
1880 * tests/unistr/test-u32-strcat.c: New file.
1882 Tests for module 'unistr/u16-strcat'.
1883 * modules/unistr/u16-strcat-tests: New file.
1884 * tests/unistr/test-u16-strcat.c: New file.
1886 Tests for module 'unistr/u8-strcat'.
1887 * modules/unistr/u8-strcat-tests: New file.
1888 * tests/unistr/test-u8-strcat.c: New file.
1889 * tests/unistr/test-strcat.h: New file.
1891 Tests for module 'unistr/u32-stpncpy'.
1892 * modules/unistr/u32-stpncpy-tests: New file.
1893 * tests/unistr/test-u32-stpncpy.c: New file.
1895 Tests for module 'unistr/u16-stpncpy'.
1896 * modules/unistr/u16-stpncpy-tests: New file.
1897 * tests/unistr/test-u16-stpncpy.c: New file.
1899 Tests for module 'unistr/u8-stpncpy'.
1900 * modules/unistr/u8-stpncpy-tests: New file.
1901 * tests/unistr/test-u8-stpncpy.c: New file.
1902 * tests/unistr/test-stpncpy.h: New file.
1904 Tests for module 'unistr/u32-strncpy'.
1905 * modules/unistr/u32-strncpy-tests: New file.
1906 * tests/unistr/test-u32-strncpy.c: New file.
1908 Tests for module 'unistr/u16-strncpy'.
1909 * modules/unistr/u16-strncpy-tests: New file.
1910 * tests/unistr/test-u16-strncpy.c: New file.
1912 Tests for module 'unistr/u8-strncpy'.
1913 * modules/unistr/u8-strncpy-tests: New file.
1914 * tests/unistr/test-u8-strncpy.c: New file.
1915 * tests/unistr/test-strncpy.h: New file.
1917 Tests for module 'unistr/u32-stpcpy'.
1918 * modules/unistr/u32-stpcpy-tests: New file.
1919 * tests/unistr/test-u32-stpcpy.c: New file.
1921 Tests for module 'unistr/u16-stpcpy'.
1922 * modules/unistr/u16-stpcpy-tests: New file.
1923 * tests/unistr/test-u16-stpcpy.c: New file.
1925 Tests for module 'unistr/u8-stpcpy'.
1926 * modules/unistr/u8-stpcpy-tests: New file.
1927 * tests/unistr/test-u8-stpcpy.c: New file.
1928 * tests/unistr/test-stpcpy.h: New file.
1930 Tests for module 'unistr/u32-strcpy'.
1931 * modules/unistr/u32-strcpy-tests: New file.
1932 * tests/unistr/test-u32-strcpy.c: New file.
1934 Tests for module 'unistr/u16-strcpy'.
1935 * modules/unistr/u16-strcpy-tests: New file.
1936 * tests/unistr/test-u16-strcpy.c: New file.
1938 Tests for module 'unistr/u8-strcpy'.
1939 * modules/unistr/u8-strcpy-tests: New file.
1940 * tests/unistr/test-u8-strcpy.c: New file.
1941 * tests/unistr/test-strcpy.h: New file.
1943 Tests for module 'unistr/u32-strnlen'.
1944 * modules/unistr/u32-strnlen-tests: New file.
1945 * tests/unistr/test-u32-strnlen.c: New file.
1947 Tests for module 'unistr/u16-strnlen'.
1948 * modules/unistr/u16-strnlen-tests: New file.
1949 * tests/unistr/test-u16-strnlen.c: New file.
1951 Tests for module 'unistr/u8-strnlen'.
1952 * modules/unistr/u8-strnlen-tests: New file.
1953 * tests/unistr/test-u8-strnlen.c: New file.
1954 * tests/unistr/test-strnlen.h: New file.
1956 Tests for module 'unistr/u32-strlen'.
1957 * modules/unistr/u32-strlen-tests: New file.
1958 * tests/unistr/test-u32-strlen.c: New file.
1960 Tests for module 'unistr/u16-strlen'.
1961 * modules/unistr/u16-strlen-tests: New file.
1962 * tests/unistr/test-u16-strlen.c: New file.
1964 Tests for module 'unistr/u8-strlen'.
1965 * modules/unistr/u8-strlen-tests: New file.
1966 * tests/unistr/test-u8-strlen.c: New file.
1968 Tests for module 'unistr/u32-prev'.
1969 * modules/unistr/u32-prev-tests: New file.
1970 * tests/unistr/test-u32-prev.c: New file.
1972 Tests for module 'unistr/u16-prev'.
1973 * modules/unistr/u16-prev-tests: New file.
1974 * tests/unistr/test-u16-prev.c: New file.
1976 Tests for module 'unistr/u8-prev'.
1977 * modules/unistr/u8-prev-tests: New file.
1978 * tests/unistr/test-u8-prev.c: New file.
1980 Tests for module 'unistr/u32-next'.
1981 * modules/unistr/u32-next-tests: New file.
1982 * tests/unistr/test-u32-next.c: New file.
1984 Tests for module 'unistr/u16-next'.
1985 * modules/unistr/u16-next-tests: New file.
1986 * tests/unistr/test-u16-next.c: New file.
1988 Tests for module 'unistr/u8-next'.
1989 * modules/unistr/u8-next-tests: New file.
1990 * tests/unistr/test-u8-next.c: New file.
1992 Tests for module 'unistr/u32-strmbtouc'.
1993 * modules/unistr/u32-strmbtouc-tests: New file.
1994 * tests/unistr/test-u32-strmbtouc.c: New file.
1996 Tests for module 'unistr/u16-strmbtouc'.
1997 * modules/unistr/u16-strmbtouc-tests: New file.
1998 * tests/unistr/test-u16-strmbtouc.c: New file.
2000 Tests for module 'unistr/u8-strmbtouc'.
2001 * modules/unistr/u8-strmbtouc-tests: New file.
2002 * tests/unistr/test-u8-strmbtouc.c: New file.
2004 Tests for module 'unistr/u32-strmblen'.
2005 * modules/unistr/u32-strmblen-tests: New file.
2006 * tests/unistr/test-u32-strmblen.c: New file.
2008 Tests for module 'unistr/u16-strmblen'.
2009 * modules/unistr/u16-strmblen-tests: New file.
2010 * tests/unistr/test-u16-strmblen.c: New file.
2012 Tests for module 'unistr/u8-strmblen'.
2013 * modules/unistr/u8-strmblen-tests: New file.
2014 * tests/unistr/test-u8-strmblen.c: New file.
2016 Tests for module 'unistr/u32-cpy-alloc'.
2017 * modules/unistr/u32-cpy-alloc-tests: New file.
2018 * tests/unistr/test-u32-cpy-alloc.c: New file.
2020 Tests for module 'unistr/u16-cpy-alloc'.
2021 * modules/unistr/u16-cpy-alloc-tests: New file.
2022 * tests/unistr/test-u16-cpy-alloc.c: New file.
2024 Tests for module 'unistr/u8-cpy-alloc'.
2025 * modules/unistr/u8-cpy-alloc-tests: New file.
2026 * tests/unistr/test-u8-cpy-alloc.c: New file.
2027 * tests/unistr/test-cpy-alloc.h: New file.
2029 Tests for module 'unistr/u32-mbsnlen'.
2030 * modules/unistr/u32-mbsnlen-tests: New file.
2031 * tests/unistr/test-u32-mbsnlen.c: New file.
2033 Tests for module 'unistr/u16-mbsnlen'.
2034 * modules/unistr/u16-mbsnlen-tests: New file.
2035 * tests/unistr/test-u16-mbsnlen.c: New file.
2037 Tests for module 'unistr/u8-mbsnlen'.
2038 * modules/unistr/u8-mbsnlen-tests: New file.
2039 * tests/unistr/test-u8-mbsnlen.c: New file.
2041 Tests for module 'unistr/u32-chr'.
2042 * modules/unistr/u32-chr-tests: New file.
2043 * tests/unistr/test-u32-chr.c: New file.
2045 Tests for module 'unistr/u16-chr'.
2046 * modules/unistr/u16-chr-tests: New file.
2047 * tests/unistr/test-u16-chr.c: New file.
2049 Tests for module 'unistr/u8-chr'.
2050 * modules/unistr/u8-chr-tests: New file.
2051 * tests/unistr/test-u8-chr.c: New file.
2052 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2054 Tests for module 'unistr/u32-cmp2'.
2055 * modules/unistr/u32-cmp2-tests: New file.
2056 * tests/unistr/test-u32-cmp2.c: New file.
2058 Tests for module 'unistr/u16-cmp2'.
2059 * modules/unistr/u16-cmp2-tests: New file.
2060 * tests/unistr/test-u16-cmp2.c: New file.
2062 Tests for module 'unistr/u8-cmp2'.
2063 * modules/unistr/u8-cmp2-tests: New file.
2064 * tests/unistr/test-u8-cmp2.c: New file.
2065 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2067 Tests for module 'unistr/u32-cmp'.
2068 * modules/unistr/u32-cmp-tests: New file.
2069 * tests/unistr/test-u32-cmp.c: New file.
2071 Tests for module 'unistr/u16-cmp'.
2072 * modules/unistr/u16-cmp-tests: New file.
2073 * tests/unistr/test-u16-cmp.c: New file.
2075 Tests for module 'unistr/u8-cmp'.
2076 * modules/unistr/u8-cmp-tests: New file.
2077 * tests/unistr/test-u8-cmp.c: New file.
2078 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2080 Tests for module 'unistr/u32-set'.
2081 * modules/unistr/u32-set-tests: New file.
2082 * tests/unistr/test-u32-set.c: New file.
2084 Tests for module 'unistr/u16-set'.
2085 * modules/unistr/u16-set-tests: New file.
2086 * tests/unistr/test-u16-set.c: New file.
2088 Tests for module 'unistr/u8-set'.
2089 * modules/unistr/u8-set-tests: New file.
2090 * tests/unistr/test-u8-set.c: New file.
2091 * tests/unistr/test-set.h: New file.
2093 Tests for module 'unistr/u32-move'.
2094 * modules/unistr/u32-move-tests: New file.
2095 * tests/unistr/test-u32-move.c: New file.
2097 Tests for module 'unistr/u16-move'.
2098 * modules/unistr/u16-move-tests: New file.
2099 * tests/unistr/test-u16-move.c: New file.
2101 Tests for module 'unistr/u8-move'.
2102 * modules/unistr/u8-move-tests: New file.
2103 * tests/unistr/test-u8-move.c: New file.
2104 * tests/unistr/test-move.h: New file.
2106 Tests for module 'unistr/u32-cpy'.
2107 * modules/unistr/u32-cpy-tests: New file.
2108 * tests/unistr/test-u32-cpy.c: New file.
2110 Tests for module 'unistr/u16-cpy'.
2111 * modules/unistr/u16-cpy-tests: New file.
2112 * tests/unistr/test-u16-cpy.c: New file.
2114 Tests for module 'unistr/u8-cpy'.
2115 * modules/unistr/u8-cpy-tests: New file.
2116 * tests/unistr/test-u8-cpy.c: New file.
2117 * tests/unistr/test-cpy.h: New file.
2119 2010-01-09 Bruno Haible <bruno@clisp.org>
2121 Tests for module 'unistr/u32-uctomb'.
2122 * modules/unistr/u32-uctomb-tests: New file.
2123 * tests/unistr/test-u32-uctomb.c: New file.
2125 Tests for module 'unistr/u16-uctomb'.
2126 * modules/unistr/u16-uctomb-tests: New file.
2127 * tests/unistr/test-u16-uctomb.c: New file.
2129 Tests for module 'unistr/u8-uctomb'.
2130 * modules/unistr/u8-uctomb-tests: New file.
2131 * tests/unistr/test-u8-uctomb.c: New file.
2133 Tests for module 'unistr/u32-mbtoucr'.
2134 * modules/unistr/u32-mbtoucr-tests: New file.
2135 * tests/unistr/test-u32-mbtoucr.c: New file.
2137 Tests for module 'unistr/u16-mbtoucr'.
2138 * modules/unistr/u16-mbtoucr-tests: New file.
2139 * tests/unistr/test-u16-mbtoucr.c: New file.
2141 Tests for module 'unistr/u8-mbtoucr'.
2142 * modules/unistr/u8-mbtoucr-tests: New file.
2143 * tests/unistr/test-u8-mbtoucr.c: New file.
2145 Tests for module 'unistr/u32-mbtouc'.
2146 * modules/unistr/u32-mbtouc-tests: New file.
2147 * tests/unistr/test-u32-mbtouc.c: New file.
2149 Tests for module 'unistr/u16-mbtouc'.
2150 * modules/unistr/u16-mbtouc-tests: New file.
2151 * tests/unistr/test-u16-mbtouc.c: New file.
2153 Tests for module 'unistr/u8-mbtouc'.
2154 * modules/unistr/u8-mbtouc-tests: New file.
2155 * tests/unistr/test-u8-mbtouc.c: New file.
2157 Tests for module 'unistr/u32-mbtouc-unsafe'.
2158 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2159 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2160 * tests/unistr/test-u32-mbtouc.h: New file.
2162 Tests for module 'unistr/u16-mbtouc-unsafe'.
2163 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2164 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2165 * tests/unistr/test-u16-mbtouc.h: New file.
2167 Tests for module 'unistr/u8-mbtouc-unsafe'.
2168 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2169 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2170 * tests/unistr/test-u8-mbtouc.h: New file.
2172 Tests for module 'unistr/u32-mblen'.
2173 * modules/unistr/u32-mblen-tests: New file.
2174 * tests/unistr/test-u32-mblen.c: New file.
2176 Tests for module 'unistr/u16-mblen'.
2177 * modules/unistr/u16-mblen-tests: New file.
2178 * tests/unistr/test-u16-mblen.c: New file.
2180 Tests for module 'unistr/u8-mblen'.
2181 * modules/unistr/u8-mblen-tests: New file.
2182 * tests/unistr/test-u8-mblen.c: New file.
2184 Tests for module 'unistr/u32-to-u16'.
2185 * modules/unistr/u32-to-u16-tests: New file.
2186 * tests/unistr/test-u32-to-u16.c: New file.
2188 Tests for module 'unistr/u32-to-u8'.
2189 * modules/unistr/u32-to-u8-tests: New file.
2190 * tests/unistr/test-u32-to-u8.c: New file.
2192 Tests for module 'unistr/u16-to-u32'.
2193 * modules/unistr/u16-to-u32-tests: New file.
2194 * tests/unistr/test-u16-to-u32.c: New file.
2196 Tests for module 'unistr/u16-to-u8'.
2197 * modules/unistr/u16-to-u8-tests: New file.
2198 * tests/unistr/test-u16-to-u8.c: New file.
2200 Tests for module 'unistr/u8-to-u32'.
2201 * modules/unistr/u8-to-u32-tests: New file.
2202 * tests/unistr/test-u8-to-u32.c: New file.
2204 Tests for module 'unistr/u8-to-u16'.
2205 * modules/unistr/u8-to-u16-tests: New file.
2206 * tests/unistr/test-u8-to-u16.c: New file.
2208 Tests for module 'unistr/u32-check'.
2209 * modules/unistr/u32-check-tests: New file.
2210 * tests/unistr/test-u32-check.c: New file.
2212 Tests for module 'unistr/u16-check'.
2213 * modules/unistr/u16-check-tests: New file.
2214 * tests/unistr/test-u16-check.c: New file.
2216 Tests for module 'unistr/u8-check'.
2217 * modules/unistr/u8-check-tests: New file.
2218 * tests/unistr/test-u8-check.c: New file.
2220 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2221 (category_equals): New function.
2222 (main): Add more tests.
2223 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2225 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2227 2010-01-10 Bruno Haible <bruno@clisp.org>
2229 unistr/u*-strcoll: Try harder to distinguish different strings.
2230 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2231 compare s1 and s2 to see if they are different.
2233 2010-01-10 Bruno Haible <bruno@clisp.org>
2235 unistr/u*-stpncpy: Fix the return value.
2236 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2237 description of the return value consistent with stpncpy in glibc.
2238 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2239 written non-NUL unit.
2241 2010-01-10 Bruno Haible <bruno@clisp.org>
2243 unistr/u*-next: Add missing dependencies.
2244 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2245 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2246 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2248 2010-01-10 Bruno Haible <bruno@clisp.org>
2250 unistr/u8-mbsnlen: Fix return value for incomplete character.
2251 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2253 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2254 Remove unistr/u8-mblen.
2255 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2257 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2258 Remove unistr/u16-mblen.
2260 2010-01-10 Bruno Haible <bruno@clisp.org>
2262 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2263 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2264 Reported by Brian Gough <bjg@gnu.org> and
2265 Chris Clayton <chris2553@googlemail.com> via
2266 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2268 2010-01-09 Bruno Haible <bruno@clisp.org>
2270 unistr/u16-to-u32: Reject invalid input.
2271 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2273 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2274 Remove unistr/u16-mbtouc.
2276 unistr/u16-to-u8: Reject invalid input.
2277 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2279 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2280 Remove unistr/u16-mbtouc.
2282 unistr/u8-to-u32: Reject invalid input.
2283 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2285 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2286 Remove unistr/u8-mbtouc.
2288 unistr/u8-to-u16: Reject invalid input.
2289 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2291 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2292 Remove unistr/u8-mbtouc.
2294 2010-01-09 Bruno Haible <bruno@clisp.org>
2296 Tests for module 'getlogin'.
2297 * modules/getlogin-tests: New file.
2298 * tests/test-getlogin.c: New file.
2300 New module 'getlogin'.
2301 * lib/unistd.in.h (getlogin): New declaration.
2302 * lib/getlogin.c: New file.
2303 * m4/getlogin.m4: New file.
2304 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2306 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2308 * modules/getlogin: New file.
2309 * doc/posix-functions/getlogin.texi: Mention the new module.
2310 Reported by John W. Eaton <jwe@gnu.org>.
2312 2010-01-09 Bruno Haible <bruno@clisp.org>
2314 getlogin_r: Support for native Windows.
2315 * lib/getlogin_r.c: Include <windows.h>
2316 (getlogin_r): Implement for native Windows.
2317 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2318 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2319 via John W. Eaton <jwe@gnu.org>.
2321 2010-01-09 Bruno Haible <bruno@clisp.org>
2323 getlogin_r: Small fixes.
2324 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2326 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2327 before testing whether getlogin_r is declared. No need to set
2328 HAVE_DECL_GETLOGIN_R to 1.
2329 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2331 2010-01-09 Bruno Haible <bruno@clisp.org>
2333 * lib/unistd.in.h (getlogin_r): Add comment.
2335 2010-01-09 Bruno Haible <bruno@clisp.org>
2337 Tests for module 'getlogin_r'.
2338 * modules/getlogin_r-tests: New file.
2339 * tests/test-getlogin_r.c: New file.
2341 2010-01-09 Jim Meyering <meyering@redhat.com>
2343 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2344 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2345 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2347 2010-01-08 Simon Josefsson <simon@josefsson.org>
2349 * lib/dup2.c (rpl_dup2): Improve comment.
2351 2010-01-08 Eric Blake <ebb9@byu.net>
2353 maint.mk: allow packages to add makefile @@ exceptions
2354 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2355 (sc_makefile_check): Rename...
2356 (sc_makefile_at_at_check): ...to this, and use hook.
2358 dup2: work around mingw bug
2359 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2360 Reported by Simon Josefsson.
2362 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2364 glob: Fix C++ compilation.
2365 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2368 2010-01-07 Bruno Haible <bruno@clisp.org>
2370 Fix indentation of wctype.in.h, broken since 2007-01-06.
2371 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2373 2010-01-07 Bruno Haible <bruno@clisp.org>
2375 mbslen: Avoid collision with system function.
2376 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2377 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2378 * m4/mbslen.m4: New file.
2379 * modules/mbslen (Files): Add it.
2380 (configure.ac): Invoke gl_MBSLEN.
2381 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2382 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2383 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2384 via Ian Beckwith <ianb@erislabs.net>.
2386 2010-01-07 Bruno Haible <bruno@clisp.org>
2388 dirent: Document the last fix.
2389 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2391 2010-01-07 Bruno Haible <bruno@clisp.org>
2393 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2394 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2395 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2396 va_list are defined.
2397 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2398 Reported by Eric Blake.
2400 2010-01-07 Bruno Haible <bruno@clisp.org>
2402 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2403 * modules/xlist (Depends-on): Add 'list',
2404 * modules/xoset (Depends-on): Add 'oset'.
2405 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2407 2010-01-07 Bruno Haible <bruno@clisp.org>
2409 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2410 * doc/posix-functions/strncasecmp.texi: Likewise.
2412 2010-01-07 Bruno Haible <bruno@clisp.org>
2414 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2416 2010-01-07 John W. Eaton <jwe@octave.org>
2418 wctype: allow C++ use
2419 * lib/wctype.in.h: Add extern "C" block for C++.
2421 2010-01-06 Eric Blake <ebb9@byu.net>
2423 maint.mk: detect incorrect GFDL usage
2424 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2426 2010-01-06 Jim Meyering <meyering@redhat.com>
2427 and Eric Blake <ebb9@byu.net>
2429 maint.mk: ignore multi-line copyright in NEWS
2430 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2432 2010-01-06 Eric Blake <ebb9@byu.net>
2434 select: add missing dependency
2435 * modules/select-tests (Depends-on): Move sockets dependency...
2436 * modules/select (Depends-on): ...here.
2437 Reported by Ian Beckwith.
2439 doc: regenerate INSTALL
2440 * doc/INSTALL: Reflect recent autoconf update.
2441 * doc/INSTALL.ISO: Likewise.
2442 * doc/INSTALL.UTF-8: Likewise.
2444 pread: fix compilation on glibc
2445 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2446 Reported by Ralf Wildenhues.
2448 dirent: fix test failure
2449 * lib/dirent.in.h (includes): Guarantee ino_t.
2450 Reported by Ralf Wildenhues.
2452 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2454 linkat, renameat: avoid bad free
2455 * lib/at-func2.c (at_func2): Fix typo.
2456 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2458 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2460 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2461 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2462 to avoid failure of symlink test later.
2464 2010-01-06 Eric Blake <ebb9@byu.net>
2466 stdio, unistd: guarantee ssize_t
2467 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2468 2008 are exposed when needed.
2469 * lib/stdio.in.h (includes): Likewise.
2470 Reported by Ralf Wildenhues.
2472 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2474 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2475 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2476 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2478 2010-01-06 Jim Meyering <meyering@redhat.com>
2480 readtokens: this module *does* require xalloc.h
2481 It uses only functions that were omitted by the old syntax-check rule.
2482 * lib/readtokens.c: Include "xalloc.h" once again.
2483 * modules/readtokens (Depends-on): Add xalloc.
2484 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2486 2010-01-05 Eric Blake <ebb9@byu.net>
2488 maint: support 'make announcement' from a VPATH build
2489 * top/maint.mk (announcement): Look for correct NEWS file.
2491 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2493 utimens (fdutimens): ignore a negative FD, per contract
2494 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2495 when we have a valid file descriptor. Otherwise, using a brand
2496 new glibc (with just-patched futimens that now fails with EBADF)
2497 would cause this function to fail with ENOSYS.
2498 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2499 See also http://bugzilla.redhat.com/552320.
2501 2010-01-05 Eric Blake <ebb9@byu.net>
2503 strcase: document what it provides
2504 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2506 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2507 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2509 2010-01-05 Jim Meyering <meyering@redhat.com>
2511 maint: remove useless inclusions of "xalloc.h"
2512 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2513 * lib/readtokens.c: Likewise.
2514 * lib/same.c: Likewise.
2515 * modules/getloadavg (Depends-on): Remove xalloc.
2516 * modules/readtokens: Likewise.
2517 * modules/same: Likewise.
2519 maint.mk: include 4 more function names in alloca.h-checking regexp
2520 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2521 regexp. Before, we would give a false-positive (saying alloca.h
2522 is included unnecessarily) when the only uses involved omitted symbols.
2524 xalloc.h: use consistent formatting
2525 * lib/xalloc.h: Move declarations to start in the first column.
2527 2010-01-05 Eric Blake <ebb9@byu.net>
2530 * lib/mkdir.c (includes): Drop unused header.
2531 Reported by John W. Eaton.
2533 2010-01-04 Jim Meyering <meyering@redhat.com>
2535 nl_langinfo: avoid configure-time syntax error
2536 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2537 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2538 the empty string. Don't let that provoke a shell syntax error.
2540 regcomp, regexec, fnmatch: avoid array bounds read error
2541 * lib/regcomp.c (build_equiv_class): From glibc:
2542 Use only the low 24 bits of a findidx return value as an index
2543 into the weights array. Patch by Ulrich Drepper:
2544 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2545 * lib/regexec.c (check_node_accept_bytes): Likewise.
2546 * lib/fnmatch_loop.c (FCT): Likewise.
2548 regcomp: skip collseq lookup when there are no rules
2549 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2550 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2552 regcomp: recognize ill-formed { } expressions
2553 * lib/regcomp.c (parse_dup_op): From glibc:
2554 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2556 regcomp: fix typo in comment
2557 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2558 s/satisfy/satisfies/.
2560 regcomp: sync from glibc: remove dead store
2561 * lib/regcomp.c (duplicate_node_closure): Remove useless
2562 search_duplicated_node call and dead store.
2564 regcomp: sync from glibc; always use nl_langinfo
2565 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2566 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2567 * modules/regex (Depends-on): Add nl_langinfo.
2569 2010-01-04 Eric Blake <ebb9@byu.net>
2571 fdopendir: fix configure test
2572 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2574 2010-01-01 Bruno Haible <bruno@clisp.org>
2576 wchar: Remove unused configure check.
2577 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2579 2010-01-01 Eric Blake <ebb9@byu.net>
2581 headers: make check of system header explicit
2582 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2583 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2585 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2586 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2587 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2588 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2590 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2592 Suggested by Bruno Haible.
2594 2010-01-01 Jim Meyering <meyering@redhat.com>
2596 ChangeLog: tweak to eliminate unnecessary copyright line
2597 * ChangeLog: Remove a copyright line that was mistakenly updated
2598 by today's update-copyright run. Reported by Eric Blake.
2600 test-update-copyright: don't let envvar setting cause test failure
2601 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2603 2010-01-01 Bruno Haible <bruno@clisp.org>
2605 localename: Avoid gcc warning.
2606 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2607 function if it is not used.
2609 2010-01-01 Jim Meyering <meyering@redhat.com>
2611 update nearly all FSF copyright year lists to include 2010
2612 Use the same procedure as for 2009, outlined in
2613 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2615 version-etc: set COPYRIGHT_YEAR to 2010
2616 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2618 2009-12-31 Eric Blake <ebb9@byu.net>
2620 doc: correct availability of cygwin 1.5.x getopt
2621 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2623 * doc/posix-functions/opterr.texi (opterr): Likewise.
2624 * doc/posix-functions/optind.texi (optind): Likewise.
2625 * doc/posix-functions/optopt.texi (optopt): Likewise.
2626 * doc/posix-functions/tzname.texi (tzname): Likewise.
2628 openat: update maintainer
2629 * modules/openat (Maintainer): Add myself.
2631 utimens: avoid shadowing warning
2632 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2633 buffers into one, to avoid shadowing, as well as avoiding a
2635 Reported by Jim Meyering.
2637 test-dup2: avoid compiler warning
2638 * tests/test-dup2.c (is_inheritable): Only define if used.
2640 2010-01-01 Bruno Haible <bruno@clisp.org>
2642 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2643 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2644 defined, use wctomb instead of wcrtomb.
2646 2010-01-01 Bruno Haible <bruno@clisp.org>
2648 iconv: Reject native Solaris iconv.
2649 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2650 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2652 2009-12-31 Bruno Haible <bruno@clisp.org>
2654 * tests/test-signal.c (main): Remove test of 'SIG'.
2656 2009-12-31 Bruno Haible <bruno@clisp.org>
2658 spawn: Fix incomplete fix.
2659 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2660 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2661 warnings for GNULIB_POSIXCHECK again.
2662 Reported by Eric Blake.
2664 2009-12-31 Bruno Haible <bruno@clisp.org>
2666 Avoid namespace pollution on glibc systems.
2667 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2668 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2669 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2672 2009-12-31 Bruno Haible <bruno@clisp.org>
2674 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2675 (gl_REPLACE_WCHAR_H): Turn into a no-op.
2676 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2677 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2678 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2679 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2680 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2682 2009-12-31 Bruno Haible <bruno@clisp.org>
2684 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2685 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2688 2009-12-31 Bruno Haible <bruno@clisp.org>
2690 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2693 2009-12-31 Bruno Haible <bruno@clisp.org>
2695 spawn: Fix misapplied patch.
2696 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2697 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2698 warnings for GNULIB_POSIXCHECK.
2700 2009-12-31 Bruno Haible <bruno@clisp.org>
2702 times: Update after sys_times changed.
2703 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2704 * modules/times (Files): Add it.
2705 (configure.ac): Invoke gl_FUNC_TIMES.
2707 2009-12-31 Bruno Haible <bruno@clisp.org>
2709 Use AC_C_INLINE where necessary.
2710 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2711 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2712 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2713 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2714 * m4/mbfile.m4 (gl_MBFILE): Likewise.
2715 * m4/mbiter.m4 (gl_MBITER): Likewise.
2716 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2717 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2718 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2719 * modules/u64 (configure.ac): Likewise.
2721 2009-12-31 Bruno Haible <bruno@clisp.org>
2723 Use AC_C_INLINE instead of module 'inline' where possible.
2724 * modules/inline (Description): Clarify purpose.
2725 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2726 * modules/count-one-bits (Depends-on): Remove inline.
2727 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2728 * modules/openat (Depends-on): Remove inline.
2729 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2730 instead of depending on module 'inline'.
2731 * modules/filevercmp (Depends-on, configure.ac): Likewise.
2732 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2733 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2734 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2735 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2736 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2737 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2738 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2739 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2740 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2741 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2742 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2743 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2744 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2745 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2746 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2747 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2748 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2750 * modules/unictype/property-ascii-hex-digit (Depends-on,
2751 configure.ac): Likewise.
2752 * modules/unictype/property-bidi-arabic-digit (Depends-on,
2753 configure.ac): Likewise.
2754 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2755 configure.ac): Likewise.
2756 * modules/unictype/property-bidi-block-separator (Depends-on,
2757 configure.ac): Likewise.
2758 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2759 configure.ac): Likewise.
2760 * modules/unictype/property-bidi-common-separator (Depends-on,
2761 configure.ac): Likewise.
2762 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2764 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2765 configure.ac): Likewise.
2766 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2767 configure.ac): Likewise.
2768 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2769 configure.ac): Likewise.
2770 * modules/unictype/property-bidi-european-digit (Depends-on,
2771 configure.ac): Likewise.
2772 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2773 configure.ac): Likewise.
2774 * modules/unictype/property-bidi-left-to-right (Depends-on,
2775 configure.ac): Likewise.
2776 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2777 configure.ac): Likewise.
2778 * modules/unictype/property-bidi-other-neutral (Depends-on,
2779 configure.ac): Likewise.
2780 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2782 * modules/unictype/property-bidi-segment-separator (Depends-on,
2783 configure.ac): Likewise.
2784 * modules/unictype/property-bidi-whitespace (Depends-on,
2785 configure.ac): Likewise.
2786 * modules/unictype/property-combining (Depends-on, configure.ac):
2788 * modules/unictype/property-composite (Depends-on, configure.ac):
2790 * modules/unictype/property-currency-symbol (Depends-on,
2791 configure.ac): Likewise.
2792 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2793 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2795 * modules/unictype/property-default-ignorable-code-point (Depends-on,
2796 configure.ac): Likewise.
2797 * modules/unictype/property-deprecated (Depends-on, configure.ac):
2799 * modules/unictype/property-diacritic (Depends-on, configure.ac):
2801 * modules/unictype/property-extender (Depends-on, configure.ac):
2803 * modules/unictype/property-format-control (Depends-on, configure.ac):
2805 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2807 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2809 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2811 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2813 * modules/unictype/property-hyphen (Depends-on, configure.ac):
2815 * modules/unictype/property-id-continue (Depends-on, configure.ac):
2817 * modules/unictype/property-id-start (Depends-on, configure.ac):
2819 * modules/unictype/property-ideographic (Depends-on, configure.ac):
2821 * modules/unictype/property-ids-binary-operator (Depends-on,
2822 configure.ac): Likewise.
2823 * modules/unictype/property-ids-trinary-operator (Depends-on,
2824 configure.ac): Likewise.
2825 * modules/unictype/property-ignorable-control (Depends-on,
2826 configure.ac): Likewise.
2827 * modules/unictype/property-iso-control (Depends-on, configure.ac):
2829 * modules/unictype/property-join-control (Depends-on, configure.ac):
2831 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2833 * modules/unictype/property-line-separator (Depends-on, configure.ac):
2835 * modules/unictype/property-logical-order-exception (Depends-on,
2836 configure.ac): Likewise.
2837 * modules/unictype/property-lowercase (Depends-on, configure.ac):
2839 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2840 * modules/unictype/property-non-break (Depends-on, configure.ac):
2842 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2844 * modules/unictype/property-numeric (Depends-on, configure.ac):
2846 * modules/unictype/property-other-alphabetic (Depends-on,
2847 configure.ac): Likewise.
2848 * modules/unictype/property-other-default-ignorable-code-point
2849 (Depends-on, configure.ac): Likewise.
2850 * modules/unictype/property-other-grapheme-extend (Depends-on,
2851 configure.ac): Likewise.
2852 * modules/unictype/property-other-id-continue (Depends-on,
2853 configure.ac): Likewise.
2854 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2856 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2858 * modules/unictype/property-other-math (Depends-on, configure.ac):
2860 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2862 * modules/unictype/property-paired-punctuation (Depends-on,
2863 configure.ac): Likewise.
2864 * modules/unictype/property-paragraph-separator (Depends-on,
2865 configure.ac): Likewise.
2866 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2868 * modules/unictype/property-pattern-white-space (Depends-on,
2869 configure.ac): Likewise.
2870 * modules/unictype/property-private-use (Depends-on, configure.ac):
2872 * modules/unictype/property-punctuation (Depends-on, configure.ac):
2874 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2876 * modules/unictype/property-radical (Depends-on, configure.ac):
2878 * modules/unictype/property-sentence-terminal (Depends-on,
2879 configure.ac): Likewise.
2880 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2882 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2883 * modules/unictype/property-terminal-punctuation (Depends-on,
2884 configure.ac): Likewise.
2885 * modules/unictype/property-titlecase (Depends-on, configure.ac):
2887 * modules/unictype/property-unassigned-code-value (Depends-on,
2888 configure.ac): Likewise.
2889 * modules/unictype/property-unified-ideograph (Depends-on,
2890 configure.ac): Likewise.
2891 * modules/unictype/property-uppercase (Depends-on, configure.ac):
2893 * modules/unictype/property-variation-selector (Depends-on,
2894 configure.ac): Likewise.
2895 * modules/unictype/property-white-space (Depends-on, configure.ac):
2897 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2899 * modules/unictype/property-xid-start (Depends-on, configure.ac):
2901 * modules/unictype/property-zero-width (Depends-on, configure.ac):
2903 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2904 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2907 2009-12-31 Bruno Haible <bruno@clisp.org>
2909 Remove unnecessary AC_C_INLINE invocation.
2910 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2913 2009-12-31 Jim Meyering <meyering@redhat.com>
2915 maint.mk: don't require explicit gpg_key_ID in cfg.mk
2916 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2917 With this change, we can all remove the gpg_key_ID = ... definition
2918 from our respective cfg.mk files.
2920 maint.mk: create announcement template in ~/, not in /tmp
2921 * top/maint.mk (emit_upload_commands): Adjust.
2922 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2923 Remove temporary file, .ci-msg.
2925 2009-12-31 Eric Blake <ebb9@byu.net>
2927 link-warning: always build headers with link warnings
2928 * modules/arpa_inet (Makefile.am): Always build replacement
2930 * modules/ctype (Makefile.am): Likewise.
2931 * modules/dirent (Makefile.am): Likewise.
2932 * modules/inttypes (Makefile.am): Likewise.
2933 * modules/langinfo (Makefile.am): Likewise.
2934 * modules/locale (Makefile.am): Likewise.
2935 * modules/spawn (Makefile.am): Likewise.
2936 * modules/sys_file (Makefile.am): Likewise.
2937 * modules/sys_ioctl (Makefile.am): Likewise.
2938 * modules/sys_select (Makefile.am): Likewise.
2939 * modules/sys_socket (Makefile.am): Likewise.
2940 * modules/sys_times (Makefile.am): Likewise.
2941 * modules/sys_utsname (Makefile.am): Likewise.
2942 * modules/sys_wait (Makefile.am): Likewise.
2943 * modules/wchar (Makefile.am): Likewise.
2944 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2945 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2946 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2947 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2948 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2950 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2951 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2952 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2954 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2956 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2957 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2958 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2959 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2960 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2961 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2962 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2963 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2964 (gl_WCHAR_H_DEFAULTS): Likewise.
2966 2009-12-31 Eric Blake <ebb9@byu.net>
2968 signal, spawn: use link warnings
2969 * lib/signal.in.h (sigset_t): Make unconditional.
2970 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2971 (sigpending, sigprocmask, sigaction): Add link warnings.
2972 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2973 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2974 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2975 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2976 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2977 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2978 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2979 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2980 (posix_spawn_file_actions_destroy)
2981 (posix_spawn_file_actions_addopen)
2982 (posix_spawn_file_actions_addclose)
2983 (posix_spawwn_file_actions_adddup2): Likewise.
2984 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2985 * tests/test-signal.c (main): Enhance test.
2987 spawn: improve wrapper support
2988 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2989 (gl_SPAWN_H_DEFAULTS): New defaults.
2990 * modules/spawn (Makefile.am): Substitute them.
2991 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2992 Only declare if missing or broken.
2994 sys_times, sys_utsname: use include_next
2995 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2997 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2998 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2999 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3000 * modules/sys_times (Depends-on): Add include_next.
3001 (Makefile.am): Substitute additional values.
3002 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3003 * lib/sys_times.in.h (includes): Include native header, if
3005 * lib/sys_utsname.in.h (includes): Likewise.
3006 * tests/test-sys_times.c (main): Enhance test.
3008 fdutimensat: revert prior patch
3009 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3011 Reported by Bruno Haible.
3013 2009-12-30 Eric Blake <ebb9@byu.net>
3015 sys_wait: drop link-warning dependency
3016 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3017 link-warning efforts.
3018 * lib/sys_wait.in.h: Likewise.
3020 fdutimensat: remove bogus dependency
3021 * modules/fdutimensat (Depends-on): Drop inline.
3024 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3026 2009-12-30 Bruno Haible <bruno@clisp.org>
3028 Fix compilation error with Solaris cc.
3029 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3030 * lib/unicase/u16-is-invariant.c: Likewise.
3031 * lib/unicase/u32-is-invariant.c: Likewise.
3032 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3034 2009-12-30 Bruno Haible <bruno@clisp.org>
3037 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3039 Reported by Simon Josefsson <simon@josefsson.org>.
3041 2009-12-30 Bruno Haible <bruno@clisp.org>
3043 Fix compilation error on most platforms.
3044 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3045 Reported by Simon Josefsson <simon@josefsson.org>
3046 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3048 2009-12-30 Eric Blake <ebb9@byu.net>
3050 futimens, utimensat: work around ntfs-3g bug
3051 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3052 a ctime bug is present, and expand workaround to cover ntfs-3g.
3053 * lib/utimens.c (fdutimens, lutimens): Likewise.
3054 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3055 (validate_timespec): Adjust return value.
3056 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3057 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3058 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3060 2009-12-29 Eric Blake <ebb9@byu.net>
3062 link-warning: make usage consistent
3063 * modules/ctype (Depends-on): Add link-warning.
3064 (Makefile.am): Update rules accordingly.
3065 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3066 * modules/locale (Depends-on, Makefile.am): Likewise.
3067 * modules/sys_file (Makefile.am): Likewise.
3068 * modules/getopt-posix (Makefile.am): Delete unused link warning
3070 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3071 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3072 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3073 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3075 stdio: remove unused variables
3076 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3077 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3078 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3080 tests: test more substitute headers
3081 * modules/ctype-tests: New file.
3082 * modules/dirent-tests: Likewise.
3083 * modules/spawn-tests: Likewise.
3084 * modules/sys_file-tests: Likewise.
3085 * modules/sys_ioctl-tests: Likewise.
3086 * modules/sys_wait-tests: Likewise.
3087 * tests/test-ctype.c: Likewise.
3088 * tests/test-dirent.c: Likewise.
3089 * tests/test-spawn.c: Likewise.
3090 * tests/test-sys_file.c: Likewise.
3091 * tests/test-sys_ioctl.c: Likewise.
3092 * tests/test-sys_wait.c: Likewise.
3093 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3094 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3095 whether or not flock is in use.
3097 tests: remove License section from module
3098 * modules/arpa_inet-tests: Remove unneeded section.
3099 * modules/byteswap-tests: Likewise.
3100 * modules/ceilf-tests: Likewise.
3101 * modules/ceill-tests: Likewise.
3102 * modules/crypto/des-tests: Likewise.
3103 * modules/crypto/gc-arcfour-tests: Likewise.
3104 * modules/crypto/gc-arctwo-tests: Likewise.
3105 * modules/crypto/gc-des-tests: Likewise.
3106 * modules/crypto/gc-hmac-md5-tests: Likewise.
3107 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3108 * modules/crypto/gc-md2-tests: Likewise.
3109 * modules/crypto/gc-md4-tests: Likewise.
3110 * modules/crypto/gc-md5-tests: Likewise.
3111 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3112 * modules/crypto/gc-rijndael-tests: Likewise.
3113 * modules/crypto/gc-sha1-tests: Likewise.
3114 * modules/crypto/gc-tests: Likewise.
3115 * modules/crypto/md2-tests: Likewise.
3116 * modules/crypto/md4-tests: Likewise.
3117 * modules/fcntl-h-tests: Likewise.
3118 * modules/floorf-tests: Likewise.
3119 * modules/floorl-tests: Likewise.
3120 * modules/frexp-nolibm-tests: Likewise.
3121 * modules/frexp-tests: Likewise.
3122 * modules/frexpl-nolibm-tests: Likewise.
3123 * modules/frexpl-tests: Likewise.
3124 * modules/getaddrinfo-tests: Likewise.
3125 * modules/inttypes-tests: Likewise.
3126 * modules/isfinite-tests: Likewise.
3127 * modules/isinf-tests: Likewise.
3128 * modules/ldexpl-tests: Likewise.
3129 * modules/locale-tests: Likewise.
3130 * modules/math-tests: Likewise.
3131 * modules/netdb-tests: Likewise.
3132 * modules/netinet_in-tests: Likewise.
3133 * modules/printf-frexp-tests: Likewise.
3134 * modules/printf-frexpl-tests: Likewise.
3135 * modules/priv-set-tests: Likewise.
3136 * modules/random_r-tests: Likewise.
3137 * modules/round-tests: Likewise.
3138 * modules/roundf-tests: Likewise.
3139 * modules/roundl-tests: Likewise.
3140 * modules/search-tests: Likewise.
3141 * modules/select-tests: Likewise.
3142 * modules/signal-tests: Likewise.
3143 * modules/stdbool-tests: Likewise.
3144 * modules/stddef-tests: Likewise.
3145 * modules/stdint-tests: Likewise.
3146 * modules/stdio-tests: Likewise.
3147 * modules/stdlib-tests: Likewise.
3148 * modules/string-tests: Likewise.
3149 * modules/strings-tests: Likewise.
3150 * modules/sys_select-tests: Likewise.
3151 * modules/sys_socket-tests: Likewise.
3152 * modules/sys_stat-tests: Likewise.
3153 * modules/sys_time-tests: Likewise.
3154 * modules/sys_utsname-tests: Likewise.
3155 * modules/sysexits-tests: Likewise.
3156 * modules/time-tests: Likewise.
3157 * modules/trunc-tests: Likewise.
3158 * modules/truncf-tests: Likewise.
3159 * modules/truncl-tests: Likewise.
3160 * modules/tsearch-tests: Likewise.
3161 * modules/unistd-tests: Likewise.
3162 * modules/wchar-tests: Likewise.
3163 * modules/wctype-tests: Likewise.
3165 tests: fix license on several tests
3166 * tests/test-des.c: Update to GPLv3+.
3167 * tests/test-flock.c: Likewise.
3168 * tests/test-fsync.c: Likewise.
3169 * tests/test-futimens.h: Likewise.
3170 * tests/test-gc-arcfour.c: Likewise.
3171 * tests/test-gc-arctwo.c: Likewise.
3172 * tests/test-gc-des.c: Likewise.
3173 * tests/test-gc-hmac-md5.c: Likewise.
3174 * tests/test-gc-hmac-sha1.c: Likewise.
3175 * tests/test-gc-md2.c: Likewise.
3176 * tests/test-gc-md4.c: Likewise.
3177 * tests/test-gc-md5.c: Likewise.
3178 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3179 * tests/test-gc-rijndael.c: Likewise.
3180 * tests/test-gc-sha1.c: Likewise.
3181 * tests/test-gc.c: Likewise.
3182 * tests/test-getcwd.c: Likewise.
3183 * tests/test-link.c: Likewise.
3184 * tests/test-link.h: Likewise.
3185 * tests/test-lutimens.h: Likewise.
3186 * tests/test-md2.c: Likewise.
3187 * tests/test-md4.c: Likewise.
3188 * tests/test-mkdir.h: Likewise.
3189 * tests/test-rename.c: Likewise.
3190 * tests/test-rename.h: Likewise.
3191 * tests/test-safe-alloc.c: Likewise.
3192 * tests/test-utimens-common.h: Likewise.
3193 * tests/test-utimens.h: Likewise.
3195 maint: sync license texts
3196 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3197 * doc/gpl-3.0.texi: Revert copyright year update.
3198 * doc/lgpl-3.0.texi: Likewise.
3200 2009-12-29 Jim Meyering <meyering@redhat.com>
3202 update nearly all FSF copyright year lists to include 2009
3203 The files named by the following are exempted:
3204 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3205 test -f "$dst" && { echo "$dst"; continue; }
3206 test -d "$dst" || continue
3207 echo "$dst"/$(basename "$src")
3209 git ls-files tests/unictype >> exempt
3210 In the remaining files, convert to all-interval notation if
3211 - there is already at least one year interval like 2000-2003
3212 - the file is maintained by me
3213 - the file is in lib/uni*/, where that style already prevails
3214 Otherwise, use update-copyright's default.
3216 2009-12-29 Simon Josefsson <simon@josefsson.org>
3217 and Eric Blake <ebb9@byu.net>
3219 tests: don't require debug system() to pass
3220 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3221 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3222 * tests/test-unlink.h (test_unlink_func): Likewise.
3223 * tests/test-fstatat.c (main): ...into callers.
3224 * tests/test-lstat.c (main): Likewise.
3225 * tests/test-rmdir.c (main): Likewise.
3226 * tests/test-unlink.c (main): Likewise.
3227 * tests/test-unlinkat.c (main): Likewise.
3228 * tests/test-areadlink-with-size.c (main): Don't require a
3229 debug-only system call to pass, aiding cross-testing to mingw.
3230 * tests/test-areadlink.c (main): Likewise.
3231 * tests/test-areadlinkat-with-size.c (main): Likewise.
3232 * tests/test-areadlinkat.c (main): Likewise.
3233 * tests/test-canonicalize-lgpl.c (main): Likewise.
3234 * tests/test-canonicalize.c (main): Likewise.
3235 * tests/test-chown.c (main): Likewise.
3236 * tests/test-fchownat.c (main): Likewise.
3237 * tests/test-lchown.c (main): Likewise.
3238 * tests/test-fdutimensat.c (main): Likewise.
3239 * tests/test-futimens.c (main): Likewise.
3240 * tests/test-link.c (main): Likewise.
3241 * tests/test-linkat.c (main): Likewise.
3242 * tests/test-mkdir.c (main): Likewise.
3243 * tests/test-mkdirat.c (main): Likewise.
3244 * tests/test-mkfifo.c (main): Likewise.
3245 * tests/test-mkfifoat.c (main): Likewise.
3246 * tests/test-mknod.c (main): Likewise.
3247 * tests/test-readlink.c (main): Likewise.
3248 * tests/test-remove.c (main): Likewise.
3249 * tests/test-rename.c (main): Likewise.
3250 * tests/test-renameat.c (main): Likewise.
3251 * tests/test-symlink.c (main): Likewise.
3252 * tests/test-symlinkat.c (main): Likewise.
3253 * tests/test-utimens.c (main): Likewise.
3254 * tests/test-utimensat.c (main): Likewise.
3256 2009-12-29 Simon Josefsson <simon@josefsson.org>
3258 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3259 on $(UNUSED_PARAMETER_H) to avoid build failure.
3261 2009-12-28 Jim Meyering <meyering@redhat.com>
3263 update-copyright: you may specify a max. line length other than 72
3264 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3266 maint: use consistent FSF copyright line syntax
3267 * lib/posixtm.c: Add missing comma in FSF copyright line.
3268 * lib/posixtm.h: Likewise.
3269 * lib/getugroups.c: Add missing ", Inc.".
3271 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3272 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3273 FSF copyright line. Remove trailing blanks.
3275 2009-12-28 Eric Blake <ebb9@byu.net>
3277 test-dup2: reduce dependencies
3278 * modules/cloexec (Configure.ac): Set witness.
3279 * modules/dup2-tests (Depends-on): Drop cloexec.
3280 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3282 Suggested by Bruno Haible.
3284 2009-12-26 Bruno Haible <bruno@clisp.org>
3286 Remove an unneeded dependency.
3287 * modules/fseterr (Depends-on): Remove dup2.
3289 2009-12-26 Eric Blake <ebb9@byu.net>
3291 tests: use macros.h in more places
3292 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3293 (ASSERT_STREAM): Provide default of stderr.
3294 * tests/test-dirent-safer.c: Include macros.h, using alternate
3295 stream for assertions.
3296 * tests/test-dup-safer.c: Likewise.
3297 * tests/test-freopen-safer.c: Likewise.
3298 * tests/test-getopt.c: Likewise.
3299 * tests/test-openat-safer.c: Likewise.
3300 * tests/test-pipe.c: Likewise.
3301 * tests/test-popen-safer.c: Likewise.
3302 * modules/dirent-safer-tests (Files): Include macros.h.
3303 * modules/unistd-safer-tests (Files): Likewise.
3304 * modules/freopen-safer-tests (Files): Likewise.
3305 * modules/getopt-posix-tests (Files): Likewise.
3306 * modules/openat-safer-tests (Files): Likewise.
3307 * modules/pipe-tests (Files): Likewise.
3309 2009-12-26 Bruno Haible <bruno@clisp.org>
3311 javacomp: Portability fix.
3312 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3313 that it also works on Solaris.
3315 2009-12-26 Bruno Haible <bruno@clisp.org>
3317 localename: Fix storage allocation of gl_locale_name_thread's result.
3318 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3319 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3320 all platforms that have 'uselocale'.
3321 (gl_locale_name_thread_unsafe): New function, extracted from
3322 gl_locale_name_thread.
3323 (gl_locale_name_thread): Call struniq on all platforms that have
3325 * tests/test-localename.c (test_locale_name_thread): Check that the
3326 resulting strings are permanently allocated.
3327 * modules/localename-tests (Depends-on): Add strdup.
3329 2009-12-26 Bruno Haible <bruno@clisp.org>
3331 * tests/test-localename.c (categories): Fill in the strings.
3333 2009-12-26 Jim Meyering <meyering@redhat.com>
3335 isdir: complete the removal of m4/isdir.m4
3336 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3338 isdir: clean up, since at least grep still uses it
3339 * lib/isdir.c: Include "isdir.h".
3340 (S_ISDIR): Remove now-unneeded definition.
3341 * modules/isdir (Files): Add lib/isdir.h.
3342 * lib/isdir.h: New file, with declaration.
3343 * m4/isdir.m4: Remove file -- unneeded.
3345 2009-12-25 Bruno Haible <bruno@clisp.org>
3347 selinux-h: Make generated .h files standalone.
3348 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3349 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3350 * lib/se-selinux.in.h: Likewise.
3351 * modules/selinux-h (Depends-on): Add unused-parameter.
3352 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3353 selinux/selinux.h and selinux/context.h.
3354 Suggested by Eric Blake.
3356 2009-12-25 Bruno Haible <bruno@clisp.org>
3358 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3359 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3360 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3361 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3362 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3364 2009-12-24 Bruno Haible <bruno@clisp.org>
3366 openat: Fix warning.
3367 * lib/openat-proc.c: Include <unistd.h>.
3369 2009-12-24 Bruno Haible <bruno@clisp.org>
3371 New module 'unused-parameter'.
3372 * build-aux/unused-parameter.h: New file, extracted from earlier
3374 * modules/unused-parameter: New file.
3375 * lib/unistr.h: Include unused-parameter.h.
3376 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3378 * modules/unistr/base (Depends-on): Add unused-parameter.
3380 2009-12-24 Bruno Haible <bruno@clisp.org>
3382 Add missing dependencies to 'extensions' module.
3383 * m4/extensions.m4: Add comment.
3384 * modules/accept4 (Depends-on): Add extensions.
3385 * modules/dup3 (Depends-on): Likewise.
3386 * modules/fcntl (Depends-on): Likewise.
3387 * modules/futimens (Depends-on): Likewise.
3388 * modules/mknod (Depends-on): Likewise.
3389 * modules/pipe2 (Depends-on): Likewise.
3390 * modules/stat-time (Depends-on): Likewise.
3391 * modules/strcasestr-simple (Depends-on): Likewise.
3392 * modules/strsignal (Depends-on): Likewise.
3393 * modules/utimensat (Depends-on): Likewise.
3394 * modules/localcharset (Depends-on): Likewise. Needed because of
3396 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3398 * modules/wcsnrtombs (Depends-on): Likewise.
3399 * modules/wcsrtombs (Depends-on): Likewise.
3401 2009-12-24 Bruno Haible <bruno@clisp.org>
3403 binary-io: Avoid gcc warning due to SET_BINARY.
3404 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3405 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3407 2009-12-24 Bruno Haible <bruno@clisp.org>
3409 Avoid future namespace pollution on glibc systems.
3410 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3411 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3412 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3415 2009-12-24 Bruno Haible <bruno@clisp.org>
3417 Refactor common macros used in tests.
3418 * tests/macros.h: New file.
3419 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3420 and/or <stdlib.h>, if appropriate.
3421 (ASSERT, SIZEOF): Remove macros.
3422 * tests/test-areadlink-with-size.c: Likewise.
3423 * tests/test-areadlinkat.c: Likewise.
3424 * tests/test-areadlinkat-with-size.c: Likewise.
3425 * tests/test-argmatch.c: Likewise.
3426 * tests/test-argv-iter.c: Likewise.
3427 * tests/test-array-mergesort.c: Likewise.
3428 * tests/test-array_list.c: Likewise.
3429 * tests/test-array_oset.c: Likewise.
3430 * tests/test-avltree_list.c: Likewise.
3431 * tests/test-avltree_oset.c: Likewise.
3432 * tests/test-avltreehash_list.c: Likewise.
3433 * tests/test-base64.c: Likewise.
3434 * tests/test-binary-io.c: Likewise.
3435 * tests/test-bitrotate.c: Likewise.
3436 * tests/test-btowc.c: Likewise.
3437 * tests/test-byteswap.c: Likewise.
3438 * tests/test-c-ctype.c: Likewise.
3439 * tests/test-c-stack.c: Likewise.
3440 * tests/test-c-strcasecmp.c: Likewise.
3441 * tests/test-c-strcasestr.c: Likewise.
3442 * tests/test-c-strncasecmp.c: Likewise.
3443 * tests/test-c-strstr.c: Likewise.
3444 * tests/test-canonicalize-lgpl.c: Likewise.
3445 * tests/test-canonicalize.c: Likewise.
3446 * tests/test-carray_list.c: Likewise.
3447 * tests/test-ceilf1.c: Likewise.
3448 * tests/test-ceilf2.c: Likewise.
3449 * tests/test-ceill.c: Likewise.
3450 * tests/test-chown.c: Likewise.
3451 * tests/test-cloexec.c: Likewise.
3452 * tests/test-copy-acl.c: Likewise.
3453 * tests/test-copy-file.c: Likewise.
3454 * tests/test-count-one-bits.c: Likewise.
3455 * tests/test-dprintf-posix.c: Likewise.
3456 * tests/test-dup2.c: Likewise.
3457 * tests/test-dup3.c: Likewise.
3458 * tests/test-duplocale.c: Likewise.
3459 * tests/test-fbufmode.c: Likewise.
3460 * tests/test-fchdir.c: Likewise.
3461 * tests/test-fchownat.c: Likewise.
3462 * tests/test-fcntl-safer.c: Likewise.
3463 * tests/test-fcntl.c: Likewise.
3464 * tests/test-fdopendir.c: Likewise.
3465 * tests/test-fdutimensat.c: Likewise.
3466 * tests/test-fflush2.c: Likewise.
3467 * tests/test-file-has-acl.c: Likewise.
3468 * tests/test-filevercmp.c: Likewise.
3469 * tests/test-flock.c: Likewise.
3470 * tests/test-floorf1.c: Likewise.
3471 * tests/test-floorf2.c: Likewise.
3472 * tests/test-floorl.c: Likewise.
3473 * tests/test-fnmatch.c: Likewise.
3474 * tests/test-fopen.h: Likewise.
3475 * tests/test-fpending.c: Likewise.
3476 * tests/test-fprintf-posix.c: Likewise.
3477 * tests/test-fpurge.c: Likewise.
3478 * tests/test-freadable.c: Likewise.
3479 * tests/test-freadahead.c: Likewise.
3480 * tests/test-freading.c: Likewise.
3481 * tests/test-freadptr.c: Likewise.
3482 * tests/test-freadptr2.c: Likewise.
3483 * tests/test-freadseek.c: Likewise.
3484 * tests/test-freopen.c: Likewise.
3485 * tests/test-frexp.c: Likewise.
3486 * tests/test-frexpl.c: Likewise.
3487 * tests/test-fseek.c: Likewise.
3488 * tests/test-fseeko.c: Likewise.
3489 * tests/test-fstatat.c: Likewise.
3490 * tests/test-fstrcmp.c: Likewise.
3491 * tests/test-fsync.c: Likewise.
3492 * tests/test-ftell.c: Likewise.
3493 * tests/test-ftello.c: Likewise.
3494 * tests/test-func.c: Likewise.
3495 * tests/test-futimens.c: Likewise.
3496 * tests/test-fwritable.c: Likewise.
3497 * tests/test-fwriting.c: Likewise.
3498 * tests/test-getcwd.c: Likewise.
3499 * tests/test-getdate.c: Likewise.
3500 * tests/test-getdelim.c: Likewise.
3501 * tests/test-getdtablesize.c: Likewise.
3502 * tests/test-getgroups.c: Likewise.
3503 * tests/test-getline.c: Likewise.
3504 * tests/test-getndelim2.c: Likewise.
3505 * tests/test-glob.c: Likewise.
3506 * tests/test-hash.c: Likewise.
3507 * tests/test-i-ring.c: Likewise.
3508 * tests/test-iconv-utf.c: Likewise.
3509 * tests/test-iconv.c: Likewise.
3510 * tests/test-idpriv-drop.c: Likewise.
3511 * tests/test-idpriv-droptemp.c: Likewise.
3512 * tests/test-inet_ntop.c: Likewise.
3513 * tests/test-inet_pton.c: Likewise.
3514 * tests/test-isblank.c: Likewise.
3515 * tests/test-isfinite.c: Likewise.
3516 * tests/test-isinf.c: Likewise.
3517 * tests/test-isnan.c: Likewise.
3518 * tests/test-isnand.h: Likewise.
3519 * tests/test-isnanf.h: Likewise.
3520 * tests/test-isnanl.h: Likewise.
3521 * tests/test-lchown.c: Likewise.
3522 * tests/test-ldexpl.c: Likewise.
3523 * tests/test-link.c: Likewise.
3524 * tests/test-linkat.c: Likewise.
3525 * tests/test-linked_list.c: Likewise.
3526 * tests/test-linkedhash_list.c: Likewise.
3527 * tests/test-localename.c: Likewise.
3528 * tests/test-lseek.c: Likewise.
3529 * tests/test-lstat.c: Likewise.
3530 * tests/test-mbmemcasecmp.c: Likewise.
3531 * tests/test-mbmemcasecoll.c: Likewise.
3532 * tests/test-mbrtowc.c: Likewise.
3533 * tests/test-mbscasecmp.c: Likewise.
3534 * tests/test-mbscasestr1.c: Likewise.
3535 * tests/test-mbscasestr2.c: Likewise.
3536 * tests/test-mbscasestr3.c: Likewise.
3537 * tests/test-mbscasestr4.c: Likewise.
3538 * tests/test-mbschr.c: Likewise.
3539 * tests/test-mbscspn.c: Likewise.
3540 * tests/test-mbsinit.c: Likewise.
3541 * tests/test-mbsncasecmp.c: Likewise.
3542 * tests/test-mbsnrtowcs.c: Likewise.
3543 * tests/test-mbspbrk.c: Likewise.
3544 * tests/test-mbspcasecmp.c: Likewise.
3545 * tests/test-mbsrchr.c: Likewise.
3546 * tests/test-mbsrtowcs.c: Likewise.
3547 * tests/test-mbsspn.c: Likewise.
3548 * tests/test-mbsstr1.c: Likewise.
3549 * tests/test-mbsstr2.c: Likewise.
3550 * tests/test-mbsstr3.c: Likewise.
3551 * tests/test-memchr.c: Likewise.
3552 * tests/test-memchr2.c: Likewise.
3553 * tests/test-memcmp.c: Likewise.
3554 * tests/test-memmem.c: Likewise.
3555 * tests/test-memrchr.c: Likewise.
3556 * tests/test-mkdir.c: Likewise.
3557 * tests/test-mkdirat.c: Likewise.
3558 * tests/test-mkfifo.c: Likewise.
3559 * tests/test-mkfifoat.c: Likewise.
3560 * tests/test-mknod.c: Likewise.
3561 * tests/test-nanosleep.c: Likewise.
3562 * tests/test-nl_langinfo.c: Likewise.
3563 * tests/test-obstack-printf.c: Likewise.
3564 * tests/test-open.c: Likewise.
3565 * tests/test-openat.c: Likewise.
3566 * tests/test-pipe-filter-gi1.c: Likewise.
3567 * tests/test-pipe-filter-gi2-main.c: Likewise.
3568 * tests/test-pipe-filter-ii1.c: Likewise.
3569 * tests/test-pipe-filter-ii2-main.c: Likewise.
3570 * tests/test-pipe2.c: Likewise.
3571 * tests/test-popen.h: Likewise.
3572 * tests/test-posixtm.c: Likewise.
3573 * tests/test-pread.c: Likewise.
3574 * tests/test-printf-frexp.c: Likewise.
3575 * tests/test-printf-frexpl.c: Likewise.
3576 * tests/test-printf-posix.c: Likewise.
3577 * tests/test-priv-set.c: Likewise.
3578 * tests/test-quotearg.c: Likewise.
3579 * tests/test-random_r.c: Likewise.
3580 * tests/test-rawmemchr.c: Likewise.
3581 * tests/test-rbtree_list.c: Likewise.
3582 * tests/test-rbtree_oset.c: Likewise.
3583 * tests/test-rbtreehash_list.c: Likewise.
3584 * tests/test-readlink.c: Likewise.
3585 * tests/test-remove.c: Likewise.
3586 * tests/test-rename.c: Likewise.
3587 * tests/test-renameat.c: Likewise.
3588 * tests/test-rmdir.c: Likewise.
3589 * tests/test-round1.c: Likewise.
3590 * tests/test-roundf1.c: Likewise.
3591 * tests/test-roundl.c: Likewise.
3592 * tests/test-safe-alloc.c: Likewise.
3593 * tests/test-sameacls.c: Likewise.
3594 * tests/test-set-mode-acl.c: Likewise.
3595 * tests/test-setenv.c: Likewise.
3596 * tests/test-sigaction.c: Likewise.
3597 * tests/test-signbit.c: Likewise.
3598 * tests/test-sleep.c: Likewise.
3599 * tests/test-snprintf-posix.c: Likewise.
3600 * tests/test-snprintf.c: Likewise.
3601 * tests/test-sprintf-posix.c: Likewise.
3602 * tests/test-stat-time.c: Likewise.
3603 * tests/test-stat.c: Likewise.
3604 * tests/test-strcasestr.c: Likewise.
3605 * tests/test-strchrnul.c: Likewise.
3606 * tests/test-strerror.c: Likewise.
3607 * tests/test-striconv.c: Likewise.
3608 * tests/test-striconveh.c: Likewise.
3609 * tests/test-striconveha.c: Likewise.
3610 * tests/test-strsignal.c: Likewise.
3611 * tests/test-strstr.c: Likewise.
3612 * tests/test-strtod.c: Likewise.
3613 * tests/test-strverscmp.c: Likewise.
3614 * tests/test-symlink.c: Likewise.
3615 * tests/test-symlinkat.c: Likewise.
3616 * tests/test-trunc1.c: Likewise.
3617 * tests/test-trunc2.c: Likewise.
3618 * tests/test-truncf1.c: Likewise.
3619 * tests/test-truncf2.c: Likewise.
3620 * tests/test-truncl.c: Likewise.
3621 * tests/test-uname.c: Likewise.
3622 * tests/test-unlink.c: Likewise.
3623 * tests/test-unlinkat.c: Likewise.
3624 * tests/test-unsetenv.c: Likewise.
3625 * tests/test-usleep.c: Likewise.
3626 * tests/test-utimens.c: Likewise.
3627 * tests/test-utimensat.c: Likewise.
3628 * tests/test-vasnprintf-posix.c: Likewise.
3629 * tests/test-vasnprintf-posix2.c: Likewise.
3630 * tests/test-vasnprintf.c: Likewise.
3631 * tests/test-vasprintf-posix.c: Likewise.
3632 * tests/test-vasprintf.c: Likewise.
3633 * tests/test-vdprintf-posix.c: Likewise.
3634 * tests/test-vfprintf-posix.c: Likewise.
3635 * tests/test-vprintf-posix.c: Likewise.
3636 * tests/test-vsnprintf-posix.c: Likewise.
3637 * tests/test-vsnprintf.c: Likewise.
3638 * tests/test-vsprintf-posix.c: Likewise.
3639 * tests/test-wcrtomb.c: Likewise.
3640 * tests/test-wcsnrtombs.c: Likewise.
3641 * tests/test-wcsrtombs.c: Likewise.
3642 * tests/test-wctype.c: Likewise.
3643 * tests/test-wcwidth.c: Likewise.
3644 * tests/test-xfprintf-posix.c: Likewise.
3645 * tests/test-xmemdup0.c: Likewise.
3646 * tests/test-xprintf-posix.c: Likewise.
3647 * tests/test-xvasprintf.c: Likewise.
3648 * tests/unicase/test-locale-language.c: Likewise.
3649 * tests/unicase/test-mapping-part1.h: Likewise.
3650 * tests/unicase/test-predicate-part1.h: Likewise.
3651 * tests/unicase/test-u8-casecmp.c: Likewise.
3652 * tests/unicase/test-u8-casecoll.c: Likewise.
3653 * tests/unicase/test-u8-casefold.c: Likewise.
3654 * tests/unicase/test-u8-is-cased.c: Likewise.
3655 * tests/unicase/test-u8-is-casefolded.c: Likewise.
3656 * tests/unicase/test-u8-is-lowercase.c: Likewise.
3657 * tests/unicase/test-u8-is-titlecase.c: Likewise.
3658 * tests/unicase/test-u8-is-uppercase.c: Likewise.
3659 * tests/unicase/test-u8-tolower.c: Likewise.
3660 * tests/unicase/test-u8-totitle.c: Likewise.
3661 * tests/unicase/test-u8-toupper.c: Likewise.
3662 * tests/unicase/test-u16-casecmp.c: Likewise.
3663 * tests/unicase/test-u16-casecoll.c: Likewise.
3664 * tests/unicase/test-u16-casefold.c: Likewise.
3665 * tests/unicase/test-u16-is-cased.c: Likewise.
3666 * tests/unicase/test-u16-is-casefolded.c: Likewise.
3667 * tests/unicase/test-u16-is-lowercase.c: Likewise.
3668 * tests/unicase/test-u16-is-titlecase.c: Likewise.
3669 * tests/unicase/test-u16-is-uppercase.c: Likewise.
3670 * tests/unicase/test-u16-tolower.c: Likewise.
3671 * tests/unicase/test-u16-totitle.c: Likewise.
3672 * tests/unicase/test-u16-toupper.c: Likewise.
3673 * tests/unicase/test-u32-casecmp.c: Likewise.
3674 * tests/unicase/test-u32-casecoll.c: Likewise.
3675 * tests/unicase/test-u32-casefold.c: Likewise.
3676 * tests/unicase/test-u32-is-cased.c: Likewise.
3677 * tests/unicase/test-u32-is-casefolded.c: Likewise.
3678 * tests/unicase/test-u32-is-lowercase.c: Likewise.
3679 * tests/unicase/test-u32-is-titlecase.c: Likewise.
3680 * tests/unicase/test-u32-is-uppercase.c: Likewise.
3681 * tests/unicase/test-u32-tolower.c: Likewise.
3682 * tests/unicase/test-u32-totitle.c: Likewise.
3683 * tests/unicase/test-u32-toupper.c: Likewise.
3684 * tests/unicase/test-ulc-casecmp.c: Likewise.
3685 * tests/unicase/test-ulc-casecoll.c: Likewise.
3686 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3687 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3688 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3689 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3690 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3691 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3692 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3693 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3694 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3695 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3696 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3697 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3698 * tests/unictype/test-bidi_byname.c: Likewise.
3699 * tests/unictype/test-bidi_name.c: Likewise.
3700 * tests/unictype/test-bidi_of.c: Likewise.
3701 * tests/unictype/test-bidi_test.c: Likewise.
3702 * tests/unictype/test-block_list.c: Likewise.
3703 * tests/unictype/test-block_of.c: Likewise.
3704 * tests/unictype/test-block_test.c: Likewise.
3705 * tests/unictype/test-categ_and.c: Likewise.
3706 * tests/unictype/test-categ_and_not.c: Likewise.
3707 * tests/unictype/test-categ_byname.c: Likewise.
3708 * tests/unictype/test-categ_name.c: Likewise.
3709 * tests/unictype/test-categ_none.c: Likewise.
3710 * tests/unictype/test-categ_of.c: Likewise.
3711 * tests/unictype/test-categ_or.c: Likewise.
3712 * tests/unictype/test-categ_test_withtable.c: Likewise.
3713 * tests/unictype/test-combining.c: Likewise.
3714 * tests/unictype/test-decdigit.c: Likewise.
3715 * tests/unictype/test-digit.c: Likewise.
3716 * tests/unictype/test-mirror.c: Likewise.
3717 * tests/unictype/test-numeric.c: Likewise.
3718 * tests/unictype/test-pr_byname.c: Likewise.
3719 * tests/unictype/test-pr_test.c: Likewise.
3720 * tests/unictype/test-predicate-part1.h: Likewise.
3721 * tests/unictype/test-scripts.c: Likewise.
3722 * tests/unictype/test-sy_c_ident.c: Likewise.
3723 * tests/unictype/test-sy_java_ident.c: Likewise.
3724 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3725 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3726 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3727 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3728 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3729 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3730 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3731 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3732 * tests/uninorm/test-canonical-decomposition.c: Likewise.
3733 * tests/uninorm/test-compat-decomposition.c: Likewise.
3734 * tests/uninorm/test-composition.c: Likewise.
3735 * tests/uninorm/test-decomposing-form.c: Likewise.
3736 * tests/uninorm/test-decomposition.c: Likewise.
3737 * tests/uninorm/test-u8-nfc.c: Likewise.
3738 * tests/uninorm/test-u8-nfd.c: Likewise.
3739 * tests/uninorm/test-u8-nfkc.c: Likewise.
3740 * tests/uninorm/test-u8-nfkd.c: Likewise.
3741 * tests/uninorm/test-u8-normcmp.c: Likewise.
3742 * tests/uninorm/test-u8-normcoll.c: Likewise.
3743 * tests/uninorm/test-u16-nfc.c: Likewise.
3744 * tests/uninorm/test-u16-nfd.c: Likewise.
3745 * tests/uninorm/test-u16-nfkc.c: Likewise.
3746 * tests/uninorm/test-u16-nfkd.c: Likewise.
3747 * tests/uninorm/test-u16-normcmp.c: Likewise.
3748 * tests/uninorm/test-u16-normcoll.c: Likewise.
3749 * tests/uninorm/test-u32-nfc.c: Likewise.
3750 * tests/uninorm/test-u32-nfd.c: Likewise.
3751 * tests/uninorm/test-u32-nfkc.c: Likewise.
3752 * tests/uninorm/test-u32-nfkd.c: Likewise.
3753 * tests/uninorm/test-u32-normalize-big.c: Likewise.
3754 * tests/uninorm/test-u32-normcmp.c: Likewise.
3755 * tests/uninorm/test-u32-normcoll.c: Likewise.
3756 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3757 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3758 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3759 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3760 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3761 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3762 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3763 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3764 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3765 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3766 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3767 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3768 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3769 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3770 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3771 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3772 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3773 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3774 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3775 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3776 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3777 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3778 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3779 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3780 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3781 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3782 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3783 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3784 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3785 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3786 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3787 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3788 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3789 * tests/uniwidth/test-u8-strwidth.c: Likewise.
3790 * tests/uniwidth/test-u8-width.c: Likewise.
3791 * tests/uniwidth/test-u16-strwidth.c: Likewise.
3792 * tests/uniwidth/test-u16-width.c: Likewise.
3793 * tests/uniwidth/test-u32-strwidth.c: Likewise.
3794 * tests/uniwidth/test-u32-width.c: Likewise.
3795 * tests/uniwidth/test-uc_width.c: Likewise.
3796 * tests/uniwidth/test-uc_width2.c: Likewise.
3797 * modules/acl-tests (Files): Add tests/macros.h.
3798 * modules/areadlink-tests (Files): Likewise.
3799 * modules/areadlink-with-size-tests (Files): Likewise.
3800 * modules/areadlinkat-tests (Files): Likewise.
3801 * modules/areadlinkat-with-size-tests (Files): Likewise.
3802 * modules/argmatch-tests (Files): Likewise.
3803 * modules/argv-iter-tests (Files): Likewise.
3804 * modules/array-list-tests (Files): Likewise.
3805 * modules/array-mergesort-tests (Files): Likewise.
3806 * modules/array-oset-tests (Files): Likewise.
3807 * modules/avltree-list-tests (Files): Likewise.
3808 * modules/avltree-oset-tests (Files): Likewise.
3809 * modules/avltreehash-list-tests (Files): Likewise.
3810 * modules/base64-tests (Files): Likewise.
3811 * modules/binary-io-tests (Files): Likewise.
3812 * modules/bitrotate-tests (Files): Likewise.
3813 * modules/btowc-tests (Files): Likewise.
3814 * modules/byteswap-tests (Files): Likewise.
3815 * modules/c-ctype-tests (Files): Likewise.
3816 * modules/c-stack-tests (Files): Likewise.
3817 * modules/c-strcase-tests (Files): Likewise.
3818 * modules/c-strcasestr-tests (Files): Likewise.
3819 * modules/c-strstr-tests (Files): Likewise.
3820 * modules/canonicalize-lgpl-tests (Files): Likewise.
3821 * modules/canonicalize-tests (Files): Likewise.
3822 * modules/carray-list-tests (Files): Likewise.
3823 * modules/ceilf-tests (Files): Likewise.
3824 * modules/ceill-tests (Files): Likewise.
3825 * modules/chown-tests (Files): Likewise.
3826 * modules/cloexec-tests (Files): Likewise.
3827 * modules/copy-file-tests (Files): Likewise.
3828 * modules/count-one-bits-tests (Files): Likewise.
3829 * modules/dprintf-posix-tests (Files): Likewise.
3830 * modules/dup2-tests (Files): Likewise.
3831 * modules/dup3-tests (Files): Likewise.
3832 * modules/duplocale-tests (Files): Likewise.
3833 * modules/fbufmode-tests (Files): Likewise.
3834 * modules/fchdir-tests (Files): Likewise.
3835 * modules/fcntl-safer-tests (Files): Likewise.
3836 * modules/fcntl-tests (Files): Likewise.
3837 * modules/fdopendir-tests (Files): Likewise.
3838 * modules/fdutimensat-tests (Files): Likewise.
3839 * modules/fflush-tests (Files): Likewise.
3840 * modules/filevercmp-tests (Files): Likewise.
3841 * modules/flock-tests (Files): Likewise.
3842 * modules/floorf-tests (Files): Likewise.
3843 * modules/floorl-tests (Files): Likewise.
3844 * modules/fnmatch-tests (Files): Likewise.
3845 * modules/fopen-safer-tests (Files): Likewise.
3846 * modules/fopen-tests (Files): Likewise.
3847 * modules/fpending-tests (Files): Likewise.
3848 * modules/fprintf-posix-tests (Files): Likewise.
3849 * modules/fpurge-tests (Files): Likewise.
3850 * modules/freadable-tests (Files): Likewise.
3851 * modules/freadahead-tests (Files): Likewise.
3852 * modules/freading-tests (Files): Likewise.
3853 * modules/freadptr-tests (Files): Likewise.
3854 * modules/freadseek-tests (Files): Likewise.
3855 * modules/freopen-tests (Files): Likewise.
3856 * modules/frexp-nolibm-tests (Files): Likewise.
3857 * modules/frexp-tests (Files): Likewise.
3858 * modules/frexpl-nolibm-tests (Files): Likewise.
3859 * modules/frexpl-tests (Files): Likewise.
3860 * modules/fseek-tests (Files): Likewise.
3861 * modules/fseeko-tests (Files): Likewise.
3862 * modules/fstrcmp-tests (Files): Likewise.
3863 * modules/fsync-tests (Files): Likewise.
3864 * modules/ftell-tests (Files): Likewise.
3865 * modules/ftello-tests (Files): Likewise.
3866 * modules/func-tests (Files): Likewise.
3867 * modules/futimens-tests (Files): Likewise.
3868 * modules/fwritable-tests (Files): Likewise.
3869 * modules/fwriting-tests (Files): Likewise.
3870 * modules/getcwd-tests (Files): Likewise.
3871 * modules/getdate-tests (Files): Likewise.
3872 * modules/getdelim-tests (Files): Likewise.
3873 * modules/getdtablesize-tests (Files): Likewise.
3874 * modules/getgroups-tests (Files): Likewise.
3875 * modules/getline-tests (Files): Likewise.
3876 * modules/getndelim2-tests (Files): Likewise.
3877 * modules/glob-tests (Files): Likewise.
3878 * modules/hash-tests (Files): Likewise.
3879 * modules/i-ring-tests (Files): Likewise.
3880 * modules/iconv-tests (Files): Likewise.
3881 * modules/iconv_open-utf-tests (Files): Likewise.
3882 * modules/idpriv-drop-tests (Files): Likewise.
3883 * modules/idpriv-droptemp-tests (Files): Likewise.
3884 * modules/inet_ntop-tests (Files): Likewise.
3885 * modules/inet_pton-tests (Files): Likewise.
3886 * modules/isblank-tests (Files): Likewise.
3887 * modules/isfinite-tests (Files): Likewise.
3888 * modules/isinf-tests (Files): Likewise.
3889 * modules/isnan-tests (Files): Likewise.
3890 * modules/isnand-nolibm-tests (Files): Likewise.
3891 * modules/isnand-tests (Files): Likewise.
3892 * modules/isnanf-nolibm-tests (Files): Likewise.
3893 * modules/isnanf-tests (Files): Likewise.
3894 * modules/isnanl-nolibm-tests (Files): Likewise.
3895 * modules/isnanl-tests (Files): Likewise.
3896 * modules/lchown-tests (Files): Likewise.
3897 * modules/ldexpl-tests (Files): Likewise.
3898 * modules/link-tests (Files): Likewise.
3899 * modules/linkat-tests (Files): Likewise.
3900 * modules/linked-list-tests (Files): Likewise.
3901 * modules/linkedhash-list-tests (Files): Likewise.
3902 * modules/localename-tests (Files): Likewise.
3903 * modules/lseek-tests (Files): Likewise.
3904 * modules/lstat-tests (Files): Likewise.
3905 * modules/mbmemcasecmp-tests (Files): Likewise.
3906 * modules/mbmemcasecoll-tests (Files): Likewise.
3907 * modules/mbrtowc-tests (Files): Likewise.
3908 * modules/mbscasecmp-tests (Files): Likewise.
3909 * modules/mbscasestr-tests (Files): Likewise.
3910 * modules/mbschr-tests (Files): Likewise.
3911 * modules/mbscspn-tests (Files): Likewise.
3912 * modules/mbsinit-tests (Files): Likewise.
3913 * modules/mbsncasecmp-tests (Files): Likewise.
3914 * modules/mbsnrtowcs-tests (Files): Likewise.
3915 * modules/mbspbrk-tests (Files): Likewise.
3916 * modules/mbspcasecmp-tests (Files): Likewise.
3917 * modules/mbsrchr-tests (Files): Likewise.
3918 * modules/mbsrtowcs-tests (Files): Likewise.
3919 * modules/mbsspn-tests (Files): Likewise.
3920 * modules/mbsstr-tests (Files): Likewise.
3921 * modules/memchr-tests (Files): Likewise.
3922 * modules/memchr2-tests (Files): Likewise.
3923 * modules/memcmp-tests (Files): Likewise.
3924 * modules/memmem-tests (Files): Likewise.
3925 * modules/memrchr-tests (Files): Likewise.
3926 * modules/mkdir-tests (Files): Likewise.
3927 * modules/mkfifo-tests (Files): Likewise.
3928 * modules/mkfifoat-tests (Files): Likewise.
3929 * modules/mknod-tests (Files): Likewise.
3930 * modules/nanosleep-tests (Files): Likewise.
3931 * modules/nl_langinfo-tests (Files): Likewise.
3932 * modules/obstack-printf-tests (Files): Likewise.
3933 * modules/open-tests (Files): Likewise.
3934 * modules/openat-tests (Files): Likewise.
3935 * modules/pipe-filter-gi-tests (Files): Likewise.
3936 * modules/pipe-filter-ii-tests (Files): Likewise.
3937 * modules/pipe2-tests (Files): Likewise.
3938 * modules/popen-safer-tests (Files): Likewise.
3939 * modules/popen-tests (Files): Likewise.
3940 * modules/posixtm-tests (Files): Likewise.
3941 * modules/pread-tests (Files): Likewise.
3942 * modules/printf-frexp-tests (Files): Likewise.
3943 * modules/printf-frexpl-tests (Files): Likewise.
3944 * modules/printf-posix-tests (Files): Likewise.
3945 * modules/priv-set-tests (Files): Likewise.
3946 * modules/quotearg-tests (Files): Likewise.
3947 * modules/random_r-tests (Files): Likewise.
3948 * modules/rawmemchr-tests (Files): Likewise.
3949 * modules/rbtree-list-tests (Files): Likewise.
3950 * modules/rbtree-oset-tests (Files): Likewise.
3951 * modules/rbtreehash-list-tests (Files): Likewise.
3952 * modules/readlink-tests (Files): Likewise.
3953 * modules/remove-tests (Files): Likewise.
3954 * modules/rename-tests (Files): Likewise.
3955 * modules/renameat-tests (Files): Likewise.
3956 * modules/rmdir-tests (Files): Likewise.
3957 * modules/round-tests (Files): Likewise.
3958 * modules/roundf-tests (Files): Likewise.
3959 * modules/roundl-tests (Files): Likewise.
3960 * modules/safe-alloc-tests (Files): Likewise.
3961 * modules/setenv-tests (Files): Likewise.
3962 * modules/sigaction-tests (Files): Likewise.
3963 * modules/signbit-tests (Files): Likewise.
3964 * modules/sleep-tests (Files): Likewise.
3965 * modules/snprintf-posix-tests (Files): Likewise.
3966 * modules/snprintf-tests (Files): Likewise.
3967 * modules/sprintf-posix-tests (Files): Likewise.
3968 * modules/stat-tests (Files): Likewise.
3969 * modules/stat-time-tests (Files): Likewise.
3970 * modules/strcasestr-tests (Files): Likewise.
3971 * modules/strchrnul-tests (Files): Likewise.
3972 * modules/strerror-tests (Files): Likewise.
3973 * modules/striconv-tests (Files): Likewise.
3974 * modules/striconveh-tests (Files): Likewise.
3975 * modules/striconveha-tests (Files): Likewise.
3976 * modules/strsignal-tests (Files): Likewise.
3977 * modules/strstr-tests (Files): Likewise.
3978 * modules/strtod-tests (Files): Likewise.
3979 * modules/strverscmp-tests (Files): Likewise.
3980 * modules/symlink-tests (Files): Likewise.
3981 * modules/symlinkat-tests (Files): Likewise.
3982 * modules/trunc-tests (Files): Likewise.
3983 * modules/truncf-tests (Files): Likewise.
3984 * modules/truncl-tests (Files): Likewise.
3985 * modules/uname-tests (Files): Likewise.
3986 * modules/unicase/cased-tests (Files): Likewise.
3987 * modules/unicase/ignorable-tests (Files): Likewise.
3988 * modules/unicase/locale-language-tests (Files): Likewise.
3989 * modules/unicase/tolower-tests (Files): Likewise.
3990 * modules/unicase/totitle-tests (Files): Likewise.
3991 * modules/unicase/toupper-tests (Files): Likewise.
3992 * modules/unicase/u8-casecmp-tests (Files): Likewise.
3993 * modules/unicase/u8-casecoll-tests (Files): Likewise.
3994 * modules/unicase/u8-casefold-tests (Files): Likewise.
3995 * modules/unicase/u8-is-cased-tests (Files): Likewise.
3996 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3997 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3998 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3999 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4000 * modules/unicase/u8-tolower-tests (Files): Likewise.
4001 * modules/unicase/u8-totitle-tests (Files): Likewise.
4002 * modules/unicase/u8-toupper-tests (Files): Likewise.
4003 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4004 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4005 * modules/unicase/u16-casefold-tests (Files): Likewise.
4006 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4007 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4008 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4009 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4010 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4011 * modules/unicase/u16-tolower-tests (Files): Likewise.
4012 * modules/unicase/u16-totitle-tests (Files): Likewise.
4013 * modules/unicase/u16-toupper-tests (Files): Likewise.
4014 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4015 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4016 * modules/unicase/u32-casefold-tests (Files): Likewise.
4017 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4018 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4019 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4020 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4021 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4022 * modules/unicase/u32-tolower-tests (Files): Likewise.
4023 * modules/unicase/u32-totitle-tests (Files): Likewise.
4024 * modules/unicase/u32-toupper-tests (Files): Likewise.
4025 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4026 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4027 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4028 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4029 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4030 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4031 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4032 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4033 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4034 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4035 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4036 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4037 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4038 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4039 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4040 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4041 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4042 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4043 * modules/unictype/block-list-tests (Files): Likewise.
4044 * modules/unictype/block-of-tests (Files): Likewise.
4045 * modules/unictype/block-test-tests (Files): Likewise.
4046 * modules/unictype/category-C-tests (Files): Likewise.
4047 * modules/unictype/category-Cc-tests (Files): Likewise.
4048 * modules/unictype/category-Cf-tests (Files): Likewise.
4049 * modules/unictype/category-Cn-tests (Files): Likewise.
4050 * modules/unictype/category-Co-tests (Files): Likewise.
4051 * modules/unictype/category-Cs-tests (Files): Likewise.
4052 * modules/unictype/category-L-tests (Files): Likewise.
4053 * modules/unictype/category-Ll-tests (Files): Likewise.
4054 * modules/unictype/category-Lm-tests (Files): Likewise.
4055 * modules/unictype/category-Lo-tests (Files): Likewise.
4056 * modules/unictype/category-Lt-tests (Files): Likewise.
4057 * modules/unictype/category-Lu-tests (Files): Likewise.
4058 * modules/unictype/category-M-tests (Files): Likewise.
4059 * modules/unictype/category-Mc-tests (Files): Likewise.
4060 * modules/unictype/category-Me-tests (Files): Likewise.
4061 * modules/unictype/category-Mn-tests (Files): Likewise.
4062 * modules/unictype/category-N-tests (Files): Likewise.
4063 * modules/unictype/category-Nd-tests (Files): Likewise.
4064 * modules/unictype/category-Nl-tests (Files): Likewise.
4065 * modules/unictype/category-No-tests (Files): Likewise.
4066 * modules/unictype/category-P-tests (Files): Likewise.
4067 * modules/unictype/category-Pc-tests (Files): Likewise.
4068 * modules/unictype/category-Pd-tests (Files): Likewise.
4069 * modules/unictype/category-Pe-tests (Files): Likewise.
4070 * modules/unictype/category-Pf-tests (Files): Likewise.
4071 * modules/unictype/category-Pi-tests (Files): Likewise.
4072 * modules/unictype/category-Po-tests (Files): Likewise.
4073 * modules/unictype/category-Ps-tests (Files): Likewise.
4074 * modules/unictype/category-S-tests (Files): Likewise.
4075 * modules/unictype/category-Sc-tests (Files): Likewise.
4076 * modules/unictype/category-Sk-tests (Files): Likewise.
4077 * modules/unictype/category-Sm-tests (Files): Likewise.
4078 * modules/unictype/category-So-tests (Files): Likewise.
4079 * modules/unictype/category-Z-tests (Files): Likewise.
4080 * modules/unictype/category-Zl-tests (Files): Likewise.
4081 * modules/unictype/category-Zp-tests (Files): Likewise.
4082 * modules/unictype/category-Zs-tests (Files): Likewise.
4083 * modules/unictype/category-and-not-tests (Files): Likewise.
4084 * modules/unictype/category-and-tests (Files): Likewise.
4085 * modules/unictype/category-byname-tests (Files): Likewise.
4086 * modules/unictype/category-name-tests (Files): Likewise.
4087 * modules/unictype/category-none-tests (Files): Likewise.
4088 * modules/unictype/category-of-tests (Files): Likewise.
4089 * modules/unictype/category-or-tests (Files): Likewise.
4090 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4091 * modules/unictype/combining-class-tests (Files): Likewise.
4092 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4093 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4094 * modules/unictype/ctype-blank-tests (Files): Likewise.
4095 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4096 * modules/unictype/ctype-digit-tests (Files): Likewise.
4097 * modules/unictype/ctype-graph-tests (Files): Likewise.
4098 * modules/unictype/ctype-lower-tests (Files): Likewise.
4099 * modules/unictype/ctype-print-tests (Files): Likewise.
4100 * modules/unictype/ctype-punct-tests (Files): Likewise.
4101 * modules/unictype/ctype-space-tests (Files): Likewise.
4102 * modules/unictype/ctype-upper-tests (Files): Likewise.
4103 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4104 * modules/unictype/decimal-digit-tests (Files): Likewise.
4105 * modules/unictype/digit-tests (Files): Likewise.
4106 * modules/unictype/mirror-tests (Files): Likewise.
4107 * modules/unictype/numeric-tests (Files): Likewise.
4108 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4109 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4110 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4111 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4113 * modules/unictype/property-bidi-block-separator-tests (Files):
4115 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4117 * modules/unictype/property-bidi-common-separator-tests (Files):
4119 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4120 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4122 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4124 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4126 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4127 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4129 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4130 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4132 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4133 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4134 * modules/unictype/property-bidi-segment-separator-tests (Files):
4136 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4137 * modules/unictype/property-byname-tests (Files): Likewise.
4138 * modules/unictype/property-combining-tests (Files): Likewise.
4139 * modules/unictype/property-composite-tests (Files): Likewise.
4140 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4141 * modules/unictype/property-dash-tests (Files): Likewise.
4142 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4143 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4145 * modules/unictype/property-deprecated-tests (Files): Likewise.
4146 * modules/unictype/property-diacritic-tests (Files): Likewise.
4147 * modules/unictype/property-extender-tests (Files): Likewise.
4148 * modules/unictype/property-format-control-tests (Files): Likewise.
4149 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4150 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4151 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4152 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4153 * modules/unictype/property-hyphen-tests (Files): Likewise.
4154 * modules/unictype/property-id-continue-tests (Files): Likewise.
4155 * modules/unictype/property-id-start-tests (Files): Likewise.
4156 * modules/unictype/property-ideographic-tests (Files): Likewise.
4157 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4158 * modules/unictype/property-ids-trinary-operator-tests (Files):
4160 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4161 * modules/unictype/property-iso-control-tests (Files): Likewise.
4162 * modules/unictype/property-join-control-tests (Files): Likewise.
4163 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4164 * modules/unictype/property-line-separator-tests (Files): Likewise.
4165 * modules/unictype/property-logical-order-exception-tests (Files):
4167 * modules/unictype/property-lowercase-tests (Files): Likewise.
4168 * modules/unictype/property-math-tests (Files): Likewise.
4169 * modules/unictype/property-non-break-tests (Files): Likewise.
4170 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4171 * modules/unictype/property-numeric-tests (Files): Likewise.
4172 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4173 * modules/unictype/property-other-default-ignorable-code-point-tests
4175 * modules/unictype/property-other-grapheme-extend-tests (Files):
4177 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4178 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4179 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4180 * modules/unictype/property-other-math-tests (Files): Likewise.
4181 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4182 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4183 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4184 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4185 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4186 * modules/unictype/property-private-use-tests (Files): Likewise.
4187 * modules/unictype/property-punctuation-tests (Files): Likewise.
4188 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4189 * modules/unictype/property-radical-tests (Files): Likewise.
4190 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4191 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4192 * modules/unictype/property-space-tests (Files): Likewise.
4193 * modules/unictype/property-terminal-punctuation-tests (Files):
4195 * modules/unictype/property-test-tests (Files): Likewise.
4196 * modules/unictype/property-titlecase-tests (Files): Likewise.
4197 * modules/unictype/property-unassigned-code-value-tests (Files):
4199 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4200 * modules/unictype/property-uppercase-tests (Files): Likewise.
4201 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4202 * modules/unictype/property-white-space-tests (Files): Likewise.
4203 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4204 * modules/unictype/property-xid-start-tests (Files): Likewise.
4205 * modules/unictype/property-zero-width-tests (Files): Likewise.
4206 * modules/unictype/scripts-tests (Files): Likewise.
4207 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4208 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4209 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4210 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4211 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4212 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4213 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4214 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4215 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4216 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4217 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4218 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4219 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4220 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4221 * modules/uninorm/composition-tests (Files): Likewise.
4222 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4223 * modules/uninorm/decomposition-tests (Files): Likewise.
4224 * modules/uninorm/filter-tests (Files): Likewise.
4225 * modules/uninorm/nfc-tests (Files): Likewise.
4226 * modules/uninorm/nfd-tests (Files): Likewise.
4227 * modules/uninorm/nfkc-tests (Files): Likewise.
4228 * modules/uninorm/nfkd-tests (Files): Likewise.
4229 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4230 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4231 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4232 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4233 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4234 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4235 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4236 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4237 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4238 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4239 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4240 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4241 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4242 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4243 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4244 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4245 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4246 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4247 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4248 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4249 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4250 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4251 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4252 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4253 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4254 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4255 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4256 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4257 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4258 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4259 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4260 * modules/uniwidth/u8-width-tests (Files): Likewise.
4261 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4262 * modules/uniwidth/u16-width-tests (Files): Likewise.
4263 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4264 * modules/uniwidth/u32-width-tests (Files): Likewise.
4265 * modules/uniwidth/width-tests (Files): Likewise.
4266 * modules/unlink-tests (Files): Likewise.
4267 * modules/unsetenv-tests (Files): Likewise.
4268 * modules/usleep-tests (Files): Likewise.
4269 * modules/utimens-tests (Files): Likewise.
4270 * modules/utimensat-tests (Files): Likewise.
4271 * modules/vasnprintf-posix-tests (Files): Likewise.
4272 * modules/vasnprintf-tests (Files): Likewise.
4273 * modules/vasprintf-posix-tests (Files): Likewise.
4274 * modules/vasprintf-tests (Files): Likewise.
4275 * modules/vdprintf-posix-tests (Files): Likewise.
4276 * modules/vfprintf-posix-tests (Files): Likewise.
4277 * modules/vprintf-posix-tests (Files): Likewise.
4278 * modules/vsnprintf-posix-tests (Files): Likewise.
4279 * modules/vsnprintf-tests (Files): Likewise.
4280 * modules/vsprintf-posix-tests (Files): Likewise.
4281 * modules/wcrtomb-tests (Files): Likewise.
4282 * modules/wcsnrtombs-tests (Files): Likewise.
4283 * modules/wcsrtombs-tests (Files): Likewise.
4284 * modules/wctype-tests (Files): Likewise.
4285 * modules/wcwidth-tests (Files): Likewise.
4286 * modules/xmemdup0-tests (Files): Likewise.
4287 * modules/xprintf-posix-tests (Files): Likewise.
4288 * modules/xvasprintf-tests (Files): Likewise.
4290 2009-12-24 Eric Blake <ebb9@byu.net>
4292 test-nanosleep: fix typo
4293 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4295 Reported by Bruno Haible.
4297 2009-12-24 Bruno Haible <bruno@clisp.org>
4299 Reduce namespace pollution on glibc systems.
4300 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4301 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4303 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4304 <getopt.h> on glibc systems.
4305 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4307 * lib/fcntl.c: Include <unistd.h> here instead.
4309 2009-12-24 Bruno Haible <bruno@clisp.org>
4311 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4313 2009-12-24 Eric Blake <ebb9@byu.net>
4315 tests: add signature checks
4316 * tests/signature.h (SIGNATURE_CHECK): New file.
4317 * modules/atexit-tests (Files): Use it.
4318 * modules/btowc-tests (Files): Likewise.
4319 * modules/canonicalize-lgpl-tests (Files): Likewise.
4320 * modules/ceilf-tests (Files): Likewise.
4321 * modules/ceill-tests (Files): Likewise.
4322 * modules/chown-tests (Files): Likewise.
4323 * modules/dprintf-posix-tests (Files): Likewise.
4324 * modules/dup2-tests (Files): Likewise.
4325 * modules/dup3-tests (Files): Likewise.
4326 * modules/duplocale-tests (Files): Likewise.
4327 * modules/fchdir-tests (Files): Likewise.
4328 * modules/fcntl-tests (Files): Likewise.
4329 * modules/fdopendir-tests (Files): Likewise.
4330 * modules/fflush-tests (Files): Likewise.
4331 * modules/flock-tests (Files): Likewise.
4332 * modules/floorf-tests (Files): Likewise.
4333 * modules/floorl-tests (Files): Likewise.
4334 * modules/fnmatch-tests (Files): Likewise.
4335 * modules/fopen-tests (Files): Likewise.
4336 * modules/fprintf-posix-tests (Files): Likewise.
4337 * modules/freopen-tests (Files): Likewise.
4338 * modules/frexp-nolibm-tests (Files): Likewise.
4339 * modules/frexp-tests (Files): Likewise.
4340 * modules/frexpl-nolibm-tests (Files): Likewise.
4341 * modules/frexpl-tests (Files): Likewise.
4342 * modules/fseek-tests (Files): Likewise.
4343 * modules/fseeko-tests (Files): Likewise.
4344 * modules/fsync-tests (Files): Likewise.
4345 * modules/ftell-tests (Files): Likewise.
4346 * modules/ftello-tests (Files): Likewise.
4347 * modules/futimens-tests (Files): Likewise.
4348 * modules/getaddrinfo-tests (Files): Likewise.
4349 * modules/getcwd-tests (Files): Likewise.
4350 * modules/getdelim-tests (Files): Likewise.
4351 * modules/getdtablesize-tests (Files): Likewise.
4352 * modules/getgroups-tests (Files): Likewise.
4353 * modules/gethostname-tests (Files): Likewise.
4354 * modules/getline-tests (Files): Likewise.
4355 * modules/getopt-posix-tests (Files): Likewise.
4356 * modules/gettimeofday-tests (Files): Likewise.
4357 * modules/glob-tests (Files): Likewise.
4358 * modules/iconv-tests (Files): Likewise.
4359 * modules/inet_ntop-tests (Files): Likewise.
4360 * modules/inet_pton-tests (Files): Likewise.
4361 * modules/isblank-tests (Files): Likewise.
4362 * modules/lchown-tests (Files): Likewise.
4363 * modules/ldexpl-tests (Files): Likewise.
4364 * modules/link-tests (Files): Likewise.
4365 * modules/linkat-tests (Files): Likewise.
4366 * modules/lseek-tests (Files): Likewise.
4367 * modules/lstat-tests (Files): Likewise.
4368 * modules/mbrtowc-tests (Files): Likewise.
4369 * modules/mbsinit-tests (Files): Likewise.
4370 * modules/mbsnrtowcs-tests (Files): Likewise.
4371 * modules/mbsrtowcs-tests (Files): Likewise.
4372 * modules/memchr-tests (Files): Likewise.
4373 * modules/memcmp-tests (Files): Likewise.
4374 * modules/memmem-tests (Files): Likewise.
4375 * modules/memrchr-tests (Files): Likewise.
4376 * modules/mkdir-tests (Files): Likewise.
4377 * modules/mkfifo-tests (Files): Likewise.
4378 * modules/mkfifoat-tests (Files): Likewise.
4379 * modules/mknod-tests (Files): Likewise.
4380 * modules/nanosleep-tests (Files): Likewise.
4381 * modules/nl_langinfo-tests (Files): Likewise.
4382 * modules/obstack-printf-tests (Files): Likewise.
4383 * modules/open-tests (Files): Likewise.
4384 * modules/openat-tests (Files): Likewise.
4385 * modules/perror-tests (Files): Likewise.
4386 * modules/pipe2-tests (Files): Likewise.
4387 * modules/poll-tests (Files): Likewise.
4388 * modules/popen-tests (Files): Likewise.
4389 * modules/posix_spawn-tests (Files): Likewise.
4390 * modules/posix_spawnp-tests (Files): Likewise.
4391 * modules/pread-tests (Files): Likewise.
4392 * modules/printf-posix-tests (Files): Likewise.
4393 * modules/pty-tests (Files): Likewise.
4394 * modules/random_r-tests (Files): Likewise.
4395 * modules/rawmemchr-tests (Files): Likewise.
4396 * modules/readlink-tests (Files): Likewise.
4397 * modules/remove-tests (Files): Likewise.
4398 * modules/rename-tests (Files): Likewise.
4399 * modules/renameat-tests (Files): Likewise.
4400 * modules/rmdir-tests (Files): Likewise.
4401 * modules/round-tests (Files): Likewise.
4402 * modules/roundf-tests (Files): Likewise.
4403 * modules/roundl-tests (Files): Likewise.
4404 * modules/select-tests (Files): Likewise.
4405 * modules/setenv-tests (Files): Likewise.
4406 * modules/sigaction-tests (Files): Likewise.
4407 * modules/sleep-tests (Files): Likewise.
4408 * modules/snprintf-posix-tests (Files): Likewise.
4409 * modules/snprintf-tests (Files): Likewise.
4410 * modules/sprintf-posix-tests (Files): Likewise.
4411 * modules/stat-tests (Files): Likewise.
4412 * modules/strcasestr-tests (Files): Likewise.
4413 * modules/strchrnul-tests (Files): Likewise.
4414 * modules/strerror-tests (Files): Likewise.
4415 * modules/strsignal-tests (Files): Likewise.
4416 * modules/strstr-tests (Files): Likewise.
4417 * modules/strtod-tests (Files): Likewise.
4418 * modules/strverscmp-tests (Files): Likewise.
4419 * modules/symlink-tests (Files): Likewise.
4420 * modules/symlinkat-tests (Files): Likewise.
4421 * modules/times-tests (Files): Likewise.
4422 * modules/trunc-tests (Files): Likewise.
4423 * modules/truncf-tests (Files): Likewise.
4424 * modules/truncl-tests (Files): Likewise.
4425 * modules/tsearch-tests (Files): Likewise.
4426 * modules/uname-tests (Files): Likewise.
4427 * modules/unlink-tests (Files): Likewise.
4428 * modules/unsetenv-tests (Files): Likewise.
4429 * modules/usleep-tests (Files): Likewise.
4430 * modules/utimensat-tests (Files): Likewise.
4431 * modules/vasprintf-tests (Files): Likewise.
4432 * modules/vdprintf-posix-tests (Files): Likewise.
4433 * modules/vfprintf-posix-tests (Files): Likewise.
4434 * modules/vprintf-posix-tests (Files): Likewise.
4435 * modules/vsnprintf-posix-tests (Files): Likewise.
4436 * modules/vsnprintf-tests (Files): Likewise.
4437 * modules/vsprintf-posix-tests (Files): Likewise.
4438 * modules/wcrtomb-tests (Files): Likewise.
4439 * modules/wcsnrtombs-tests (Files): Likewise.
4440 * modules/wcsrtombs-tests (Files): Likewise.
4441 * modules/wcwidth-tests (Files): Likewise.
4442 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4443 * tests/test-isinf.c (isinf): Likewise.
4444 * tests/test-isnan.c (isnan): Likewise.
4445 * tests/test-signbit.c (signbit): Likewise.
4446 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4447 declaration, either as macro or with correct signature.
4448 (select): Ensure function under test is declared with correct
4449 signature in correct header.
4450 * tests/test-atexit.c (atexit): Likewise.
4451 * tests/test-btowc.c (btowc): Likewise.
4452 * tests/test-canonicalize-lgpl.c (realpath)
4453 (canonicalize_file_name): Likewise.
4454 * tests/test-ceilf1.c (ceilf): Likewise.
4455 * tests/test-ceill.c (ceill): Likewise.
4456 * tests/test-chown.c (chown): Likewise.
4457 * tests/test-dprintf-posix.c (dprintf): Likewise.
4458 * tests/test-dup2.c (dup2): Likewise.
4459 * tests/test-dup3.c (dup3): Likewise.
4460 * tests/test-duplocale.c (duplocale): Likewise.
4461 * tests/test-fchdir.c (fchdir): Likewise.
4462 * tests/test-fchownat.c (fchownat): Likewise.
4463 * tests/test-fcntl.c (fcntl): Likewise.
4464 * tests/test-fdopendir.c (fdopendir): Likewise.
4465 * tests/test-fflush.c (fflush): Likewise.
4466 * tests/test-flock.c (flock): Likewise.
4467 * tests/test-floorf1.c (floorf): Likewise.
4468 * tests/test-floorl.c (floorl): Likewise.
4469 * tests/test-fnmatch.c (fnmatch): Likewise.
4470 * tests/test-fopen.c (fopen): Likewise.
4471 * tests/test-fprintf-posix.c (fprintf): Likewise.
4472 * tests/test-freopen.c (freopen): Likewise.
4473 * tests/test-frexp.c (frexp): Likewise.
4474 * tests/test-frexpl.c (frexpl): Likewise.
4475 * tests/test-fseek.c (fseek): Likewise.
4476 * tests/test-fseeko.c (fseeko): Likewise.
4477 * tests/test-fstatat.c (fstatat): Likewise.
4478 * tests/test-fsync.c (fsync): Likewise.
4479 * tests/test-ftell.c (ftell): Likewise.
4480 * tests/test-ftello.c (ftello): Likewise.
4481 * tests/test-futimens.c (futimens): Likewise.
4482 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4483 (gai_strerror): Likewise.
4484 * tests/test-getcwd.c (getcwd): Likewise.
4485 * tests/test-getdelim.c (getdelim): Likewise.
4486 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4487 * tests/test-getgroups.c (getgroups): Likewise.
4488 * tests/test-gethostname.c (gethostname): Likewise.
4489 * tests/test-getline.c (getline): Likewise.
4490 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4492 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4493 * tests/test-glob.c (glob, globfree): Likewise.
4494 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4495 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4496 * tests/test-inet_pton.c (inet_pton): Likewise.
4497 * tests/test-isblank.c (isblank): Likewise.
4498 * tests/test-lchown.c (lchown): Likewise.
4499 * tests/test-ldexpl.c (ldexpl): Likewise.
4500 * tests/test-link.c (link): Likewise.
4501 * tests/test-linkat.c (linkat): Likewise.
4502 * tests/test-lseek.c (lseek): Likewise.
4503 * tests/test-lstat.c (lstat): Likewise.
4504 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4505 * tests/test-mbsinit.c (mbsinit): Likewise.
4506 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4507 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4508 * tests/test-memchr.c (memchr): Likewise.
4509 * tests/test-memcmp.c (memcmp): Likewise.
4510 * tests/test-memmem.c (memmem): Likewise.
4511 * tests/test-memrchr.c (memrchr): Likewise.
4512 * tests/test-mkdir.c (mkdir): Likewise.
4513 * tests/test-mkdirat.c (mkdirat): Likewise.
4514 * tests/test-mkfifo.c (mkfifo): Likewise.
4515 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4516 * tests/test-mknod.c (mknod): Likewise.
4517 * tests/test-nanosleep.c (nanosleep): Likewise.
4518 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4519 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4521 * tests/test-open.c (open): Likewise.
4522 * tests/test-openat.c (openat): Likewise.
4523 * tests/test-perror.c (perror): Likewise.
4524 * tests/test-pipe2.c (pipe2): Likewise.
4525 * tests/test-poll.c (poll): Likewise.
4526 * tests/test-popen.c (popen, pclose): Likewise.
4527 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4528 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4529 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4530 (posix_spawn_file_actions_destroy)
4531 (posix_spawn_file_actions_addclose)
4532 (posix_spawn_file_actions_addopen)
4533 (posix_spawn_file_actions_adddup2): Likewise.
4534 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4535 * tests/test-pread.c (pread): Likewise.
4536 * tests/test-printf-posix.c (printf): Likewise.
4537 * tests/test-pty.c (openpty, forkpty): Likewise.
4538 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4539 (random_r): Likewise.
4540 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4541 * tests/test-readlink.c (readlink): Likewise.
4542 * tests/test-remove.c (remove): Likewise.
4543 * tests/test-rename.c (rename): Likewise.
4544 * tests/test-renameat.c (renameat): Likewise.
4545 * tests/test-rmdir.c (rmdir): Likewise.
4546 * tests/test-round1.c (round): Likewise.
4547 * tests/test-roundf1.c (roundf): Likewise.
4548 * tests/test-roundl.c (roundl): Likewise.
4549 * tests/test-setenv.c (setenv): Likewise.
4550 * tests/test-sigaction.c (sigaction): Likewise.
4551 * tests/test-sleep.c (sleep): Likewise.
4552 * tests/test-snprintf.c (snprintf): Likewise.
4553 * tests/test-sprintf-posix.c (sprintf): Likewise.
4554 * tests/test-stat.c (stat): Likewise.
4555 * tests/test-stpncpy.c (stpncpy): Likewise.
4556 * tests/test-strcasestr.c (strcasestr): Likewise.
4557 * tests/test-strchrnul.c (strchrnul): Likewise.
4558 * tests/test-strerror.c (strerror): Likewise.
4559 * tests/test-strsignal.c (strsignal): Likewise.
4560 * tests/test-strstr.c (strstr): Likewise.
4561 * tests/test-strtod.c (strtod): Likewise.
4562 * tests/test-strverscmp.c (strverscmp): Likewise.
4563 * tests/test-symlink.c (symlink): Likewise.
4564 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4565 * tests/test-times.c (times): Likewise.
4566 * tests/test-trunc1.c (trunc): Likewise.
4567 * tests/test-truncf1.c (truncf): Likewise.
4568 * tests/test-truncl.c (truncl): Likewise.
4569 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4571 * tests/test-uname.c (uname): Likewise.
4572 * tests/test-unlink.c (unlink): Likewise.
4573 * tests/test-unlinkat.c (unlinkat): Likewise.
4574 * tests/test-unsetenv.c (unsetenv): Likewise.
4575 * tests/test-usleep.c (usleep): Likewise.
4576 * tests/test-utimensat.c (utimensat): Likewise.
4577 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4578 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4579 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4580 * tests/test-vprintf-posix.c (vprintf): Likewise.
4581 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4582 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4583 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4584 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4585 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4586 * tests/test-wcwidth.c (wcwidth): Likewise.
4588 build: pull in conditional headers during GNULIB_POSIXCHECK
4589 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4590 definitions from any conditionally-included headers.
4591 * lib/stdlib.in.h (includes): Likewise.
4592 * lib/unistd.in.h (includes): Likewise.
4594 2009-12-24 Bruno Haible <bruno@clisp.org>
4596 * tests/test-argv-iter.c: Include header file being tested immediately
4598 * tests/test-base64.c: Likewise.
4599 * tests/test-flock.c: Likewise.
4600 * tests/test-fsync.c: Likewise.
4601 * tests/test-getdate.c: Likewise.
4602 * tests/test-getndelim2.c: Likewise.
4603 * tests/test-isfinite.c: Likewise.
4604 * tests/test-isinf.c: Likewise.
4605 * tests/test-strerror.c: Likewise.
4606 * tests/test-strsignal.c: Likewise.
4608 2009-12-23 Eric Blake <ebb9@byu.net>
4610 unistd: work around cygwin bug
4611 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4612 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4613 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4615 2009-12-23 Bruno Haible <bruno@clisp.org>
4617 localename: More tests.
4618 * tests/test-localename.c (SIZEOF): New macro.
4619 (categories): New variable.
4620 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4621 test_locale_name_default): Add test w.r.t. thread locale.
4622 (test_locale_name_thread): New function.
4625 localename: Make aware of thread locale.
4626 * lib/localename.h (gl_locale_name_thread): New declaration.
4627 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4628 behaviour with respect to thread locale.
4629 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4630 <langinfo.h>, glthread/lock.h.
4631 (SIZE_BITS): New macro.
4632 (string_hash): New function.
4633 (struct hash_node): New type.
4634 (HASH_TABLE_SIZE): New macro.
4635 (struniq_hash_table, struniq_lock): New variables.
4636 (struniq): New function.
4637 (gl_locale_name_thread): New function.
4638 (gl_locale_name): Invoke it.
4639 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4640 * modules/localename (Depends-on): Add lock.
4641 Reported by Mike Gran <spk121@yahoo.com>.
4643 2009-12-23 Eric Blake <ebb9@byu.net>
4646 * modules/va-args: New file.
4647 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4648 * MODULES.html.sh (Core language properties): Mention it.
4650 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4651 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4652 named alias for __attribute__((__unused__)).
4653 * lib/chown.c: Update client.
4654 * lib/fchmodat.c: Likewise.
4655 * lib/fts.c: Likewise.
4656 * lib/getdate.y: Likewise.
4657 * lib/getgroups.c: Likewise.
4658 * lib/getopt.c: Likewise.
4659 * lib/getugroups.c: Likewise.
4660 * lib/mkdir.c: Likewise.
4661 * lib/mkfifo.c: Likewise.
4662 * lib/mkfifoat.c: Likewise.
4663 * lib/mknod.c: Likewise.
4664 * lib/mknodat.c: Likewise.
4665 * lib/readlink.c: Likewise.
4666 * lib/se-context.in.h: Likewise.
4667 * lib/se-selinux.in.h: Likewise.
4668 * lib/sockets.c: Likewise.
4669 * lib/symlink.c: Likewise.
4670 * lib/symlinkat.c: Likewise.
4671 * lib/unicodeio.c: Likewise.
4672 * lib/unistr.h: Likewise.
4673 * tests/test-areadlink.c: Likewise.
4674 * tests/test-areadlinkat.c: Likewise.
4675 * tests/test-filenamecat.c: Likewise.
4676 * tests/test-fseeko.c: Likewise.
4677 * tests/test-ftello.c: Likewise.
4678 * tests/test-getdate.c: Likewise.
4679 * tests/test-getgroups.c: Likewise.
4680 * tests/test-gethostname.c: Likewise.
4681 * tests/test-quotearg.c: Likewise.
4682 * tests/test-version-etc.c: Likewise.
4683 * tests/test-xalloc-die.c: Likewise.
4684 * tests/test-xfprintf-posix.c: Likewise.
4685 * tests/test-xprintf-posix.c: Likewise.
4686 * tests/test-xvasprintf.c: Likewise.
4688 tests: avoid compiler warnings
4689 * tests/test-fcntl.c (main): Delete unused parameters.
4690 * tests/test-freopen-safer.c (main): Likewise.
4691 * tests/test-xalloc-die.c (main): Mark unused parameters.
4692 * tests/test-fseeko.c (main): Likewise.
4693 * tests/test-ftello.c (main): Likewise.
4694 * tests/test-nanosleep.c (main): Avoid declaration warning.
4695 * tests/test-sleep.c (main): Likewise.
4696 * tests/test-unsetenv.c (main): Silence warning about string
4698 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4700 2009-12-23 Bruno Haible <bruno@clisp.org>
4702 * tests/test-localename.c (test_locale_name): New function, extracted
4703 from main. Also test mixed situations.
4704 (test_locale_name_posix, test_locale_name_environ,
4705 test_locale_name_default): New functions.
4706 (main): Invoke them all.
4707 * modules/localename-tests (configure.ac): Test for newlocale.
4709 2009-12-23 Bruno Haible <bruno@clisp.org>
4711 unistd: Ensure getcwd gets declared before being overridden.
4712 * lib/unistd.in.h: Conditionally include <io.h>.
4714 2009-12-22 Bruno Haible <bruno@clisp.org>
4716 wchar: Diagnose broken combination of glibc and gcc versions and flags.
4717 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4718 (gl_WCHAR_H): Invoke it.
4719 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4720 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4721 Reported by Karl Berry <karl@freefriends.org>.
4723 2009-12-22 Eric Blake <ebb9@byu.net>
4725 math, unistd: avoid redundant includes
4726 * lib/math.in.h (isnan): No need to re-include <math.h>.
4727 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4729 getsubopt: work around cygwin bug
4730 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4731 avoid conflicting with system getsubopt.
4732 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4735 getopt: synchronize from glibc
4736 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4737 parameter order. Adjust all callers.
4738 (_getopt_internal_r, main): Adjust quoting in error messages.
4739 Drop considerations for outdated POSIX 1003.2 error message.
4740 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4742 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4744 test-getopt: test stderr behavior
4745 * modules/getopt-posix-tests (Depends-on): Add dup2.
4746 * tests/test-getopt.c (ASSERT): Avoid stderr.
4747 (main): Move stderr to a temporary file.
4748 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4749 Instead, add parameter to inform caller if output occurred.
4750 (test_getopt): Adjust all existing tests to expect silence, and
4751 add new tests of leading ":".
4752 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4753 glibc shortcomings with leading "-:" or "+:" in optstring.
4754 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4756 * doc/posix-functions/getopt.texi (getopt): Likewise.
4758 test-getopt: enhance test
4759 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4761 * tests/test-getopt.c (OPTIND_MIN): Move...
4762 * tests/test-getopt.h (OPTIND_MIN): ...here.
4763 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4764 Require that optind=0 works, since modern BSD supports it in
4765 addition to optreset, and since coreutils expects it.
4766 (test_getopt_long_only): New test.
4767 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4768 glibc shortcomings with 'W;', and enforcement of optind=0.
4769 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4772 2009-12-21 Bruno Haible <bruno@clisp.org>
4774 localename: Improvements for MacOS X and Cygwin.
4775 * lib/localename.h (gl_locale_name_environ): New declaration.
4776 * lib/localename.c (gl_locale_name_environ): New function, extracted from
4777 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4778 (gl_locale_name_posix): Invoke it.
4779 (gl_locale_name_default): Add comments. Use Windows native API also on
4782 2009-12-21 Bruno Haible <bruno@clisp.org>
4784 Update list of Win32 locale ids.
4785 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4786 (LANG_SAMI): Renamed from LANG_SAAMI.
4787 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4788 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4789 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4790 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4791 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4792 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4793 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4794 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4795 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4796 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4797 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4798 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4799 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4800 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4801 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4802 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4803 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4804 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4805 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4806 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4807 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4808 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4809 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4810 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4811 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4812 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4813 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4814 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4815 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4816 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4817 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4818 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4819 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4820 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4821 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4822 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4823 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4824 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4825 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4826 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4827 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4828 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4829 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4830 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4831 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4832 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4833 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4834 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4835 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4836 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4837 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4838 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4839 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4840 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4841 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4842 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4843 Add more languages and countries for Sami, Sorbian. Add more countries
4844 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4845 for Pashto. Change country for Syriac, Tswana.
4847 2009-12-21 Eric Blake <ebb9@byu.net>
4849 test-utimens: avoid spurious failure
4850 * tests/test-chown.h (nap): Factor...
4851 * tests/nap.h: ...into new file.
4852 * tests/test-lchown.h (nap): Avoid duplication.
4853 * tests/test-utimens-common.h (nap): Use shared implementation,
4854 necessary on file systems with 1-second resolution.
4855 * modules/chown-tests (Files): Include new file.
4856 * modules/fdutimensat-tests (Files): Likewise.
4857 * modules/futimens-tests (Files): Likewise.
4858 * modules/lchown-tests (Files): Likewise.
4859 * modules/openat-tests (Files): Likewise.
4860 * modules/utimens-tests (Files): Likewise.
4861 * modules/utimensat-tests (Files): Likewise.
4863 2009-12-19 Eric Blake <ebb9@byu.net>
4865 futimens, utimensat: work around Linux bug
4866 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4867 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4868 * lib/utimensat.c (rpl_utimensat): Work around it.
4869 * lib/futimens.c (rpl_futimens): Adjust comment.
4871 utimens: work around Linux ctime bug
4872 * lib/utimens.c (detect_ctime_bug): New helper function.
4873 (update_timespec): Differentiate between workaround needed for
4874 this bug vs. what is needed for systems that lack utimensat.
4875 (fdutimens, lutimens): Work around bug.
4877 utimens: check for ctime update
4878 * tests/test-utimens-common.h (check_ctime): Define.
4879 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4880 * tests/test-futimens.h (test_futimens): Likewise.
4881 * tests/test-lutimens.h (test_lutimens): Likewise.
4882 * doc/posix-functions/futimens.texi (futimens): Document the bug.
4883 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4885 2009-12-19 Bruno Haible <bruno@clisp.org>
4887 dprintf-posix: Check against memory leak fixed on 2009-12-15.
4888 * tests/test-dprintf-posix2.sh: New file.
4889 * tests/test-dprintf-posix2.c: New file.
4890 * modules/dprintf-posix-tests (Files): Add them.
4891 (configure.ac): Check for getrlimit and setrlimit.
4892 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4894 2009-12-19 Bruno Haible <bruno@clisp.org>
4896 fprintf-posix: Check against memory leak fixed on 2009-12-15.
4897 * tests/test-fprintf-posix3.sh: New file.
4898 * tests/test-fprintf-posix3.c: New file.
4899 * modules/fprintf-posix-tests (Files): Add them.
4900 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4902 2009-12-19 Eric Blake <ebb9@byu.net>
4904 dirfd: fix prototype
4905 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4906 * lib/dirfd.c (dirfd): Likewise.
4908 canonicalize: reduce memory usage
4909 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4911 Reported by Solar Designer <solar@openwall.com>.
4913 2009-12-19 Bruno Haible <bruno@clisp.org>
4915 New module attribute 'Applicability'.
4916 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4917 * gnulib-tool: New option --extract-applicability.
4918 (func_usage): Document it.
4919 (sed_extract_prog): Recognize it.
4920 (func_get_applicability): New function.
4921 (func_import): Generalize handling of 'link-warning' module.
4922 * modules/link-warning (Applicability): New section.
4923 * modules/arg-nonnull (Applicability): New section.
4924 Repoted by Simon Josefsson <simon@josefsson.org>.
4926 2009-12-19 Bruno Haible <bruno@clisp.org>
4929 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4930 * lib/fseeko.c (rpl_fseeko): Likewise.
4932 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
4934 * lib/gl_list.h: Fix typo in comment.
4936 2009-12-16 Eric Blake <ebb9@byu.net>
4938 fcntl: use to simplify other modules
4939 * modules/cloexec (Depends-on): Add fcntl.
4940 * modules/fchdir (Depends-on): Likewise.
4941 * modules/fd-safer-flag (Depends-on): Likewise.
4942 * modules/unistd-safer (Depends-on): Likewise.
4943 * modules/dup3 (configure.ac): Set module indicator.
4944 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4946 * lib/fchdir.c (_gl_register_dup): Fix comment.
4947 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4948 * lib/dup-safer.c (dup_safer): Likewise.
4949 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4950 * lib/dup3.c (dup3): Likewise.
4951 * tests/test-fchdir.c (main): Enhance test.
4952 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
4954 fcntl: port portions of fcntl to mingw
4955 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4956 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4957 replacement for mingw.
4958 * modules/fcntl (Description): Update.
4959 (Depends-on): Add dup2.
4960 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4961 * modules/fcntl-h (Makefile.am): Substitute it.
4962 * lib/fcntl.in.h (fcntl): Update declaration.
4963 (F_DUPFD, F_GETFD): New macros, when needed.
4964 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4965 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4966 * tests/test-fcntl.c (check_flags, main): Enhance test for items
4969 fcntl: work around cygwin bug in F_DUPFD
4970 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4971 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
4972 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4973 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4974 * doc/posix-functions/fcntl.texi (fcntl): Document it.
4976 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4977 * modules/fcntl (Files): List new files.
4978 (configure.ac): Run a test.
4979 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4980 * lib/fcntl.c (rpl_fcntl): Likewise.
4981 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4982 (gl_FCNTL_H): Always replace fcntl.h.
4983 * modules/fcntl-h (Makefile.am): Substitute witnesses.
4984 * lib/fcntl.in.h (fcntl): Declare replacement.
4985 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4986 needed, plus a witness.
4987 * doc/posix-functions/fcntl.texi (fcntl): Document this.
4988 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4989 * tests/test-fcntl.c: New file.
4990 * modules/fcntl-tests: Likewise.
4992 binary-io: avoid potential compilation warning
4993 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4996 fflush: avoid compilation error on NetBSD
4997 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4998 between off_t and fpos_t, since the latter is sometimes a struct.
4999 * lib/fseeko.c (rpl_fseeko): Likewise.
5000 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5002 2009-12-15 Eric Blake <ebb9@byu.net>
5004 fcntl-h, stdio, sys_ioctl: fix declarations
5005 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5006 function must not take arguments.
5007 * lib/sys_ioctl.in.h (ioctl): Likewise.
5008 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5009 (open): Add a link warning.
5011 2009-12-15 Jim Meyering <meyering@redhat.com>
5013 areadlink, areadlink-with-size: relax license to LGPLv2+
5014 * modules/areadlink (License): Relax to LGPLv2+.
5015 * modules/areadlink-with-size (License): Likewise.
5017 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5018 Bruno Haible <bruno@clisp.org>
5020 *printf: Fix memory leak.
5021 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5022 * lib/vfprintf.c (vfprintf): Likewise.
5023 * lib/dprintf.c (dprintf): Likewise.
5024 * lib/vdprintf.c (vdprintf): Likewise.
5026 2009-12-14 Eric Blake <ebb9@byu.net>
5028 accept4: adjust module dependencies
5029 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5031 utimens: one more try at avoiding compiler warning
5032 * lib/utimens.c (lutimens): Lower scope of result.
5034 2009-12-13 Bruno Haible <bruno@clisp.org>
5036 Move the malloc checking from module 'list' to new module 'xlist'.
5037 * modules/xlist: New file.
5038 * lib/gl_xlist.h: New file.
5039 * lib/gl_xlist.c: New file.
5040 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5041 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5042 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5043 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5044 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5045 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5046 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5047 gl_sortedlist_nx_add): New declarations.
5048 (struct gl_list_implementation): Rename and change methods accordingly.
5049 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5050 (gl_list_nx_create): Renamed from gl_list_create.
5051 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5052 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5053 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5054 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5055 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5056 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5057 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5058 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5059 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5060 gl_list_create_empty.
5061 (gl_list_nx_create): Renamed from gl_list_create.
5062 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5063 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5064 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5065 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5066 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5067 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5068 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5069 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5070 * lib/gl_array_list.c: Don't include xalloc.h.
5071 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5072 NULL upon out-of-memory.
5073 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5075 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5076 Change return type to 'int'.
5077 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5078 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5079 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5081 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5083 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5085 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5087 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5089 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5091 (gl_array_list_implementation): Update.
5092 * lib/gl_carray_list.c: Don't include xalloc.h.
5093 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5094 Return NULL upon out-of-memory.
5095 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5097 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5098 Change return type to 'int'.
5099 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5100 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5101 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5103 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5105 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5107 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5108 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5109 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5111 (gl_carray_list_implementation): Update.
5112 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5113 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5114 gl_linked_create_empty. Return NULL upon out-of-memory.
5115 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5117 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5118 Change return type to 'int'. Return -1 upon out-of-memory.
5119 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5121 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5123 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5125 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5126 NULL upon out-of-memory.
5127 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5129 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5131 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5133 * lib/gl_linked_list.c: Don't include xalloc.h.
5134 (gl_linked_list_implementation): Update.
5135 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5136 (add_to_bucket): Change return type to 'int'.
5137 (gl_linkedhash_list_implementation): Update.
5138 * lib/gl_anytree_list1.h (free_subtree): New function.
5139 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5140 gl_tree_create_empty. Return NULL upon out-of-memory.
5141 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5142 Change return type to 'int'. Return -1 upon out-of-memory.
5143 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5145 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5146 (gl_tree_remove_node): New function, moved here from
5147 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5148 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5150 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5151 malloc, not xmalloc. Return NULL upon out-of-memory.
5152 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5154 (gl_tree_remove_node_from_tree): New function, extracted from
5155 gl_tree_remove_node.
5156 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5158 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5160 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5162 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5164 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5165 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5166 not xmalloc. Return NULL upon out-of-memory.
5167 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5169 (gl_tree_remove_node_from_tree): New function, extracted from
5170 gl_tree_remove_node.
5171 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5173 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5175 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5177 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5179 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5180 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5181 gl_anytree_list1.h before gl_anyavltree_list2.h.
5182 (gl_avltree_list_implementation): Update.
5183 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5184 gl_anytree_list1.h before gl_anyavltree_list2.h.
5185 (gl_rbtree_list_implementation): Update.
5186 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5187 Change return type to 'int'. Return -1 upon out-of-memory. Use
5189 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5190 (gl_avltreehash_list_implementation): Update.
5191 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5192 (gl_rbtreehash_list_implementation): Update.
5193 * modules/array-list (Depends-on): Remove xalloc.
5194 * modules/carray-list (Depends-on): Likewise.
5195 * modules/linked-list (Depends-on): Likewise.
5196 * modules/linkedhash-list (Depends-on): Likewise.
5197 * modules/avltree-list (Depends-on): Likewise.
5198 * modules/rbtree-list (Depends-on): Likewise.
5199 * modules/avltreehash-list (Depends-on): Likewise.
5200 * modules/rbtreehash-list (Depends-on): Likewise.
5202 * modules/xsublist: New file.
5203 * lib/gl_xsublist.h: New file.
5204 * lib/gl_xsublist.c: New file.
5205 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5206 (gl_sublist_nx_create): New declaration.
5207 * lib/gl_sublist.c: Don't include xalloc.h.
5208 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5209 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5210 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5211 Change return type to 'int'. Return -1 upon out-of-memory.
5212 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5214 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5215 NULL upon out-of-memory.
5216 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5218 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5219 NULL upon out-of-memory.
5220 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5221 NULL upon out-of-memory.
5222 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5224 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5225 (gl_sublist_list_implementation): Update.
5226 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5228 * modules/sublist (Depends-on): Remove xalloc.
5230 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5231 * tests/test-carray_list.c: Likewise.
5232 * tests/test-linked_list.c: Likewise.
5233 * tests/test-linkedhash_list.c: Likewise.
5234 * tests/test-avltree_list.c: Likewise.
5235 * tests/test-rbtree_list.c: Likewise.
5236 * tests/test-avltreehash_list.c: Likewise.
5237 * tests/test-rbtreehash_list.c: Likewise.
5238 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5239 * modules/carray-list-tests (Makefile.am): Likewise.
5240 * modules/linked-list-tests (Makefile.am): Likewise.
5241 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5242 * modules/avltree-list-tests (Makefile.am): Likewise.
5243 * modules/rbtree-list-tests (Makefile.am): Likewise.
5244 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5245 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5247 * NEWS: Mention the changes.
5249 * lib/clean-temp.c: Include gl_xlist.h.
5250 * modules/clean-temp (Depends-on): Add xlist.
5252 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5253 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5255 * tests/test-array_oset.c: Include gl_xlist.h.
5256 * modules/array-oset-tests (Depends-on): Add xlist.
5258 Reported by José E. Marchesi <jemarch@gnu.org>.
5260 2009-12-13 Bruno Haible <bruno@clisp.org>
5262 Move the malloc checking from module 'oset' to new module 'xoset'.
5263 * modules/xoset: New file.
5264 * lib/gl_xoset.h: New file.
5265 * lib/gl_xoset.c: New file.
5266 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5268 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5269 (struct gl_oset_implementation): Rename and change methods accordingly.
5270 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5271 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5272 'int'. Mark as __warn_unused_result__.
5273 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5274 gl_oset_create_empty.
5275 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5277 * lib/gl_array_oset.c: Don't include xalloc.h.
5278 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5279 malloc, not xmalloc.
5280 (grow): Change return type to 'int'. Don't call xalloc_die.
5281 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5283 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5285 (gl_array_oset_implementation): Update.
5286 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5287 gl_tree_create_empty.
5288 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5290 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5291 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5293 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5295 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5297 (gl_avltree_oset_implementation): Update.
5298 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5299 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5301 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5303 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5305 (gl_rbtree_oset_implementation): Update.
5306 * modules/array-oset (Depends-on): Remove xalloc.
5307 * modules/avltree-oset (Depends-on): Likewise.
5308 * modules/rbtree-oset (Depends-on): Likewise.
5309 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5310 * tests/test-avltree_oset.c: Likewise.
5311 * tests/test-rbtree_oset.c: Likewise.
5312 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5313 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5314 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5315 * NEWS: Mention the change.
5317 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5319 maint.mk: allow a project to override release-prep commands
5320 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5321 commands into a new rule.
5322 (release-prep): New rule.
5323 (release-prep-hook): New overridable variable.
5325 2009-12-13 Bruno Haible <bruno@clisp.org>
5327 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5329 2009-12-13 Jim Meyering <meyering@redhat.com>
5331 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5332 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5334 2009-12-12 Bruno Haible <bruno@clisp.org>
5337 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5339 2009-12-12 Karl Berry <karl@gnu.org>
5341 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5343 2009-12-12 Bruno Haible <bruno@clisp.org>
5345 * m4/po.m4: Undo incorrect untabification.
5347 2009-12-12 Bruno Haible <bruno@clisp.org>
5349 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5350 * modules/c-strtod (Depends-on): Add locale.
5351 * modules/c-strtold (Depends-on): Likewise.
5353 2009-12-12 Bruno Haible <bruno@clisp.org>
5355 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5357 2009-12-11 Eric Blake <ebb9@byu.net>
5359 setenv: relax requirement in light of POSIX ruling
5360 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5362 * tests/test-setenv.c (main): Relax test.
5363 * tests/test-unsetenv.c (main): Likewise.
5364 * doc/posix-functions/setenv.texi (setenv): Document this.
5365 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5367 2009-12-11 Bruno Haible <bruno@clisp.org>
5369 New module 'fd-safer-flag'.
5370 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5371 * lib/dup-safer.c (dup_safer_flag): Remove function.
5372 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5373 * lib/fd-safer.c (fd_safer_flag): Remove function.
5374 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5375 * modules/cloexec (configure.ac): Drop indicator macro.
5376 * modules/fd-safer-flag: New file.
5377 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5378 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5379 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5381 2009-12-11 Bruno Haible <bruno@clisp.org>
5383 Tests for module 'nl_langinfo'.
5384 * modules/nl_langinfo-tests: New file.
5385 * tests/test-nl_langinfo.sh: New file.
5386 * tests/test-nl_langinfo.c: New file.
5388 New module 'nl_langinfo'.
5389 * lib/nl_langinfo.c: New file.
5390 * m4/nl_langinfo.m4: New file.
5391 * modules/nl_langinfo: New file.
5392 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5394 2009-12-11 Bruno Haible <bruno@clisp.org>
5396 Tests for module 'langinfo'.
5397 * modules/langinfo-tests: New file.
5398 * tests/test-langinfo.c: New file.
5400 New module 'langinfo'.
5401 * lib/langinfo.in.h: New file.
5402 * m4/langinfo_h.m4: New file.
5403 * modules/langinfo: New file.
5404 * doc/posix-headers/langinfo.texi: Mention the new module.
5406 2009-12-11 Bruno Haible <bruno@clisp.org>
5408 * lib/config.charset: Untabify.
5410 2009-12-11 Bruno Haible <bruno@clisp.org>
5412 * modules/unistd-safer (configure.ac): Drop indicator macro.
5414 2009-12-11 Bruno Haible <bruno@clisp.org>
5416 Move pipe2-safer code to its own file.
5417 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5418 * lib/pipe-safer.c (pipe2_safer): Remove function.
5419 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5420 (Makefile.am): Add it to lib_SOURCES.
5422 2009-12-10 Bruno Haible <bruno@clisp.org>
5424 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5426 2009-12-10 Bruno Haible <bruno@clisp.org>
5428 Declare which arguments expect non-NULL values, for GCC and clang.
5429 * build-aux/arg-nonnull.h: New file.
5430 * modules/arg-nonnull: New file.
5431 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5432 (inet_ntop, inet_pton): Use it.
5433 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5434 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5435 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5436 (open, openat): Use it.
5437 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5439 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5440 (getopt, getopt_long, getopt_long_only): Use it.
5441 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5442 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5444 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5445 (iconv_open): Use it.
5446 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5447 (strtoimax, strtoumax): Use it.
5448 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5449 (duplocale): Use it.
5450 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5451 (frexp, frexpl): Use it.
5452 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5453 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5454 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5455 (tsearch, tfind, tdelete, twalk): Use it.
5456 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5457 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5458 sigpending): Use it.
5459 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5460 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5461 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5462 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5463 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5464 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5465 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5466 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5467 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5468 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5469 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5471 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5472 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5473 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5474 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5475 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5476 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5477 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5478 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5479 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5480 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5481 strtoull, unsetenv): Use it.
5482 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5483 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5484 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5485 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5486 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5487 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5488 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5489 (strcasecmp, strncasecmp): Use it.
5490 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5491 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5492 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5493 rpl_setsockopt): Use it.
5494 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5495 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5496 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5497 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5498 (gettimeofday): Use it.
5499 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5501 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5503 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5504 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5505 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5506 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5507 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5508 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5509 unlinkat, write): Use it.
5510 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5511 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5512 * lib/argv-iter.h: Include arg-nonnull.h.
5513 (_ATTRIBUTE_NONNULL_): Remove macro.
5514 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5515 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5516 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5518 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5519 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5520 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5521 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5522 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5523 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5524 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5525 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5526 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5527 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5528 * modules/dirent (Depends-on): Add arg-nonnull.
5529 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5530 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5531 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5532 * modules/fnmatch (Depends-on): Add arg-nonnull.
5533 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5534 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5535 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5536 * modules/glob (Depends-on): Add arg-nonnull.
5537 (Makefile.am): Insert arg-nonnull.h into glob.h.
5538 * modules/iconv_open (Depends-on): Add arg-nonnull.
5539 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5540 * modules/inttypes (Depends-on): Add arg-nonnull.
5541 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5542 * modules/locale (Depends-on): Add arg-nonnull.
5543 (Makefile.am): Insert arg-nonnull.h into locale.h.
5544 * modules/math (Depends-on): Add arg-nonnull.
5545 (Makefile.am): Insert arg-nonnull.h into math.h.
5546 * modules/netdb (Depends-on): Add arg-nonnull.
5547 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5548 * modules/search (Depends-on): Add arg-nonnull.
5549 (Makefile.am): Insert arg-nonnull.h into search.h.
5550 * modules/signal (Depends-on): Add arg-nonnull.
5551 (Makefile.am): Insert arg-nonnull.h into signal.h.
5552 * modules/spawn (Depends-on): Add arg-nonnull.
5553 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5554 * modules/stdio (Depends-on): Add arg-nonnull.
5555 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5556 * modules/stdlib (Depends-on): Add arg-nonnull.
5557 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5558 * modules/string (Depends-on): Add arg-nonnull.
5559 (Makefile.am): Insert arg-nonnull.h into string.h.
5560 * modules/strings (Depends-on): Add arg-nonnull.
5561 (Makefile.am): Insert arg-nonnull.h into strings.h.
5562 * modules/sys_socket (Depends-on): Add arg-nonnull.
5563 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5564 * modules/sys_stat (Depends-on): Add arg-nonnull.
5565 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5566 * modules/sys_time (Depends-on): Add arg-nonnull.
5567 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5568 * modules/sys_times (Depends-on): Add arg-nonnull.
5569 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5570 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5571 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5572 * modules/time (Depends-on): Add arg-nonnull.
5573 (Makefile.am): Insert arg-nonnull.h into time.h.
5574 * modules/unistd (Depends-on): Add arg-nonnull.
5575 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5576 * modules/wchar (Depends-on): Add arg-nonnull.
5577 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5578 * modules/argv-iter (Depends-on): Add arg-nonnull.
5579 * tests/test-canonicalize.c (null_ptr): New function.
5581 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5583 * tests/test-memmem.c (null_ptr): New function.
5585 Reported by Jim Meyering.
5587 2009-12-10 Bruno Haible <bruno@clisp.org>
5589 Use spaces for indentation, not tabs.
5590 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5591 * m4/*.m4: Untabify.
5592 * build-aux/*.h: Untabify.
5593 * tests/**/*.[hc]: Untabify.
5594 * README: New section "Indent with spaces, not TABs", based on
5595 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5596 * NEWS: Mention the change.
5598 2009-12-10 Bruno Haible <bruno@clisp.org>
5600 pty test: Fix link error.
5601 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5604 2009-12-07 Simon Josefsson <simon@josefsson.org>
5606 * modules/pty: New file.
5607 * modules/pty-tests: New file.
5608 * m4/pty.m4: New file.
5609 * tests/test-pty.c: New file.
5610 * doc/glibc-headers/pty.texi: Modified.
5611 * doc/glibc-functions/forkpty.texi: Modified.
5612 * doc/glibc-functions/openpty.texi: Modified.
5614 2009-12-10 Bruno Haible <bruno@clisp.org>
5616 Avoid syntax error in C++ mode.
5617 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5619 2009-12-10 Bruno Haible <bruno@clisp.org>
5621 Use sed with option -e.
5622 * gnulib-tool (func_version, func_emit_copyright_notice,
5623 func_emit_initmacro_end, func_import, func_create_testdir): Pass
5625 * modules/link-warning (Makefile.am): Likewise.
5627 2009-12-10 Jim Meyering <meyering@redhat.com>
5629 mgetgroups: do not write bytes beyond end of malloc'd buffer
5630 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
5631 username, we call getgroups with a one-element-shorter buffer,
5632 but still told it the length was original, max_n_groups.
5634 2009-12-09 Eric Blake <ebb9@byu.net>
5636 cloexec: relax license
5637 * modules/cloexec (Maintainer): Add myself.
5638 (License): Use LGPL, not GPL.
5640 link-warning: optimize generation
5641 * modules/link-warning (Makefile.am): Reduce process usage.
5643 2009-12-09 Bruno Haible <bruno@clisp.org>
5645 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5646 workaround was added on 2009-11-17.
5648 2009-12-09 Jim Meyering <meyering@redhat.com>
5649 Bruno Haible <bruno@clisp.org>
5651 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5652 * modules/link-warning (Makefile.am): Make the comment-removing sed
5653 command more robust in the face of bootstrap-prepended comment lines.
5655 2009-12-09 Bruno Haible <bruno@clisp.org>
5657 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5660 2009-12-09 Simon Josefsson <simon@josefsson.org>
5661 Bruno Haible <bruno@clisp.org>
5663 * build-aux/link-warning.h: Add copyright notice.
5664 * modules/link-warning (Makefile.am): Generate link-warning.h from
5665 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5666 * NEWS: Mention change in link-warning module.
5667 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5668 * modules/dirent (Makefile.am): Add dependency to dirent.h.
5669 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5670 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5671 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5672 * modules/math (Makefile.am): Add dependency to math.h.
5673 * modules/search (Makefile.am): Add dependency to search.h.
5674 * modules/signal (Makefile.am): Add dependency to signal.h.
5675 * modules/spawn (Makefile.am): Add dependency to spawn.h.
5676 * modules/stdio (Makefile.am): Add dependency to stdio.h.
5677 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5678 * modules/string (Makefile.am): Add dependency to string.h.
5679 * modules/strings (Makefile.am): Add dependency to strings.h.
5680 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5681 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5682 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5683 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5684 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5685 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5686 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5687 * modules/unistd (Makefile.am): Add dependency to unistd.h.
5688 * modules/wchar (Makefile.am): Add dependency to wchar.h.
5690 2009-12-09 Bruno Haible <bruno@clisp.org>
5692 fchdir: Optimize away rpl_fstat when possible.
5693 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5694 REPLACE_OPEN_DIRECTORY.
5695 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5697 2009-12-09 Bruno Haible <bruno@clisp.org>
5699 * lib/fchdir.c: Update comment.
5701 2009-12-09 Bruno Haible <bruno@clisp.org>
5703 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5705 2009-12-08 Eric Blake <ebb9@byu.net>
5707 fchdir: avoid memory leak on re-registration.
5708 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5710 2009-12-08 Jim Meyering <meyering@redhat.com>
5712 init.sh: avoid Solaris 10 /bin/sh portability problem
5713 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5715 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5716 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5718 tests/init.sh relied on that, accepting a --set-path=DIR argument,
5719 and two tests used that idiom.
5720 * tests/init.sh: Update suggested usage comments.
5721 (path_prepend_): New function, to be used in place
5722 of the --src-path=DIR option.
5723 (setup_): Move PATH-prepending code into path_prepend_.
5724 * tests/test-pread.sh: Adapt to new usage.
5725 * tests/test-xalloc-die.sh: Likewise.
5727 2009-12-08 Simon Josefsson <simon@josefsson.org>
5729 * doc/gnulib.texi (Glibc pty.h): Add.
5730 * doc/glibc-functions/forkpty.texi: Add.
5731 * doc/glibc-functions/openpty.texi: Add.
5732 Suggested by Bruno Haible.
5734 2009-12-08 Eric Blake <ebb9@byu.net>
5736 fchdir: fix logic bugs
5737 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5738 * tests/test-fchdir.c (main): Enhance test.
5739 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5742 dup2: fix logic bugs
5743 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
5744 REPLACE_DUP2 to decide when rpl_dup2 is needed.
5745 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5747 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5749 2009-12-07 Eric Blake <ebb9@byu.net>
5751 unlink: fix m4 detection
5752 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5754 unistd-safer: add unit test
5755 * modules/unistd-safer-tests: New file.
5756 * tests/test-dup-safer.c: Likewise.
5757 * tests/test-cloexec.c (setmode): Avoid compiler warning.
5758 * tests/test-dup2.c (setmode): Likewise.
5759 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5761 cloexec: preserve text vs. binary across dup_cloexec
5762 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5764 * modules/dup2-tests (Depends-on): Add binary-io.
5765 * modules/cloexec-tests (Depends-on): Likewise.
5766 * tests/test-dup2.c (setmode, is_mode): New helpers.
5767 (main): Add tests that translation mode is preserved.
5768 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5769 Reported by Bruno Haible.
5771 mgetgroups: reduce duplicate listings
5772 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5774 * tests/test-chown.h (test_chown): Simplify client.
5775 * tests/test-lchown.h (test_lchown): Likewise.
5777 2009-12-06 Bruno Haible <bruno@clisp.org>
5779 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5782 2009-12-06 Bruno Haible <bruno@clisp.org>
5784 * lib/progname.c: Include stdio.h, stdlib.h.
5785 (set_program_name): Reject a NULL argument.
5787 2009-12-05 Eric Blake <ebb9@byu.net>
5789 pipe2-safer: new module
5790 * modules/pipe2-safer: New file.
5791 * lib/unistd-safer.h (pipe2_safer): New prototype.
5792 * lib/unistd--.h (pipe2): New wrapper.
5793 * lib/pipe-safer.c (pipe2_safer): New function.
5794 * modules/pipe (Depends-on): Add pipe2-safer.
5795 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5797 stdlib-safer: preserve cloexec flag for mkostemp[s]
5798 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5801 unistd-safer: allow preservation of cloexec status via flag
5802 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5804 * lib/dup-safer.c (dup_safer_flag): New function.
5805 * lib/fd-safer.c (fd_safer_flag): Likewise.
5806 * modules/cloexec (configure.ac): Set witness.
5808 test-dup2: enhance test
5809 * modules/dup2-tests (Depends-on): Add cloexec.
5810 * tests/test-dup2.c (main): Enhance test.
5812 cloexec: add dup_cloexec
5813 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
5814 header and comments.
5815 * lib/cloexec.c (set_cloexec_flag): Add comments.
5816 (dup_cloexec): New function, with mingw implementation borrowed
5818 * lib/w32spawn.h (dup_noinherit): ...here.
5819 * modules/execute (Depends-on): Add cloexec.
5820 * modules/pipe (Depends-on): Likewise.
5821 * modules/cloexec (Depends-on): Add dup2.
5822 * modules/cloexec-tests (Files): New file.
5823 * tests/test-cloexec.c: Likewise.
5825 test-xalloc-die: fix test for mingw
5826 * modules/xalloc-die-tests (Files): Add tests/init.sh.
5827 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
5828 directory and .exe suffix off argv[0] output.
5830 test-fseeko: fix test for mingw
5831 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5832 than undefining fseek, so test will pass on mingw.
5834 2009-12-05 Bruno Haible <bruno@clisp.org>
5836 * lib/progname.h (set_program_name): Clarify specification.
5837 * lib/progname.c (set_program_name): Likewise.
5838 Reported by Jim Meyering.
5840 2009-12-05 Jim Meyering <meyering@redhat.com>
5842 maint.mk: backslash-escape parens in default regexp
5843 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5844 backslash-escape the literal parentheses.
5846 maint.mk: news-date-check: use grep -E
5847 * top/maint.mk (today): Define a Make variable, not a...
5848 (news-date-check): ...shell variable.
5849 (news-date-regexp): Use the Make variable.
5850 Use grep's -E option. Change the failing diagnostic to mention
5851 the variable, $(news-date-regexp).
5853 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
5855 maintainer-makefile: allow customization of NEWS entry format
5856 * top/maint.mk (news-date-regexp): New overridable variable.
5857 (news-date-check): Use it.
5859 2009-12-04 Eric Blake <ebb9@byu.net>
5861 mgetgroups: add xgetgroups, and avoid ENOSYS failures
5862 * lib/mgetgroups.h (xgetgroups): New prototype.
5863 * lib/mgetgroups.c (xgetgroups): New wrapper.
5864 (mgetgroups): Handle ENOSYS.
5865 * modules/mgetgroups (Depends-on): Add realloc.
5866 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5868 mgetgroups: avoid argument promotion issues with -1
5869 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5871 * tests/test-chown.h (getegid, test_chown): Likewise.
5872 * tests/test-lchown.h (getegid, test_lchown): Likewise.
5874 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
5876 exclude: Fix header file problems.
5877 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5879 2009-12-01 Jim Meyering <meyering@redhat.com>
5881 fts: fts_open: do not let an empty string cause immediate failure
5882 This is required in support of GNU rm, for which the command
5883 "rm A '' B" must process and remove both A and B, in spite of
5884 the empty string argument.
5885 * lib/fts.c (fts_open): Do not let the presence of an empty string
5886 cause fts_open to fail immediately. Most fts-using tools must be
5887 able to process all arguments, in order, and can be expected to
5888 diagnose such arguments themselves.
5890 2009-11-30 Eric Blake <ebb9@byu.net>
5892 utimens: fix compilation error
5893 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5894 Declare variable at right scope.
5896 2009-11-29 Jim Meyering <meyering@redhat.com>
5898 bootstrap: handle perl-5.11's changed --version output
5899 * build-aux/bootstrap (get_version): Handle perl separately,
5900 since perl-5.11's --version output is different.
5902 2009-11-28 Jim Meyering <meyering@redhat.com>
5904 userspec: depend on the inttostr module, too
5905 * modules/userspec (Depends-on): Add inttostr.
5907 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5908 * lib/userspec.c (parse_with_separator): Do not accept a user ID
5909 number of MAXUID when it evaluates to (uid_t) -1.
5910 Likewise for group ID. Reported by Matt McCutchen in
5911 <http://savannah.gnu.org/bugs/?28113>
5913 userspec: reformat to use spaces, not TABs
5914 * lib/userspec.c: Expand TABs to spaces.
5915 Add Emacs' "indent-tabs-mode: nil" hint.
5917 2009-11-27 Eric Blake <ebb9@byu.net>
5919 getopt-gnu: flush out another BSD bug
5920 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5921 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5923 * tests/test-getopt.h (test_getopt): End lists with NULL.
5924 * tests/test-getopt_long.h (test_getopt_long): Likewise.
5925 (test_getopt_long_posix): Enhance test.
5926 * modules/getopt-posix-tests (Depends-on): Add stdbool.
5927 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5929 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5932 2009-11-27 Simon Josefsson <simon@josefsson.org>
5934 * modules/idpriv-droptemp-tests (Notice): Fix text.
5936 2009-11-27 Jim Meyering <meyering@redhat.com>
5938 test-xalloc-die: avoid spurious failure due to libtool argv difference
5939 In a libtool-enabled project, this test would fail due to a difference
5940 in the emitted program name, e.g.,
5941 -test-xalloc-die: memory exhausted
5942 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5943 Use program to avoid that.
5944 * modules/xalloc-die-tests (Depends-on): Add progname.
5945 * tests/test-xalloc-die.c: Include progname.h".
5946 (program_name): Remove decl.
5947 (main): Call set_program_name.
5948 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5950 2009-11-26 Richard Jones <rjones@redhat.com>
5952 w32sock: leave win32 error in place.
5953 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5955 2009-11-26 Eric Blake <ebb9@byu.net>
5957 init.sh: suggest to use skip_ and fail_ functions in comments
5958 * tests/init.sh: Add a sentence.
5960 2009-11-25 Bruno Haible <bruno@clisp.org>
5962 init.sh: add documentation in comments
5963 * tests/init.sh: Add some developer and user documentation.
5965 2009-11-26 Jim Meyering <meyering@redhat.com>
5967 init.sh: accommodate even those who specify bogus srcdir manually
5968 * tests/init.sh: Normally, srcdir is guaranteed by automake and
5969 configure-time tests to be sanitized, so that there is no need to
5970 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
5971 (with no double quotes) suffices. However, since tests may be
5972 invoked manually, and since you may explicitly set srcdir to the
5973 name of a directory containing spaces, do quote its uses here.
5974 * tests/test-pread.sh: Likewise.
5975 Suggested by Bruno Haible.
5977 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5978 * tests/test-pread.sh: Write no data into the pipe, because
5979 test-pread actually reads none. This avoids a diagnostic,
5980 "bash: echo: write error: Broken pipe", that arises in the unusual
5981 event something is ignoring SIGPIPE, and might be interpreted
5982 as some sort of failure. Reported by Bruno Haible.
5984 2009-11-25 Jim Meyering <meyering@redhat.com>
5986 test-pread: cover failure with ESPIPE and EINVAL
5987 * tests/test-pread.c (main): Test for failure, too.
5988 * tests/test-pread.sh: Invoke with stdin on a pipe.
5989 Suggested by Eric Blake.
5991 pread: improvement and fix
5992 * modules/pread (Depends-on): Depend on lseek, for portability to
5993 e.g., mingw. Suggested by Eric Blake.
5994 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
5996 unistd.in.h: correct declaration of pread
5997 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5998 Reported by Richard W.M. Jones.
6000 test-pread.sh: distribute the test script
6001 * modules/pread-tests (Files): Include test-pread.sh.
6003 test-pread.sh: clean up
6004 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6005 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6006 That is unnecessary, since it's always ".".
6007 Suggestion from Eric Blake.
6009 test-pread.sh: make executable
6010 * tests/test-pread.sh: Set executable bit.
6011 Reported by Eric Blake.
6013 correct typo in test-pread.sh
6014 * tests/test-pread.sh: Add #! line.
6017 * tests/test-pread.c: New file.
6018 * tests/test-pread.sh: Likewise.
6019 * modules/pread-tests: Likewise.
6022 * modules/pread: New file.
6023 * lib/unistd.in.h (pread): Define/declare.
6024 * lib/pread.c (pread): New file.
6025 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6026 * modules/unistd (Makefile.am): Substitute witnesses.
6027 * doc/posix-functions/pread.texi (pread): Update.
6028 * MODULES.html.sh: Add pread.
6030 2009-11-25 Jim Meyering <meyering@redhat.com>
6032 tests/init.sh: new file to be used via most *.sh tests
6033 * tests/init.sh: New file.
6035 2009-11-25 Eric Blake <ebb9@byu.net>
6037 utimens: work around older Linux failure with symlinks
6038 * lib/utimens.c (lutimensat_works_really): New variable.
6039 (fdutimens, lutimens): Use it to manage kernels that support
6040 nanosecond times on files, but not on symlinks.
6041 Reported by OndÅ™ej VaÅ¡Ãk.
6043 utimes: fix configure grammar
6044 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6046 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6048 regex: Fix fastmap for multibyte character ranges.
6049 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6050 characters when a multibyte character range is included.
6052 2009-11-22 Andy Wingo <wingo@pobox.com>
6054 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6055 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6057 2009-11-24 Bruno Haible <bruno@clisp.org>
6059 doc: Most *_l functions exist in MacOS X 10.5.
6060 * doc/posix-functions/duplocale.texi: Update platforms list.
6061 * doc/posix-functions/freelocale.texi: Likewise.
6062 * doc/posix-functions/newlocale.texi: Likewise.
6063 * doc/posix-functions/uselocale.texi: Likewise.
6064 * doc/posix-functions/isalnum_l.texi: Likewise.
6065 * doc/posix-functions/isalpha_l.texi: Likewise.
6066 * doc/posix-functions/isblank_l.texi: Likewise.
6067 * doc/posix-functions/iscntrl_l.texi: Likewise.
6068 * doc/posix-functions/isdigit_l.texi: Likewise.
6069 * doc/posix-functions/isgraph_l.texi: Likewise.
6070 * doc/posix-functions/islower_l.texi: Likewise.
6071 * doc/posix-functions/isprint_l.texi: Likewise.
6072 * doc/posix-functions/ispunct_l.texi: Likewise.
6073 * doc/posix-functions/isspace_l.texi: Likewise.
6074 * doc/posix-functions/isupper_l.texi: Likewise.
6075 * doc/posix-functions/iswalnum_l.texi: Likewise.
6076 * doc/posix-functions/iswalpha_l.texi: Likewise.
6077 * doc/posix-functions/iswblank_l.texi: Likewise.
6078 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6079 * doc/posix-functions/iswctype_l.texi: Likewise.
6080 * doc/posix-functions/iswdigit_l.texi: Likewise.
6081 * doc/posix-functions/iswgraph_l.texi: Likewise.
6082 * doc/posix-functions/iswlower_l.texi: Likewise.
6083 * doc/posix-functions/iswprint_l.texi: Likewise.
6084 * doc/posix-functions/iswpunct_l.texi: Likewise.
6085 * doc/posix-functions/iswspace_l.texi: Likewise.
6086 * doc/posix-functions/iswupper_l.texi: Likewise.
6087 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6088 * doc/posix-functions/isxdigit_l.texi: Likewise.
6089 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6090 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6091 * doc/posix-functions/strcoll_l.texi: Likewise.
6092 * doc/posix-functions/strfmon_l.texi: Likewise.
6093 * doc/posix-functions/strftime_l.texi: Likewise.
6094 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6095 * doc/posix-functions/strxfrm_l.texi: Likewise.
6096 * doc/posix-functions/tolower_l.texi: Likewise.
6097 * doc/posix-functions/toupper_l.texi: Likewise.
6098 * doc/posix-functions/towctrans_l.texi: Likewise.
6099 * doc/posix-functions/towlower_l.texi: Likewise.
6100 * doc/posix-functions/towupper_l.texi: Likewise.
6101 * doc/posix-functions/wcscoll_l.texi: Likewise.
6102 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6103 * doc/posix-functions/wctrans_l.texi: Likewise.
6104 * doc/posix-functions/wctype_l.texi: Likewise.
6105 * doc/glibc-functions/strptime_l.texi: Likewise.
6106 * doc/glibc-functions/strtod_l.texi: Likewise.
6107 * doc/glibc-functions/strtof_l.texi: Likewise.
6108 * doc/glibc-functions/strtol_l.texi: Likewise.
6109 * doc/glibc-functions/strtold_l.texi: Likewise.
6110 * doc/glibc-functions/strtoll_l.texi: Likewise.
6111 * doc/glibc-functions/strtoul_l.texi: Likewise.
6112 * doc/glibc-functions/strtoull_l.texi: Likewise.
6113 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6114 * doc/glibc-functions/wcstod_l.texi: Likewise.
6115 * doc/glibc-functions/wcstof_l.texi: Likewise.
6116 * doc/glibc-functions/wcstol_l.texi: Likewise.
6117 * doc/glibc-functions/wcstold_l.texi: Likewise.
6118 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6119 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6120 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6122 2009-11-24 Bruno Haible <bruno@clisp.org>
6124 duplocale: Fix logic bug.
6125 * lib/duplocale.c: Don't include <langinfo.h>.
6126 (_NL_LOCALE_NAME): Remove macro.
6127 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6128 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6130 2009-11-23 Jim Meyering <meyering@redhat.com>
6132 test-update-copyright: don't hard-code /usr/bin/perl
6133 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6134 perl to print the current year. Gilles Espinasse reported that
6135 the replaced use of perl was hard-coded as /usr/bin/perl.
6137 2009-11-23 Bruno Haible <bruno@clisp.org>
6139 duplocale: Add support for glibc 2.3.x.
6140 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6142 2009-11-22 Bruno Haible <bruno@clisp.org>
6144 vasnprintf: Tiny optimization.
6145 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6148 2009-11-22 Bruno Haible <bruno@clisp.org>
6150 Tests for module 'duplocale'.
6151 * modules/duplocale-tests: New file.
6152 * tests/test-duplocale.c: New file.
6154 New module 'duplocale'.
6155 * m4/duplocale.m4: New file.
6156 * lib/locale.in.h (duplocale): New declaration.
6157 * lib/duplocale.c: New file.
6158 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6159 gl_LOCALE_H_DEFAULTS): New macros.
6160 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6161 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6162 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6164 * modules/duplocale: New file.
6165 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6167 2009-11-22 Bruno Haible <bruno@clisp.org>
6169 * modules/locale-tests (configure.ac): Test for newlocale function.
6170 * tests/test-locale.c: When the system has extended locale functions,
6171 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6173 locale: Make locale_t available when possible.
6174 * lib/locale.in.h: Include <xlocale.h> when it exists.
6175 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6176 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6177 * modules/locale (Depends-on): Add extensions.
6178 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6179 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6181 2009-11-22 Bruno Haible <bruno@clisp.org>
6184 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6186 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6187 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6188 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6190 2009-11-22 Bruno Haible <bruno@clisp.org>
6192 error: account for the possibility of freopen (stdout).
6193 * lib/error.c: Include <unistd.h>.
6194 (flush_stdout): New function, extracted from error and error_at_line.
6195 Determine stdout's fd dynamically.
6196 (error, error_at_line): Invoke flush_stdout.
6197 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6198 * modules/error (Depends-on): Add unistd.
6200 2009-11-22 Bruno Haible <bruno@clisp.org>
6202 diffseq: Add comment.
6203 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6205 2009-11-22 Jim Meyering <meyering@redhat.com>
6207 c-stack: avoid defining an unused static function
6208 * lib/c-stack.c (find_stack_direction): Do not define this function
6209 when it will not be used.
6211 diffseq: avoid spurious gcc warnings
6212 * lib/diffseq.h (IF_LINT2): Define.
6213 (compareseq): Use it to initialize two members of "part".
6214 This avoids two used-uninitialized warnings.
6216 2009-11-21 Jim Meyering <meyering@redhat.com>
6218 c-stack: avoid "ignoring return value of `write'" warning
6219 * lib/c-stack.c: Include "ignore-value.h".
6220 (die): Explicitly ignore each write return value.
6221 * modules/c-stack (Depends-on): Add ignore-value.
6223 2009-11-21 Bruno Haible <bruno@clisp.org>
6225 diffseq: reduce scope of variable 'best'.
6226 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6227 variable, earlier used for two different purposes.
6229 2009-11-21 Jim Meyering <meyering@redhat.com>
6231 diffseq: remove useless assignment to "best"
6232 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6233 assignment. At that point "best" is already guaranteed to be zero.
6235 2009-11-20 Eric Blake <ebb9@byu.net>
6237 build: mention ftp redirector in release announcements
6238 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6239 values that used to come from cfg.mk; mention FTP redirect URL.
6240 * build-aux/announce-gen: Mention the mirror list.
6241 Suggested by Karl Berry.
6243 nanosleep: improve port to mingw
6244 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6245 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6246 LIB_NANOSLEEP, but only when needed.
6247 * modules/select (Link): Document LIBSOCKET.
6248 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6251 nanosleep: work around cygwin bug
6252 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6253 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6255 (getnow): Delete, not needed.
6256 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6258 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6259 clock-time, gettime.
6260 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6262 * modules/nanosleep-tests: New test.
6263 * tests/test-nanosleep.c: New file.
6265 sleep: work around cygwin bug
6266 * lib/sleep.c (rpl_sleep): Work around the bug.
6267 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6268 (gl_PREREQ_SLEEP): Delete unused macro.
6269 * modules/sleep (Depends-on): Add verify.
6270 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6271 * modules/unistd (Makefile.am): Substitute witness.
6272 * lib/unistd.in.h (sleep): Update prototype.
6273 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6274 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6275 * modules/sleep-tests (Depends-on): Check for alarm.
6277 2009-11-20 Jim Meyering <meyering@redhat.com>
6279 maint.mk: improve sc_prohibit_magic_number_exit
6280 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6281 so it does not match uses like System.exit(1).
6282 Add comments showing how to correct all offenders.
6284 2009-11-19 Eric Blake <ebb9@byu.net>
6286 xalloc-die-tests: add missing library
6287 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6289 test-xvasprintf: silence compiler warnings
6290 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6291 empty string from gcc.
6293 2009-11-19 Jim Meyering <meyering@redhat.com>
6295 xfreopen: new module, from coreutils
6296 * modules/xfreopen: New module.
6297 * lib/xfreopen.c: New file.
6298 * lib/xfreopen.h: New file.
6299 * MODULES.html.sh (File stream based Input/Output"): Add it.
6301 2009-11-19 Eric Blake <ebb9@byu.net>
6303 manywarnings: depend on warnings
6304 * modules/manywarnings (Depends-on): Add warnings.
6306 build: avoid compiler warnings
6307 * lib/select.c (rpl_select): Delete unused variable.
6308 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6310 2009-11-18 Eric Blake <ebb9@byu.net>
6312 tests: avoid false negative with --with-packager
6313 * tests/test-version-etc.sh: Discard packager information.
6314 * tests/test-argp-version-etc-1.sh: Likewise.
6315 Reported by Mike Frysinger.
6317 utimens: fix regression on Solaris
6318 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6319 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6320 can only change fd timestamps via futimesat. Instead, use an
6321 additional witness macro to avoid BSD bug.
6322 Reported by Jim Meyering.
6324 2009-11-17 Eric Blake <ebb9@byu.net>
6326 usleep: use it to simplify tests
6327 * modules/stat-time-tests (Depends-on): Add usleep.
6328 (configure.ac): Drop usleep check.
6329 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6330 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6331 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6332 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6333 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6334 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6335 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6336 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6338 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6339 * tests/test-lchown.h (nap): Likewise.
6340 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6341 * tests/test-stat-time.c (nap): Likewise.
6342 * tests/test-utimens-common.h (nap): Update comments.
6345 * modules/usleep: New file.
6346 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6347 * lib/usleep.c (usleep): Likewise.
6348 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6349 * modules/unistd (Makefile.am): Substitute witnesses.
6350 * lib/unistd.in.h (usleep): Add declaration.
6351 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6352 * MODULES.html.sh (Date and time): Likewise.
6353 * modules/usleep-tests (Depends-on): New test.
6354 * tests/test-usleep.c: New file.
6356 chown: work around OpenBSD bug
6357 * lib/chown.c (rpl_chown): Work around the bug.
6358 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6359 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6360 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6361 * modules/chown (Depends-on): Add stdbool.
6362 * modules/lchown (Depends-on): Likewise.
6363 * doc/posix-functions/chown.texi (chown): Document the bug.
6364 * doc/posix-functions/lchown.texi (lchown): Likewise.
6365 * tests/test-lchown.h (test_chown): Relax test.
6367 mkstemp: avoid conflict with C++ keyword template
6368 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6369 * lib/mkostemp.c (mkostemp): Likewise.
6370 * lib/mkostemps.c (mkostemps): Likewise.
6371 * lib/mkstemp.c (mkstemp): Likewise.
6372 * lib/mkstemps.c (mkstemps): Likewise.
6374 xalloc-die-tests: optimize
6375 * tests/test-xalloc-die.sh: Reduce number of processes.
6377 2009-11-17 Simon Josefsson <simon@josefsson.org>
6379 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6380 patch from ludo@gnu.org (Ludovic Courtès).
6382 2009-11-17 Jim Meyering <meyering@redhat.com>
6384 version-etc: use proper license string
6385 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6386 * modules/version-etc-fsf: Likewise.
6388 2009-11-17 Simon Josefsson <simon@josefsson.org>
6390 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6391 printed to stdout. Deal with EOL differences.
6393 2009-11-17 Eric Blake <ebb9@byu.net>
6395 unsetenv: work around Solaris bug
6396 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6397 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6398 Reported by Jim Meyering.
6400 vasnprintf: avoid compiler warnings
6401 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6403 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6405 2009-11-17 Simon Josefsson <simon@josefsson.org>
6407 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6408 settings since xalloc-die is no longer the self test,
6411 2009-11-17 Jim Meyering <meyering@redhat.com>
6413 test-xalloc-die.sh: make the code agree with the commit log
6414 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6415 at the end, just in case you happen to have a test-xalloc-die
6416 program in some other PATH directory.
6418 test-xalloc-die.sh: fix a portability bug
6419 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6420 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6421 Otherwise, argv[0] (as often seen in diagnostics) would be too
6422 system-dependent, sometimes with, and sometimes without the leading "./".
6424 version-etc-fsf: relax license to LGPLv3+
6425 * modules/version-etc-fsf (License): Relax license.
6427 2009-11-16 Eric Blake <ebb9@byu.net>
6429 xalloc-die-tests: avoid printing null pointer
6430 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6432 * tests/test-xalloc-die.c (program_name): Declare.
6433 * tests/test-xalloc-die.sh (tmpfiles): New file.
6435 setenv, unsetenv: work around various bugs
6436 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6437 (setenv) [HAVE_SETENV]: Work around bugs.
6438 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6439 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6441 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6442 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6443 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6444 * modules/stdlib (Makefile.am): Update substitutions.
6445 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6446 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6447 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6448 * modules/setenv-tests: New test.
6449 * modules/unsetenv-tests: Likewise.
6450 * tests/test-setenv.c: New file.
6451 * tests/test-unsetenv.c: Likewise.
6453 2009-11-16 Jim Meyering <meyering@redhat.com>
6455 version-etc: relax license to LGPLv3+
6456 * modules/version-etc (License): Relax license.
6458 better AC_REQUIRE expanded-before-required-warning avoidance
6459 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6460 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6461 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6462 which is no longer needed.
6464 2009-11-16 Eric Blake <ebb9@byu.net>
6466 test-freading: clean up temporary file
6467 * tests/test-freading.c (main): Remove file on success, and use
6468 ASSERT more liberally.
6469 Reported by Jim Meyering.
6471 2009-11-16 Jim Meyering <meyering@redhat.com>
6473 avoid new AC_REQUIRE expanded-before-required warnings
6474 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6476 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6477 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6479 2009-11-15 Simon Josefsson <simon@josefsson.org>
6481 * tests/test-xalloc-die.c: New file.
6482 * modules/xalloc-die-tests: New file.
6483 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6484 XFAIL_TESTS so it can be appended by modules.
6486 2009-11-15 Simon Josefsson <simon@josefsson.org>
6488 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6489 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6491 2009-11-14 Eric Blake <ebb9@byu.net>
6493 fnmatch: avoid compiler warning
6494 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6495 to silence compiler warning about mismatch signedness in ?:.
6496 Reported by Robert Millan.
6498 intprops: add double-inclusion guard
6499 * lib/intprops.h: Allow idempotent includes.
6500 Suggested by Bruce Korb.
6502 openat: detect Solaris fchownat bug
6503 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6504 penalizing glibc chownat when only lchownat is broken.
6505 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6506 trailing slash bugs.
6507 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6508 * modules/openat-tests (Files): Include more files.
6509 (Depends-on): Add mgetgroups, sleep, stat-time.
6510 (configure.ac): Add additional checks.
6511 (Makefile.am): Build new test.
6512 * tests/test-fchownat.c: New file.
6514 lchown: detect Solaris and FreeBSD bug
6515 * lib/lchown.c (rpl_lchown): Work around bug.
6516 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6517 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6518 * modules/unistd (Makefile.am): Populate it.
6519 * lib/unistd.in.h (lchown): Update declaration.
6520 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6521 * modules/lchown-tests: New file.
6522 * tests/test-lchown.h (test_lchown): Likewise.
6523 * tests/test-lchown.c (main): Likewise.
6525 chown: detect Solaris and FreeBSD bug
6526 * lib/chown.c (rpl_chown): Work around bug.
6527 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6528 (gl_PREREQ_CHOWN): Delete.
6529 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6530 * modules/unistd (Makefile.am): Populate it.
6531 * lib/unistd.in.h (chown): Update declaration.
6532 * lib/lchown.c (chown): Update client.
6533 * modules/lchown (Depends-on): Add lstat.
6534 * doc/posix-functions/chown.texi (chown): Document the bug.
6535 * doc/posix-functions/getgroups.texi (getgroups): Document
6537 * modules/chown-tests: New file.
6538 * tests/test-chown.h (test_chown): Likewise.
6539 * tests/test-chown.c (main): Likewise.
6541 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6543 gnulib-tool: correctly detect absence of m4 directories
6544 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6546 2009-11-14 Jim Meyering <meyering@redhat.com>
6548 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6549 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6551 2009-11-14 John W. Eaton <jwe@gnu.org>
6553 strftime.h: wrap funtion declaration in extern "C" block
6554 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6556 2009-11-13 Eric Blake <ebb9@byu.net>
6558 getgroups: avoid compiler warning
6559 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6561 getgroups: work around FreeBSD bug
6562 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6563 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6564 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6565 * tests/test-getgroups.c (main): Fix buffer overrun.
6567 getgroups: avoid compilation failure
6568 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6569 * modules/getgroups (Depends-on): Add stdint.
6571 2009-11-13 Jim Meyering <meyering@redhat.com>
6573 test-getgroups: avoid compilation failure
6574 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6576 2009-11-13 Eric Blake <ebb9@byu.net>
6578 mgetgroups: new module, taken from coreutils
6579 * modules/mgetgroups: New file.
6580 * lib/mgetgroups.h: Likewise.
6581 * lib/mgetgroups.c (mgetgroups): Likewise.
6582 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6583 * MODULES.html.sh (Users and groups): Mention it.
6585 getgroups: don't expose GETGROUPS_T to user
6586 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6587 an element at a time if GETGROUPS_T is wrong size.
6588 * lib/getugroups.h (getugroups): Change signature.
6589 * lib/unistd.in.h (getgroups): Likewise.
6590 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6591 signature needs fixing.
6592 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6594 * modules/group-member (Depends-on): Add getgroups.
6595 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6596 (group_member): Rely on getgroups replacement.
6597 * lib/getugroups.c (getugroups): Use gid_t.
6598 * tests/test-getgroups.c (main): Likewise.
6599 * NEWS: Mention the signature change.
6600 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6601 problem with signature.
6602 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6603 GETGROUPS_T is still useful for setgroups.
6605 getgroups, getugroups: provide stubs for mingw
6606 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6607 * lib/getugroups.c (getugroups): Likewise.
6608 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6609 function. Modernize replacement scheme.
6610 (gl_PREREQ_GETGROUPS): Delete.
6611 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6612 * modules/getgroups (configure.ac): Declare witness.
6613 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6614 * modules/unistd (Depends-on): Substitute witness.
6615 * lib/unistd.in.h (getgroups): Declare replacement.
6617 getgroups: avoid calling exit
6618 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6620 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6622 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6623 exiting, in the rare case of malloc failure.
6625 getgroups: fix logic error
6626 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6627 has more than 20 groups.
6628 * modules/getgroups-tests: New test.
6629 * tests/test-getgroups.c: New file.
6631 2009-11-13 Simon Josefsson <simon@josefsson.org>
6633 * tests/test-base64.c: Improve.
6635 2009-11-13 Simon Josefsson <simon@josefsson.org>
6637 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6638 Blake <ebb9@byu.net>.
6640 2009-11-13 Simon Josefsson <simon@josefsson.org>
6642 * tests/test-xvasprintf.c: Add %s%s related checks.
6644 2009-11-12 Eric Blake <ebb9@byu.net>
6646 version-etc: match standards.texi style
6647 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6648 and use <> only for URLs.
6650 2009-11-10 Kamil Dudka <kdudka@redhat.com>
6652 fts: do not fail on a submount during traversal
6653 * lib/fts.c (fts_build): Read the stat info again after opening
6654 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6655 Original report at http://bugzilla.redhat.com/501848.
6657 2009-11-12 Jim Meyering <meyering@redhat.com>
6659 bootstrap: sync from coreutils
6660 * build-aux/bootstrap (bootstrap_epilogue): New function.
6661 Use git_modules_config in one more place. This make bootstrap's
6662 --gnulib-srcdir option more useful for testing.
6664 bootstrap: generalize autoheader check
6665 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6668 2009-11-11 Eric Blake <ebb9@byu.net>
6670 mkfifoat: use new modules for Solaris and BSD bugs
6671 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6672 * lib/mkfifoat.c (mknodat): Split...
6673 * lib/mknodat.c (mknodat): ...into new file.
6674 * modules/mkfifoat (Files): Ship new file.
6675 (Depends-on): Add mkfifo, mknod.
6676 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6677 (Depends-on): Add symlink.
6678 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
6679 redundant with test_mkfifo.h.
6680 (do_mkfifoat, do_mknodat): New helpers.
6683 * modules/mknod: New file.
6684 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6685 * lib/mknod.c (mknod): Likewise.
6686 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6688 * modules/sys_stat (Makefile.am): Substitute them.
6689 * lib/sys_stat.in.h (mknod): Declare replacement.
6690 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6692 * doc/posix-functions/mknod.texi (mknod): Likewise.
6693 * modules/mknod-tests: New test.
6694 * tests/test-mknod.c: Likewise.
6697 * modules/mkfifo: New file.
6698 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6699 * lib/mkfifo.c (mkfifo): Likewise.
6700 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6702 * modules/sys_stat (Makefile.am): Substitute them.
6703 * lib/sys_stat.in.h (mkfifo): Declare replacement.
6704 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6706 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6707 * modules/mkfifo-tests: New test.
6708 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6709 from test-mkfifoat.c.
6710 * tests/test-mkfifo.c: New file.
6712 readlink: detect FreeBSD bug
6713 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6715 * doc/posix-functions/readlink.texi (readlink): Document the bug.
6716 * tests/test-readlink.h (test_readlink): Enhance test.
6718 symlink: detect FreeBSD bug
6719 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6721 * doc/posix-functions/symlink.texi (symlink): Document the bug.
6722 * tests/test-symlink.h (test_symlink): Enhance test.
6724 2009-11-10 Eric Blake <ebb9@byu.net>
6726 link: detect FreeBSD bug
6727 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6729 * doc/posix-functions/link.texi (link): Document the bug.
6730 * tests/test-link.h (test_link): Enhance test.
6731 * tests/test-linkat.c (main): Update caller.
6733 unlink, remove: detect FreeBSD bug
6734 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6736 * doc/posix-functions/unlink.texi (unlink): Document the bug.
6737 * doc/posix-functions/remove.texi (remove): Likewise.
6738 * tests/test-unlink.h (test_unlink): Enhance test.
6739 * tests/test-remove.c (main): Likewise.
6741 2009-11-09 Eric Blake <ebb9@byu.net>
6743 rename: detect FreeBSD bug
6744 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6746 * modules/renameat-tests (Depends-on): Add filenamecat.
6747 * tests/test-rename.h (test_rename): Allow one more errno.
6748 * tests/test-renameat.c (main): Likewise.
6749 * doc/posix-functions/rename.texi (rename): Document the bug.
6751 open: detect FreeBSD bug
6752 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6754 * doc/posix-functions/open.texi (open): Document the bug.
6755 * doc/posix-functions/utimes.texi (utimes): Likewise.
6756 * tests/test-open.h (test_open): Add parameters, and test symlink
6758 * tests/test-open.c (main): Adjust caller.
6759 * tests/test-fcntl-safer.c (main): Likewise.
6760 * modules/open-tests (Depends-on): Add stdbool, symlink.
6761 * modules/fcntl-safer-tests (Depends-on): Likewise.
6762 * tests/test-openat.c (main): Add test-open tests.
6764 stat: detect FreeBSD bug
6765 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6767 * doc/posix-functions/stat.texi (stat): Document the bug.
6768 * tests/test-stat.h (test_stat_func): Add argument.
6769 * tests/test-stat.c (main): Adjust caller.
6770 * tests/test-fstatat.c (main): Likewise.
6771 * modules/stat-tests (Depends-on): Add stdbool, symlink.
6772 Reported by Jim Meyering.
6774 2009-11-09 James Youngman <jay@gnu.org>
6776 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6777 * lib/strftime.c: Correct placement of #include "ignore-value.h".
6779 2009-11-08 Jim Meyering <meyering@redhat.com>
6781 utimens: remove invalid futimesat call
6782 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6783 It used the file descriptor of the target file as the DIR_FD
6784 parameter and NULL as the file name. That caused failure with
6785 errno == EFAULT on FreeBSD-8.0-rc2
6787 2009-11-07 Eric Blake <ebb9@byu.net>
6789 fflush, freadseek: use fseeko, not fseek
6790 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6791 (clear_ungetc_buffer): Avoid potential problems on large files.
6792 * lib/freadseek.c (freadseek): Likewise.
6793 * modules/freadseek (Depends-on): Add fseeko.
6794 * modules/fseek (configure.ac): Set a witness.
6795 * tests/test-fflush.c (main): Use fseeko.
6796 * tests/test-fpurge.c (fseek): Disable link warning.
6797 * tests/test-freadable.c (fseek): Likewise.
6798 * tests/test-freading.c (fseek): Likewise.
6799 * tests/test-fseeko.c (fseek): Likewise.
6800 * tests/test-ftell.c (fseek): Likewise.
6801 * tests/test-ftello.c (fseek): Likewise.
6802 * tests/test-fwritable.c (fseek): Likewise.
6803 * tests/test-fwriting.c (fseek): Likewise.
6805 2009-11-06 Simon Josefsson <simon@josefsson.org>
6807 * modules/memchr (Depends-on): Drop getpagesize dependency.
6809 2009-11-06 Simon Josefsson <simon@josefsson.org>
6811 * build-aux/pmccabe2html: Disable execute bit. Suggested by
6812 Reported by Ludovic Courtès.
6813 * build-aux/pmccabe2html: Improve example usage.
6814 * build-aux/pmccabe2html: Drop #! header. Doc fix.
6816 2009-11-06 Jim Meyering <meyering@redhat.com>
6818 do-release-commit-and-tag: New module.
6819 Automate the release-commit and tag process.
6820 * build-aux/do-release-commit-and-tag: New script, from coreutils.
6821 * modules/do-release-commit-and-tag: New file.
6822 * MODULES.html.sh (Support for maintaining and releasing): Add it.
6824 2009-11-06 Simon Josefsson <simon@josefsson.org>
6826 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6827 because test-select.c uses inet_pton.
6829 2009-11-06 Simon Josefsson <simon@josefsson.org>
6831 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6832 GETADDRINFO_LIB. Bump serial number.
6833 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6834 Suggested by Eric Blake <ebb9@byu.net>.
6836 2009-11-05 Eric Blake <ebb9@byu.net>
6838 strtod: detect darwin bug
6839 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6840 Reported by Leo Davis.
6842 freopen-safer: new module
6843 * modules/freopen-safer: New module.
6844 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6845 * lib/freopen-safer.c (freopen_safer): New file.
6846 * lib/stdio-safer.h (freopen_safer): New declaration.
6847 * lib/stdio--.h (freopen): New override.
6848 * MODULES.html.sh (File stream based Input/Output): Mention it.
6849 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6850 freopen-safer module.
6851 * doc/posix-functions/stderr.texi (stderr): Likewise.
6852 * doc/posix-functions/stdin.texi (stdin): Likewise.
6853 * doc/posix-functions/stdout.texi (stdout): Likewise.
6854 * modules/freopen-safer-tests: New test.
6855 * tests/test-reopen-safer.c: New file.
6857 2009-11-05 Jim Meyering <meyering@redhat.com>
6859 maint.mk: Prohibit inclusion of "close-stream.h" without use.
6860 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6862 2009-11-05 Simon Josefsson <simon@josefsson.org>
6864 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6866 2009-11-05 Simon Josefsson <simon@josefsson.org>
6868 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6870 2009-11-05 Simon Josefsson <simon@josefsson.org>
6873 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6874 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6876 2009-11-05 Simon Josefsson <simon@josefsson.org>
6878 * tests/test-func.c: Also test value of __func__.
6880 2009-11-05 Simon Josefsson <simon@josefsson.org>
6882 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6883 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
6885 2009-11-05 Bruno Haible <bruno@clisp.org>
6888 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6889 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6890 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6892 2009-11-05 Bruno Haible <bruno@clisp.org>
6894 Tests for module 'inet_pton'.
6895 * modules/inet_pton-tests: New file.
6896 * tests/test-inet_pton.c: New file.
6898 2009-11-05 Bruno Haible <bruno@clisp.org>
6900 Tests for module 'inet_ntop'.
6901 * modules/inet_ntop-tests: New file.
6902 * tests/test-inet_ntop.c: New file.
6904 2009-11-04 Eric Blake <ebb9@byu.net>
6906 stdlib-safer: wrap all mkstemp variants
6907 * modules/mkostemp (configure.ac): Set witness.
6908 * modules/mkostemps (configure.ac): Likewise.
6909 * modules/mkstemps (configure.ac): Likewise.
6910 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6911 (mkstemps_safer): Wrap more functions.
6912 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6914 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6915 (mkstemps_safer): Implement the wrappers.
6917 mkstemps, mkostemps: new modules
6918 * modules/mkostemps: New module.
6919 * modules/mkstemps: Likewise.
6920 * lib/mkostemps.c (mkostemps): New file.
6921 * lib/mkstemps.c (mkstemps): Likewise.
6922 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6923 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6924 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6925 * modules/stdlib (Makefile.am): Substitute them.
6926 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6927 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6928 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6929 * doc/gnulib.texi (Glibc stdlib.h): Include them.
6930 * MODULES.html.sh (File system functions): Mention them.
6932 tempname: resync from glibc
6933 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
6934 same values for __GT_FILE as glibc. Abort even when assertions
6936 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6937 match its value otherwise. Allow idempotent inclusion.
6938 * lib/mkdtemp.c (mkdtemp): Adjust caller.
6939 * lib/mkostemp.c (mkostemp): Likewise.
6940 * lib/mkstemp.c (mkstemp): Likewise.
6941 * lib/tmpfile.c (tmpfile): Likewise.
6942 * NEWS: Document this.
6944 utimens: fix use of futimens on older Linux
6945 * lib/utimens.c (fdutimens): Use updated, rather than original,
6946 timespec to avoid bug in older Linux kernel.
6947 Reported by Simon Josefsson.
6949 2009-11-04 Bruno Haible <bruno@clisp.org>
6951 Make num_processors more flexible and consistent.
6952 * lib/nproc.h (enum nproc_query): New type.
6953 (num_processors): Add a 'query' argument.
6954 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6955 (num_processors): Add a 'query' argument. Test the value of the
6956 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6957 mingw, count the number of CPUs available for the current process.
6958 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6959 Check for sched_getaffinity and sched_getaffinity_np.
6960 * modules/nproc (Depends-on): Add c-ctype, extensions.
6961 * NEWS: Mention the change.
6963 2009-11-03 Bruno Haible <bruno@clisp.org>
6965 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6967 2009-11-03 Jim Meyering <meyering@redhat.com>
6969 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6970 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6973 2009-11-02 Eric Blake <ebb9@byu.net>
6975 mktime, timegm: share common declaration
6976 * lib/mktime-internal.h: New file.
6977 * lib/mktime.c: Use it rather than open-coding a declaration.
6978 * lib/timegm.c: Likewise.
6979 * modules/mktime (Files): Ship it.
6980 * modules/timegm (Files): Likewise.
6981 Suggested by Bruno Haible.
6983 test-update-copyright: update test to match script changes
6984 * tests/test-update-copyright.sh: Avoid hard-coding perl
6985 location. Don't update *.bak created by earlier runs.
6987 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
6988 Simon Josefsson <simon@josefsson.org>
6989 Bruno Haible <bruno@clisp.org>
6991 Fix link error on Solaris 8.
6992 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6993 also in libnsl. Define also INET_PTON_LIB.
6994 * modules/inet_pton (Link): New section.
6996 2009-11-02 Simon Josefsson <simon@josefsson.org>
6997 Bruno Haible <bruno@clisp.org>
6999 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7000 * modules/inet_ntop (Link): New section.
7001 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7003 2009-11-02 Eric Blake <ebb9@byu.net>
7005 maint: avoid compiler warnings in m4 macros
7006 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7007 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7009 2009-11-02 Simon Josefsson <simon@josefsson.org>
7011 * m4/pmccabe2html.m4: Remove file.
7012 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7013 function. Change maintainer.
7014 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7015 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7018 2009-10-31 Eric Blake <ebb9@byu.net>
7020 fseeko: fix m4 regression
7021 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7022 regression from 2009-10-27.
7023 Reported by Ralf Wildenhues.
7025 2009-10-31 Jim Meyering <meyering@redhat.com>
7027 inttostr: aesthetics and improved (compile-time) safety
7028 Define inttype_is_signed rather than inttype_is_unsigned,
7029 since the sole use is via "#if inttype_is_signed".
7030 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7031 inttype_is_unsigned.
7032 * lib/offtostr.c (inttype_is_signed): Likewise.
7033 * lib/uinttostr.c (inttype_is_signed): Likewise.
7034 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7035 * lib/inttostr.c (inttostr): Use verify to cross-check the
7036 inttype_is_signed value and the signedness of the actual type.
7037 * modules/inttostr (Depends-on): Add verify.
7039 2009-10-30 Eric Blake <ebb9@byu.net>
7041 build: avoid compiler warnings
7042 * lib/fchmodat.c (lchmod): Mark unused variables.
7043 * lib/getopt.c (_getopt_initialize): Likewise.
7044 * lib/mktime.c (__mktime_internal): Provide prototype.
7045 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7046 older gcc that do not understand #pragma GCC diagnostic.
7047 * lib/uinttostr.c (inttype_is_unsigned): Define.
7048 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7050 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7052 stat: fix compilation on AIX
7053 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7054 only see struct stat64.
7056 2009-10-30 Eric Blake <ebb9@byu.net>
7058 exclude: make more robust
7059 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7060 rather than masking a coding bug.
7061 Suggested by Bruno Haible.
7063 2009-10-30 Jim Meyering <meyering@redhat.com>
7065 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7066 Rather than putting #!/usr/bin/perl on the first line,
7067 start with a variant of what's recommended by "man perlrun" that
7068 invokes the first "perl" program from your shell's search path.
7069 * build-aux/gitlog-to-changelog: Replace #!... as above.
7070 Add a "Local Variables" perl mode setting.
7071 Prompted by a patch from Ludovic Courtès.
7072 Improved by Eric Blake.
7073 * build-aux/useless-if-before-free: Likewise.
7074 * build-aux/announce-gen: Likewise.
7075 * build-aux/update-copyright: Likewise.
7077 2009-10-29 Eric Blake <ebb9@byu.net>
7079 filenamecat-lgpl: adjust clients
7080 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7082 * modules/renameat (Depends-on): Likewise.
7084 filenamecat: split into filenamecat-lgpl
7085 * modules/filenamecat-lgpl: New module.
7086 * modules/filenamecat (Files): Move library-safe files into
7088 (Depends-on): Add filenamecat-lgpl.
7089 (configure.ac): Declare witness.
7090 * lib/filenamecat.h (file_name_concat): Only declare when using
7092 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7094 * lib/filenamecat-lgpl.c: ...into new file.
7095 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7096 (gl_FILE_NAME_CONCAT): Use it.
7097 * MODULES.html.sh (File system functions): Mention new module.
7099 argp: avoid memory leak
7100 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7101 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7102 base_name, since the latter malloc()s and can call exit().
7103 Leak introduced 2006-07-03.
7105 dirname-lgpl: adjust clients that don't need full dirname
7106 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7107 * modules/filenamecat (Depends-on): Likewise.
7108 * modules/linkat (Depends-on): Likewise.
7109 * modules/mkancesdirs (Depends-on): Likewise.
7110 * modules/mkdir (Depends-on): Likewise.
7111 * modules/openat (Depends-on): Likewise.
7112 * modules/savewd (Depends-on): Likewise.
7113 * modules/rename (Depends-on): Likewise.
7114 (License): Relax license.
7115 * modules/mkdir-tests (Depends-on): Drop progname.
7116 (Makefile.am): Delete unneeded LDADD.
7117 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7119 dirname: split into dirname-lgpl
7120 * modules/dirname-lgpl: New module.
7121 * modules/dirname (Files): Move library-safe files into
7123 (Depends-on): Add dirname-lgpl.
7124 (configure.ac): Declare witness.
7125 * modules/double-slash-root (License): Relax license.
7126 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7128 * lib/dirname.c (dir_len, mdir_name): Move...
7129 * lib/dirname-lgpl.c: ...into new file.
7130 * lib/basename.c (last_component, base_len): Move...
7131 * lib/basename-lgpl.c: ...into new file.
7132 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7133 (gl_DIRNAME): Use it.
7134 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7136 * modules/dirname-tests (Depends-on): Add progname.
7137 * tests/test-dirname.c (program_name): Delete.
7139 mkdir: make safe for libraries
7140 * modules/mkdir (Depends-on): Drop xalloc.
7141 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7144 tests: avoid some compiler warnings
7145 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7147 * tests/test-memchr.c (main): Avoid type mismatch.
7148 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7149 * tests/test-base64.c (main): Likewise.
7150 * tests/test-getdelim.c (main): Likewise.
7151 * tests/test-gethostname.c (main): Likewise.
7152 * tests/test-getline.c (main): Likewise.
7153 * tests/test-netinet_in.c (main): Likewise.
7154 * tests/test-select.c (open_server_socket, main): Likewise.
7155 * tests/test-select-stdin.c (main): Likewise.
7156 * tests/test-sockets.c (main): Likewise.
7157 * tests/test-strsignal.c (main): Likewise.
7158 * tests/test-sys_select.c (main): Likewise.
7159 * tests/test-sys_socket.c (main): Likewise.
7160 * tests/test-u64.c (main): Likewise.
7161 * tests/test-xfprintf-posix.c (main): Likewise.
7162 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7164 sockets: avoid compiler warning
7165 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7167 maint: detect usage(1) and other suspicious exits
7168 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7170 2009-10-29 Jim Meyering <meyering@redhat.com>
7172 timespec: long-to-int truncation could make timespec_cmp malfunction
7173 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7174 a multiple of 2^32 nanoseconds as no difference.
7176 2009-10-28 Jim Meyering <meyering@redhat.com>
7178 fprintftime: wrap macro code argument in "do {...} while(0)"
7179 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7180 cpy macro must be a statement that can be followed by a semicolon.
7181 Now that the else clause contains a comment and is hence longer
7182 than one line, I require curly braces. That in turn requires
7183 that we wrap this code block in the standard do...while(0).
7185 fprintftime: remove stray semicolon from previous change
7186 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7188 fprintftime: avoid a warning about ignored fwrite return value
7189 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7190 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7192 * modules/fprintftime (Depends-on): Add ignore-value.
7194 exclude: avoid an unwarranted warning
7195 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7197 2009-10-27 Eric Blake <ebb9@byu.net>
7199 fseek: avoid compilation failure when fflush is replaced
7200 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7201 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7203 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7204 module is not in use; since REPLACE_FSEEK worked otherwise.
7205 (GNULIB_FTELLO): Likewise for ftell.
7206 Reported by Ian Beckwith and others.
7208 2009-10-27 Bruno Haible <bruno@clisp.org>
7210 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7211 Reported by Jim Meyering.
7213 2009-10-27 Jim Meyering <jim@meyering.net>
7214 Bruno Haible <bruno@clisp.org>
7216 Avoid warning despite dropping the return value of fwrite.
7217 * lib/unicodeio.c: Include ignore-value.h.
7218 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7219 * modules/unicodeio (Depends-on): Add ignore-value.
7221 2009-10-26 Eric Blake <ebb9@byu.net>
7223 areadlinkat: fix fallback path
7224 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7227 2009-10-22 Pádraig Brady <P@draigBrady.com>
7229 Use a better IO block size for modern systems
7230 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7231 * lib/md2.c: Likewise.
7232 * lib/md4.c: Likewise.
7233 * lib/md5.c: Likewise.
7234 * lib/sha1.c: Likewise.
7235 * lib/sha256.c: Likewise.
7236 * lib/sha512.c: Likewise.
7238 2009-10-22 Eric Blake <ebb9@byu.net>
7240 tests: avoid several compiler warnings
7241 * tests/test-getcwd.c (main): Avoid buffer underflow.
7242 * tests/test-getdate.c (main): String literals are not safe with
7243 putenv, so use setenv. Declare unused argument.
7244 * modules/getdate-tests (Depends-on): Add setenv.
7245 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7246 problems with string literals in char *.
7247 * tests/test-hash.c (main): Avoid shadowing declaration.
7248 (insert_new): Treat string literals as char const *.
7249 * tests/test-getopt.h (test_getopt): Likewise.
7250 (getopt_loop): Alter types to minimize casting elsewhere.
7251 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7252 (test_getopt_long_posix): Likewise.
7253 (do_getopt_long): Add wrapper to minimize casting.
7254 * tests/test-atexit.c (clear_temp_file): Use void.
7255 * tests/test-areadlink-with-size.c (main): Declare unused
7257 * tests/test-areadlink.c (main): Likewise.
7258 * tests/test-areadlinkat-with-size.c (main): Likewise.
7259 * tests/test-areadlinkat.c (main): Likewise.
7260 * tests/test-canonicalize-lgpl.c (main): Likewise.
7261 * tests/test-canonicalize.c (main): Likewise.
7262 * tests/test-dirent-safer.c (main): Likewise.
7263 * tests/test-dirname.c (main): Likewise.
7264 * tests/test-dup2.c (main): Likewise.
7265 * tests/test-fchdir.c (main): Likewise.
7266 * tests/test-fcntl-h.c (main): Likewise.
7267 * tests/test-fcntl-safer.c (main): Likewise.
7268 * tests/test-fdopendir.c (main): Likewise.
7269 * tests/test-fdutimensat.c (main): Likewise.
7270 * tests/test-fflush.c (main): Likewise.
7271 * tests/test-filenamecat.c (main): Likewise.
7272 * tests/test-filevercmp.c (main): Likewise.
7273 * tests/test-fopen-safer.c (main): Likewise.
7274 * tests/test-fopen.c (main): Likewise.
7275 * tests/test-fpending.c (main): Likewise.
7276 * tests/test-fpurge.c (main): Likewise.
7277 * tests/test-freading.c (main): Likewise.
7278 * tests/test-fstatat.c (main): Likewise.
7279 * tests/test-fsync.c (main): Likewise.
7280 * tests/test-futimens.c (main): Likewise.
7281 * tests/test-getndelim2.c (main): Likewise.
7282 * tests/test-gettimeofday.c (main): Likewise.
7283 * tests/test-getopt.c (main): Likewise.
7284 * tests/test-i-ring.c (main): Likewise.
7285 * tests/test-inttypes.c (main): Likewise.
7286 * tests/test-link.c (main): Likewise.
7287 * tests/test-lstat.c (main): Likewise.
7288 * tests/test-math.c (main): Likewise.
7289 * tests/test-md5.c (main): Likewise.
7290 * tests/test-memchr2.c (main): Likewise.
7291 * tests/test-memrchr.c (main): Likewise.
7292 * tests/test-mkdir.c (main): Likewise.
7293 * tests/test-mkdirat.c (main): Likewise.
7294 * tests/test-mkfifoat.c (main): Likewise.
7295 * tests/test-open.c (main): Likewise.
7296 * tests/test-openat-safer.c (main): Likewise.
7297 * tests/test-openat.c (main): Likewise.
7298 * tests/test-quotearg.c (main): Likewise.
7299 * tests/test-rawmemchr.c (main): Likewise.
7300 * tests/test-readlink.c (main): Likewise.
7301 * tests/test-remove.c (main): Likewise.
7302 * tests/test-rename.c (main): Likewise.
7303 * tests/test-renameat.c (main): Likewise.
7304 * tests/test-rmdir.c (main): Likewise.
7305 * tests/test-sha1.c (main): Likewise.
7306 * tests/test-signal.c (main): Likewise.
7307 * tests/test-sigaction.c (main): Likewise.
7308 * tests/test-stat.c (main): Likewise.
7309 * tests/test-stat-time.c (main): Likewise.
7310 * tests/test-stddef.c (main): Likewise.
7311 * tests/test-stdint.c (main): Likewise.
7312 * tests/test-stdio.c (main): Likewise.
7313 * tests/test-stdlib.c (main): Likewise.
7314 * tests/test-strchrnul.c (main): Likewise.
7315 * tests/test-strerror.c (main): Likewise.
7316 * tests/test-string.c (main): Likewise.
7317 * tests/test-strtod.c (main): Likewise.
7318 * tests/test-strverscmp.c (main): Likewise.
7319 * tests/test-symlink.c (main): Likewise.
7320 * tests/test-symlinkat.c (main): Likewise.
7321 * tests/test-sys_stat.c (main): Likewise.
7322 * tests/test-sys_time.c (main): Likewise.
7323 * tests/test-time.c (main): Likewise.
7324 * tests/test-unistd.c (main): Likewise.
7325 * tests/test-unlink.c (main): Likewise.
7326 * tests/test-unlinkat.c (main): Likewise.
7327 * tests/test-utimens.c (main): Likewise.
7328 * tests/test-utimensat.c (main): Likewise.
7329 * tests/test-version-etc.c (main): Likewise.
7330 * tests/test-wchar.c (main): Likewise.
7331 * tests/test-wctype.c (main): Likewise.
7332 * tests/test-xprintf-posix.c (main): Likewise.
7333 * tests/test-posixtm.c (main): Likewise.
7334 (STREQ): Delete unused macro.
7335 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7337 * tests/test-memchr.c (main): Likewise.
7339 2009-10-21 Eric Blake <ebb9@byu.net>
7341 areadlinkat: avoid failure on older glibc
7342 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7343 rather than mis-comparing 0 against FUNC_RESULT of char*.
7345 2009-10-21 Bruno Haible <bruno@clisp.org>
7347 * modules/stpncpy (License): Relicense under LGPLv2+.
7348 Reported by David Lutterkort <lutter@redhat.com>.
7350 2009-10-20 Eric Blake <ebb9@byu.net>
7352 utimensat: work around Solaris 9 bug
7353 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7354 has trailing slash bugs.
7355 * tests/test-lutimens.h (test_lutimens): Enhance test.
7356 * tests/test-utimens.h (test_utimens): Likewise.
7357 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7358 * doc/posix-functions/utimes.texi (utimes): Likewise.
7359 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7360 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7361 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7362 * doc/posix-functions/futimens.texi (futimens): Likewise.
7364 fdutimensat: new module
7365 * modules/fdutimensat: New file.
7366 * lib/fdutimensat.c (fdutimensat): Likewise.
7367 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7368 * MODULES.html.sh (File system functions): Mention module.
7369 * modules/fdutimensat-tests: New test.
7370 * tests/test-fdutimensat.c: Likewise.
7372 doc: regenerate INSTALL
7373 * doc/INSTALL: Reflect recent autoconf update.
7374 * doc/INSTALL.ISO: Likewise.
7375 * doc/INSTALL.UTF-8: Likewise.
7377 2009-10-20 Pádraig Brady <P@draigBrady.com>
7379 acl: warn if ACL support is not detected
7380 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7382 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7384 * lib/nproc.h: Add extern "C" block for C++.
7386 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7387 Bruno Haible <bruno@clisp.org>
7389 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7390 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7391 * doc/posix-functions/isalpha.texi: Likewise.
7392 * doc/posix-functions/isblank.texi: Likewise.
7393 * doc/posix-functions/iscntrl.texi: Likewise.
7394 * doc/posix-functions/isdigit.texi: Likewise.
7395 * doc/posix-functions/isgraph.texi: Likewise.
7396 * doc/posix-functions/islower.texi: Likewise.
7397 * doc/posix-functions/isprint.texi: Likewise.
7398 * doc/posix-functions/ispunct.texi: Likewise.
7399 * doc/posix-functions/isspace.texi: Likewise.
7400 * doc/posix-functions/isupper.texi: Likewise.
7401 * doc/posix-functions/isxdigit.texi: Likewise.
7403 2009-10-18 Bruno Haible <bruno@clisp.org>
7405 Tests for module 'isblank'.
7406 * modules/isblank-tests: New file.
7407 * tests/test-isblank.c: New file.
7409 New module 'isblank'.
7410 * lib/isblank.c: New file.
7411 * m4/isblank.m4: New file.
7412 * modules/isblank: New file.
7413 * doc/posix-functions/isblank.texi: Mention the new module.
7415 2009-10-18 Bruno Haible <bruno@clisp.org>
7418 * lib/ctype.in.h: New file.
7419 * m4/ctype.m4: New file.
7420 * modules/ctype: New file.
7421 * doc/posix-headers/ctype.texi: Mention the new module.
7423 2009-10-18 Jim Meyering <meyering@redhat.com>
7425 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7426 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7427 right after its initialization, rather than farther down.
7428 Keeping these in close proximity makes it easier to ensure
7429 that each such variable is initialized. E.g.,
7432 AC_SUBST([LIB_CLOCK_GETTIME])
7434 This change also increments these serial numbers.
7435 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7436 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7437 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7439 2009-10-18 Bruno Haible <bruno@clisp.org>
7441 Don't let environment variables perturb build.
7442 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7443 (gl_PREREQ_GETHRXTIME): ... not here.
7445 2009-10-18 Bruno Haible <bruno@clisp.org>
7447 Avoid symlink attack in localcharset module.
7448 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7449 (O_NOFOLLOW): Define fallback.
7450 (get_charset_aliases): Don't open the file if it is a symbolic link.
7451 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7453 (gl_FCNTL_H): Require it.
7454 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7455 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7456 Reported by Fergal Glynn <fglynn@veracode.com>.
7458 2009-10-18 Bruno Haible <bruno@clisp.org>
7460 Implement nproc for mingw.
7461 * lib/nproc.c: Include <windows.h>
7462 (num_processors): On native Windows platforms, try GetSystemInfo.
7464 2009-10-18 Bruno Haible <bruno@clisp.org>
7466 Implement nproc for IRIX.
7467 * lib/nproc.c: Include <sys/sysmp.h>.
7468 (num_processors): On IRIX systems, try sysmp.
7469 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7471 2009-10-18 Bruno Haible <bruno@clisp.org>
7473 Implement nproc for HP-UX.
7474 * lib/nproc.c: Include <sys/pstat.h>
7475 (num_processors): On HP-UX systems, try pstat_getdynamic.
7476 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7479 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7480 Bruno Haible <bruno@clisp.org>
7482 Implement nproc for NetBSD, OpenBSD.
7483 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7484 (ARRAY_SIZE): New macro.
7485 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7486 * m4/nproc.m4: New file.
7487 * modules/nproc (Files): Add m4/nproc.m4.
7488 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7489 (Makefile.am): Instead, augment lib_SOURCES.
7491 2009-10-18 Bruno Haible <bruno@clisp.org>
7493 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7494 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7497 2009-10-16 Eric Blake <ebb9@byu.net>
7499 utimensat: new module
7500 * modules/utimensat: New file.
7501 * lib/utimensat.c (utimensat): Likewise.
7502 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7503 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7504 so we can work around Linux bugs.
7505 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7506 * modules/sys_stat (Makefile.am): Substitute them.
7507 * lib/sys_stat.in.h (utimensat): Declare it.
7508 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7509 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7510 * modules/utimensat-tests: New test.
7511 * tests/test-utimensat.c: Likewise.
7513 utimens: let lutimens work on non-symlinks
7514 * lib/utimens.c (lutimens): Fall back to utimens rather than
7515 failing with ENOSYS, when file is not a symlink.
7516 (utimens): Reduce redirection.
7517 * tests/test-lutimens.h (test_lutimens): Update test to cover
7519 * tests/test-utimens.h (test_utimens): Update test to cover
7521 * tests/test-utimens.c (main): Update caller.
7523 utimens: cache whether utimensat syscall works
7524 * lib/utimens.c (utimensat_works_really): New cache variable.
7525 (fdutimens, lutimens): Use it to avoid failing syscall.
7527 test-stat-time, test-utimens: improve portability
7528 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7529 ext4 on alpha, and for cygwin.
7530 * tests/test-utimens-common.h: New file.
7531 (nap): Factor delays into single function.
7532 * tests/test-lutimens.h (test_lutimens): Use new header.
7533 * tests/test-futimens.h (test_futimens): Likewise.
7534 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7535 timestamps to occur from same machine, as was done previously for
7537 * modules/utimens-tests (Files): Ship new file.
7538 * modules/futimens-tests (Files): Likewise.
7539 Reported in part by Jim Meyering.
7541 sys_stat: sort replacement declarations
7542 * lib/sys_stat.in.h: Sort declarations.
7543 * lib/futimens.c (futimens): Fix typo.
7545 2009-10-15 Jim Meyering <meyering@redhat.com>
7547 don't let environment settings perturb build
7548 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7549 could cause a configure-time and/or build-time malfunction.
7550 Typically, a configure-time function-in-library test is performed
7555 prefix_saved_LIBS=$LIBS
7556 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7557 [test "$ac_cv_search_FUNC" = "none required" ||
7558 LIB_VAR=$ac_cv_search_FUNC])
7559 LIBS=$prefix_saved_LIBS
7561 However, in each of the files affected by this change, the LIB_VAR=
7562 initialization was omitted. Thus, when set in the environment, its
7563 value would propagate into generated Makefiles when FUNC is not found
7565 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7566 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7567 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7569 2009-10-14 Eric Blake <ebb9@byu.net>
7571 fchdir: avoid infinite recursion in mingw
7572 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7575 test-stat-time: port to mingw
7576 * tests/test-stat-time.c (force_unlink): Return a value.
7577 (test_ctime) [W32]: Fix compilation error.
7578 (nap): Don't call usleep with too large an argument. Use
7580 * doc/pastposix-functions/usleep.texi (usleep): Document the
7583 2009-10-13 Jim Meyering <meyering@redhat.com>
7585 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7586 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7587 * modules/pipe-filter-ii: Likewise.
7588 * modules/sys_socket-tests: Likewise.
7589 * modules/tsearch-tests: Likewise.
7590 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7591 (check): Depend on it.
7593 2009-10-12 Eric Blake <ebb9@byu.net>
7595 utimens-tests: port to NFS file systems
7596 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7597 comparisons to avoid spurious failures from timestamp drift
7598 between NFS machines.
7600 2009-10-12 Eric Blake <ebb9@byu.net>
7602 stat-time-tests: minor cleanups
7603 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7604 * tests/test-stat-time.c (nap): Separate assignment from call.
7605 Suggested by Paolo Bonzini and Bruno Haible.
7607 sys_stat: guarantee struct timespec
7608 * lib/sys_stat.in.h (includes): Always include <time.h>
7609 * modules/sys_stat (Depends-on): Add time.
7610 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7611 mode_t permission values.
7612 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7613 get at subsecond timestamps.
7615 2009-10-10 Eric Blake <ebb9@byu.net>
7617 futimens: new module
7618 * modules/futimens: New file.
7619 * lib/futimens.c (futimens): Likewise.
7620 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7621 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7622 we can work around Linux bugs.
7623 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7624 * modules/sys_stat (Makefile.am): Substitute them.
7625 * lib/sys_stat.in.h (futimens): Declare it.
7626 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7627 * doc/posix-functions/futimens.texi (futimens): Likewise.
7628 * modules/futimens-tests: New test.
7629 * tests/test-futimens.c: Likewise.
7631 utimens: introduce fdutimens
7632 * lib/utimens.h (fdutimens): New prototype.
7633 * lib/utimens.c (gl_futimens): Move guts...
7634 (fdutimens): ...to new interface.
7635 * tests/test-utimens.c (do_fdutimens): Use it.
7637 utimens: add UTIME_NOW and UTIME_OMIT support
7638 * lib/utimens.c (validate_timespec, update_timespec): New helper
7640 (gl_futimens, lutimens): Use them.
7641 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7643 (Link): Mention resulting library dependency.
7644 * modules/utimecmp (Link): Likewise.
7645 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7646 (Makefile.am): Pick up library dependency.
7647 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7649 * tests/test-sys_stat.c: Test the definitions.
7650 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7651 * NEWS: Document library dependency.
7653 utimecmp: support symlink timestamps
7654 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
7655 hashing when possible. Use pathconf when available.
7656 (SYSCALL_RESOLUTION): Recognize tighter resolution.
7657 * modules/utimecmp (Depends-on): Add lstat.
7659 utimens: add lutimens interface
7660 * lib/utimens.c (lutimens): New function.
7661 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7662 * lib/utimens.h (lutimens): Declare new interface.
7663 * tests/test-utimens.c (main): Enhance test.
7664 * tests/test-lutimens.h (test_lutimens): New file.
7665 * modules/utimens-tests (Files): Distribute it.
7666 (Depends-on): Add symlink.
7667 (configure.ac): Check for usleep.
7669 utimens: validate futimens usage
7670 * lib/utimens.c (gl_futimens): Require valid fd up front, using
7671 fewer syscalls on failure later on. Avoid compiler warning on
7673 * modules/utimens (Depends-on): Add dup2.
7676 * modules/utimens-tests: New test.
7677 * tests/test-utimens.h: New file.
7678 * tests/test-futimens.h: Likewise.
7679 * tests/test-utimens.c: Likewise.
7681 doc: mention timestamp portability issues
7682 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7684 * doc/posix-functions/utime.texi (utime): Likewise.
7685 * doc/posix-functions/utimes.texi (utimes): Likewise.
7686 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7688 * doc/posix-functions/futimens.texi (futimens): Mention utimens
7690 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7691 Mention weakness with symlink timestamps.
7692 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7693 to utimensat/futimens instead.
7694 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7696 test-dup2: enhance test
7697 * tests/test-dup2.c (main): Also check AT_FDCWD.
7699 test-stat-time: avoid more spurious failures
7700 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7701 xfs; and avoid race if the two timestamps cross quantization edge.
7703 relocatable: prefer 'file system' over 'filesystem'
7704 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7705 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7706 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7707 * doc/relocatable.texi (Enabling Relocatability): Likewise.
7708 * lib/relocatable.c (compute_curr_prefix): Likewise.
7710 2009-10-10 Jim Meyering <meyering@redhat.com>
7712 stat-time-tests: check for the usleep function
7713 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7715 2009-10-10 Bruno Haible <bruno@clisp.org>
7717 * modules/xnanosleep: Put the Link section after the Include section.
7719 2009-10-09 Eric Blake <ebb9@byu.net>
7721 dup2: work around FreeBSD 6.1 bug
7722 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7723 * doc/posix-functions/dup2.texi (dup2): Document it.
7724 Reported by Nelson H. F. Beebe and Jim Meyering.
7726 test-stat-time: port to buggy NFS clients
7727 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7728 (test_ctime): Also skip test if mtime and ctime are skewed.
7730 maint: prefer 'file system' over 'filesystem'
7731 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7732 * doc/posix-functions/lstat.texi (lstat): Likewise.
7733 * lib/file-has-acl.c (file_has_acl): Likewise.
7734 * lib/fwriteerror.c [TEST]: Likewise.
7735 * tests/test-areadlink.h (test_areadlink): Likewise.
7736 * tests/test-areadlinkat-with-size.c (main): Likewise.
7737 * tests/test-areadlinkat.c (main): Likewise.
7738 * tests/test-canonicalize-lgpl.c (main): Likewise.
7739 * tests/test-canonicalize.c (main): Likewise.
7740 * tests/test-fstatat.c (main): Likewise.
7741 * tests/test-linkat.c (main): Likewise.
7742 * tests/test-lstat.h (test_lstat_func): Likewise.
7743 * tests/test-mkdir.h (test_mkdir): Likewise.
7744 * tests/test-readlink.h (test_readlink): Likewise.
7745 * tests/test-remove.c (main): Likewise.
7746 * tests/test-rename.h (test_rename): Likewise.
7747 * tests/test-renameat.c (main): Likewise.
7748 * tests/test-rmdir.h (test_rmdir_func): Likewise.
7749 * tests/test-symlink.h (test_symlink): Likewise.
7750 * tests/test-symlinkat.c (main): Likewise.
7751 * tests/test-unlink.h (test_unlink_func): Likewise.
7752 * tests/test-unlinkat.c (main): Likewise.
7754 maint: make realtime library usage explicit
7755 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7756 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7757 * modules/settime (Link): Likewise.
7758 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7760 test-stat-time: speed up execution
7761 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7763 (nap): New helper function.
7764 (prepare_test): Use it to reduce sleep time.
7765 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7767 * modules/stat-time-tests (configure.ac): Check for usleep.
7769 2009-10-09 Jim Meyering <meyering@redhat.com>
7771 selinux-h: always use getfilecon wrappers
7772 * lib/getfilecon.c: New file.
7773 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7774 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7775 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7776 (fgetfilecon): Provide a stub.
7777 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7778 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7779 file unconditionally.
7780 When <selinux/selinux.h> is found, arrange to use wrappers.
7781 * modules/selinux-h (Files): Add getfilecon.c.
7782 (Makefile.am): Substitute include-next-related bits
7783 into the now-always-generated selinux/selinux.h file.
7784 * doc/glibc-functions/lgetfilecon.texi: New file.
7785 * doc/glibc-functions/fgetfilecon.texi: New file.
7786 * doc/glibc-functions/getfilecon.texi: New file.
7787 * doc/glibc-functions/getfilecon-desc.texi: New file.
7788 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7789 which to pull in the new files.
7790 * MODULES.html.sh (Misc): Add selinux-h.
7792 2009-10-08 Jim Meyering <meyering@redhat.com>
7794 unistd: fix comment typo
7795 * lib/unistd.in.h (euidaccess): Fix a comment typo.
7797 2009-10-08 Eric Blake <ebb9@byu.net>
7799 areadlink: use SIZE_MAX consistently
7800 * modules/areadlink (Depends-on): Add stdint.
7801 * modules/areadlink-with-size (Depends-on): Likewise.
7802 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7803 gives NULL; drop sys/types, since unistd gives size_t; and add
7804 stdint for SIZE_MAX.
7805 (SIZE_MAX): Rely on headers.
7806 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7808 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7809 (SIZE_MAX): Likewise.
7810 (INITIAL_BUF_SIZE): Turn into enum.
7811 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7813 2009-10-08 Jim Meyering <meyering@redhat.com>
7815 areadlinkat: avoid compilation failure
7816 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7817 Fix typo in comment.
7819 2009-10-07 Eric Blake <ebb9@byu.net>
7821 areadlinkat-with-size: new module
7822 * modules/areadlinkat-with-size: New module.
7823 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7824 * lib/areadlink.h (areadlinkat): Declare it.
7825 * MODULES.html.sh (File system functions): Mention it.
7826 * modules/areadlinkat-with-size-tests: New test.
7827 * tests/test-areadlinkat-with-size.c: New file.
7829 xreadlinkat: new module
7830 * modules/xreadlinkat: New module.
7831 * lib/xreadlinkat.c (xreadlinkat): New file.
7832 * lib/xreadlink.h (xreadlinkat): Declare it.
7833 * MODULES.html.sh (File system functions): Mention it.
7835 areadlinkat: new module
7836 * lib/at-func.c (FUNC_FAIL): New define.
7837 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7838 * modules/areadlinkat: New module.
7839 * lib/linkat.c (areadlinkat): Move...
7840 * lib/areadlinkat.c (areadlinkat): ...to new file.
7841 * lib/areadlink.h (areadlinkat): Declare it.
7842 * modules/linkat (Depends-on): Add areadlinkat.
7843 * MODULES.html.sh (File system functions): Mention it.
7844 * modules/areadlinkat-tests: New test.
7845 * tests/test-areadlinkat.c: New file.
7847 areadlink, areadlink-with-size: add tests
7848 * modules/areadlink-tests: New test.
7849 * modules/areadlink-with-size-tests: Likewise.
7850 * tests/test-areadlink.h: New file.
7851 * tests/test-areadlink.c: Likewise.
7852 * tests/test-areadlink-with-size.c: Likewise.
7854 maint: minor cleanups
7855 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7856 _UNUSED_PARAMETER_ instead.
7857 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7858 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7859 * modules/linkat-tests (Files): Distribute test-link.h.
7861 openat, utimens: whitespace cleanup
7862 * lib/openat.c: Prefer space throughout, rather than mix of 8
7864 * lib/at-func.c: Likewise.
7865 * lib/utimens.c: Likewise.
7867 openat: avoid using wrong fd
7868 * lib/openat.c (openat_permissive): Reject user's fd if saving the
7869 working directory chooses same fd.
7870 * lib/at-func.c (AT_FUNC_NAME): Likewise.
7872 mkdir, mkdirat: fix cygwin 1.5.x bug
7873 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7874 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7875 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7877 (gl_PREREQ_MKDIR): Delete unused macro.
7878 * modules/mkdir (Files): Track file rename.
7879 (configure.ac): Update macro name.
7880 * modules/openat (Depends-on): Add mkdir.
7881 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7883 mkdir, mkdirat: add tests
7884 * modules/mkdir-tests: New test.
7885 * tests/test-mkdir.h: New file.
7886 * tests/test-mkdir.c: Likewise.
7887 * tests/test-mkdirat.c: Likewise.
7888 * modules/openat-tests (Files): Add new files.
7889 (Makefile.am): Run new test.
7891 2009-10-06 Eric Blake <ebb9@byu.net>
7893 doc: tweak *at function documentation
7894 * doc/posix-functions/faccessat.texi (faccessat): Mention
7895 known issue with replacement.
7896 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7897 * doc/posix-functions/linkat.texi (linkat): Likewise.
7898 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7899 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7900 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7901 * doc/posix-functions/renameat.texi (renameat): Likewise.
7902 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7904 openat: fix GNU/Hurd bug in unlinkat
7905 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7907 * doc/posix-functions/unlink.texi (unlink): Document this.
7908 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7910 fdopendir: fix GNU/Hurd bug
7911 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7912 allowing non-directory fds.
7913 * lib/fdopendir.c (rpl_fdopendir): Work around it.
7914 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7915 * modules/dirent (Makefile.am): Substitute it.
7916 * lib/dirent.in.h (fdopendir): Declare replacement.
7917 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7918 * tests/test-fdopendir.c (main): Test something other than
7919 /dev/null, since on Hurd that behaves like a directory.
7921 test-symlink: port to GNU/Hurd
7922 * tests/test-symlink.h (test_symlink): Relax expected errno.
7924 doc: tweak more cygwin information
7925 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7926 now compatible with glibc.
7927 * doc/posix-functions/getopt.texi (getopt): Likewise.
7929 getopt-gnu: add another test
7930 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7931 guarantee behavior relied on by m4.
7932 * tests/test-getopt.c (main): Use it.
7933 * modules/getopt-posix-tests (Depends-on): Add setenv.
7934 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7936 getopt: fix compilation on darwin
7937 * lib/getopt.in.h (includes): Leave breadcrumbs during system
7939 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7940 Reported by Ludovic Courtès.
7942 2009-10-06 Bruno Haible <bruno@clisp.org>
7944 * modules/size_max (Description): Discourage its use.
7945 Reported by Simon Josefsson.
7947 2009-10-06 Jim Meyering <meyering@redhat.com>
7949 linkat: avoid compilation failure
7950 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7952 2009-10-05 Eric Blake <ebb9@byu.net>
7954 linkat: support Linux 2.6.17
7955 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7956 linkat on Linux, but allow cache variable override.
7957 * lib/linkat.c (rpl_linkat): Define override.
7958 * modules/linkat (Depends-on): Add symlinkat.
7959 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7960 * modules/unistd (Makefile.am): Substitute it.
7961 * lib/unistd.in.h (linkat): Declare replacement.
7962 Reported by Pádraig Brady.
7964 quotearg: port test to systems with C.UTF-8 locale
7965 * tests/test-quotearg.c (struct result_strings): Add another
7966 member, differentiating between C.ASCII and C.UTF-8 handling.
7967 (compare_strings): Add parameter.
7968 (main): Adjust all callers.
7970 getopt: avoid clash with FreeBSD _getopt_internal
7971 * lib/getopt.in.h (_getopt_internal): Override the name.
7972 * lib/getopt_int.h (includes): Pick up any overrides.
7973 Reported by Reuben Thomas.
7975 hash: allow C89 compilation
7976 * lib/hash.c (check_tuning): Move declaration before statement.
7977 Reported by Reuben Thomas.
7979 2009-10-05 Karl Berry <karl@gnu.org>
7981 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7983 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
7984 Bruno Haible <bruno@clisp.org>
7986 * lib/uname.c (uname): Use a table-driven algorithm to compute
7987 Windows NT versions.
7989 2009-10-04 Bruno Haible <bruno@clisp.org>
7991 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7992 program_invocation_short_name.
7993 * modules/progname (configure.ac): Test for presence of
7994 program_invocation_short_name.
7995 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7997 2009-10-04 Bruno Haible <bruno@clisp.org>
7999 * lib/progname.c (set_program_name): Fix comment.
8000 Reported by Jim Meyering.
8002 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8003 Bruno Haible <bruno@clisp.org>
8005 * lib/uname.c: Include <string.h>.
8006 (uname): Do only one call to GetVersionEx in the common case.
8008 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8009 Bruno Haible <bruno@clisp.org>
8011 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8012 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8013 (uname): Add support for Windows CE and various non-x86 CPU types.
8015 2009-10-03 Bruno Haible <bruno@clisp.org>
8017 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8018 invocation to tests/configure.ac.
8019 Reported by Ian Beckwith <ianb@erislabs.net>.
8021 2009-10-02 Eric Blake <ebb9@byu.net>
8023 fchdir: avoid compiler warning
8024 * lib/fchdir.c (canonicalize_file_name)
8025 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8027 test-open: support mingw errno values
8028 * tests/test-open.h (test_open): Relax test.
8029 * tests/test-fopen.h (test_fopen): Likewise.
8030 * tests/test-openat-safer.c (main): Likewise.
8032 open: fix opening directory on mingw
8033 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8035 test-open: on GNU/Hurd, /dev/null is a directory
8036 * tests/test-fopen.h (main): Rename...
8037 (test_fopen): ...to this. Use a guaranteed non-directory when
8038 confirming open behavior on trailing slash.
8039 * tests/test-openat-safer.c (main): Likewise.
8040 * tests/test-open.h (main): Likewise....
8041 (test_open): ...to this.
8042 * tests/test-fopen.c (main): Adjust caller.
8043 * tests/test-fopen-safer.c (main): Likewise.
8044 * tests/test-open.c (main): Likewise.
8045 * tests/test-fcntl-safer.c (main): Likewise.
8046 Reported by Samuel Thibault.
8048 rename, fchdir: don't ignore chdir failure
8049 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8050 * lib/rename.c (rpl_rename) [W32]: Likewise.
8051 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8052 an empty destination directory if source cannot be renamed,
8053 although there is still possibility for failure.
8054 * doc/posix-functions/rename.texi (rename): Document the race.
8055 Reported by Jim Meyering.
8057 maint: cleanup whitespace in recent commits
8058 * lib/rename.c (rpl_rename): Remove tabs.
8059 * tests/test-link.h (test_link): Likewise.
8060 * lib/fchdir.c (get_name): Likewise.
8061 Reported by Jim Meyering.
8063 2009-10-02 Ben Pfaff <blp@gnu.org>
8065 relocatable-prog-wrapper: Add missing dependency on
8067 * modules/relocatable-prog-wrapper: Add dependency.
8068 Reported by Ian Beckwith <ianb@erislabs.net>.
8070 2009-10-02 Eric Blake <ebb9@byu.net>
8072 renameat: fix Solaris bugs
8073 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8075 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8076 * modules/stdio (Makefile.am): Substitute it.
8077 * lib/stdio.in.h (renameat): Declare replacement.
8078 * lib/renameat.c (rpl_renameat): Implement fix.
8080 renameat: new module
8081 * modules/renameat: New file.
8082 * lib/renameat.c (renameat): Likewise.
8083 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8084 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8085 * modules/stdio (Makefile.am): Substitute them.
8086 * lib/stdio.in.h (renameat): Declare it.
8087 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8088 * doc/posix-functions/renameat.texi (renameat): Likewise.
8089 * modules/renameat-tests: New test.
8090 * tests/test-renameat.c: Likewise.
8092 rename: fix mingw bugs
8093 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8094 directory overwrite bugs.
8096 rename: fix another cygwin 1.5 bug
8097 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8099 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8100 unnecessary cygwin workarounds. Also work around bug with moving
8101 full directory onto an empty one.
8102 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8104 rename-dest-slash: merge into rename module
8105 * modules/rename-dest-slash (Status): Mark obsolete.
8106 (Depends-on): Add rename.
8107 (Files): Let rename do it all.
8108 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8109 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8110 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8111 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8112 * lib/rename.c (rpl_rename): Update comments.
8114 rename: fix cygwin 1.5.x bugs
8115 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8116 * lib/rename.c (rpl_rename): Work around them.
8117 * modules/rename (Depends-on): Add same-inode.
8119 rename: fix Solaris 10 bug
8120 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8121 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8124 rename: fix Solaris 9 bug
8125 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8126 on non-directory. Avoid calling exit.
8127 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8129 * modules/rename-tests (Depends-on): Drop lstat.
8130 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8131 (gl_PREREQ_RENAME): Delete unused macro.
8133 rename-dest-slash: fix NetBSD bug
8134 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8136 * modules/rename-dest-slash (Depends-on): Add same-inode.
8138 rename-tests: new test, exposes several platform bugs
8139 * modules/rename-tests: New file.
8140 * tests/test-rename.h: Likewise.
8141 * tests/test-rename.c: Likewise.
8142 * doc/posix-functions/rename.texi (rename): Improve documentation,
8143 including bugs that will eventually be fixed in gnulib.
8145 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8147 * lib/uname.c: Include <stdlib.h>
8148 (uname): Assume version info is available.
8150 2009-10-02 Jim Meyering <meyering@redhat.com>
8152 gnu-web-doc-update: correct --help output
8153 * build-aux/gnu-web-doc-update: Make --help output relevant.
8155 gnu-web-doc-update: add standard options
8156 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8158 gnu-web-doc-update: New module.
8159 Use this script to automatically update the on-line web documentation
8160 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8161 * modules/gnu-web-doc-update: New file, from coreutils.
8162 * build-aux/gnu-web-doc-update: New script.
8164 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8166 link: LoadLibrary is not needed.
8167 * lib/link.c: Use GetModuleHandle.
8169 2009-10-01 Eric Blake <ebb9@byu.net>
8171 getopt: bump serial number
8172 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8175 tests: tighten link, rmdir, and remove tests
8176 * tests/test-link.h (includes): No need to use <config.h> here.
8177 Clean up if directory hard link was created, otherwise test for
8179 * tests/test-linkat.c (main): Simplify.
8180 * tests/test-remove.c (main): Enhance test for trailing '.'.
8181 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8183 2009-10-01 Jim Meyering <meyering@redhat.com>
8185 maint.mk: requiring "make major" was annoying, for a "minor" release.
8186 What is intended is "stable", to contrast with alpha and beta,
8187 so require "make stable", not "make major".
8188 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8189 (get_tool_versions): Likewise.
8190 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8192 2009-09-30 Ben Pfaff <blp@gnu.org>
8194 Fix broken build of replacement for Windows tmpfile().
8195 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8196 flags argument added along with the 'mkostemp' module.
8198 2009-09-28 Bruno Haible <bruno@clisp.org>
8200 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8201 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8203 (gl_list_remove): Update.
8204 * lib/gl_list.c (gl_list_remove): Update.
8205 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8207 (gl_oset_remove): Update.
8208 * lib/gl_list.c (gl_oset_remove): Update.
8209 Reported by Eric Blake.
8211 2009-09-28 Eric Blake <ebb9@byu.net>
8213 doc: mention yet more cygwin 1.7 status
8214 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8216 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8217 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8219 argp: fix test failure
8220 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8221 that are not upper-case. Pass correct range to tolower.
8223 2009-09-27 Jim Meyering <meyering@redhat.com>
8225 test-yesno: work around sparc-dash here-document infelicity
8226 Without this change, the literal \177 byte in a here document
8227 would make dash 0.5.5.1-3 access uninitialized memory.
8228 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8229 Instead, use a marker, "@", and filter through tr to create the desired
8230 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8232 2009-09-27 Bruno Haible <bruno@clisp.org>
8234 Disable untested support for new flavours of ACLs on AIX.
8235 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8237 * lib/set-mode-acl.c (qset_acl): Likewise.
8239 2008-12-07 Bruno Haible <bruno@clisp.org>
8241 Add support for new flavours of ACLs on AIX. (Untested.)
8242 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8243 (file_has_acl): Add support for newer AIX.
8244 * lib/set-mode-acl.c (qset_acl): Likewise.
8245 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8246 Rainer Tammer <tammer@tammer.net>.
8248 2009-09-26 Eric Blake <ebb9@byu.net>
8250 argp: fix compilation of getopt
8251 * lib/getopt.in.h (includes): Use different guard than glibc.
8252 Reported by Sergey Poznyakoff.
8254 doc: mention more cygwin 1.7 status
8255 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8257 * doc/posix-functions/execl.texi (execl): Likewise.
8258 * doc/posix-functions/execle.texi (execle): Likewise.
8259 * doc/posix-functions/execlp.texi (execlp): Likewise.
8260 * doc/posix-functions/execv.texi (execv): Likewise.
8261 * doc/posix-functions/execve.texi (execve): Likewise.
8262 * doc/posix-functions/execvp.texi (execvp): Likewise.
8263 * doc/glibc-functions/canonicalize_file_name.texi
8264 (canonicalize_file_name): Cygwin 1.7 now provides this.
8265 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8266 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8267 on AT_SYMLINK_NOFOLLOW.
8269 2009-09-24 Eric Blake <ebb9@byu.net>
8271 test-linkat: make test more robust
8272 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8274 getopt: fix inclusion guards for cygwin
8275 * modules/getopt-posix (Depends-on): Add include-next.
8276 (Makefile.am): Substitute more items in replacement header.
8277 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8279 * lib/getopt.in.h (includes): Use split inclusion guard, and
8280 prefer <getopt.h> over include <unistd.h> when one is present.
8281 (option): Also override name of 'struct option'.
8283 same-inode: revert prior change; it is not yet ready
8284 * NEWS: Undo mention of this change.
8285 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8286 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8287 * lib/cycle-check.c (cycle_check): Likewise.
8288 * lib/same.c (same_name): Likewise.
8289 * lib/at-func2.c (at_func2): Likewise.
8291 2009-09-23 Eric Blake <ebb9@byu.net>
8294 * modules/linkat: New file.
8295 * lib/at-func2.c (at_func2): Likewise.
8296 * lib/linkat.c (linkat): Likewise.
8297 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8298 * lib/openat-priv.h (at_func2): Add declaration.
8299 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8300 * modules/unistd (Makefile.am): Substitute them.
8301 * lib/unistd.in.h (linkat): Declare it.
8302 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8303 * doc/posix-functions/linkat.texi (linkat): Likewise.
8304 * doc/posix-functions/link.texi (link): Tweak wording.
8305 * tests/test-link.c (main): Move guts...
8306 * tests/test-link.h (test_link): ...into new file.
8307 * modules/linkat-tests: New test.
8308 * tests/test-linkat.c: Likewise.
8309 * modules/link-tests (Files): Ship new file.
8310 (Depends-on): Add stdbool.
8312 dirname: add library-safe mdir_name
8313 * lib/dirname.h (mdir_name): New prototype.
8314 * lib/dirname.c (dir_name): Move guts...
8315 (mdir_name): ...to new function that avoids xalloc_die.
8317 fchdir: another mingw fix
8318 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8319 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8320 on mingw (where it has not yet been ported), and make it optional
8322 (_gl_register_fd): Use it.
8324 same-inode: make SAME_INODE tri-state, to port to mingw
8325 * NEWS: Mention this change.
8326 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8327 st_ino always being 0.
8328 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8329 * lib/cycle-check.c (cycle_check): Likewise.
8330 * lib/same.c (same_name): Likewise.
8332 lstat: avoid mingw compilation error
8333 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8334 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8336 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8338 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8339 the checks for lstat.
8340 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8342 link: fix test failure on Solaris 9
8343 * lib/link.c (rpl_link): Don't assume link will catch bogus
8344 trailing slash on source.
8346 test-symlinkat: enhance test
8347 * tests/test-readlink.c (main): Move guts...
8348 * tests/test-readlink.h (test_readlink): ...into new file.
8349 * tests/test-symlink.c (main): Move guts...
8350 * tests/test-symlink.h (test_symlink): ...into new file.
8351 * tests/test-symlinkat.c (main): Use new files for further
8353 (do_symlink, do_readlink): New helper functions.
8354 * modules/symlink-tests (Files): Ship new file.
8355 (Depends-on): Add stdbool.
8356 * modules/readlink-tests (Files): Ship new file.
8357 (Depends-on): Add stdbool.
8358 * modules/symlinkat-tests (Files): Use new files.
8360 2009-09-23 Eric Blake <ebb9@byu.net>
8362 readlink: document portability issue with symlink length
8363 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8364 systems have bogus st_size on symlinks, and mention the
8365 areadlink-with-size module.
8366 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8367 * doc/posix-functions/readlink.texi (readlink): Mention the
8368 areadlink module, and ERANGE failure.
8369 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8370 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8372 readlink: fix Solaris 9 bug with trailing slash
8373 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8374 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8375 * doc/posix-functions/readlink.texi (readlink): Document this.
8376 * modules/readlink-tests: New test.
8377 * tests/test-readlink.c: Likewise.
8379 readlink: fix cygwin 1.5.x bug with return type
8380 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8381 * lib/unistd.in.h (readlink): Use ssize_t.
8382 * lib/readlink.c (readlink): Likewise.
8383 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8384 * modules/unistd (Makefile.am): Substitute it.
8385 * lib/unistd.in.h (readlink): Declare replacement.
8386 * doc/posix-functions/readlink.texi (readlink): Document this.
8388 symlink: use throughout gnulib
8389 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8390 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8391 symlink is not used.
8392 * modules/symlinkat (Depends-on): Add symlink.
8393 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8394 * modules/canonicalize-tests (Depends-on): Likewise.
8395 * modules/lstat-tests (Depends-on): Likewise.
8396 * modules/openat-tests (Depends-on): Likewise.
8397 * modules/remove-tests (Depends-on): Likewise.
8398 * modules/rmdir-tests (Depends-on): Likewise.
8399 * modules/unlink-tests (Depends-on): Likewise.
8400 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8401 * tests/test-canonicalize.c (symlink): Likewise.
8402 * tests/test-fstatat.c (symlink): Likewise.
8403 * tests/test-lstat.c (symlink): Likewise.
8404 * tests/test-remove.c (symlink): Likewise.
8405 * tests/test-rmdir.c (symlink): Likewise.
8406 * tests/test-unlink.c (symlink): Likewise.
8407 * tests/test-unlinkat.c (symlink): Likewise.
8409 symlink: new module, for Solaris 9 bug
8410 * modules/symlink: New file.
8411 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8412 * lib/symlink.c: Likewise.
8413 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8414 * modules/unistd (Makefile.am): Substitute them.
8415 * lib/unistd.in.h (symlink): Declare replacement.
8416 * MODULES.html.sh (File system functions): Mention it.
8417 * doc/posix-functions/symlink.texi (symlink): Likewise.
8418 * modules/symlink-tests: New test.
8419 * tests/test-symlink.c: Likewise.
8421 2009-09-23 Bruno Haible <bruno@clisp.org>
8423 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8425 Test case: gnulib-tool --import --with-tests atexit inttypes.
8426 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8428 2009-09-23 Bruno Haible <bruno@clisp.org>
8430 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8431 subcommand, not in a subshell.
8433 2009-09-22 Eric Blake <ebb9@byu.net>
8435 unistd: sort replacement declarations
8436 * lib/unistd.in.h: Sort declarations.
8438 open, openat: minor optimization
8439 * lib/open.c (open): If open succeeded, len is non-zero.
8440 * lib/openat.c (rpl_openat): Likewise.
8442 link-follow: ensure correct result
8443 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8444 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8445 distinguish between possible failures.
8447 2009-09-21 Eric Blake <ebb9@byu.net>
8449 fts: avoid compiler warning
8450 * lib/fts.c (dirent_inode_sort_may_be_useful)
8451 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8453 2009-09-19 Bruno Haible <bruno@clisp.org>
8455 * lib/progreloc.c (canonicalize_file_name): New declaration.
8457 2009-09-19 Eric Blake <ebb9@byu.net>
8460 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8462 openat: fix openat bugs on Solaris 9
8463 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8464 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8465 * modules/openat (Depends-on): Add open.
8466 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8467 * modules/fcntl-h (Makefile.am): Substitute it.
8468 * lib/fcntl.in.h (openat): Declare replacement.
8469 * doc/posix-functions/openat.texi (openat): Document this.
8471 openat: move fstatat and unlinkat into correct files
8472 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8474 * lib/openat.c (fstatat, unlinkat): Move...
8475 * lib/fstatat.c (fstatat): ...into correct files.
8476 * lib/unlinkat.c (unlinkat): Likewise.
8478 openat: fix unlinkat bugs on Solaris 9
8479 * lib/unlinkat.c (unlinkat): New file.
8480 * modules/openat (Depends-on): Add unlink.
8481 (Files): Distribute it.
8482 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8483 trailing slash behavior is broken.
8484 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8485 * modules/unistd (Makefile.am): Substitute it.
8486 * lib/unistd.in.h (unlinkat): Declare replacement.
8487 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8489 openat: fix fstatat bugs on Solaris 9
8490 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8492 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8494 test-unlinkat: enhance test, to expose Solaris 9 bug
8495 * tests/test-unlink.c (main): Factor guts...
8496 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8497 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8498 * tests/test-rmdir.c (main): Adjust caller.
8499 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8500 (unlinker): New helper function.
8501 (rmdirat): Enhance check.
8502 * modules/rmdir-tests (Depends-on): Add stdbool.
8503 * modules/unlink-tests (Depends-on): Likewise.
8504 (Files): Add test-unlink.h.
8505 * modules/openat-tests (Files): Likewise.
8506 (Depends-on): Add unlinkdir.
8508 test-fstatat: new test, to expose Solaris 9 bugs
8509 * tests/test-stat.c (main): Factor guts...
8510 * tests/test-stat.h (test_stat_func): ...into new file.
8511 * tests/test-lstat.c (main): Factor guts...
8512 * tests/test-lstat.h (test_lstat_func): ...into new file.
8513 * tests/test-fstatat.c: New file.
8514 * modules/stat-tests (Files): Add test-stat.h.
8515 * modules/lstat-tests (Files): Add test-lstat.h.
8516 (Depends-on): Add stdbool.
8517 * modules/openat-tests (Depends-on): Add pathmax.
8518 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8519 (Makefile.am): Run new test.
8521 remove: new module, for mingw and Solaris 9 bugs
8522 * modules/remove: New file.
8523 * lib/remove.c: Likewise.
8524 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8525 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8526 * modules/stdio (Makefile.am): Use them.
8527 * lib/stdio.in.h (remove): Declare replacement.
8528 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8529 * doc/posix-functions/remove.texi (remove): Likewise.
8530 * modules/remove-tests: New test.
8531 * tests/test-remove.c: Likewise.
8533 unlink: new module, for Solaris 9 bug
8534 * modules/unlink: New file.
8535 * lib/unlink.c: Likewise.
8536 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8537 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8538 * modules/unistd (Makefile.am): Use them.
8539 * lib/unistd.in.h (stat): Declare replacement.
8540 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8541 * doc/posix-functions/unlink.texi (unlink): Likewise.
8542 * modules/unlink-tests: New test.
8543 * tests/test-unlink.c: Likewise.
8545 lstat: fix Solaris 9 bug
8546 * lib/lstat.c (lstat): Also check for trailing slash on
8547 non-symlink, non-directories. Use stat module to simplify logic.
8548 * doc/posix-functions/lstat.texi (lstat): Document it.
8549 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8550 (configure.ac): Check for symlink.
8551 * tests/test-lstat.c (main): Add more tests.
8553 stat: add as dependency to other modules
8554 * modules/chown (Depends-on): Add stat.
8555 * modules/euidaccess (Depends-on): Likewise.
8556 * modules/fchdir (Depends-on): Likewise.
8557 * modules/isdir (Depends-on): Likewise.
8558 * modules/link (Depends-on): Likewise.
8559 * modules/lstat (Depends-on): Likewise.
8560 * modules/mkdir-p (Depends-on): Likewise.
8561 * modules/modechange (Depends-on): Likewise.
8562 * modules/open (Depends-on): Likewise.
8563 * modules/readlink (Depends-on): Likewise.
8564 * modules/same (Depends-on): Likewise.
8566 stat: fix Solaris 9 bug
8567 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8569 * lib/stat.c (rpl_stat): Work around it.
8570 * doc/posix-functions/stat.texi (stat): Update documentation.
8572 stat: new module, for mingw bug
8573 * modules/stat: New file.
8574 * lib/stat.c: Likewise.
8575 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8576 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8577 * modules/sys_stat (Makefile.am): Use them.
8578 * lib/sys_stat.in.h (stat): Declare replacement.
8579 * lib/openat.c (fstatat): Deal with lstat and stat being function
8581 * modules/openat (Depends-on): Add inline.
8582 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8583 * doc/posix-functions/stat.texi (stat): Likewise.
8584 * modules/stat-tests: New test.
8585 * tests/test-stat.c: Likewise.
8587 2009-09-19 Jim Meyering <meyering@redhat.com>
8589 syntax-check: detect unnecessary inclusion of canonicalize.h
8590 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8592 2009-09-19 Eric Blake <ebb9@byu.net>
8594 canonicalize-lgpl: adjust clients to use correct header
8595 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8596 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8597 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8598 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8599 * lib/progreloc.c (includes): Likewise.
8601 2009-09-19 Jim Meyering <meyering@redhat.com>
8603 test-posixtm.c: correct a comment
8604 * tests/test-posixtm.c: Correct first-line comment.
8605 Spotted by Eric Blake.
8607 2009-09-16 Jim Meyering <meyering@redhat.com>
8609 posixtm-tests: make T const-correct; add a test case
8610 * tests/test-posixtm.c (T): Declare const.
8611 Add a test for -(2^31+1).
8612 Remove useless can-succeed-only-in-2002 test.
8614 posixtm-tests: adjust the sole failing test
8615 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8616 expected output matches what mktime now produces. Cross-checked via
8617 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8619 posixtm: move #ifdef'd tests into a new module
8620 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
8621 * tests/test-posixtm.c: ... this new file.
8622 * modules/posixtm-tests: New module.
8624 2009-09-19 Eric Blake <ebb9@byu.net>
8626 openat: simplify use of at-func.c
8627 * lib/at-func.c (includes): Include prerequisites here, to
8628 simplify requirements on client files.
8629 * lib/openat-priv.h: Add double-inclusion guard.
8630 * lib/faccessat.c (includes): Simplify.
8631 * lib/fchmodat.c (includes): Likewise.
8632 * lib/fchownat.c (includes): Likewise.
8633 * lib/mkdirat.c (includes): Likewise.
8634 * lib/mkfifoat.c (includes): Likewise.
8635 * lib/symlinkat.c (includes): Likewise.
8637 openat: allow return of fd 0
8638 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8639 * modules/save-cwd (Depends-on): Replace fcntl-safer with
8641 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8642 <fcntl.h>; this module does not leak fds.
8643 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8644 must be allowed to return 0, leaving openat_safer to add the
8646 (openat_permissive): Avoid writing to just-opened fd 2 if
8647 restoring the current directory fails.
8648 * lib/openat-die.c (openat_restore_fail): Add comment.
8649 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8650 (save_cwd): Guarantee safe fd, but without use of open_safer.
8651 * tests/test-openat.c: New test.
8652 * modules/openat-tests (Files, Makefile.am): Distribute and build
8655 relocatable-prog-wrapper: fix build
8656 * modules/relocatable-prog-wrapper (Files): Update name of
8657 canonicalize m4 file, broken on 2009-09-17.
8658 Reported by emad hajjar <aleppos@hotmail.com>.
8660 2009-09-19 Bruno Haible <bruno@clisp.org>
8662 * lib/safe-alloc.h: Use the standard header with GPL copyright.
8663 * lib/safe-alloc.c: Likewise.
8664 Reported by Ian Beckwith <ianb@erislabs.net>.
8666 2009-09-18 Bruno Haible <bruno@clisp.org>
8668 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8669 Reported by <erobles@sensacd.com.mx>.
8671 2009-09-17 Eric Blake <ebb9@byu.net>
8673 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8674 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8675 slashes when checking if last component is missing.
8676 * tests/test-canonicalize.c (main): Test this.
8678 canonicalize, canonicalize-lgpl: honor // if distinct from /
8679 * modules/canonicalize (Files): Add double-slash-root.m4.
8680 * modules/canonicalize-lgpl (Files): Likewise.
8681 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8682 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8683 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8684 fallback definition.
8685 (canonicalize_filename_mode): Use it to protect //.
8686 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8687 (__realpath): Likewise.
8688 * tests/test-canonicalize.c (main): Test this.
8689 * tests/test-canonicalize-lgpl.c (main): Likewise.
8690 * modules/canonicalize-tests (Depends-on): Add same-inode.
8691 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8693 canonicalize-lgpl: fix glibc bug with trailing slash
8694 * m4/canonicalize-lgpl.m4: Move contents...
8695 * m4/canonicalize.m4: ...here.
8696 (gl_CANONICALIZE_LGPL): Factor realpath check...
8697 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
8698 glibc 2.3.5 bug, fixed 2005-04-27.
8699 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8700 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8701 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8702 * modules/canonicalize-lgpl (Files): Manage file rename.
8703 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8704 * modules/stdlib (Makefile.am): Substitute witness.
8705 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8707 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8708 replacement is required.
8709 * lib/canonicalize.c (canonicalize_file_name): Likewise.
8710 * doc/glibc-functions/canonicalize_file_name.texi
8711 (canonicalize_file_name): Document this.
8712 * doc/posix-functions/realpath.texi (realpath): Likewise.
8714 canonicalize-lgpl: reject non-directory with trailing slash
8715 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8716 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
8717 catches failures in glibc 2.3.5.
8718 * tests/test-canonicalize.c (main): Likewise.
8720 canonicalize-lgpl: use native realpath if it works
8721 * lib/canonicalize-lgpl.c (realpath): Guard with
8722 FUNC_REALPATH_WORKS.
8723 * lib/stdlib.in.h (realpath): Make declaration optional based on
8725 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8726 native realpath works.
8727 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8728 * modules/stdlib (Makefile.am): Substitute witness.
8730 canonicalize, canonicalize-lgpl: use <stdlib.h>
8731 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8732 (Include): Mention <stdlib.h>.
8733 (configure.ac): Mention functions we provide.
8734 * modules/canonicalize (configure.ac): Likewise.
8735 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8736 realpath if canonicalize_file_name is missing.
8737 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8738 * modules/stdlib (Makefile.am): Substitute witnesses.
8739 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8740 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8741 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8742 * NEWS: Document this.
8743 * doc/glibc-functions/canonicalize_file_name.texi
8744 (canonicalize_file_name): Likewise.
8745 * doc/posix-functions/realpath.texi (realpath): Likewise.
8746 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8748 test-canonicalize: consolidate into single C program
8749 * tests/test-canonicalize.sh: Delete; move setup into...
8750 * tests/test-canonicalize.c (main): ...the program, making it
8751 easier to run in debugger. Add some tests.
8752 * modules/canonicalize-tests (Files): Remove unused file.
8753 (Depends-on): Add progname.
8754 (configure.ac, Makefile.am): Simplify.
8756 test-canonicalize-lgpl: consolidate into single C program
8757 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8758 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8759 easier to run in debugger. Add some tests.
8760 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8761 (configure.ac, Makefile.am): Simplify.
8763 canonicalize: avoid resolvepath
8764 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8766 * lib/canonicalize.c (includes): Simplify.
8767 (canonicalize_file_name): Drop resolvepath implementation.
8768 * modules/canonicalize (Depends-on): Drop filenamecat.
8770 canonicalize: don't lose errno
8771 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8774 canonicalize: simplify errno handling
8775 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8778 canonicalize, canonicalize-lgpl: update module dependencies
8779 * modules/canonicalize (Depends-on): Add extensions, lstat,
8781 (Files): Drop pathmax.h.
8782 (configure.ac): Adjust macro name.
8783 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8784 lstat, stdlib, sys_stat.
8785 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8786 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8788 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8789 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8790 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8791 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8792 declaration, if available.
8793 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8794 we can rely on the readlink module.
8795 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8796 (includes): Use <unistd.h> unconditionally.
8798 2009-09-17 Eric Blake <ebb9@byu.net>
8800 maint: make Include sections of modules consistent
8801 * modules/alloca: Use only header name; no need to list #include.
8802 * modules/alloca-opt: Likewise.
8803 * modules/arpa_inet: Likewise.
8804 * modules/canon-host: Likewise.
8805 * modules/configmake: Likewise.
8806 * modules/dirent: Likewise.
8807 * modules/eealloc: Likewise.
8808 * modules/environ: Likewise.
8809 * modules/fchdir: Likewise.
8810 * modules/fcntl: Likewise.
8811 * modules/fcntl-h: Likewise.
8812 * modules/gethrxtime: Likewise.
8813 * modules/gettime: Likewise.
8814 * modules/ignore-value: Likewise.
8815 * modules/inet_ntop: Likewise.
8816 * modules/inet_pton: Likewise.
8817 * modules/inttypes: Likewise.
8818 * modules/isnand-nolibm: Likewise.
8819 * modules/isnanf-nolibm: Likewise.
8820 * modules/mbchar: Likewise.
8821 * modules/mbfile: Likewise.
8822 * modules/mbiter: Likewise.
8823 * modules/mbuiter: Likewise.
8824 * modules/netdb: Likewise.
8825 * modules/netinet_in: Likewise.
8826 * modules/nproc: Likewise.
8827 * modules/pagealign_alloc: Likewise.
8828 * modules/poll: Likewise.
8829 * modules/printf-frexp: Likewise.
8830 * modules/pthread: Likewise.
8831 * modules/putenv: Likewise.
8832 * modules/random_r: Likewise.
8833 * modules/relocatable-prog: Likewise.
8834 * modules/search: Likewise.
8835 * modules/select: Likewise.
8836 * modules/selinux-h: Likewise.
8837 * modules/settime: Likewise.
8838 * modules/signal: Likewise.
8839 * modules/size_max: Likewise.
8840 * modules/socklen: Likewise.
8841 * modules/ssize_t: Likewise.
8842 * modules/stdarg: Likewise.
8843 * modules/stdbool: Likewise.
8844 * modules/stddef: Likewise.
8845 * modules/stdint: Likewise.
8846 * modules/stdio: Likewise.
8847 * modules/stdlib: Likewise.
8848 * modules/string: Likewise.
8849 * modules/strings: Likewise.
8850 * modules/sys_file: Likewise.
8851 * modules/sys_ioctl: Likewise.
8852 * modules/sys_select: Likewise.
8853 * modules/sys_socket: Likewise.
8854 * modules/sys_stat: Likewise.
8855 * modules/sys_time: Likewise.
8856 * modules/sys_times: Likewise.
8857 * modules/sys_utsname: Likewise.
8858 * modules/sys_wait: Likewise.
8859 * modules/sysexits: Likewise.
8860 * modules/time: Likewise.
8861 * modules/times: Likewise.
8862 * modules/tmpfile: Likewise.
8863 * modules/trim: Likewise.
8864 * modules/unistd: Likewise.
8865 * modules/wchar: Likewise.
8866 * modules/wctype: Likewise.
8868 2009-09-17 Bruno Haible <bruno@clisp.org>
8870 Make getdate.y compile on QNX and NetBSD 5 / i386.
8871 * m4/getdate.m4 (gl_GETDATE): Conditionally define
8872 TIME_T_FITS_IN_LONG_INT.
8873 * lib/getdate.y (long_time_t): New type.
8874 (relative_time): Change type of 'seconds' field to long_time_t.
8875 (get_date): Update types of local variables. Check against overflow
8876 during conversion from long_time_t to time_t.
8877 Reported by Matt Kraai <kraai@ftbfs.org>
8878 and Hasso Tepper <hasso@netbsd.org>.
8880 2009-09-17 Bruno Haible <bruno@clisp.org>
8882 * modules/COPYING: Update copyright years.
8883 * modules/README: Likeiwse.
8884 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8885 Reported by Ian Beckwith <ianb@erislabs.net>.
8887 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
8889 * users.txt: Update references for gnuit package.
8891 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
8893 * m4/getdelim.m4: Fix typo in copyright line.
8895 2009-09-17 Bruno Haible <bruno@clisp.org>
8897 * lib/atoll.c: Use the standard header with GPL copyright.
8898 * lib/argz.in.h: Likewise.
8899 * lib/glob.c: Likewise.
8900 * lib/glob-libc.h: Likewise.
8901 * lib/random_r.c: Likewise.
8902 * lib/siglist.h: Likewise.
8903 * lib/strsignal.c: Likewise.
8904 Reported by Ian Beckwith <ianb@erislabs.net>.
8906 2009-09-17 Eric Blake <ebb9@byu.net>
8908 rmdir: ensure correct dependency order
8909 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8911 2009-09-17 Bruno Haible <bruno@clisp.org>
8913 Disable assertion that fails on NetBSD 5 / i386.
8914 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8915 Reported by Sam Steingold <sds@gnu.org>
8916 and Hasso Tepper <hasso@netbsd.org>.
8918 2009-09-16 Eric Blake <ebb9@byu.net>
8920 unlinkdir: port to mingw
8921 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8922 on which no one can unlink a directory.
8924 stdlib: sort witness names
8925 * modules/stdlib (Makefile.am): Sort replacements.
8926 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8927 * lib/stdlib.in.h: Likewise.
8929 parse-duration-tests: avoid link failure
8930 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8932 Reported by Tom G. Christensen.
8934 openat-tests: ensure unlinkat behaves like rmdir
8935 * tests/test-rmdir.c (main): Factor guts...
8936 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8937 * modules/rmdir-tests (Files): Ship new file.
8938 * modules/openat-tests: New test.
8939 * tests/test-unlinkat.c: Likewise.
8941 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8942 * modules/rmdir-errno (Status, Notice): Now obsolete.
8944 rmdir: work around cygwin 1.5.x and mingw bugs
8945 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8946 * lib/rmdir.c (rmdir): Work around it.
8947 * modules/rmdir (Status, Notice): No longer obsolete.
8948 (Files): Add dos.m4.
8949 (Depends-on): Add unistd.
8950 (configure.ac): Set witnesses.
8951 (License): Relax to LGPLv2+.
8952 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8953 * modules/unistd (Makefile.am): Substitute witnesses.
8954 * lib/unistd.in.h (rmdir): Declare replacement.
8955 * doc/posix-functions/rmdir.texi (rmdir): Document this.
8956 * modules/rmdir-tests: New tests.
8957 * tests/test-rmdir.c: Likewise.
8959 2009-09-15 Eric Blake <ebb9@byu.net>
8961 fchdir: improve use of replacement functions
8962 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8963 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8964 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8966 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8967 * modules/sys_stat (Makefile.am): Substitute correct witness.
8968 * modules/dirent (Makefile.am): Likewise.
8969 * modules/unistd (Makefile.am): Likewise.
8970 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8971 * lib/unistd.in.h (dup): Likewise.
8972 * lib/sys_stat.in.h (fstat): Likewise.
8974 maint: ignore gnulib-tool temp files
8975 * .gitignore: Ignore files created during gnulib-tool --test.
8977 2009-09-13 Jim Meyering <meyering@redhat.com>
8979 posixtm: don't reject a time that specify "60" as the number of seconds
8980 * lib/posixtm.c (posixtime): The code to reject invalid dates
8981 would also reject a time specified with the .60 suffix.
8982 But POSIX allows that, in order to accommodate leap seconds.
8984 (main): Adjust tests accordingly.
8985 * modules/posixtm (Depends-on): Add stpcpy.
8987 2009-09-11 Jim Meyering <meyering@redhat.com>
8989 announce-gen: include [$release_type] in emitted Subject:
8990 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8991 e.g., [stable] in the emitted Subject: line.
8993 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8995 Remove obsolete macros from several modules.
8996 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8997 obsolete Autoconf macros with their modern counterparts.
8998 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8999 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9000 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9001 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9002 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9003 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9004 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9005 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9006 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9007 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9008 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9009 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9010 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9011 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9012 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9013 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9014 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9015 * m4/time_r.m4 (gl_TIME_R): Likewise.
9016 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9017 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9018 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9020 Fix copyright header in build-aux scripts.
9021 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9023 * build-aux/ncftpput-ftp: Likewise.
9024 * build-aux/update-copyright: Likewise.
9026 2009-09-09 Eric Blake <ebb9@byu.net>
9028 test-link: allow Linux choice of errno
9029 * tests/test-link.c (main): Relax test for alternate error.
9031 strndup: fix improper m4 caching
9032 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9033 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9034 (gl_PREREQ_STRNDUP): Delete.
9035 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9036 * modules/string (Makefile.am): Substitute it.
9037 * lib/string.in.h (strndup): Modernize prototype.
9039 getcwd: port to mingw
9040 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9041 different from the POSIX assumptions made throughout the getcwd
9042 module; fortunately, the mingw getcwd does not need replacement.
9043 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9044 * modules/getcwd-tests: New test.
9045 * tests/test-getcwd.c: Likewise.
9047 link: fix platform bugs
9048 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9049 * lib/link.c (link): Work around them. Fix related mingw bug.
9050 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9051 * modules/unistd (Makefile.am): Substitute it.
9052 * lib/unistd.in.h (link): Declare replacement.
9053 * doc/posix-functions/link.texi (link): Document this.
9054 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9056 test-link: consolidate into single C program, test more cases
9057 * tests/test-link.sh: Delete.
9058 * tests/test-link.c: Test more error conditions. Exposes bugs on
9059 at least Cygwin and Solaris.
9060 * modules/link-tests (Files): Remove unused file.
9061 (Depends-on): Add errno, sys_stat.
9062 (Makefile.am): Simplify.
9064 2009-09-08 Bruno Haible <bruno@clisp.org>
9066 Work around towlower, towupper bug on mingw.
9067 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9068 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9069 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9070 * doc/posix-functions/towupper.texi: Likewise.
9071 Reported by Eric Blake.
9073 2009-09-08 Jim Meyering <meyering@redhat.com>
9075 build: don't try to run autoheader if we don't use it
9076 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9077 is not used in configure.ac.
9079 2009-09-08 Eric Blake <ebb9@byu.net>
9081 euidaccess: fix compilation error
9082 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9084 rawmemchr: relax license
9085 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9087 Reported by Jim Meyering.
9089 mkfifoat: new module
9090 * modules/mkfifoat: New file.
9091 * lib/mkfifoat.c: Likewise.
9092 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9093 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9094 * modules/sys_stat (Makefile.am): Use them.
9095 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9096 * MODULES.html.sh (File system functions): Mention module.
9097 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9098 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9099 * modules/mkfifoat-tests: New test.
9100 * tests/test-mkfifoat.c: Likewise.
9102 strchrnul: relax license
9103 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9105 Reported by Jim Meyering.
9107 2009-09-08 Eric Blake <ebb9@byu.net>
9109 fstatat: fix compilation on Solaris
9110 * lib/fstatat.c (includes): Add fcntl.h.
9111 Reported by Pádraig Brady.
9113 2009-09-07 Eric Blake <ebb9@byu.net>
9115 rename: modernize replacement
9116 * modules/rename (Depends-on): Add stdio.
9117 (configure.ac): Declare witness.
9118 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9119 stdio take care of replacement.
9120 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9121 * modules/stdio (Makefile.am): Substitute them.
9122 * lib/stdio.in.h (rename): Declare replacement.
9123 * lib/rename.c (includes): Allow cross-compilation to non-windows
9125 * doc/posix-functions/rename.texi (rename): Improve
9128 stdio: sort witness names
9129 * modules/stdio (Makefile.am): Sort replacements.
9130 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9131 * lib/stdio.in.h: Likewise.
9133 getcwd: minor cleanups
9134 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9135 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9137 openat: provide more convenience names
9138 * modules/faccessat (configure.ac): Add C witness.
9139 * lib/unistd.in.h (readlinkat): Fix typo.
9140 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9141 convenience wrappers.
9142 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9143 wrappers in syntax checks.
9145 2009-09-06 Eric Blake <ebb9@byu.net>
9147 doc: fix comments in recent patches
9148 * lib/faccessat.c: Mention correct function.
9149 * lib/fchmodat.c: Likewise.
9150 * lib/fchownat.c: Likewise.
9151 * lib/symlinkat.c: Likewise.
9152 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9155 faccessat, symlinkat: continue cleanup of previous patch
9156 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9157 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9158 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9159 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9160 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9161 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9164 2009-09-06 Bruno Haible <bruno@clisp.org>
9166 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9167 (fstatat): Declare if GNULIB_FSTATAT is set.
9168 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9169 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9170 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9171 * modules/fcntl-h (Files): Remove m4/openat.m4.
9172 * modules/sys_stat (Files): Remove m4/openat.m4.
9173 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9174 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9175 * modules/unistd (Files): Remove m4/openat.m4.
9176 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9178 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9179 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9180 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9181 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9182 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9184 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9185 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9186 Don't require gl_OPENAT_DEFAULTS.
9187 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9188 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9189 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9190 (gl_OPENAT_DEFAULTS): Remove macro.
9192 2009-09-06 Bruno Haible <bruno@clisp.org>
9194 * modules/openat (configure.ac): Remove unneeded witness.
9196 2009-09-06 Bruno Haible <bruno@clisp.org>
9198 Set errno to ENOSYS when a function is entirely unsupported.
9199 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9201 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9202 * modules/chown (Depends-on): Remove errno.
9204 2009-09-06 Bruno Haible <bruno@clisp.org>
9206 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9208 2009-09-06 Bruno Haible <bruno@clisp.org>
9210 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9212 2009-09-06 Ben Pfaff <blp@gnu.org>
9213 Bruno Haible <bruno@clisp.org>
9215 Work around a glibc bug in strtok_r.
9216 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9217 Undefine if UNDEFINE_STRTOK_R is set.
9218 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9219 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9220 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9221 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9222 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9224 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9226 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9229 * lib/exclude.c: Include wctype.h
9231 2009-09-06 Akim Demaille <demaille@gostai.com>
9233 bootstrap: improve error message
9234 * build-aux/bootstrap (find_tool): Upon failure, report the list
9236 Honor the initial value of the envvar.
9238 2009-09-05 Eric Blake <ebb9@byu.net>
9240 symlinkat: new module
9241 * modules/symlinkat: New file.
9242 * lib/symlinkat.c: Likewise.
9243 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9244 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9245 * modules/unistd (Makefile.am): Use them.
9246 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9247 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9248 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9249 * MODULES.html.sh (File system functions): Mention module.
9250 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9251 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9252 * modules/symlinkat-tests: New test.
9253 * tests/test-symlinkat.c: Likewise.
9255 test-openat-safer: add more checks
9256 * tests/test-openat-safer.c (main): Check more code paths.
9258 2009-09-05 Jim Meyering <meyering@redhat.com>
9260 syntax-check: detect unnecessary inclusion of openat.h
9261 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9263 2009-09-05 Bruno Haible <bruno@clisp.org>
9265 Support towlower, towupper.
9266 * doc/posix-functions/towlower.texi: Mention module wctype.
9267 * doc/posix-functions/towupper.texi: Likewise.
9268 * lib/wctype.in.h (towlower, towupper): New functions.
9269 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9270 (ASSERT): New macro.
9272 (main): Test also towlower, towupper. Test WEOF argument.
9273 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9275 2009-09-05 Bruno Haible <bruno@clisp.org>
9277 Fix conversion behaviour when the input is invalid.
9278 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9279 mark occurring in first pass of indirect conversion.
9280 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9282 Found by clang's static analyzer.
9284 2009-09-05 Bruno Haible <bruno@clisp.org>
9286 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9287 where direct conversion is possible.
9289 2009-09-04 Eric Blake <ebb9@byu.net>
9291 openat: fail with ENOENT on empty name
9292 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9295 link-follow: fix logic bug in prior patch
9296 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9297 reversed sense of yes and no in prior patch. Avoid confusing
9298 compilation failure with desired semantics.
9300 link-follow: accomodate mingw and cross-compilation
9301 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9302 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9303 cross-compilation results to -1, to make linkat easier to
9304 implement when cross-compiling. Trivially support mingw.
9305 * modules/link-follow (configure.ac): Call new name.
9306 * NEWS: Mention this.
9308 2009-09-03 Eric Blake <ebb9@byu.net>
9310 faccessat: compile replacement
9311 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9314 fts: fix compilation error
9315 * lib/fts.c (includes): Re-add "openat.h", for
9316 openat_needs_fchdir.
9318 faccessat: new module
9319 * modules/faccessat: New file.
9320 * lib/faccessat.c: Likewise.
9321 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9322 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9323 * modules/unistd (Makefile.am): Use it.
9324 * lib/unistd.in.h (faccessat): Declare it.
9325 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9326 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9327 * MODULES.html.sh (File system functions): Mention it.
9328 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9329 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9331 euidaccess: prefer POSIX over non-standard implementation
9332 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9333 * lib/euidaccess.c (euidaccess): Use it if available.
9335 openat: make template easier to use
9336 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9337 AT_FUNC_F2 to be undefined.
9338 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9339 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9340 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9341 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9342 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9344 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9345 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9346 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9349 openat: declare in POSIX headers
9350 * NEWS: Mention this.
9351 * modules/openat (configure.ac): Declare witnesses.
9352 (Depends-on): Add fcntl-h, sys_stat, unistd.
9353 (Include): Mention correct headers.
9354 * modules/fcntl-h (Depends-on): Add link-warning.
9355 (Files): Add openat.m4.
9356 (Makefile.am): Substitute witnesses.
9357 * modules/sys_stat (Files, Makefile.am): Likewise.
9358 * modules/unistd (Files, Makefile.am): Likewise.
9359 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9360 (gl_OPENAT_DEFAULTS): New macro.
9361 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9362 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9363 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9364 (SYS_STAT_H): Remove unused variable.
9365 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9366 * lib/fcntl--.h (includes): Remove unneeded header.
9367 * lib/openat-safer.c (includes): Likewise.
9368 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9369 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9370 appropriate headers.
9371 (__OPENAT_PREFIX): Delete.
9372 * lib/fcntl.in.h (openat): Provide declaration.
9373 (AT_FDCWD): Fix Solaris bug.
9374 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9375 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9376 * lib/fchmodat.c (includes): Adjust to find declaration.
9377 * lib/fchownat.c (includes): Likewise.
9378 * lib/mkdirat.c (includes): Likewise.
9379 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9382 2009-09-02 Eric Blake <ebb9@byu.net>
9384 errno: use consistently
9385 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9386 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9387 * lib/canonicalize.c (ELOOP): Likewise.
9388 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9389 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9390 * lib/lchown.c (EOPNOTSUPP): Likewise.
9391 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9392 * lib/savewd.c (ESTALE): Likewise.
9393 * lib/settime.c (ENOSYS): Likewise.
9394 * lib/utimens.c (ENOSYS): Likewise.
9395 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9396 * lib/chdir-safer.c (ELOOP): Likewise.
9397 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9398 * modules/c-stack (Depends-on): Add errno.
9399 * modules/canonicalize (Depends-on): Likewise.
9400 * modules/chdir-safer (Depends-on): Likewise.
9401 * modules/fdopendir (Depends-on): Likewise.
9402 * modules/inet_ntop (Depends-on): Likewise.
9403 * modules/inet_pton (Depends-on): Likewise.
9404 * modules/lchown (Depends-on): Likewise.
9405 * modules/openat (Depends-on): Likewise.
9406 * modules/savewd (Depends-on): Likewise.
9407 * modules/settime (Depends-on): Likewise.
9408 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9410 fts: avoid leaking fds
9411 * modules/fts (Depends-on): Add cloexec.
9412 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9415 fts: make directory fds more robust
9416 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9417 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9419 backupfile, chdir-long, fts, savedir: make safer
9420 * lib/backupfile.c (includes): Use "dirent--.h", since
9421 numbered_backup can write to stderr during readdir.
9422 * lib/savedir.c (includes): Likewise.
9423 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9424 emulation can write to stderr on failure.
9425 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9426 * lib/getcwd.c: Document why opendir_safer is unused.
9427 * lib/glob.c: Likewise.
9428 * lib/scandir.c: Likewise.
9429 * lib/openat-proc.c: Likewise, for open_safer.
9430 * modules/backupfile (Depends-on): Add dirent-safer.
9431 * modules/savedir (Depends-on): Likewise.
9432 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9433 * modules/chdir-long (Depends-on): Add openat-safer.
9435 openat-safer: new module
9436 * modules/openat-safer: New file.
9437 * lib/openat-safer.c: Likewise.
9438 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9439 * lib/fcntl-safer.h (openat_safer): Declare.
9440 * lib/fcntl--.h (openat): Override.
9441 * MODULES.html.sh (File descriptor based I/O): Mention it.
9442 * lib/openat.h: Add double-inclusion guards.
9443 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9444 "fcntl--.h", so we can implement openat.
9445 * modules/openat-safer-tests: New test.
9446 * tests/test-openat-safer.c: New file.
9448 dirent-safer: new module
9449 * modules/dirent-safer: New file.
9450 * lib/dirent--.h: Likewise.
9451 * lib/dirent-safer.h: Likewise.
9452 * lib/opendir-safer.c: Likewise.
9453 * m4/dirent-safer.m4: Likewise.
9454 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9455 * modules/dirent-safer-tests: New test.
9456 * tests/test-dirent-safer.c: New file.
9457 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9459 fdopendir: optimize on mingw
9460 * lib/unistd.in.h (_gl_directory_name): New prototype.
9461 * lib/fchdir.c (_gl_directory_name): Implement it.
9462 (fchdir): Use it to simplify implementation.
9463 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9464 fchdir, when available, to avoid calling [f]chdir().
9466 fdopendir: split into its own module
9467 * lib/openat.c (fdopendir): Move...
9468 * lib/fdopendir.c: ...into new file.
9469 * modules/fdopendir: New module.
9470 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9471 * modules/openat (Depends-on): Add fdopendir.
9472 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9474 * modules/savedir (Depends-on): Only need fdopendir, not full
9476 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9477 * lib/openat.h (fdopendir): Drop prototype.
9478 * lib/dirent.in.h (fdopendir): Provide prototype.
9479 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9480 * modules/dirent (Makefile.am): Substitute them.
9481 * MODULES.html.sh (File system functions): Mention it.
9482 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9483 * modules/fdopendir-tests: New file.
9484 * tests/test-fdopendir.c: Likewise.
9486 fchdir: use more consistent macro convention
9487 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9488 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9489 REPLACE_FCHDIR, rather than relying on config.h macros.
9490 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9491 inside a single make-time REPLACE_FCHDIR block, rather than using
9492 the config.h FCHDIR_REPLACEMENT.
9493 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9494 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9495 Manage fstat replacement.
9496 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9498 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9499 (Makefile.am): Substitute REPLACE_FCHDIR.
9500 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9502 * lib/dup-safer.c (dup_safer): Likewise.
9503 * lib/dup2.c (rpl_dup2): Likewise.
9504 * lib/dup3.c (rpl_dup3): Likewise.
9505 * lib/open.c (rpl_open): Likewise.
9507 fchdir: simplify error handling, and support dup3
9508 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9509 stdbool, malloc-posix, realloc-posix.
9510 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9511 (ensure_dirs_slot): Return false on allocation failure.
9513 (_gl_register_dup): New function.
9514 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9515 (_gl_register_fd): Close fd on allocation failure.
9516 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9517 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9519 (rpl_dup2_fchdir): Delete prototype.
9520 * lib/open.c (open): Update caller.
9521 * lib/dup2.c (dup2): Track fchdir metadata.
9522 * lib/dup3.c (dup3): Likewise.
9523 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9524 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9526 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9528 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9529 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9530 don't pass arguments to AC_OUTPUT.
9532 2009-09-02 Bruno Haible <bruno@clisp.org>
9534 * modules/mkdtemp (License): Relicense under LGPLv2+.
9535 Reported by Paolo Bonzini.
9537 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9539 Replace uses of obsolete autoconf macros in Jim's modules.
9540 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9541 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9542 can evoke a warning from autoconf when run with -Wobsolete
9543 enabled. They were declared obsolete for good reasons (see
9544 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9545 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9546 should not continue using the deprecated macros.
9547 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9548 obsolete Autoconf macros with modern counterparts.
9549 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9550 * m4/dos.m4 (gl_AC_DOS): Likewise.
9551 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9552 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9553 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9554 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9555 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9556 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9557 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9558 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9559 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9561 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9562 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9563 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9564 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9565 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9566 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9568 2009-09-01 Eric Blake <ebb9@byu.net>
9570 fchdir: fix off-by-one bug in previous patch
9571 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9572 (_gl_unregister_fd): Delete useless if.
9574 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9576 maint.mk: sort the list of syntax-check rules
9577 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9578 easier to get a sense of progress when the rules are run sequentially
9579 and take a long time.
9581 2009-09-01 Simon Josefsson <simon@josefsson.org>
9583 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9584 * modules/netinet_in: Likewise.
9585 * modules/sys_file: Likewise.
9586 * modules/sys_ioctl: Likewise.
9587 * modules/sys_select: Likewise.
9588 * modules/sys_socket: Likewise.
9589 * modules/sys_stat: Likewise.
9590 * modules/sys_time: Likewise.
9591 * modules/sys_times: Likewise.
9592 * modules/sys_utsname: Likewise.
9593 * modules/sys_wait: Likewise.
9595 2009-09-01 Jim Meyering <meyering@redhat.com>
9597 fts: help ensure that return values are not ignored
9598 * lib/fts_.h (__GNUC_PREREQ): Define.
9599 (__attribute_warn_unused_result__): Define.
9600 (fts_children, fts_close, fts_open, fts_read): Declare with
9601 __attribute_warn_unused_result__.
9603 fts: fts_close now fails also when closing a dir file descriptor fails
9604 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9605 and propagate to caller, along with errno.
9607 announce-gen: correct formatting in --help output
9608 * build-aux/announce-gen (usage): Move the one-line description in
9609 --help output "up", to where it belongs, just after Usage:.
9611 2009-08-31 Eric Blake <ebb9@byu.net>
9613 fchdir: port to mingw
9614 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9615 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9616 opened, then use a substitute.
9617 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9619 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9620 (_gl_register_fd): No need to check stat if open already filters
9622 (fchdir): Fix error condition to match POSIX.
9623 * modules/fchdir (Depends-on): Add sys_stat.
9624 * doc/posix-functions/open.texi (open): Document the limitation.
9625 * modules/fchdir-tests: New file.
9626 * tests/test-fchdir.c: Likewise.
9628 canonicalize: allow cross-testing from cygwin to mingw
9629 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9630 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9631 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9633 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9634 target does not support symlinks.
9635 * tests/test-canonicalize-lgpl.sh: Likewise.
9637 chown: avoid compilation warning on mingw
9638 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9639 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9641 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9642 * modules/chown (Depends-on): Add errno.
9644 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
9646 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9649 2009-08-31 Jim Meyering <meyering@redhat.com>
9651 canonicalize: remove useless initialization
9652 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9653 initialization of local, "end".
9655 2009-08-30 Bruno Haible <bruno@clisp.org>
9657 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9658 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9661 2009-08-30 Bruno Haible <bruno@clisp.org>
9663 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9664 /usr/xpg4/bin/tr when it exists.
9665 * tests/test-pipe-filter-gi1.sh: Likewise.
9667 2009-08-30 Bruno Haible <bruno@clisp.org>
9669 Work around deficient /usr/bin/id program on Solaris.
9670 * tests/test-file-has-acl.sh (ID): New variable.
9671 * tests/test-set-mode-acl.sh (ID): Likewise.
9672 * tests/test-copy-acl.sh (ID): Likewise.
9673 * tests/test-copy-file.sh (ID): Likewise.
9675 2009-08-30 Bruno Haible <bruno@clisp.org>
9677 New module 'xstriconveh'.
9678 * lib/xstriconveh.h: New file.
9679 * lib/xstriconveh.c: New file.
9680 * modules/xstriconveh: New file.
9682 2009-08-30 Bruno Haible <bruno@clisp.org>
9684 Make it easier to use mem_cd_iconveh.
9685 * lib/striconveh.h (iconveh_t): New type.
9686 (iconveh_open, iconveh_close): New declarations.
9687 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9688 with a single 'const iconveh_t *' argument.
9689 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9690 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9691 with a single 'const iconveh_t *' argument.
9692 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9693 * tests/test-striconveh.c (main): Update.
9694 * NEWS: Mention the change.
9696 2009-08-30 Bruno Haible <bruno@clisp.org>
9698 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9701 2009-08-30 Bruno Haible <bruno@clisp.org>
9703 Work around iconv_open problem on Solaris.
9704 * lib/iconv_open-solaris.gperf: New file.
9705 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9706 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9707 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9708 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9709 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9710 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9712 2009-08-29 Jim Meyering <meyering@redhat.com>
9714 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9715 * top/maint.mk (cvs-check): Remove target; it was just an alias
9716 to the better-named vc-diff-check.
9717 (maintainer-distcheck): Remove rule. It was used only from
9718 the (alpha/beta/major) target, and all of its commands but one
9719 were coreutils-specific.
9720 (vc-dist): Remove rule.
9721 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9722 Run vc-diff-check, not vc-dist.
9723 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
9725 2009-08-27 Bruno Haible <bruno@clisp.org>
9727 * tests/test-bitrotate.c (main): Remove test that uses a shift count
9730 2009-08-27 Bruno Haible <bruno@clisp.org>
9732 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9734 * doc/func.texi: Document the SunPRO C bug.
9736 2009-08-27 Bruno Haible <bruno@clisp.org>
9738 Fix link error on Solaris.
9739 * tests/test-parse-duration.c (xstrdup): Remove function.
9741 2009-08-26 Pádraig Brady <P@draigbrady.com>
9743 ignore-value: handle pointer types, too
9744 * lib/ignore-value.h (__attribute__): Remove definition.
9745 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9746 of a more concise and more-often effective "(void) i" statement.
9747 (ignore_ptr): New function to suppress warnings from functions that
9748 return pointers, and to make it explicit that one function doesn't
9751 2009-08-25 Bruno Haible <bruno@clisp.org>
9753 dup2: work around a Linux bug.
9754 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9755 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9756 * doc/posix-functions/dup2.texi: Mention the Linux bug.
9757 Reported by Simon Josefsson.
9759 2009-08-25 Jim Meyering <meyering@redhat.com>
9761 libguestfs uses gnulib
9762 * users.txt: Add libguestfs.
9764 2009-08-24 Eric Blake <ebb9@byu.net>
9766 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9767 * lib/pipe2.c (includes): Add binary-io.h.
9768 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9770 2009-08-24 Bruno Haible <bruno@clisp.org>
9772 Tolerate declared but missing accept4 syscall.
9773 * lib/accept4.c (accept4): Invoke original accept4 function first, if
9775 * lib/sys_socket.in.h (accept4): If the function is already present,
9777 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9778 * modules/accept4 (Makefile.am): Compile accept4.c always.
9779 Reported by Paolo Bonzini and Eric Blake.
9781 2009-08-23 Bruno Haible <bruno@clisp.org>
9783 New module 'accept4'.
9784 * lib/sys_socket.in.h (accept4): New declaration.
9785 * lib/accept4.c: New file.
9786 * m4/accept4.m4: New file.
9787 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9788 GNULIB_ACCEPT4, HAVE_ACCEPT4.
9789 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9791 * modules/accept4: New file.
9792 * doc/glibc-functions/accept4.texi: Mention the new module.
9794 2009-08-24 Jim Meyering <meyering@redhat.com>
9796 progname: also set global program_invocation_name, when possible
9797 Before this change, a libtool-enabled program that calls glibc's
9798 error function would report the program name as
9799 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9800 * modules/progname (configure.ac): Check for a declaration of
9801 program_invocation_name.
9802 * lib/progname.c: Include <errno.h>.
9803 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9804 Set program_invocation_name.
9806 2009-08-23 Bruno Haible <bruno@clisp.org>
9808 * lib/dup3.c: Include <string.h>.
9810 2009-08-23 Bruno Haible <bruno@clisp.org>
9812 * lib/dup3.c (dup3): Test only once whether the system actually exists.
9813 * lib/pipe2.c (pipe2): Likewise.
9814 Suggested by Eric Blake.
9816 2009-08-23 Bruno Haible <bruno@clisp.org>
9818 Tolerate declared but missing dup3 syscall.
9819 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9820 * lib/unistd.in.h (dup3): If the function is already present,
9822 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9823 * modules/dup3 (Makefile.am): Compile dup3.c always.
9824 Reported by Paolo Bonzini.
9826 2009-08-23 Bruno Haible <bruno@clisp.org>
9828 Tolerate declared but missing pipe2 syscall.
9829 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9831 * lib/unistd.in.h (pipe2): If the function is already present,
9833 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9834 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9835 Reported by Paolo Bonzini.
9837 2009-08-23 Bruno Haible <bruno@clisp.org>
9839 * lib/pipe2.c (pipe2): Move #ifs inside function.
9841 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9843 quotearg: document limitations of quote_these_too
9844 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9845 those limitations are created.
9846 * lib/quotearg.h (set_char_quoting): Document that digits and
9847 letters that are special after backslash are not permitted.
9848 (quotearg_char): Cross-reference set_char_quoting documentation.
9850 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
9852 quotearg: implement custom_quoting_style
9853 * lib/quotearg.c: (struct quoting_options): Add left_quote and
9855 (set_custom_quoting): New public function.
9856 (quotearg_buffer_restyled): Add left_quote and right_quote
9857 arguments, handle them very much like locale quoting, and update
9859 (quotearg_n_custom): New public function.
9860 (quotearg_n_custom_mem): New public function.
9861 (quotearg_custom): New public function.
9862 (quotearg_custom_mem): New public function.
9863 * lib/quotearg.h: Prototype and document new public functions.
9864 (enum quoting_style): For escape_quoting_style and
9865 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9866 ignored even though they're otherwise like c_quoting_style.
9867 Add custom_quoting_style member and document with comparison to
9868 clocale_quoting_style.
9869 * tests/test-quotearg.c (custom_quotes): New array.
9870 (custom_results): New array.
9871 (main): Extend to test custom quoting.
9873 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9875 quotearg: fix right quote escaping when it's in quote_these_too
9876 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9877 quote, be sure to prepend only one backslash.
9878 * tests/test-quotearg.c (use_quote_double_quotes): New function.
9881 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9883 quotearg-tests: test escaping of embedded locale quotes
9884 * tests/test-quotearg.c (struct result_strings): Add member for
9886 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9887 (inputs): Add new input.
9888 (results_g): Add expected results.
9889 (flag_results): Likewise.
9890 (locale_results): Likewise.
9891 (compare_strings): Check those.
9893 2009-08-23 Bruno Haible <bruno@clisp.org>
9895 Tests for module 'dup3'.
9896 * modules/dup3-tests: New file.
9897 * tests/test-dup3.c: New file.
9900 * lib/unistd.in.h (dup3): New declaration.
9901 * lib/dup3.c: New file.
9902 * m4/dup3.m4: New file.
9903 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9905 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9906 * modules/dup3: New file.
9907 * doc/glibc-functions/dup3.texi: Mention the new module.
9909 2009-08-23 Bruno Haible <bruno@clisp.org>
9911 Tweak the dup2 test.
9912 * tests/test-dup2.c (main): Create the test file empty. Verify that an
9913 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9914 the test file is still empty. Fix argument order of lseek.
9916 2009-08-23 Bruno Haible <bruno@clisp.org>
9918 Avoid test link errors when the modules getopt-gnu, gettext are used.
9919 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9920 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9922 2009-08-23 Bruno Haible <bruno@clisp.org>
9924 Fix getdtablesize() on mingw.
9925 * lib/getdtablesize.c (getdtablesize): Implement differently.
9926 * lib/unistd.in.h (getdtablesize): Improve comment.
9928 2009-08-23 Bruno Haible <bruno@clisp.org>
9930 New module 'mkostemp'.
9931 Based on Ulrich Drepper's 2007-08-10 change in glibc.
9932 * lib/stdlib.in.h (mksotemp): New declaration.
9933 * lib/mkostemp.c: New file, from glibc with modifications.
9934 * lib/tempname.h (GT_FILE): Remove outdated comment.
9935 (gen_tempname): Add flags argument.
9936 * lib/tempname.c (__GT_BIGFILE): Remove macro.
9937 (__GT_FILE): Map to 1.
9938 (small_open, large_open): Remove macros.
9939 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9940 * lib/mkstemp.c (mkstemp): Update.
9941 * lib/mkdtemp.c (mkdtemp): Likewise.
9942 * m4/mkostemp.m4: New file.
9943 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9945 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9947 * modules/mkostemp: New file, based on modules/mkstemp.
9948 * doc/glibc-functions/mkostemp.texi: Mention the new module.
9949 * NEWS: Mention the change.
9951 2009-08-23 Bruno Haible <bruno@clisp.org>
9953 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9954 Reported by Eric Blake.
9956 2009-08-23 Bruno Haible <bruno@clisp.org>
9958 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9959 Reported by Eric Blake.
9961 2009-08-23 Bruno Haible <bruno@clisp.org>
9963 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9964 * modules/pipe2 (Depends-on): Likewise.
9966 2009-08-23 Eric Blake <ebb9@byu.net>
9968 fcntl-h: add O_TTY_INIT support
9969 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9970 * tests/test-fcntl-h.c (o): Test it.
9971 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9973 fcntl-h: rename from fcntl, in preparation for fcntl(2)
9974 * modules/fcntl: Move <fcntl.h> header replacement...
9975 * modules/fcntl-h: ...to new name, so as not to collide with
9976 like-named function.
9977 * tests/test-fcntl.c: Rename...
9978 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
9979 * modules/fcntl-tests: Rename...
9980 * modules/fcntl-h-tests: ...to this. Update test file name.
9981 * modules/chdir-long (Depends-on): Update clients.
9982 * modules/chdir-safer (Depends-on): Likewise.
9983 * modules/fcntl-safer (Depends-on): Likewise.
9984 * modules/fts (Depends-on): Likewise.
9985 * modules/mkancesdirs (Depends-on): Likewise.
9986 * modules/mkdir-p (Depends-on): Likewise.
9987 * modules/open (Depends-on): Likewise.
9988 * modules/savewd (Depends-on): Likewise.
9989 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9990 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9992 2009-08-22 Bruno Haible <bruno@clisp.org>
9994 * modules/binary-io (License): Relicense under LGPL.
9995 * modules/pipe2 (License): Likewise.
9997 2009-08-22 Bruno Haible <bruno@clisp.org>
9999 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10001 * lib/pipe-filter-gi.c (filter_init): Likewise.
10002 Reported by Eric Blake.
10004 2009-08-22 Bruno Haible <bruno@clisp.org>
10006 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10007 * modules/pipe (Depends-on): Add pipe2.
10009 2009-08-22 Bruno Haible <bruno@clisp.org>
10011 Tests for module 'pipe2'.
10012 * modules/pipe2-tests: New file.
10013 * tests/test-pipe2.c: New file.
10015 New module 'pipe2'.
10016 * lib/unistd.in.h (pipe2): New declaration.
10017 * lib/pipe2.c: New file.
10018 * m4/pipe2.m4: New file.
10019 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10021 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10022 * modules/pipe2: New file.
10023 * doc/glibc-functions/pipe2.texi: Mention the new module.
10025 2009-08-22 Bruno Haible <bruno@clisp.org>
10027 Reference some new glibc functions.
10028 * doc/glibc-functions/accept4.texi: New file.
10029 * doc/glibc-functions/dup3.texi: New file.
10030 * doc/glibc-functions/mkostemp.texi: New file.
10031 * doc/glibc-functions/pipe2.texi: New file.
10032 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10033 (Glibc sys/socket.h): Refer to accept4.
10034 (Glibc unistd.h): Refer to dup3, pipe2.
10035 Reported by Eric Blake.
10037 2009-08-22 Jim Meyering <meyering@redhat.com>
10038 Bruno Haible <bruno@clisp.org>
10040 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10041 This makes it so packages using automake-1.11's silent-rules option
10042 can print e.g., a single "GEN configmake.h" line, rather than
10043 the 30+ statements that perform the job. If you want to see the
10044 actual commands, you can still run "make V=1".
10045 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10046 so that make output is abbreviated when those variables are defined
10048 * modules/argz: Likewise.
10049 * modules/arpa_inet: Likewise.
10050 * modules/byteswap: Likewise.
10051 * modules/configmake: Likewise.
10052 * modules/dirent: Likewise.
10053 * modules/errno: Likewise.
10054 * modules/fcntl: Likewise.
10055 * modules/float: Likewise.
10056 * modules/fnmatch: Likewise.
10057 * modules/getopt-posix: Likewise.
10058 * modules/glob: Likewise.
10059 * modules/iconv_open: Likewise.
10060 * modules/inttypes: Likewise.
10061 * modules/localcharset: Likewise.
10062 * modules/locale: Likewise.
10063 * modules/math: Likewise.
10064 * modules/netdb: Likewise.
10065 * modules/netinet_in: Likewise.
10066 * modules/poll: Likewise.
10067 * modules/posix_spawnp-tests: Likewise.
10068 * modules/sched: Likewise.
10069 * modules/search: Likewise.
10070 * modules/selinux-h: Likewise.
10071 * modules/signal: Likewise.
10072 * modules/spawn: Likewise.
10073 * modules/stdarg: Likewise.
10074 * modules/stdbool: Likewise.
10075 * modules/stddef: Likewise.
10076 * modules/stdint: Likewise.
10077 * modules/stdio: Likewise.
10078 * modules/stdlib: Likewise.
10079 * modules/string: Likewise.
10080 * modules/strings: Likewise.
10081 * modules/sys_file: Likewise.
10082 * modules/sys_ioctl: Likewise.
10083 * modules/sys_select: Likewise.
10084 * modules/sys_socket: Likewise.
10085 * modules/sys_stat: Likewise.
10086 * modules/sys_time: Likewise.
10087 * modules/sys_times: Likewise.
10088 * modules/sys_utsname: Likewise.
10089 * modules/sys_wait: Likewise.
10090 * modules/sysexits: Likewise.
10091 * modules/time: Likewise.
10092 * modules/unistd: Likewise.
10093 * modules/wchar: Likewise.
10094 * modules/wctype: Likewise.
10096 2009-08-22 Jim Meyering <meyering@redhat.com>
10098 announce-gen: detect write failure
10099 * build-aux/announce-gen: Add Coda at end.
10100 Remove equivalent-but-more-verbose block at top.
10102 2009-08-19 Akim Demaille <demaille@gostai.com>
10104 bootstrap: --help to stdout.
10105 * bootstrap (usage): Don't send --help to stderr.
10106 Use a here doc instead of a long string.
10108 2009-08-21 Eric Blake <ebb9@byu.net>
10110 test-popen-safer: split from test-popen
10111 * tests/test-popen.c (main): Move...
10112 * tests/test-popen.h: ...into new file.
10113 * tests/test-popen-safer2.c: New file.
10114 * modules/popen-tests (Files): Add test-popen.h.
10115 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10116 Suggested by Bruno Haible.
10118 test-fcntl-safer: split from test-open
10119 * tests/test-open.c (main): Move...
10120 * tests/test-open.h: ...into new file.
10121 * tests/test-fcntl-safer.c: New file.
10122 * modules/open-tests (Files): Add test-open.h.
10123 * modules/fcntl-safer-tests: New file.
10124 Suggested by Bruno Haible.
10126 test-fopen-safer: split from test-fopen
10127 * tests/test-fopen.c (main): Move...
10128 * tests/test-fopen.h: ...into new file.
10129 * tests/test-fopen-safer.c: New file.
10130 * modules/fopen-tests (Files): Add test-fopen.h.
10131 * modules/fopen-safer-tests: New file.
10132 Suggested by Bruno Haible.
10134 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10136 popen-safer: test O_CLOEXEC at run-time.
10137 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10139 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10141 fcntl: move more flags to the header
10142 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10143 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10144 * lib/fcntl.in.h: Do both things here.
10146 2009-08-21 Jim Meyering <meyering@redhat.com>
10148 consistently remove $@-t before redirecting to it
10149 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10150 * modules/alloca-opt: Likewise.
10151 * modules/byteswap: Likewise.
10152 * modules/fnmatch: Likewise.
10153 * modules/getopt-posix: Likewise.
10154 * modules/glob: Likewise.
10155 * modules/poll: Likewise.
10156 * modules/posix_spawnp-tests: Likewise.
10157 * modules/sys_socket: Likewise.
10158 * modules/sysexits: Likewise.
10160 2009-08-21 Eric Blake <ebb9@byu.net>
10162 popen: simplify access to original popen
10163 * lib/popen.c (rpl_popen): No need to worry about popen being a
10165 Reported by Bruno Haible.
10167 2009-08-20 Eric Blake <ebb9@byu.net>
10169 build: avoid some compiler warnings
10170 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10171 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10173 (new_exclude_segment, excluded_file_pattern_p)
10174 (excluded_file_name_p): Reduce scope.
10175 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10176 old-style declaration.
10178 2009-08-20 Simon Josefsson <simon@josefsson.org>
10180 * tests/test-exclude1.sh: Handle Windows EOL.
10181 * tests/test-exclude2.sh: Likewise.
10182 * tests/test-exclude3.sh: Likewise.
10183 * tests/test-exclude4.sh: Likewise.
10184 * tests/test-exclude5.sh: Likewise.
10185 * tests/test-exclude6.sh: Likewise.
10186 * tests/test-exclude7.sh: Likewise.
10188 2009-08-19 Akim Demaille <demaille@gostai.com>
10190 bootstrap: find sha1sum when named gsha1sum.
10191 * bootstrap (find_tool): New.
10195 2009-08-20 Jim Meyering <meyering@redhat.com>
10197 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10198 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10199 expression that converts "." in a file name to "\." in the resulting
10200 regexp. Start with a dummy statement, so that prior shell variable
10201 definitions are expanded portably. Reported by Simon Josefsson.
10203 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10205 Fix polling for writeability of a screen buffer.
10206 * lib/poll.c: Distinguish input and screen buffers for the
10207 Win32 implementation.
10208 * lib/select.c: Likewise.
10210 2009-08-19 Eric Blake <ebb9@byu.net>
10212 popen-safer: prevent popen from clobbering std descriptors
10213 * modules/popen-safer: New file.
10214 * lib/popen-safer.c: Likewise.
10215 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10216 * lib/stdio--.h (popen): Provide override.
10217 * lib/stdio-safer.h (popen_safer): Provide declaration.
10218 * tests/test-popen.c (includes): Partially test this.
10219 * modules/popen-safer-tests: New file, for more tests.
10220 * tests/test-popen-safer.c: Likewise.
10221 * MODULES.html.sh (file stream based Input/Output): Mention it.
10223 tests: test some of the *-safer modules
10224 * modules/fopen-safer (Depends-on): Add fopen.
10225 * modules/fcntl-safer (Depends-on): Add fcntl.
10226 * modules/stdlib-safer (Depends-on): Add stdlib.
10227 (configure.ac): Set indicator.
10228 * modules/unistd-safer (configure.ac): Likewise.
10229 * modules/tmpfile-safer (configure.ac): Likewise.
10230 (Depends-on): Add tmpfile.
10231 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10233 * tests/test-fopen.c (includes): Test safer versions when they are
10235 * tests/test-open.c (includes): Likewise.
10237 popen: fix cygwin 1.5 bug when stdin closed
10238 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10239 * modules/popen: New file.
10240 * modules/popen-tests: Likewise.
10241 * tests/test-popen.c: Likewise.
10242 * m4/popen.m4: Likewise.
10243 * lib/popen.c: Likewise.
10244 * lib/stdio.in.h (popen): New declaration.
10245 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10246 * modules/stdio (Makefile.am): Likewise.
10247 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10249 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10251 maint.mk: give full control over update-copyright exclusions
10252 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10253 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10254 (update-copyright): Don't force inclusion of top-level
10255 ChangeLog. Don't force exclusion of all COPYING files, but make
10256 them the default exclusion instead.
10258 2009-08-16 Bruno Haible <bruno@clisp.org>
10260 Fix test failures on Solaris 10.
10261 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10262 tests when Solaris iconv() is used.
10263 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10264 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10265 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10266 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10267 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10269 2009-08-16 Bruno Haible <bruno@clisp.org>
10271 Fix test failures on Solaris 10.
10272 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10273 'tr' program and pass it as first argument.
10274 * tests/test-pipe-filter-gi1.sh: Likewise.
10275 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10276 program as first argument.
10277 * tests/test-pipe-filter-gi1.c (main): Likewise.
10279 2009-08-16 Eric Blake <ebb9@byu.net>
10281 fpurge: fix previous commits
10282 * modules/fpurge (Makefile.am): Make replacement conditional,
10283 partially reverting 2007-04-29 change; missed in previous
10285 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10288 2009-08-16 Bruno Haible <bruno@clisp.org>
10290 Clarify fpurge's effect on the file position.
10291 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10292 * tests/test-fpurge.c (main): Make a second pass for checking the file
10295 2009-08-16 Bruno Haible <bruno@clisp.org>
10297 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10298 declaration of fpurge is missing.
10299 * tests/test-fpurge.c (main): Check that the file has not more contents
10300 than expected. Close the file before removing it.
10302 2009-08-15 Eric Blake <ebb9@byu.net>
10304 fpurge: don't wrap working cygwin implementation
10305 * lib/fpurge.c (fpurge): Fix comment typo.
10306 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10307 1.7 to avoid replacement.
10308 * tests/test-fpurge.c (main): Enhance test.
10310 2009-08-15 Eric Blake <ebb9@byu.net>
10311 and Jim Meyering <meyering@redhat.com>
10313 test-update-copyright: skip if perl is insufficient
10314 * tests/test-update-copyright.sh: Failure to run maintainer tool
10315 should not cause testsuite failure on cygwin 1.5.
10317 2009-08-14 Eric Blake <ebb9@byu.net>
10319 doc: mention more functions added in cygwin 1.7.0
10320 * doc/posix-headers/limits.texi (limits.h): Update for recent
10322 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10323 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10324 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10325 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10326 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10328 2009-08-14 Eric Blake <ebb9@byu.net>
10330 maint.mk: simplify update-copyright rule
10331 * top/maint.mk (update-copyright-local): Delete, and document how
10332 to do it in cfg.mk instead.
10333 (update-copyright-exclude-regexp): Delete, and document how to do
10334 it in .x-update-copyright instead.
10335 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10338 2009-08-14 Bruno Haible <bruno@clisp.org>
10340 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10342 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10344 maint.mk: support update-copyright-env
10345 * top/maint.mk (update-copyright-env): Define place-holder.
10346 (update-copyright): Expand $(update-copyright-env) before
10347 invoking update-copyright.
10349 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10351 update-copyright: implement forced reformatting
10352 * build-aux/update-copyright: Implement and document
10353 UPDATE_COPYRIGHT_FORCE.
10354 * tests/test-update-copyright.sh: Test it.
10356 2009-08-14 Eric Blake <ebb9@byu.net>
10357 and Bruno Haible <bruno@clisp.org>
10359 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10360 * tests/test-locale.c: Revert previous patch related to NULL.
10361 * tests/test-stdio.c: Likewise.
10362 * tests/test-stdlib.c: Likewise.
10363 * tests/test-string.c: Likewise.
10364 * tests/test-unistd.c: Likewise.
10365 * modules/time-tests (Depends-on): Add verify.
10366 * modules/wchar-tests (Depends-on): Likewise.
10367 * tests/test-time.c: Test for NULL compliance.
10368 * tests/test-wchar.c: Likewise.
10369 * modules/locale (Depends-on): Add stddef.
10370 * modules/stdio (Depends-on): Likewise.
10371 * modules/stdlib (Depends-on): Likewise.
10372 * modules/string (Depends-on): Likewise.
10373 * modules/time (Depends-on): Likewise.
10374 * modules/unistd (Depends-on): Likewise.
10375 * modules/wchar (Depends-on): Likewise.
10376 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10377 * lib/stdlib.in.h (includes): Likewise.
10378 * lib/string.in.h (includes): Likewise.
10379 * lib/time.in.h (includes): Likewise.
10380 * lib/unistd.in.h (includes): Likewise.
10381 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10383 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10384 * m4/stddef_h.m4: New file.
10385 * modules/stddef: Likewise.
10386 * lib/stddef.in.h: Likewise.
10387 * modules/stddef-tests: Likewise.
10388 * tests/test-stddef.c: Likewise.
10389 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10390 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10391 * doc/posix-headers/locale.texi (locale.h): Likewise.
10392 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10393 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10394 * doc/posix-headers/string.texi (string.h): Likewise.
10395 * doc/posix-headers/time.texi (time.h): Likewise.
10396 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10397 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10399 2009-08-14 Eric Blake <ebb9@byu.net>
10401 doc: improve git diff of texinfo files
10402 * .gitattributes: Add rule for *.texi files, with hint on how to
10404 Copied from m4, and based on a report by Bruno Haible.
10406 2009-08-14 Bruno Haible <bruno@clisp.org>
10408 Disable multithread support by default on Cygwin 1.5.x for real.
10409 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10411 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10413 update-copyright: much ado about intervals
10414 * build-aux/update-copyright: Implement and document
10415 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10416 of copyright year intervals.
10417 Also, document UPDATE_COPYRIGHT_YEAR.
10418 * tests/test-update-copyright.sh: Test it.
10420 update-copyright: convert 2-digit to 4-digit years
10421 * build-aux/update-copyright: Implement and document.
10422 * tests/test-update-copyright.sh: Update.
10424 2009-08-14 Jim Meyering <meyering@redhat.com>
10426 test-exclude: avoid coreutils "make check" failure
10427 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10428 just as in test-argmatch.c.
10430 2009-08-13 Eric Blake <ebb9@byu.net>
10432 test-dup2: fix bad assumption
10433 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10434 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10436 test-version-etc: fix CRLF portability issue
10437 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10439 * tests/test-argp-version-etc-1.sh: Likewise.
10441 getopt: update client modules
10442 * modules/argp (Depends-on): Use getopt-gnu.
10443 * modules/git-merge-changelog (Depends-on): Likewise.
10444 * modules/long-options (Depends-on): Likewise.
10445 * modules/xstrtol (Depends-on): Likewise.
10447 2009-08-13 Simon Josefsson <simon@josefsson.org>
10449 * tests/test-version-etc.sh: Don't fail on different
10450 project/version. Don't fail on CRLF differences. Rewrite to use
10451 multiple -e instead of multiple sed forks, suggested by Eric Blake
10453 * tests/test-argp-version-etc-1.sh: Likewise.
10455 2009-08-13 Simon Josefsson <simon@josefsson.org>
10457 * tests/test-version-etc.sh: Don't fail on different
10460 2009-08-12 Bruno Haible <bruno@clisp.org>
10462 Tests for modules 'getopt-posix', 'getopt-gnu'.
10463 * modules/getopt-posix-tests: New file.
10464 * tests/test-getopt.c: New file.
10465 * tests/test-getopt.h: New file.
10466 * tests/test-getopt_long.h: New file.
10468 New modules 'getopt-posix', 'getopt-gnu'.
10469 * modules/getopt-gnu: New file, renamed from modules/getopt.
10470 * modules/getopt-posix: New file.
10471 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10472 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10473 (gl_GETOPT): Remove macro.
10474 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10475 Disable the test against BSD systems that declare optreset. Test
10476 against mingw bug. Test against lack of support of optional arguments
10478 * doc/glibc-headers/getopt.texi: Update module name and list of
10479 relevant platforms.
10480 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10481 'getopt-gnu' and more portability problems.
10482 * NEWS: Mention the changes.
10484 2009-08-12 Bruno Haible <bruno@clisp.org>
10486 Ensure that optarg etc. get declared by <unistd.h>.
10487 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10488 AC_USE_SYSTEM_EXTENSIONS.
10489 * modules/getopt (Depends-on): Add 'extensions'.
10491 2009-08-12 Bruno Haible <bruno@clisp.org>
10493 Avoid test link errors.
10494 * modules/pipe-filter-ii-tests (Makefile.am): Define
10495 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10496 * modules/pipe-filter-gi-tests (Makefile.am): Define
10497 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10498 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10500 2009-08-12 Bruno Haible <bruno@clisp.org>
10502 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10503 gl_GETOPT_SUBSTITUTE before.
10504 (gl_GETOPT): Use it.
10505 * m4/argp.m4 (gl_ARGP): Update.
10506 Reported by Sergey Poznyakoff.
10508 * m4/getopt.m4: Reorder macros.
10509 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10510 (gl_GETOPT_SUBSTITUTE): Remove macro.
10512 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10514 Minor improvement in gitlog-to-changelog
10516 * build-aux/gitlog-to-changelog: New option `--format' makes
10517 output format string configurable.
10519 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10521 Optimize exclude: use hash tables for non-wildcard patterns.
10523 * lib/exclude.c: Include hash.h and mbuiter.h
10524 (struct exclude_pattern, exclude_segment): New data types.
10525 (struct exclude): Rewrite.
10526 (fnmatch_pattern_has_wildcards): New function.
10527 (new_exclude_segment, free_exclude_segment): New functions.
10528 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10529 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10530 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10531 * modules/exclude: Depend on hash and mbuiter.
10533 * modules/exclude-tests: New file.
10534 * tests/test-exclude.c: New file.
10535 * tests/test-exclude1.sh: New file.
10536 * tests/test-exclude2.sh: New file.
10537 * tests/test-exclude3.sh: New file.
10538 * tests/test-exclude4.sh: New file.
10539 * tests/test-exclude5.sh: New file.
10540 * tests/test-exclude6.sh: New file.
10541 * tests/test-exclude7.sh: New file.
10543 2009-08-12 Bruno Haible <bruno@clisp.org>
10545 Ensure that getopt() gets declared by <unistd.h>.
10546 * lib/unistd.in.h: Conditionally include getopt.h.
10547 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10548 Set GNULIB_UNISTD_H_GETOPT.
10549 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10550 GNULIB_UNISTD_H_GETOPT.
10551 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10553 2009-08-12 Bruno Haible <bruno@clisp.org>
10556 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10557 gl_replace_getopt instead of GETOPT_H.
10559 2009-08-12 Bruno Haible <bruno@clisp.org>
10561 * m4/getopt.m4: Add comments.
10563 2009-08-12 Bruno Haible <bruno@clisp.org>
10565 Disable multithread support by default on Cygwin 1.5.x.
10566 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10567 set gl_use_threads=no if not specified otherwise.
10569 2009-08-11 Bruno Haible <bruno@clisp.org>
10571 Avoid compilation error on NetBSD 5.0.
10572 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10573 * tests/test-stdio.c: Likewise.
10574 * tests/test-stdlib.c: Likewise.
10575 * tests/test-string.c: Likewise.
10576 * tests/test-unistd.c: Likewise.
10577 Reported by Greg Troxel <gdt@ir.bbn.com>
10578 at <https://savannah.gnu.org/support/?106973>.
10580 2009-08-11 Bruno Haible <bruno@clisp.org>
10582 * modules/dup2-tests (Depends-on): Remove close.
10584 Undo 2009-07-19 commit.
10585 * modules/acl-tests (Depends-on): Remove close.
10586 * modules/binary-io-tests (Depends-on): Likewise.
10587 * modules/closein-tests (Depends-on): Likewise.
10588 * modules/flock-tests (Depends-on): Likewise.
10589 * modules/fsync-tests (Depends-on): Likewise.
10590 * modules/lseek-tests (Depends-on): Likewise.
10591 * modules/pipe-tests (Depends-on): Likewise.
10592 * modules/posix_spawn-tests (Depends-on): Likewise.
10593 * modules/posix_spawnp-tests (Depends-on): Likewise.
10594 * modules/stat-time-tests (Depends-on): Likewise.
10595 * modules/yesno-tests (Depends-on): Likewise.
10597 2009-08-10 Bruno Haible <bruno@clisp.org>
10599 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10601 2009-08-10 Bruno Haible <bruno@clisp.org>
10604 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10606 2009-08-10 Bruno Haible <bruno@clisp.org>
10608 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10609 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10610 not only the first time.
10611 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10612 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10613 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10614 is 1, not only the the first time.
10616 2009-08-10 Bruno Haible <bruno@clisp.org>
10618 Make it possible to use module 'gethostname' without module 'close'.
10619 * lib/unistd.in.h (close): Evoke a link error only if
10620 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10621 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10622 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10623 * modules/unistd (Makefile.am): Substitute
10624 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10625 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10626 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10627 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10628 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10629 * modules/sys_ioctl (Makefile.am): Substitute
10630 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10631 * modules/socket (configure.ac): On native Windows, set
10632 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10633 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10634 Reported by Sam Steingold <sds@gnu.org>.
10636 2009-08-10 Bruno Haible <bruno@clisp.org>
10638 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10639 * modules/ioctl (configure.ac): Likewise.
10641 2009-08-10 Bruno Haible <bruno@clisp.org>
10643 Avoid collision between gnulib wrapper and libintl wrapper.
10644 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10645 already defined in intl/printf.c.
10646 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10647 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10649 2009-08-09 Bruno Haible <bruno@clisp.org>
10651 Make <sys/select.h> really self-contained, also on Solaris 10.
10652 * lib/sys_select.in.h: Include <string.h>.
10653 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10654 Solaris 10 problem.
10655 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10656 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10657 Reported by Jim Meyering.
10659 2009-08-09 Bruno Haible <bruno@clisp.org>
10661 Avoid warnings from 'aclocal' that are due to a use of macro name
10662 AM_XGETTEXT_OPTION that is not defined in automake.
10663 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10665 * modules/error (configure.ac): Likewise.
10666 * modules/propername (configure.ac): Likewise.
10667 * modules/vasprintf (configure.ac): Likewise.
10668 * modules/verror (configure.ac): Likewise.
10669 * modules/xprintf (configure.ac): Likewise.
10670 * modules/xvasprintf (configure.ac): Likewise.
10672 2009-08-08 Bruno Haible <bruno@clisp.org>
10674 Avoid compilation error in C++ mode.
10675 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10676 Reported by Sam Steingold <sds@gnu.org>.
10678 2009-08-08 Bruno Haible <bruno@clisp.org>
10680 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10681 for the various Unix platforms.
10682 * doc/posix-headers/limits.texi: Update platforms list regarding
10684 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10686 2009-08-07 Jim Meyering <meyering@redhat.com>
10688 selinux-at: fix typo in a comment
10689 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10690 Spotted by Paolo Bonzini.
10692 selinux-at: remove redundant m4 code, add documentation
10693 * modules/selinux-at (configure.ac): Remove redundant code.
10694 LIB_SELINUX is already set via the dependent module, selinux-h.
10695 (Include): Add quotes around selinux-at.h.
10696 * lib/selinux-at.h: Add documentation.
10697 Reported by Bruno Haible in
10698 http://marc.info/?l=gnulib-bug&m=124958988300749
10700 2009-08-07 Bruno Haible <bruno@clisp.org>
10702 Avoid link error on MacOS X 10.3 and 10.4.
10703 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10704 on non-ELF systems.
10705 * lib/argp-pv.c (argp_program_version): Likewise.
10706 Reported by Simon Josefsson.
10708 2009-08-07 Simon Josefsson <simon@josefsson.org>
10710 * tests/test-version-etc.sh: Use $EXEEXT.
10712 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
10714 update-copyright: update documentation to point to maint.mk
10715 * build-aux/update-copyright: Here.
10717 2009-08-06 Jim Meyering <meyering@redhat.com>
10719 maint.mk: support update-copyright-local
10720 * top/maint.mk (update-copyright-local): Define place-holder.
10721 (update-copyright): Depend on $(update-copyright-local).
10723 2009-08-06 Jim Meyering <meyering@redhat.com>
10725 selinux-at: new module
10726 Initially written for coreutils, this module will soon be
10727 used by findutils, too.
10728 * MODULES.html.sh [Misc]: Add selinux-at.
10729 * lib/selinux-at.h: New file, from coreutils.
10730 * lib/selinux-at.c: Likewise.
10731 * modules/selinux-at: Likewise.
10732 (License): Change from LGPL to GPL, since it depends
10733 on the GPL'd openat module.
10736 * README: Remove references to cogito.
10737 Remove cvs-repo-updating instructions from 2007.
10738 Don't imply that CVS is better if you have limited disk space.
10740 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10742 update-copyright: support C-style comments
10743 * build-aux/update-copyright: Implement and document.
10744 * tests/test-update-copyright.sh: Test.
10746 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10748 update-copyright: support omitted "(C)"
10749 * build-aux/update-copyright: Implement and document. Also,
10750 allow variable whitespace before "(C)".
10751 * tests/test-update-copyright.sh: Test.
10753 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10755 update-copyright: don't trip on non-FSF copyright statements
10756 * build-aux/update-copyright: Fix so that the first correctly
10757 formatted FSF copyright statement is recognized no matter what
10758 appears before it. Update documentation.
10759 * tests/test-update-copyright.sh: Test that.
10761 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10763 update-copyright: clean up code a little
10764 * build-aux/update-copyright: Append "_re" to the name of any
10765 variable holding a regular expression.
10766 Replace "old" and "new" with "stmt" in variable names.
10767 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10769 Format code more consistently.
10771 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10773 update-copyright-tests: improve portability
10774 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10775 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
10777 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
10779 update-copyright: support @copyright{} and ©
10780 * build-aux/update-copyright: Implement and document.
10781 * tests/test-update-copyright.sh: Test.
10783 2009-08-04 Jim Meyering <meyering@redhat.com>
10785 update-copyright-tests: correctly test EOL=\r\n handling
10786 * tests/test-update-copyright.sh: Put \r at the end of some lines
10787 for the dos-eol tests. Based on a patch by Joel E. Denny.
10789 maint.mk: make update-copyright exclusion list more configurable
10790 * top/maint.mk (update-copyright): Default to excluding COPYING,
10791 but allow an override, in case someone does want to update that file.
10793 maint.mk: don't update copyright date in COPYING
10794 * top/maint.mk (update-copyright): Exclude COPYING.
10796 maint.mk: add a copyright-updating rule
10797 * top/maint.mk (update-copyright): New rule.
10798 Derived from coreutils/Makefile.am.
10800 update-copyright: rename some variables
10801 * build-aux/update-copyright: Rename a few variables for clarity.
10802 Tweak syntax. List Joel E. Denny as coauthor.
10804 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
10806 update-copyright: fix bug for 2-digit last year and add tests
10807 * build-aux/update-copyright: Fix bug.
10808 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10810 * modules/update-copyright-tests: New
10811 * tests/test-update-copyright.sh: New.
10813 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10815 update-copyright: handle leading tabs in line prefix
10816 * build-aux/update-copyright: Count leading tabs as 8 spaces
10817 when computing margin. This helps with the formatting of
10818 ChangeLogs, for example.
10819 Fix documentation a little.
10821 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10823 update-copyright: support EOL=\r\n
10824 * build-aux/update-copyright: Implement that.
10826 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10828 update-copyright: automatically format copyright statements
10829 * build-aux/update-copyright: Implement that.
10830 Also, be a little more predictable and safer by always failing
10831 when the full copyright format is not perfectly recognized as an
10832 unbroken whole. Discussed at
10833 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10834 Rewrite documentation.
10836 2009-08-03 Bruno Haible <bruno@clisp.org>
10838 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10840 2009-08-02 Bruno Haible <bruno@clisp.org>
10842 Tests for module 'uname'.
10843 * modules/uname-tests: New file.
10844 * tests/test-uname.c: New file.
10846 New module 'uname'.
10847 * lib/uname.c: New file.
10848 * m4/uname.m4: New file.
10849 * modules/uname: New file.
10850 * doc/posix-functions/uname.texi: Mention the new module.
10852 2009-08-02 Bruno Haible <bruno@clisp.org>
10854 Tests for module 'sys_utsname'.
10855 * modules/sys_utsname-tests: New file.
10856 * tests/test-sys_utsname.c: New file.
10858 New module 'sys_utsname'.
10859 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10860 * m4/sys_utsname_h.m4: New file.
10861 * modules/sys_utsname: New file.
10862 * doc/posix-headers/sys_utsname.texi: Mention the new module.
10864 2009-08-02 Bruno Haible <bruno@clisp.org>
10866 Implicitly initialize the sockets library.
10867 * lib/gethostname.c: Include sockets.h.
10868 (rpl_gethostname): Invoke gl_sockets_startup.
10869 * lib/socket.c: Include sockets.h.
10870 (rpl_socket): Invoke gl_sockets_startup.
10871 * modules/gethostname (Depends-on): Add sockets.
10872 * modules/socket (Depends-on): Likewise.
10873 * tests/test-poll.c: Don't include sockets.h.
10874 (main): Don't invoke gl_sockets_startup.
10875 * tests/test-select.c: Don't include sockets.h.
10876 (main): Don't invoke gl_sockets_startup.
10878 2009-08-02 Bruno Haible <bruno@clisp.org>
10880 Allow multiple calls to gl_sockets_startup.
10881 * lib/sockets.c (initialized_sockets_version): New variable.
10882 (gl_sockets_startup): Do nothing if already called for this or a higher
10884 (gl_sockets_cleanup): Reset initialized_sockets_version.
10886 2009-08-03 Simon Josefsson <simon@josefsson.org>
10888 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
10889 different project/version.
10891 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
10892 Bruno Haible <bruno@clisp.org>
10894 Tests for module 'pipe-filter-gi'.
10895 * modules/pipe-filter-gi-tests: New file.
10896 * tests/test-pipe-filter-gi1.sh: New file.
10897 * tests/test-pipe-filter-gi1.c: New file.
10898 * tests/test-pipe-filter-gi2.sh: New file.
10899 * tests/test-pipe-filter-gi2-main.c: New file.
10900 * tests/test-pipe-filter-gi2-child.c: New file.
10902 New module 'pipe-filter-gi'.
10903 * lib/pipe-filter-gi.c: New file.
10904 * modules/pipe-filter-gi: New file.
10906 2009-08-02 Bruno Haible <bruno@clisp.org>
10907 Paolo Bonzini <bonzini@gnu.org>
10909 Tests for module 'pipe-filter-ii'.
10910 * modules/pipe-filter-ii-tests: New file.
10911 * tests/test-pipe-filter-ii1.sh: New file.
10912 * tests/test-pipe-filter-ii1.c: New file.
10913 * tests/test-pipe-filter-ii2.sh: New file.
10914 * tests/test-pipe-filter-ii2-main.c: New file.
10915 * tests/test-pipe-filter-ii2-child.c: New file.
10917 New module 'pipe-filter-ii'.
10918 * lib/pipe-filter.h: New file.
10919 * lib/pipe-filter-ii.c: New file.
10920 * lib/pipe-filter-aux.h: New file.
10921 * modules/pipe-filter-ii: New file.
10923 2009-08-02 Simon Josefsson <simon@josefsson.org>
10925 * lib/gc-libgcrypt.c: Change copyright to FSF.
10926 * lib/gc-gnulib.c: Likewise.
10928 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
10930 * lib/gethostname.c: Include limits.h.
10932 2009-08-02 Simon Josefsson <simon@josefsson.org>
10933 Bruno Haible <bruno@clisp.org>
10935 Ensure HOST_NAME_MAX as part of the gethostname module.
10936 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10937 define also HOST_NAME_MAX.
10938 * tests/test-gethostname.c: Include <limits.h>.
10939 (main): Check also HOST_NAME_MAX.
10940 * doc/posix-headers/limits.texi: Document the mingw problem.
10942 2009-08-02 Bruno Haible <bruno@clisp.org>
10944 * lib/gethostname.c (gethostname): Fix handling of large len argument.
10947 2009-03-31 Simon Josefsson <simon@josefsson.org>
10949 * lib/gethostname.c: Add Windows wrapper.
10950 * m4/gethostname.m4: Look for gethostname in -lws2_32.
10951 * modules/gethostname: Depend on sys_socket & errno, for also
10952 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
10953 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10955 2009-07-31 Jim Meyering <meyering@redhat.com>
10957 getloadavg: fix symbol name in comment
10958 * lib/getloadavg.c: Correct a typo I introduced when adding
10959 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10960 Matt Kraai spotted the problem.
10962 2009-07-29 Matt Kraai <mkraai@beckman.com>
10964 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10965 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10966 code also if ! defined N_NAME_POINTER.
10967 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10968 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10969 but the n_name member is a 12-byte array.
10971 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
10973 update-copyright: generalize comment handling
10974 * build-aux/update-copyright: Handle copyright statements
10975 within more comment styles.
10977 Report any file with an external copyright holder or parse failure.
10979 2009-07-29 Jim Meyering <meyering@redhat.com>
10981 mktime: correct setting of REPLACE_MKTIME
10982 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10984 update-copyright: new module
10985 * modules/update-copyright: New file.
10986 * build-aux/update-copyright: New file.
10987 * MODULES.html.sh (maint+release support): Add update-copyright.
10989 2009-07-27 Bruno Haible <bruno@clisp.org>
10991 Fix compilation error when <ctime> is used and mktime is replaced.
10992 * lib/time.in.h (mktime): New declaration.
10993 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10994 REPLACE_MKTIME instead of defining mktime in config.h.
10995 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10996 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10997 Reported by Ross McFarland <rwmcfa1@neces.com>.
10999 2009-07-27 Bruno Haible <bruno@clisp.org>
11001 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11002 Reported by Matt Kraai <mkraai@beckman.com>.
11004 2009-07-25 Jim Meyering <meyering@redhat.com>
11006 maint.mk: avoid warnings about missing files
11007 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11008 diagnostic when .prev-version does not exist.
11009 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11010 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11011 nonexistent cfg.mk.
11012 Suggestions from Simon Josefsson.
11014 2009-07-25 Bruno Haible <bruno@clisp.org>
11016 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11017 defined as macros. Needed on QNX 6.4.1.
11018 Reported by Matt Kraai <mkraai@beckman.com>.
11020 2009-07-23 Jim Meyering <meyering@redhat.com>
11022 maint.mk: invoke "make dist" with a working value of XZ_OPT
11023 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11025 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11027 Make fseeko.c compile on QNX.
11028 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11030 2009-07-22 Peter Simons <simons@cryp.to>
11032 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11033 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11034 * lib/md4.h: Likewise.
11035 * lib/md5.h: Likewise.
11036 * lib/sha1.h: Likewise.
11037 * lib/sha256.h: Likewise.
11038 * lib/sha512.h: Likewise.
11040 tests-sha1: don't assign literal string to 'char *' variable
11041 * tests/test-sha1.c (main): Declare locals with "const" to match
11042 attributes of the right hand side.
11044 2009-07-21 Eric Blake <ebb9@byu.net>
11046 dup2: fix more mingw problems
11047 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11049 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11050 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11051 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11052 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11053 care of mingw bugs.
11055 2009-07-21 Jim Meyering <meyering@redhat.com>
11057 vc-list-files: avoid failure when /bin/sh is dash
11058 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11059 On some Debian based systems, /bin/sh is a symlink to dash, and running
11060 this command would omit the "/" following each 'tests' prefix:
11061 dash -x build-aux/vc-list-files -C . tests
11062 That is because bash and dash work differently:
11063 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11067 2009-07-21 Eric Blake <ebb9@byu.net>
11069 dup2-tests: test previous patch
11070 * modules/dup2-tests: New file.
11071 * tests/test-dup2.c: Likewise.
11072 * tests/test-open.c (main): Avoid unspecified behavior.
11073 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11076 dup2: work around mingw and cygwin 1.5 bug
11077 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11078 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11079 * modules/unistd (Makefile.am): Substitute it.
11080 * lib/unistd.in.h (dup2): Declare the replacement.
11081 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11082 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11083 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11084 * modules/execute (Depends-on): Add dup2.
11085 * modules/fseterr (Depends-on): Likewise.
11086 * modules/pipe (Depends-on): Likewise.
11087 * modules/posix_spawn-internal (Depends-on): Likewise.
11089 2009-07-21 Bruno Haible <bruno@clisp.org>
11091 * modules/.gitattributes: New file.
11093 2009-07-20 Bruno Haible <bruno@clisp.org>
11095 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11098 2009-07-20 Eric Blake <ebb9@byu.net>
11100 test-pipe: make a bit more robust.
11101 * tests/test-pipe.c (myerr): Allow error messages regardless of
11102 what we do to stderr.
11103 (test_pipe): Rearrange to avoid deadlock.
11104 (child_main): Try a larger read, to ensure we avoided deadlock.
11105 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11106 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11109 2009-07-19 Jim Meyering <meyering@redhat.com>
11111 fts: avoid false-positive cycle-detection
11112 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11113 for each new command line argument.
11115 2009-07-19 Bruno Haible <bruno@clisp.org>
11117 Fix build error on mingw with the modules sys_select and unistd.
11118 * modules/acl-tests (Depends-on): Add close.
11119 * modules/binary-io-tests (Depends-on): Likewise.
11120 * modules/closein-tests (Depends-on): Likewise.
11121 * modules/flock-tests (Depends-on): Likewise.
11122 * modules/fsync-tests (Depends-on): Likewise.
11123 * modules/lseek-tests (Depends-on): Likewise.
11124 * modules/pipe-tests (Depends-on): Likewise.
11125 * modules/posix_spawn-tests (Depends-on): Likewise.
11126 * modules/posix_spawnp-tests (Depends-on): Likewise.
11127 * modules/stat-time-tests (Depends-on): Likewise.
11128 * modules/yesno-tests (Depends-on): Likewise.
11130 2009-07-19 Bruno Haible <bruno@clisp.org>
11132 Unify conditionals.
11133 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11134 macros, not at the compiler macros.
11135 * lib/pipe.c: Likewise.
11136 * lib/execute.c: Likewise.
11137 * lib/spawni.c: Likewise.
11139 2009-07-19 Bruno Haible <bruno@clisp.org>
11141 Fix handling of closed stdin/stdout/stderr on mingw.
11142 * lib/w32spawn.h: Include unistd.h.
11143 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11144 file descriptor with O_NOINHERIT flag.
11145 (fd_safer_noinherit): New function, based on fd-safer.c.
11146 (dup_safer_noinherit): New function, based on dup-safer.c.
11147 (undup_safer_noinherit): New function.
11148 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11149 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11150 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11151 instead of fd_safer.
11152 * tests/test-pipe.c: Include <windows.h>.
11153 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11155 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11157 (test_pipe): Pass an extra argument for disambiguation.
11158 (main): Invoke parent_main or child_main.
11160 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11163 2009-07-18 Eric Blake <ebb9@byu.net>
11165 test-pipe: fix mingw build
11166 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11168 2009-07-18 Bruno Haible <bruno@clisp.org>
11170 * modules/pipe-tests (Makefile.am): Fix typo.
11172 2009-07-18 Eric Blake <ebb9@byu.net>
11174 error: fix mingw build
11175 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11176 Reported by Bruno Haible.
11178 error: avoid undefined use of stdout
11179 * lib/error.c (error, error_at_line): Check that fd 1 is open
11180 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11181 is handling faults and the close_stdout module wants to report the
11182 detection of closed stdout as an error.
11184 2009-07-17 Eric Blake <ebb9@byu.net>
11186 pipe: be robust in face of closed fds
11187 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11188 should cause child to misbehave.
11189 * modules/pipe-tests: New module.
11190 * tests/test-pipe.c: New file.
11191 * tests/test-pipe.sh: New file.
11192 Reported by Akim Demaille.
11194 2009-07-14 Bruno Haible <bruno@clisp.org>
11196 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11197 Reported by anonymous kc.
11199 2009-07-07 Jim Meyering <meyering@redhat.com>
11201 maint.mk: don't look for translatable strings in *.m4 or *.mk
11202 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11203 when searching for translatable strings.
11205 2009-07-05 Jim Meyering <meyering@redhat.com>
11207 remove superfluous parentheses in STREQ definition
11208 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11209 * lib/getugroups.c (STREQ): Likewise.
11210 * lib/fnmatch.c (STREQ): Likewise.
11211 Spotted by Bruno Haible.
11213 2009-07-04 Jim Meyering <meyering@redhat.com>
11215 argv-iter: new module
11216 * MODULES.html.sh: Add argv-iter.
11217 * lib/argv-iter.c, lib/argv-iter.h: New files.
11218 * modules/argv-iter: New file.
11219 * modules/argv-iter-tests: New file.
11220 * tests/test-argv-iter.c: Test it.
11222 2009-07-04 Bruno Haible <bruno@clisp.org>
11225 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11226 contains more exact copies of a given entry than file2, leave the extra
11227 copies unpaired rather than aborting.
11228 Reported by Eric Blake.
11230 2009-07-02 Bruno Haible <bruno@clisp.org>
11232 Speedup git-merge-changelog for git cherry-pick.
11233 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11234 (entries_mapping_get): New function, extracted from compute_mapping.
11235 (entries_mapping_reverse_get): New function.
11236 (compute_mapping): Add a 'full' argument. Return the result in a
11237 'struct entries_mapping'.
11238 (main): Update. Access the mappings through entries_mapping_get.
11239 Reported by Eric Blake.
11241 2009-07-02 Bruno Haible <bruno@clisp.org>
11243 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11246 2009-07-02 Bruno Haible <bruno@clisp.org>
11248 Speed up approximate search for matching ChangeLog entries.
11249 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11250 argument. Call fstrcmp_bounded instead of fstrcmp.
11251 (compute_mapping, try_split_merged_entry, main): Update callers.
11253 2009-07-02 Bruno Haible <bruno@clisp.org>
11255 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11257 2009-06-30 Bruno Haible <bruno@clisp.org>
11259 Reduce the number of uc_is_cased calls.
11260 * lib/unicase.h (casing_suffix_context_t): Add
11261 'first_char_except_ignorable' field.
11262 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11263 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11264 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11265 Update initializer.
11266 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11267 case-ignorable characters.
11268 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11269 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11270 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11271 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11272 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11274 2009-06-30 Bruno Haible <bruno@clisp.org>
11276 Tests for module 'unicase/ignorable'.
11277 * modules/unicase/ignorable-tests: New file.
11278 * tests/unicase/test-ignorable.c: New file, generated by
11281 Tests for module 'unicase/cased'.
11282 * modules/unicase/cased-tests: New file.
11283 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11284 * tests/unicase/test-predicate-part1.h: New file, derived from
11285 tests/unictype/test-predicate-part1.h.
11286 * tests/unicase/test-predicate-part2.h: New file, same as
11287 tests/unictype/test-predicate-part2.h.
11289 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11290 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11291 (output_casing_properties): New function.
11293 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11294 * lib/unicase/cased.c: Include unictype/bitmap.h.
11295 (uc_is_cased): Define through a bitmap lookup.
11296 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11297 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11298 (uc_is_case_ignorable): Define through a bitmap lookup.
11299 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11300 lib/unictype/bitmap.h.
11301 (Depends-on): Add inline. Clean up.
11302 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11303 lib/unictype/bitmap.h.
11304 (Depends-on): Add inline. Clean up.
11305 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11307 * tests/unicase/test-u16-tolower.c (main): Likewise.
11308 * tests/unicase/test-u32-tolower.c (main): Likewise.
11310 2009-06-30 Bruno Haible <bruno@clisp.org>
11312 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11313 * lib/unicase/u16-casemap.c: Likewise.
11314 * lib/unicase/u32-casemap.c: Likewise.
11316 2009-06-29 Bruno Haible <bruno@clisp.org>
11318 Define u32_casefold as a wrapper around u32_ct_casefold.
11319 * lib/unicase/u32-casefold.c: Update.
11320 * modules/unicase/u32-casefold (Depends-on): Add
11321 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11322 unicase/empty-suffix-context. Clean up.
11324 Define u16_casefold as a wrapper around u16_ct_casefold.
11325 * lib/unicase/u16-casefold.c: Update.
11326 * modules/unicase/u16-casefold (Depends-on): Add
11327 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11328 unicase/empty-suffix-context. Clean up.
11330 Define u8_casefold as a wrapper around u8_ct_casefold.
11331 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11332 * lib/unicase/u8-casefold.c: Update.
11333 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11334 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11336 Define u32_totitle as a wrapper around u32_ct_totitle.
11337 * lib/unicase/u32-totitle.c: Update.
11338 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11339 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11341 Define u16_totitle as a wrapper around u16_ct_totitle.
11342 * lib/unicase/u16-totitle.c: Update.
11343 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11344 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11346 Define u8_totitle as a wrapper around u8_ct_totitle.
11347 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11349 (FUNC): Delegate to U_CT_TOTITLE.
11350 * lib/unicase/u8-totitle.c: Update.
11351 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11352 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11354 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11356 * modules/unicase/u32-tolower (Depends-on): Add
11357 unicase/empty-prefix-context, unicase/empty-suffix-context.
11359 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11361 * modules/unicase/u16-tolower (Depends-on): Add
11362 unicase/empty-prefix-context, unicase/empty-suffix-context.
11364 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11365 * modules/unicase/u8-tolower (Depends-on): Add
11366 unicase/empty-prefix-context, unicase/empty-suffix-context.
11368 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11370 * modules/unicase/u32-toupper (Depends-on): Add
11371 unicase/empty-prefix-context, unicase/empty-suffix-context.
11373 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11375 * modules/unicase/u16-toupper (Depends-on): Add
11376 unicase/empty-prefix-context, unicase/empty-suffix-context.
11378 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11379 * modules/unicase/u8-toupper (Depends-on): Add
11380 unicase/empty-prefix-context, unicase/empty-suffix-context.
11382 New module 'unicase/u32-ct-casefold'.
11383 * lib/unicase/u32-ct-casefold.c: New file.
11384 * modules/unicase/u32-ct-casefold: New file.
11386 New module 'unicase/u16-ct-casefold'.
11387 * lib/unicase/u16-ct-casefold.c: New file.
11388 * modules/unicase/u16-ct-casefold: New file.
11390 New module 'unicase/u8-ct-casefold'.
11391 * lib/unicase/u8-ct-casefold.c: New file.
11392 * lib/unicase/u-ct-casefold.h: New file, derived from
11393 lib/unicase/u-casefold.h.
11394 * modules/unicase/u8-ct-casefold: New file.
11396 New module 'unicase/u32-ct-totitle'.
11397 * lib/unicase/u32-ct-totitle.c: New file.
11398 * modules/unicase/u32-ct-totitle: New file.
11400 New module 'unicase/u16-ct-totitle'.
11401 * lib/unicase/u16-ct-totitle.c: New file.
11402 * modules/unicase/u16-ct-totitle: New file.
11404 New module 'unicase/u8-ct-totitle'.
11405 * lib/unicase/u8-ct-totitle.c: New file.
11406 * lib/unicase/u-ct-totitle.h: New file, derived from
11407 lib/unicase/u-totitle.h.
11408 * modules/unicase/u8-ct-totitle: New file.
11410 New module 'unicase/u32-ct-tolower'.
11411 * lib/unicase/u32-ct-tolower.c: New file.
11412 * modules/unicase/u32-ct-tolower: New file.
11414 New module 'unicase/u16-ct-tolower'.
11415 * lib/unicase/u16-ct-tolower.c: New file.
11416 * modules/unicase/u16-ct-tolower: New file.
11418 New module 'unicase/u8-ct-tolower'.
11419 * lib/unicase/u8-ct-tolower.c: New file.
11420 * modules/unicase/u8-ct-tolower: New file.
11422 New module 'unicase/u32-ct-toupper'.
11423 * lib/unicase/u32-ct-toupper.c: New file.
11424 * modules/unicase/u32-ct-toupper: New file.
11426 New module 'unicase/u16-ct-toupper'.
11427 * lib/unicase/u16-ct-toupper.c: New file.
11428 * modules/unicase/u16-ct-toupper: New file.
11430 New module 'unicase/u8-ct-toupper'.
11431 * lib/unicase/u8-ct-toupper.c: New file.
11432 * modules/unicase/u8-ct-toupper: New file.
11434 Add context arguments to u*_casemap functions.
11435 * lib/unicase/unicasemap.h: Include unicase.h.
11436 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11437 suffix_context arguments.
11438 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11440 (FUNC): Add prefix_context and suffix_context arguments. Use
11441 uc_is_cased and uc_is_case_ignorable.
11442 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11443 * lib/unicase/u16-casemap.c: Likewise.
11444 * lib/unicase/u32-casemap.c: Likewise.
11445 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11446 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11447 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11448 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11449 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11450 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11452 New module 'unicase/u32-suffix-context'.
11453 * lib/unicase/u32-suffix-context.c: New file.
11454 * modules/unicase/u32-suffix-context: New file.
11456 New module 'unicase/u16-suffix-context'.
11457 * lib/unicase/u16-suffix-context.c: New file.
11458 * modules/unicase/u16-suffix-context: New file.
11460 New module 'unicase/u8-suffix-context'.
11461 * lib/unicase/u8-suffix-context.c: New file.
11462 * lib/unicase/u-suffix-context.h: New file.
11463 * modules/unicase/u8-suffix-context: New file.
11465 New module 'unicase/empty-suffix-context'.
11466 * lib/unicase/empty-suffix-context.c: New file.
11467 * modules/unicase/empty-suffix-context: New file.
11469 New module 'unicase/u32-prefix-context'.
11470 * lib/unicase/u32-prefix-context.c: New file.
11471 * modules/unicase/u32-prefix-context: New file.
11473 New module 'unicase/u16-prefix-context'.
11474 * lib/unicase/u16-prefix-context.c: New file.
11475 * modules/unicase/u16-prefix-context: New file.
11477 New module 'unicase/u8-prefix-context'.
11478 * lib/unicase/u8-prefix-context.c: New file.
11479 * lib/unicase/u-prefix-context.h: New file.
11480 * lib/unicase/context.h: New file.
11481 * modules/unicase/u8-prefix-context: New file.
11483 New module 'unicase/empty-prefix-context'.
11484 * lib/unicase/empty-prefix-context.c: New file.
11485 * modules/unicase/empty-prefix-context: New file.
11487 New module 'unicase/ignorable'.
11488 * lib/unicase/ignorable.c: New file.
11489 * modules/unicase/ignorable: New file.
11491 New module 'unicase/cased'.
11492 * lib/unicase/caseprop.h: New file.
11493 * lib/unicase/cased.c: New file.
11494 * modules/unicase/cased: New file.
11496 New functions for case mapping of substrings.
11497 * lib/unicase.h (casing_prefix_context_t): New type.
11498 (unicase_empty_prefix_context): New variable.
11499 (u8_casing_prefix_context, u16_casing_prefix_context,
11500 u32_casing_prefix_context, u8_casing_prefixes_context,
11501 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11503 (casing_suffix_context_t): New type.
11504 (unicase_empty_suffix_context): New variable.
11505 (u8_casing_suffix_context, u16_casing_suffix_context,
11506 u32_casing_suffix_context, u8_casing_suffixes_context,
11507 u16_casing_suffixes_context, u32_casing_suffixes_context,
11508 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11509 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11510 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11513 2009-06-28 Jim Meyering <meyering@redhat.com>
11515 boostrap: indent only with spaces
11516 * build-aux/bootstrap: Indent only with spaces, never TABs.
11518 bootstrap: split long lines
11519 * build-aux/bootstrap: Keep line length < 80.
11521 bootstrap: sync from coreutils
11522 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11523 just as autoreconf does. Verify a list of prerequisite
11524 package-name,version-number pairs if defined in bootstrap.conf.
11525 Refer to README-prereq, if prerequisites are not satisfied.
11527 2009-06-27 Eric Blake <ebb9@byu.net>
11529 tests: add test for bogus NULL definition
11530 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11531 * tests/test-stdlib.c: Likewise.
11532 * tests/test-string.c: Likewise.
11533 * tests/test-locale.c: Likewise.
11534 * tests/test-unistd.c: Likewise.
11535 * modules/stdio-tests (Depends-on): Add verify.
11536 * modules/stdlib-tests (Depends-on): Likewise.
11537 * modules/string-tests (Depends-on): Likewise.
11538 * modules/locale-tests (Depends-on): Likewise.
11539 * modules/unistd-tests (Depends-on): Likewise.
11541 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11543 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11544 self-explaining comment.
11545 * m4/selinux-selinux-h: Update serial.
11546 (gl_LIBSELINUX): New macro, adding a warning for missing development
11547 packages to code extracted from...
11548 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11549 Add warning for missing development packages here, too.
11551 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11553 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11555 2009-06-25 Eric Blake <ebb9@byu.net>
11557 version-etc: fix regression
11558 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11560 (version_etc): Use it, to catch bugs with trailing NULL.
11561 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11562 (version_etc_va): Fix logic bug.
11563 * modules/version-etc-tests: Add test.
11564 * tests/test-version-etc.c: New file.
11565 * tests/test-version-etc.sh: Likewise.
11567 2009-06-25 Sam Steingold <sds@gnu.org>
11569 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11570 mbtowc declaration.
11572 2009-06-25 Eric Blake <ebb9@byu.net>
11574 fpurge: migrate into <stdio.h>
11575 * lib/fpurge.h: Delete...
11576 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11577 * lib/fpurge.c (fpurge): Change declaring header.
11578 * modules/fpurge (Files): Drop deleted file.
11579 (Depends-on): Add stdio.
11580 (configure.ac): Set witness.
11581 * modules/stdio (Makefile.am): Support fpurge macros.
11582 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11583 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11584 * lib/fflush.c: Update client.
11585 * tests/test-fpurge.c: Likewise.
11586 * NEWS: Mention the change.
11588 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11590 * lib/argp-version-etc.c (program_authors): Add const
11592 * lib/version-etc.c: Fix typos in the comments.
11593 * modules/argp-version-etc: Depends on version-etc.
11595 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11597 argp-version-etc: new module.
11599 * lib/argp-version-etc.c: New file.
11600 * lib/argp-version-etc.h: New file.
11601 * modules/argp-version-etc: New file.
11602 * modules/argp-version-etc-tests: New file.
11603 * tests/test-argp-version-etc.c: New test.
11604 * tests/test-argp-version-etc-1.sh: New test.
11606 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11608 Provide additional interfaces and documentation for version-etc
11611 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11613 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11616 2009-06-24 Bruno Haible <bruno@clisp.org>
11618 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11619 HAVE_LIB${NAME} macro.
11620 Reported by Sam Steingold <sds@gnu.org>.
11622 2009-06-23 Simon Josefsson <simon@josefsson.org>
11624 * modules/hash-tests (test_hash_LDADD): Link to libintl when
11627 2009-06-21 Bruno Haible <bruno@clisp.org>
11629 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11631 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11632 together with LIB${NAME}, LTLIB${NAME}.
11633 Reported by Sam Steingold <sds@gnu.org>.
11635 2009-06-20 Jim Meyering <meyering@redhat.com>
11637 tests: make sc_require_test_exit_idiom more generic
11638 * top/maint.mk (Exit_witness_file): New overridable variable.
11639 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11640 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11642 2009-06-19 Jim Meyering <meyering@redhat.com>
11644 hash: reverse order of src/dst parameters in an internal interface
11645 * lib/hash.c (transfer_entries): Reverse order of parameters to
11646 put DST before SRC. Adjust callers.
11648 tests: test-hash: avoid wholesale duplication
11649 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11650 Instead, use a loop and add a single conditional.
11652 tests: test-hash: allow seed selection via a command line argument
11653 * tests/test-hash.c (get_seed): New function.
11656 2009-06-19 Eric Blake <ebb9@byu.net>
11658 hash: avoid memory leak on allocation failure
11659 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11660 failure. Factor repeated algorithm...
11661 (transfer_entries): ...into new helper routine.
11662 (hash_delete): React to hash_rehash return value.
11664 hash: reduce memory pressure in hash_rehash no-op case
11665 * lib/hash.c (next_prime): Avoid overflow.
11666 (hash_initialize): Factor bucket size computation...
11667 (compute_bucket_size): ...into new helper function.
11668 (hash_rehash): Use new function and open coding to reduce memory
11669 pressure, and avoid a memory leak in USE_OBSTACK code.
11670 Reported by Jim Meyering.
11672 2009-06-18 Eric Blake <ebb9@byu.net>
11674 hash: make rotation more obvious
11675 * modules/hash (Depends-on): Add bitrotate and stdint.
11676 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11677 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
11678 (SIZE_MAX): Rely on headers for definition.
11679 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11680 (raw_hasher): Use rotr_sz.
11681 Suggested by Jim Meyering.
11683 hash: fix memory leak in last patch
11684 * lib/hash.c (hash_rehash): Avoid memory leak.
11686 hash: avoid no-op rehashing
11687 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11689 hash: provide default callback functions
11690 * lib/hash.c (raw_hasher, raw_comparator): New functions.
11691 (hash_initialize): Use them as defaults.
11692 * tests/test-hash.c (main): Test this.
11694 hash: minor optimization
11695 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11697 (hash_initialize): Document this promise.
11698 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11699 * tests/test-hash.c (hash_compare_strings): Test this.
11701 2009-06-18 Bruno Haible <bruno@clisp.org>
11703 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11704 going to be replaced anyway.
11706 2009-06-18 Bruno Haible <bruno@clisp.org>
11708 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11710 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11711 be replaced anyway.
11713 2009-06-18 Eric Blake <ebb9@byu.net>
11715 hash: check for resize before insertion
11716 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11717 threshold before insertion, so that a pathological hash_rehash
11718 that fills every bucket can still trigger another rehash.
11720 2009-06-18 Jim Meyering <meyering@redhat.com>
11722 hash-tests: add a loop around the small tests
11723 * tests/test-hash.c (main): Repeat small tests with selected
11724 small initial table sizes.
11726 2009-06-17 Eric Blake <ebb9@byu.net>
11728 hash: minor cleanups
11729 * lib/hash.h (hash_entry): Make opaque, by moving...
11730 * lib/hash.c (hash_entry): ...here.
11731 (hash_insert): Clarify restrictions on what can be inserted.
11732 (hash_get_next): Clarify when it is safe to remove an element
11734 (check_tuning): Skip verification when tuning is known safe.
11735 (hash_initialize): Clarify restrictions on tuning.
11737 2009-06-17 Jim Meyering <jim@meyering.net>
11738 and Eric Blake <ebb9@byu.net>
11740 hash-tests: new module
11741 * modules/hash-tests: New file.
11742 * tests/test-hash.c: New file.
11744 2009-06-17 Eric Blake <ebb9@byu.net>
11746 strstr-simple: document new module
11747 * MODULES.html.sh: Document new module.
11749 strstr, strcasestr: replace on platforms with broken memchr
11750 * modules/strstr: Split into...
11751 * modules/strstr-simple: ...new module that does not care about
11752 performance, but does care about glibc bug.
11753 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11754 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11755 if platform memchr is broken, per Debian bug 521737.
11756 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11758 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11759 * doc/posix-functions/strstr.texi (strstr): Document the fix.
11760 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11761 * modules/mountlist (Depends-on): Add strstr-simple.
11762 * modules/gen-uni-tables (Depends-on): Likewise.
11763 * modules/argz (Depends-on): Add strstr.
11765 2009-06-17 Bruno Haible <bruno@clisp.org>
11767 * modules/posix_spawn-internal (Depends-on): Add errno.
11769 2009-06-17 Bruno Haible <bruno@clisp.org>
11771 Define missing ESTALE on Interix 3.5.
11772 * lib/errno.in.h (ESTALE): Assign a value if missing.
11773 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11774 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11776 * doc/posix-headers/errno.texi: Mention the Interix bug.
11777 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11779 2009-06-15 Eric Blake <ebb9@byu.net>
11781 memchr, memchr2: add valgrind exception
11782 * lib/memchr.valgrind: New file.
11783 * lib/memchr2.valgrind: New file.
11784 * modules/memchr (Files): Distribute valgrind file.
11785 * modules/memchr2 (Files): Likewise.
11787 docs: memchr is no longer obsolete
11788 * MODULES.html.sh: Move memchr from obsolete to string.h section.
11789 * lib/string.in.h (memchr): Simplify logic.
11791 2009-06-14 Jim Meyering <meyering@redhat.com>
11793 link-follow: fix the "checking..." message to not mention trailing slash
11794 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11795 never considered trailing slashes.
11797 2009-06-14 Bruno Haible <bruno@clisp.org>
11799 * m4/memchr.m4: Mention also the bug on IA-64.
11800 * doc/posix-functions/memchr.texi: Likewise.
11802 2009-06-12 Eric Blake <ebb9@byu.net>
11804 memchr: detect broken x86_64 and alpha implementations
11805 * modules/memchr-tests (Depends-on): Move mmap detection...
11806 * modules/memchr (Depends-on): ...here.
11807 (configure.ac): Set indicator.
11808 * lib/string.in.h (memchr): Declare replacement.
11809 * modules/string (Makefile.am): Trigger replacement.
11810 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11811 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11813 * doc/posix-functions/memchr.texi (memchr): Document the bug.
11814 * modules/getpagesize (License): Relax license.
11816 2009-06-11 Bruno Haible <bruno@clisp.org>
11818 * lib/idpriv.h: Add more references.
11820 2009-06-08 Bruno Haible <bruno@clisp.org>
11822 Tests for module 'idpriv-droptemp'.
11823 * modules/idpriv-droptemp-tests: New file.
11824 * tests/test-idpriv-droptemp.sh: New file.
11825 * tests/test-idpriv-droptemp.su.sh: New file.
11826 * tests/test-idpriv-droptemp.c: New file.
11828 New module 'idpriv-droptemp'.
11829 * lib/idpriv-droptemp.c: New file.
11830 * modules/idpriv-droptemp: New file.
11832 2009-06-08 Bruno Haible <bruno@clisp.org>
11834 Tests for module 'idpriv-drop'.
11835 * modules/idpriv-drop-tests: New file.
11836 * tests/test-idpriv-drop.sh: New file.
11837 * tests/test-idpriv-drop.su.sh: New file.
11838 * tests/test-idpriv-drop.c: New file.
11840 New module 'idpriv-drop'.
11841 * lib/idpriv.h: New file.
11842 * lib-idpriv-drop.c: New file.
11843 * m4/idpriv.m4: New file.
11844 * modules/idpriv-drop: New file.
11846 2009-06-08 Bruno Haible <bruno@clisp.org>
11848 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11849 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11850 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11851 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11852 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11853 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11854 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11856 2009-06-08 Eric Blake <ebb9@byu.net>
11858 test-strstr: use memory fence, when possible
11859 * tests/test-strstr.c (main): Use memory fence, in order to be
11860 more likely to trigger Debian bug 521737.
11861 * modules/strstr-tests (Files): Pull in additional files.
11863 memchr: no longer obsolete, for wider field testing
11864 * modules/memchr (Status, Notice): Delete, this module is no
11866 * modules/vasnprintf (Depends-on): Add memchr.
11868 2009-06-07 Jim Meyering <meyering@redhat.com>
11870 hash: declare some functions with the warn_unused_result attribute
11871 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11873 2009-06-07 Bruno Haible <bruno@clisp.org>
11875 * tests/test-alignof.c: Don't test int64_t if it does not exist.
11876 Reported by Eric Blake.
11878 2009-06-06 Eric Blake <ebb9@byu.net>
11880 test-alignof: fix typo with long double
11881 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11884 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
11886 Escape non-texinfo { and }s.
11887 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11890 2009-06-04 Jim Meyering <meyering@redhat.com>
11892 gitlog-to-changelog: don't infloop on an empty commit log
11893 * build-aux/gitlog-to-changelog: Warn about an empty log message.
11894 Reported by Boris Petersen <transacid@centerim.org>.
11896 2009-06-03 Mike Frysinger <vapier@gentoo.org>
11898 version-etc: extend for packagers
11899 Add three new configure options, intended for packagers:
11900 --with-packager="packager name"
11901 --with-packager-version="packager-specific version"
11902 --with-packager-bug-reports="packager bug reporting"
11903 An example with coreutils:
11905 --with-packager=Gentoo \
11906 --with-packager-bug-report=http://bugs.gentoo.org/ \
11907 --with-packager-version="patchset 1.6"
11908 $ ./src/ls --version | head -n2
11909 ls (GNU coreutils) 7.1-dirty
11910 Packaged by Gentoo (patchset 1.6)
11911 Note that the bug reporting info via --help doesn't show up because
11912 coreutils uses its own custom emit_bug_reporting_address() implementation
11913 in src/system.h. If it didn't, it'd look like:
11914 $ ./src/ls --help | tail -n4
11915 Report bugs to <bug-coreutils@gnu.org>.
11916 Report Gentoo bugs to <http://bugs.gentoo.org/>.
11917 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11918 General help using GNU software: <http://www.gnu.org/gethelp/>.
11919 * lib/version-etc.c: Print new information, if provided.
11920 * m4/version-etc.m4: New file.
11921 * modules/version-etc (Files): Add m4/version-etc.m4.
11922 (configure.ac): Add gl_VERSION_ETC.
11924 2009-05-31 Bruno Haible <bruno@clisp.org>
11926 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11928 * modules/alignof-tests (Dependencies): Add stdint.
11929 Reported by Eric Blake.
11931 2009-05-31 Bruno Haible <bruno@clisp.org>
11933 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11934 restriction due to compiler bugs.
11935 Reported by Eric Blake.
11937 2009-05-31 Simon Josefsson <simon@josefsson.org>
11938 Bruno Haible <bruno@clisp.org>
11940 Fix test-alignof failure.
11941 * lib/alignof.h (alignof_slot): New macro.
11942 (alignof_type): New macro, with the same semantics as the previous
11944 (alignof): Alias to alignof_slot.
11945 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11946 check that the results are usable as constant expressions.
11948 2009-05-31 Bruno Haible <bruno@clisp.org>
11950 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11951 * tests/test-memchr.c (main): Check that memchr does not read past the
11952 first occurrence of the byte.
11953 * tests/test-strstr.c (main): Update comment.
11954 Suggested by Eric Blake.
11956 2009-05-30 Bruno Haible <bruno@clisp.org>
11958 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11959 detail how to use dumpbin.
11960 Reported by David Byron <dbyron@dbyron.com>.
11962 2009-06-02 Simon Josefsson <simon@josefsson.org>
11964 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11966 2009-06-02 Simon Josefsson <simon@josefsson.org>
11968 * m4/manywarnings.m4: Add GCC 4.4 warnings.
11970 2009-05-28 Bruno Haible <bruno@clisp.org>
11972 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11975 2009-05-28 Simon Josefsson <simon@josefsson.org>
11977 * gnulib-tool (func_import): Transform license on build-aux/ files too.
11979 2009-05-27 Simon Josefsson <simon@josefsson.org>
11981 * gnulib-tool (sed_transform_main_lib_file)
11982 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11985 2009-05-26 Simon Josefsson <simon@josefsson.org>
11987 * tests/test-strstr.c: Add another self-test.
11988 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11989 strdup. Suggested by Eric Blake <ebb9@byu.net>.
11991 2009-05-23 Bruno Haible <bruno@clisp.org>
11993 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11996 2009-05-21 Bruno Haible <bruno@clisp.org>
11998 Simplify use of mode_t varargs.
11999 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12000 uses 'mode_t' or 'int'.
12001 * lib/openat.c (openat): Likewise.
12002 * lib/open-safer.c (open_safer): Likewise.
12003 * m4/mode_t.m4: New file.
12004 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12005 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12006 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12007 * modules/open (Files): Add m4/mode_t.m4.
12008 * modules/openat (Files): Likewise.
12009 * modules/fcntl-safer (Files): Likewise.
12010 Suggested by Eric Blake.
12012 2009-05-21 Pádraig Brady <P@draigbrady.com>
12014 * doc/glibc-functions/fallocate.texi: New file.
12015 * doc/gnulib.texi: Include it.
12017 2009-05-21 Eric Blake <ebb9@byu.net>
12018 Bruno Haible <bruno@clisp.org>
12020 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12022 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12024 2009-05-21 Eric Blake <ebb9@byu.net>
12025 Bruno Haible <bruno@clisp.org>
12027 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12028 include_next. Fix of 2008-11-20 commit.
12029 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12030 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12031 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12033 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12034 instead of NEXT_MATH_H.
12036 2009-05-21 Bruno Haible <bruno@clisp.org>
12038 Avoid redefinition warnings for SIZE_MAX.
12039 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12040 Reported by Simon Josefsson.
12042 2009-05-21 Bruno Haible <bruno@clisp.org>
12044 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12047 2009-05-20 Bruno Haible <bruno@clisp.org>
12049 Make zeroptr.h work on mingw.
12050 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12052 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12053 * modules/memchr2-tests (configure.ac): Likewise.
12054 * modules/memcmp-tests (configure.ac): Likewise.
12055 * modules/memmem-tests (configure.ac): Likewise.
12056 * modules/memrchr-tests (configure.ac): Likewise.
12057 Reported by Simon Josefsson.
12059 2009-05-20 Simon Josefsson <simon@josefsson.org>
12061 * tests/test-glob.c: Include string.h for strcmp prototype.
12063 2009-05-20 Simon Josefsson <simon@josefsson.org>
12065 * modules/getdelim (Depends-on): Add explicit stdint, although it
12066 was implicitly already pulled in via realloc-posix.
12067 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12069 2009-05-20 Simon Josefsson <simon@josefsson.org>
12071 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12072 G. Christensen" <tgc@jupiterrise.com>.
12073 * m4/sys_socket_h.m4: Check for sa_family_t.
12074 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12075 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12076 * tests/test-sys_socket.c: Check that sa_family_t works.
12078 2009-05-18 Eric Blake <ebb9@byu.net>
12080 maint.mk: allow gnulib_dir in VPATH build
12081 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12083 2009-05-15 Jim Meyering <meyering@redhat.com>
12085 maint.mk: Give gnulib_dir a default definition.
12086 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12087 Thus, most packages no longer need to specify this variable in cfg.mk
12089 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12091 rename.m4: fix typos that would make non-mingw cross-configure fail
12092 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12094 2009-05-13 Eric Blake <ebb9@byu.net>
12096 mmap-anon: avoid out-of-order autoconf expansion
12097 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12098 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12099 * modules/memchr-tests (Depends-on): Add extensions.
12100 * modules/memchr2-tests (Depends-on): Add extensions.
12101 * modules/memcmp-tests (Depends-on): Add extensions.
12102 * modules/memmem-tests (Depends-on): Add extensions.
12103 * modules/memrchr-tests (Depends-on): Add extensions.
12105 2009-05-13 Bruno Haible <bruno@clisp.org>
12107 Make some tests ISO C 99 compliant.
12108 * tests/zerosize-ptr.h: New file.
12109 * tests/test-memchr.c: Include zerosize-ptr.h.
12110 (main): Use a zero-size object pointer instead of NULL.
12111 * tests/test-memchr2.c: Include zerosize-ptr.h.
12112 (main): Use a zero-size object pointer instead of NULL.
12113 * tests/test-memcmp.c: Include zerosize-ptr.h.
12114 (main): Use a zero-size object pointer instead of NULL.
12115 * tests/test-memmem.c: Include zerosize-ptr.h.
12116 (main): Use a zero-size object pointer instead of NULL.
12117 * tests/test-memrchr.c: Include zerosize-ptr.h.
12118 (main): Use a zero-size object pointer instead of NULL.
12119 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12121 (Depends-on): Add getpagesize.
12122 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12123 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12125 (Depends-on): Add getpagesize.
12126 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12127 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12129 (Depends-on): Add getpagesize.
12130 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12131 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12133 (Depends-on): Add getpagesize.
12134 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12135 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12137 (Depends-on): Add getpagesize.
12138 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12140 2009-05-12 Bruno Haible <bruno@clisp.org>
12142 Tests for module 'alignof'.
12143 * modules/alignof-tests: New file.
12144 * tests/test-alignof.c: New file.
12146 2009-05-12 Bruno Haible <bruno@clisp.org>
12149 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12150 vendor compilers that are always correct.
12152 2009-05-12 Bruno Haible <bruno@clisp.org>
12154 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12155 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12156 not whether its fully works.
12158 2009-05-12 Bruno Haible <bruno@clisp.org>
12160 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12162 2009-05-12 Jim Meyering <meyering@redhat.com>
12164 * top/maint.mk: Adjust backslash alignment.
12166 2009-05-11 Simon Josefsson <simon@josefsson.org>
12168 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12170 2009-05-11 Eric Blake <ebb9@byu.net>
12172 argp: avoid undefined behavior
12173 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12176 2009-05-08 Simon Josefsson <simon@josefsson.org>
12178 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12179 user.name to prevent git commit from complaining.
12181 2009-05-10 Bruno Haible <bruno@clisp.org>
12183 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12184 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12185 it rewrites every file name only once.
12186 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12188 2009-05-08 Bruno Haible <bruno@clisp.org>
12190 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12193 2009-05-08 Simon Josefsson <simon@josefsson.org>
12195 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12196 sockaddr_storage test.
12198 2009-05-07 Simon Josefsson <simon@josefsson.org>
12200 * modules/sys_socket (Makefile.am): Substitute
12201 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12202 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12203 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12204 * tests/test-sys_socket.c: Check sockaddr_storage.
12206 2009-05-08 Bruno Haible <bruno@clisp.org>
12208 New module 'alignof'.
12209 * lib/alignof.h: New file.
12210 * modules/alignof: New file.
12212 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12213 Bruno Haible <bruno@clisp.org>
12215 Fix test-file-has-acl on FreeBSD.
12216 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12217 mask is implicitly added.
12218 * tests/test-file-has-acl.c: Include <signal.h>.
12219 (main): Terminate the test after 5 seconds.
12220 * modules/acl-tests (configure.ac): Check for alarm function.
12222 2009-05-04 Bruno Haible <bruno@clisp.org>
12224 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12225 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12226 * modules/errno (configure.ac): Drop AC_REQUIRE.
12227 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12228 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12230 2009-05-04 Simon Josefsson <simon@josefsson.org>
12232 * modules/glob-tests: New module.
12233 * tests/test-glob.c: Add.
12235 2009-05-04 Simon Josefsson <simon@josefsson.org>
12237 * modules/fnmatch-tests: New module.
12238 * tests/test-fnmatch.c: Add.
12240 2009-05-04 Eric Blake <ebb9@byu.net>
12242 maint: make the new no-submodule-changes rule VPATH-safe
12243 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12245 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12246 Bruno Haible <bruno@clisp.org>
12248 acl: Fix infinite loop on FreeBSD.
12249 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12250 of return value from acl_get_entry.
12251 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12254 2009-05-03 Bruno Haible <bruno@clisp.org>
12256 * lib/acl-internal.h (acl_entries): Clarify return value.
12257 * lib/acl_entries.c (acl_entries): Likewise.
12259 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12261 Bug fix in acl module.
12262 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12264 2009-05-03 Bruno Haible <bruno@clisp.org>
12266 Create gperf-generated file in the source dir, not in the build dir.
12267 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12268 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12269 * modules/unicase/locale-language (unicase/locale-languages.h):
12271 * modules/unicase/special-casing (unicase/special-casing-table.h):
12273 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12274 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12275 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12276 Reported by Ralf Wildenhues.
12278 2009-05-03 Bruno Haible <bruno@clisp.org>
12280 * modules/fnmatch (Description, configure.ac): Taken from
12282 * modules/fnmatch-posix: Turn into a symbolic reference to the
12283 'fnmatch' module, and deprecate.
12284 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12286 2009-05-03 Bruno Haible <bruno@clisp.org>
12288 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12289 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12290 Reported by Ralf Wildenhues.
12292 2009-05-04 Simon Josefsson <simon@josefsson.org>
12294 * m4/fnmatch.m4: Fix fnmatch re-define.
12296 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12298 priv-set: new module and tests; adapt write-any-file
12299 * lib/priv-set.c: New file.
12300 * lib/priv-set.h: New file.
12301 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12302 * lib/write-any-file.c: Simplify by using priv-set module.
12303 * m4/priv-set.m4: New file.
12304 * modules/priv-set: New file.
12305 * modules/unlinkdir: Add dependency on priv-set module.
12306 * modules/write-any-file: Likewise.
12308 Tests for module 'priv-set'.
12309 * modules/priv-set-tests: New file.
12310 * tests/test-priv-set.c: New file.
12312 2009-05-03 Jim Meyering <meyering@redhat.com>
12313 Bruno Haible <bruno@clisp.org>
12315 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12316 use the converted UTF-8 variant of the name instead.
12318 2009-05-03 Jim Meyering <meyering@redhat.com>
12320 tests: tighten some getdate tests
12321 * tests/test-getdate.c (main): Tighten tests: require equality,
12322 not just greater than. Set TZ envvar to UTC0.
12324 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12326 getdate: correctly interpret "next monday" when run on a Monday
12327 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12328 that e.g., "next tues" (when run on a tuesday) results in a date
12329 that is one week in the future, and not today's date.
12330 I.e., add a week when the wday is the same as the current one.
12331 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12332 and earlier by Martin Bernreuther and Jan Minář.
12333 * tests/test-getdate.c (main): Check that "next DAY" is always in
12334 the future and that "last DAY" is always in the past.
12336 2009-05-02 Jim Meyering <meyering@redhat.com>
12338 build: ensure that a release build fails when a submodule is unclean
12339 * top/maint.mk (no-submodule-changes): New rule.
12340 (alpha beta major): Depend on it.
12342 2009-05-02 Bruno Haible <bruno@clisp.org>
12344 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12345 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12346 shell variable gl_fnmatch_required to detect which variant is
12348 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12349 gl_FUNC_FNMATCH_POSIX.
12350 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12351 exclude fnmatch-posix.
12353 2009-05-02 Bruno Haible <bruno@clisp.org>
12355 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12356 * modules/mbsrtowcs (License): Change to LGPLv2+.
12357 * modules/strnlen1 (License): Likewise.
12358 Reported by Simon Josefsson.
12360 2009-05-02 Bruno Haible <bruno@clisp.org>
12362 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12364 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12365 gnulib-tool was called with option --source-base=lib.
12367 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12369 Use automake *-local hooks without commands, for extensibility.
12370 * modules/localcharset (Makefile.am): Rename install-exec-local
12371 rule to install-exec-localcharset, and make it a prerequisite of
12372 install-exec-local. Likewise, rename the uninstall-local rule to
12373 uninstall-localcharset, and make it a prerequisite of the former.
12375 2009-05-01 Bruno Haible <bruno@clisp.org>
12377 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12378 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12379 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12380 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12381 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12382 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12383 m4/locale-zh.m4, m4/codeset.m4.
12385 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12386 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12387 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12390 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12391 REPLACE_WCRTOMB if mbstate_t must be replaced.
12392 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12393 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12395 2009-05-01 Bruno Haible <bruno@clisp.org>
12397 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12398 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12399 dngettext, dcngettext, textdomain, bindtextdomain,
12400 bind_textdomain_codeset): Undefine before redefining.
12402 2009-04-30 Bruno Haible <bruno@clisp.org>
12404 Fix bug introduced on 2009-04-25.
12405 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12406 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12407 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12409 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12411 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12413 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12415 2009-04-28 Bruno Haible <bruno@clisp.org>
12418 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12419 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12420 * lib/unicase.h (u*_casexfrm): Likewise.
12421 Reported by Paolo Bonzini.
12423 2009-04-28 Bruno Haible <bruno@clisp.org>
12425 Fix a compilation error.
12426 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12427 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12428 Reported by Jim Meyering.
12430 2009-04-27 Bruno Haible <bruno@clisp.org>
12432 New module 'libunistring'.
12433 * modules/libunistring: New file.
12434 * m4/libunistring.m4: New file.
12435 * MODULES.html.sh (Unicode string functions): Add it.
12437 2009-04-27 Eric Blake <ebb9@byu.net>
12439 maint.mk: allow package-specific header to provide <config.h>
12440 * top/maint.mk (sc_require_config_h): New variable.
12441 (sc_require_config_h, sc_require_config_h_first): Use it.
12443 2009-04-27 Simon Josefsson <simon@josefsson.org>
12445 * top/maint.mk (sc_avoid_if_before_free): Except
12446 useless-if-before-free script.
12448 2009-04-27 Eric Blake <ebb9@byu.net>
12450 maintainer-makefile: depend on all required helper scripts
12451 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12452 useless-if-before-free.
12453 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12454 version, rather than assuming gnulib checkout is available.
12455 Reported by Simen Josefsson.
12457 2009-04-26 Bruno Haible <bruno@clisp.org>
12459 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12460 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12463 2009-04-26 Bruno Haible <bruno@clisp.org>
12465 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12466 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12467 AC_LIB_HAVE_LINKFLAGS.
12469 2009-04-26 Bruno Haible <bruno@clisp.org>
12471 Simplify calling convention of u*_conv_from_encoding.
12472 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12473 u32_conv_from_encoding): Expect a resultbuf argument and return the
12474 result directly as a pointer.
12475 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12476 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12477 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12478 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12479 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12480 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12482 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12483 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12484 * lib/vasnprintf.c (VASNPRINTF): Update.
12485 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12486 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12487 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12488 * NEWS: Mention the change.
12490 2009-04-26 Bruno Haible <bruno@clisp.org>
12492 Simplify calling convention of u*_conv_to_encoding.
12493 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12494 u32_conv_to_encoding): Expect a resultbuf argument and return the
12495 result directly as a pointer.
12496 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12497 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12498 freeing scaled_offsets if mem_iconveha failed.
12499 * lib/unicase/u-casexfrm.h (FUNC): Update.
12500 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12501 * lib/vasnprintf.c (VASNPRINTF): Update.
12502 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12503 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12504 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12505 * NEWS: Mention the change.
12507 2009-04-26 Bruno Haible <bruno@clisp.org>
12509 Avoid test failures on AIX and OSF/1.
12510 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12512 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12513 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12515 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12516 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12517 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12518 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12519 * doc/posix-functions/malloc.texi: Document the portability problem
12520 related to malloc(0).
12522 2009-04-26 Bruno Haible <bruno@clisp.org>
12524 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12525 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12526 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12528 2009-04-25 Bruno Haible <bruno@clisp.org>
12530 Avoid link error when creating a namespace clean library.
12531 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12532 as macro with arguments if already defined as an alias.
12533 * lib/signbitf.c (gl_signbitf): Don't undefine.
12534 * lib/signbitd.c (gl_signbitd): Don't undefine.
12535 * lib/signbitl.c (gl_signbitl): Don't undefine.
12537 2009-04-25 Jim Meyering <meyering@redhat.com>
12539 vc-list-files: fix another quoting bug
12540 * build-aux/vc-list-files: Avoid sed backslash expansion
12541 of pathological directory names.
12543 2009-04-25 Eric Blake <ebb9@byu.net>
12545 vc-list-files: fix shell quoting error
12546 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12549 2009-04-25 Jim Meyering <meyering@redhat.com>
12551 vc-list-files: restore lost functionality with subdir argument
12552 * build-aux/vc-list-files: When given a non-"." sub-directory
12553 argument, substitute the $dir/ prefix back onto each resulting name.
12554 Otherwise, coreutils' root_tests check would fail.
12556 2009-04-24 Eric Blake <ebb9@byu.net>
12558 vc-list-files: ignore git symlinks
12559 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12560 than ls-files, to ignore git symlinks.
12562 maint.mk: import improvements from m4
12563 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12564 (move_if_change): Delete unused macro.
12565 (news-date-check, vc-diff-check): Support VPATH builds.
12566 (announcement): Likewise. Split --bootstrap-tools list...
12567 (boostrap-tools): ...into separate list, which can be overridden
12569 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12570 requiring dependency on useless-if-before-free module.
12571 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12572 Support VPATH builds.
12574 2009-04-24 Jim Meyering <meyering@redhat.com>
12576 maint.mk: remove coreutils-specific rules and variables
12577 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12578 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12579 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12581 maint.mk: remove obsolete rule
12582 * top/maint.mk (rel-check): Remove rule.
12583 (WGET, WGETFLAGS): Remove now-unused variables.
12585 2009-04-24 Simon Josefsson <simon@josefsson.org>
12587 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12590 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12591 '$(PATH_SEPARATOR)' instead of ':'.
12593 2009-04-24 Simon Josefsson <simon@josefsson.org>
12595 * lib/getopt1.c (main): Use 'const' for static array.
12597 2009-04-24 Simon Josefsson <simon@josefsson.org>
12599 * top/maint.mk: Sync with coreutils.
12600 * NEWS: Explain incompatibilities.
12602 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12603 Bruno Haible <bruno@clisp.org>
12605 Fix cross-compilation results.
12606 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12607 statement, as third argument of AC_TRY_RUN.
12608 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12609 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12611 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12612 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12614 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12615 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12616 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12618 2009-04-20 Bruno Haible <bruno@clisp.org>
12620 Avoid test failure on mingw.
12621 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12623 2009-04-20 Bruno Haible <bruno@clisp.org>
12625 Avoid compilation error on mingw.
12626 * modules/localename-tests (Depends-on): Add locale.
12628 2009-04-19 Bruno Haible <bruno@clisp.org>
12630 Support for building a shared library on Windows platforms.
12631 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12632 (main): Test the presence of UNINORM_NFC here.
12633 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12634 (main): Test the presence of UNINORM_NFD here.
12635 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12636 (main): Test the presence of UNINORM_NFKC here.
12637 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12638 (main): Test the presence of UNINORM_NFKD here.
12640 2009-04-19 Bruno Haible <bruno@clisp.org>
12642 Avoid a compiler warning.
12643 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12644 Change type of variable 'sequence'.
12646 2009-04-19 Bruno Haible <bruno@clisp.org>
12648 * modules/configmake (Makefile.am): When the contents of configmake.h
12649 does not change, arrange to preserve its modification time.
12651 2009-04-17 Simon Josefsson <simon@josefsson.org>
12653 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12656 2009-04-16 Jim Meyering <meyering@redhat.com>
12658 useless-if-before-free: improve conversion code
12659 * build-aux/useless-if-before-free: Adjust code-in-comment to match
12660 "...!= 0" as well as "...!= NULL". emacs has one of the former.
12662 2009-04-14 Bruno Haible <bruno@clisp.org>
12664 * modules/fcntl (Depends-on): Add extensions.
12665 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12667 2009-04-12 Ben Pfaff <blp@gnu.org>
12669 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12670 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12672 2009-03-20 Ben Pfaff <blp@gnu.org>
12674 Make rename replace existing destinations on Windows.
12675 * m4/rename.m4: Add test for Mingw.
12676 * lib/rename.c: Add rename replacement that uses MoveFileEx with
12677 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12678 * doc/posix-functions/rename.texi: Document.
12680 2009-04-10 Bruno Haible <bruno@clisp.org>
12682 New include file "iconveh.h".
12683 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12684 * lib/striconveh.h: Include it.
12685 (enum iconv_ilseq_handler): Remove definition.
12686 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12688 * lib/striconveha.c: Include striconveh.h.
12689 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12690 * modules/striconveh (Files): Add lib/iconveh.h.
12691 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12694 2009-04-10 Bruno Haible <bruno@clisp.org>
12696 * lib/uniconv.h: Update comment.
12698 2009-04-10 Bruno Haible <bruno@clisp.org>
12700 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12702 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12703 * lib/unistr/u16-mbtouc-aux.c: Likewise.
12704 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12705 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12706 "unistring-notinline.h", so that the function gets defined always.
12707 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12708 * lib/unistr/u8-uctomb.c: Likewise.
12709 * lib/unistr/u16-mbtouc.c: Likewise.
12710 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12711 * lib/unistr/u16-uctomb.c: Likewise.
12712 * lib/unistr/u32-mbtouc.c: Likewise.
12713 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12714 * lib/unistr/u32-uctomb.c: Likewise.
12716 2009-04-10 Bruno Haible <bruno@clisp.org>
12718 Mark 'utime' obsolete.
12719 * modules/utime (Status, Notice): New sections.
12720 Suggested by Jim Meyering.
12722 Fix cross-compile guess for utime test.
12723 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12725 * doc/posix-functions/utime.texi: Give more precisions.
12726 Reported by Jan <ipif@ymail.com>.
12728 2009-04-09 Kamil Dudka <kdudka@redhat.com>
12730 filevercmp: correct today's change
12731 * lib/filevercmp.c: Also handle coreutils' test inputs.
12732 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12734 Fix regression in 'filevercmp' module. Thanks Sven Joachim
12736 * lib/filevercmp.c: Special handle for "", "." and "..".
12737 * tests/test-filevercmp.c: Enlarge the set suite.
12739 2009-04-07 Jim Meyering <meyering@redhat.com>
12741 useless-if-before-free: show how to remove braced useless free, too
12742 * build-aux/useless-if-before-free: still only in a comment, though.
12744 2009-04-07 Reuben Thomas <rrt@sc3d.org>
12746 maint.mk: import changes to syntax-check macros from coreutils
12747 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12748 Use them in the relevant macros.
12750 2009-04-06 Bruno Haible <bruno@clisp.org>
12752 Fix unportable use of bit-fields.
12753 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12754 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12755 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12757 2009-04-06 Bruno Haible <bruno@clisp.org>
12759 Avoid test failures on AIX and OSF/1.
12760 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12761 that malloc(0) = NULL.
12762 * tests/unicase/test-u8-tolower.c (check): Likewise.
12763 * tests/unicase/test-u8-totitle.c (check): Likewise.
12764 * tests/unicase/test-u8-toupper.c (check): Likewise.
12765 * tests/unicase/test-u16-casefold.c (check): Likewise.
12766 * tests/unicase/test-u16-tolower.c (check): Likewise.
12767 * tests/unicase/test-u16-totitle.c (check): Likewise.
12768 * tests/unicase/test-u16-toupper.c (check): Likewise.
12769 * tests/unicase/test-u32-casefold.c (check): Likewise.
12770 * tests/unicase/test-u32-tolower.c (check): Likewise.
12771 * tests/unicase/test-u32-totitle.c (check): Likewise.
12772 * tests/unicase/test-u32-toupper.c (check): Likewise.
12773 * tests/uninorm/test-u8-nfc.c (check): Likewise.
12774 * tests/uninorm/test-u8-nfd.c (check): Likewise.
12775 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12776 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12777 * tests/uninorm/test-u16-nfc.c (check): Likewise.
12778 * tests/uninorm/test-u16-nfd.c (check): Likewise.
12779 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12780 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12781 * tests/uninorm/test-u32-nfc.c (check): Likewise.
12782 * tests/uninorm/test-u32-nfd.c (check): Likewise.
12783 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12784 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12786 2009-04-05 Bruno Haible <bruno@clisp.org>
12788 Work around an autoconf limitation.
12789 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12790 comment line if it would be longer than 3 KB.
12792 2009-04-05 Bruno Haible <bruno@clisp.org>
12794 Avoid test failure with libiconv-1.13.
12795 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12796 of the expected test results.
12798 2009-04-05 Bruno Haible <bruno@clisp.org>
12800 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12801 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12802 that it should be installed.
12804 2009-04-05 Bruno Haible <bruno@clisp.org>
12806 * gnulib-tool: New option --copy-file.
12807 (func_usage): Document it.
12808 (func_dest_tmpfilename): Moved out of func_import.
12809 (func_add_file, func_update_file): New functions, extracted from
12811 (func_import): Update.
12813 2009-04-05 Karl Berry <karl@gnu.org>
12815 * README: prominently mention gnulib-tool.
12816 Rearrange sections so getting the code is near the top.
12818 2009-04-05 Bruno Haible <bruno@clisp.org>
12820 * lib/unicase.h: Mention u*_cmp2.
12821 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12822 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12823 * lib/unicase/ulc-casecmp.c: Likewise.
12824 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12825 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12826 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12828 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12829 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12831 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12834 * lib/uninorm.h: Mention u*_cmp2.
12835 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12836 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12837 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12838 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12839 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12841 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12843 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12846 New module 'unistr/u32-cmp2'.
12847 * lib/unistr/u32-cmp2.c: New file.
12848 * modules/unistr/u32-cmp2: New file.
12850 New module 'unistr/u16-cmp2'.
12851 * lib/unistr/u16-cmp2.c: New file.
12852 * modules/unistr/u16-cmp2: New file.
12854 New module 'unistr/u8-cmp2'.
12855 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12856 * lib/unistr/u8-cmp2.c: New file.
12857 * lib/unistr/u-cmp2.h: New file.
12858 * modules/unistr/u8-cmp2: New file.
12860 2009-04-05 Bruno Haible <bruno@clisp.org>
12862 * lib/unictype.h (uc_property_is_valid): New macro.
12863 * tests/unictype/test-pr_byname.c (main): Use it.
12865 * lib/unistr.h: Doc fixes.
12866 * lib/uniconv.h: Doc fixes.
12867 * lib/unictype.h: Doc fixes.
12869 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
12871 Port coreutils 7.2 to Solaris 8.
12873 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12874 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12875 for Solaris 8. This is a bit of a hack, as it means it's the
12876 caller's responsibility to add -lnsl if needed, but most likely it
12877 won't be needed since only getaddrinfo uses this and getaddrinfo
12878 isn't needed on Solaris 8.
12880 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12881 problem to Solaris 8 encountered with coreutils 7.2, which
12882 resulted in a message "fnmatch.c:292: warning: passing argument 4
12883 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
12884 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12886 2009-04-03 Simon Josefsson <simon@josefsson.org>
12888 * m4/ld-version-script.m4: Add FIXME comment.
12890 2009-04-02 Simon Josefsson <simon@josefsson.org>
12892 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12893 SOVERSION variable.
12895 2009-04-02 Bruno Haible <bruno@clisp.org>
12897 * Makefile (info, html, dvi, pdf): Combine the rules.
12898 Suggested by Jim Meyering.
12900 2009-04-01 Bruno Haible <bruno@clisp.org>
12902 * Makefile (info, html, dvi, pdf): New targets.
12903 Reported by Reuben Thomas <rrt@sc3d.org>.
12905 2009-04-01 Bruno Haible <bruno@clisp.org>
12907 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12908 can be put into PATH.
12909 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12911 2009-04-01 Bruno Haible <bruno@clisp.org>
12913 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12915 2009-04-01 Bruno Haible <bruno@clisp.org>
12917 Rename module 'visibility'.
12918 * modules/lib-symbol-visibility: Renamed from modules/visibility.
12919 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12920 * doc/gnulib.texi: Update.
12921 * MODULES.html.sh (Misc): Update.
12922 * NEWS: Mention the change.
12924 2009-04-01 Simon Josefsson <simon@josefsson.org>
12926 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
12927 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12928 Eric Blake <ebb9@byu.net> for review.
12929 * MODULES.html.sh: Add lib-msvc-compat.
12930 * doc/gnulib.texi: Link to new section.
12931 * m4/ld-output-def.m4: New file.
12932 * doc/ld-output-def.texi: New file.
12934 2009-04-01 Simon Josefsson <simon@josefsson.org>
12936 Rename ld-version-script to lib-symbol-versions. Suggested by
12937 Bruno Haible <bruno@clisp.org>.
12938 * modules/ld-version-script: Renamed to lib-symbol-versions.
12939 * doc/ld-version-script.texi: Fix module name.
12940 * MODULES.html.sh: Add lib-symbol-versions.
12942 2009-03-31 Simon Josefsson <simon@josefsson.org>
12944 * modules/u64-tests: New file.
12945 * tests/test-u64.c: New file.
12947 2009-03-04 Simon Josefsson <simon@josefsson.org>
12949 * MODULES.html.sh: Mention u64.
12950 * modules/u64: New module.
12951 * modules/crypto/sha512: Depend on u64 module instead of providing
12954 2009-03-27 Eric Blake <ebb9@byu.net>
12956 test-strerror: make debugging EAI_SYSTEM easier
12957 * modules/getaddrinfo-tests (Depends-on): Add strerror.
12958 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12959 failure was EAI_SYSTEM.
12961 2009-03-25 Bruno Haible <bruno@clisp.org>
12963 Fix a problem with --enable-relocatable on Solaris 7.
12964 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12967 2009-03-25 Eric Blake <ebb9@byu.net>
12969 test-sockets: avoid gcc warning
12970 * tests/test-sockets.c (main): Silence compiler warning.
12972 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
12974 New modules nproc, pthread, contributed by Glen Lenker.
12976 * MODULES.html.sh: Add pthread, nproc.
12977 * lib/nproc.c: New file.
12978 * lib/nproc.h: New file.
12979 * lib/pthread.in.h: New file.
12980 * m4/pthread.m4: New file.
12981 * modules/nproc: New file.
12982 * modules/pthread: New file.
12984 2009-03-24 Simon Josefsson <simon@josefsson.org>
12986 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12989 2009-03-24 Kamil Dudka <kdudka@redhat.com>
12991 filevercmp: handle simple~ and numbered.~3~ backup suffixes
12992 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12993 * tests/test-filevercmp.c: Add tests for backup suffixes.
12995 2009-03-24 Simon Josefsson <simon@josefsson.org>
12997 * modules/stdlib (Depends-on): Add stdint, needed when defining
12998 struct random_data on, for example, HP-UX 10.20. Reported by
12999 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13001 2009-03-24 Simon Josefsson <simon@josefsson.org>
13003 * lib/readline.c (readline): Call fflush on stdout after printing
13006 2009-03-20 Bruno Haible <bruno@clisp.org>
13008 Remove dependency from 'close' module to -lws2_32 on native Windows.
13009 * lib/close-hook.h: New file.
13010 * lib/close-hook.c: New file.
13011 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13013 (_gl_close_fd_maybe_socket): Remove function.
13014 (rpl_close): Invoke execute_all_close_hooks instead of
13015 _gl_close_fd_maybe_socket.
13016 * lib/sockets.c: Include close-hook.h, w32sock.h.
13017 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13018 (close_sockets_hook): New variable.
13019 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13020 (gl_sockets_cleanup): Unregister it.
13021 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13022 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13023 * modules/close-hook: New file.
13024 * modules/close (Files): Remove lib/w32sock.h.
13025 (Depends-on): Add close-hook.
13026 (Link): Remove section.
13027 * modules/sockets (Files): Add lib/w32sock.h.
13028 (Depends-on): Add close-hook.
13029 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13031 * NEWS: Mention that LIB_CLOSE is gone.
13033 2009-03-23 Eric Blake <ebb9@byu.net>
13035 signal-tests: test previous patch
13036 * tests/test-signal.c: New file.
13037 * modules/signal-tests: Likewise.
13039 signal.h: always support 'volatile sig_atomic_t'
13040 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13041 (gl_SIGNAL_H_DEFAULTS): Add a default.
13042 * modules/signal (Makefile.am): Substitute if needed.
13043 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13044 users can blindly add volatile.
13045 * doc/posix-headers/signal.texi (signal.h): Document it.
13046 Reported by Matthew Woehlke.
13048 2009-03-23 Jim Meyering <meyering@redhat.com>
13050 pathmax: PATH_MAX: use pathconf only when available
13051 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13052 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13053 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13054 This avoids a link failure in a PSP cross-compilation environment
13055 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13057 * lib/vasnprintf.c (divide): Fix typo in comment.
13059 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13061 * gnulib-tool (func_filter_filelist): Fix comment.
13063 2009-03-20 Bruno Haible <bruno@clisp.org>
13065 Make sockets.h self-contained.
13066 * lib/sockets.c: Include sockets.h first.
13067 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13069 2009-03-19 Eric Blake <ebb9@byu.net>
13071 doc: mention more functions added in cygwin 1.7.0
13072 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13074 * doc/posix-functions/log2f.texi: Likewise.
13076 2009-03-19 Jim Meyering <meyering@redhat.com>
13078 fsusage: avoid syntax error due to statement-before-declaration
13079 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13080 after all declarations. Reported by Matthew Woehlke in
13081 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13083 2009-03-18 Eric Blake <ebb9@byu.net>
13085 build-aux/compile: sync from automake
13086 * build-aux/compile: New file, from automake.
13087 * config/srclist.txt: Mention build-aux/compile.
13089 2009-03-17 Bruno Haible <bruno@clisp.org>
13091 * lib/git-merge-changelog.c: Fix typo in comment.
13092 Reported by Reuben Thomas <rrt@sc3d.org>.
13094 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13096 * m4/regex.m4: update and improve help for
13097 --without-included-regex.
13099 2009-03-17 Simon Josefsson <simon@josefsson.org>
13101 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13102 failure on missing include files.
13104 2009-03-17 Eric Blake <ebb9@byu.net>
13106 doc: mention more functions added in cygwin 1.7.0
13107 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13109 * doc/posix-functions/fwscanf.texi: Likewise.
13110 * doc/posix-functions/swprintf.texi: Likewise.
13111 * doc/posix-functions/swscanf.texi: Likewise.
13112 * doc/posix-functions/vfwprintf.texi: Likewise.
13113 * doc/posix-functions/vfwscanf.texi: Likewise.
13114 * doc/posix-functions/vswprintf.texi: Likewise.
13115 * doc/posix-functions/vswscanf.texi: Likewise.
13116 * doc/posix-functions/vwprintf.texi: Likewise.
13117 * doc/posix-functions/vwscanf.texi: Likewise.
13118 * doc/posix-functions/wcscasecmp.texi: Likewise.
13119 * doc/posix-functions/wcsdup.texi: Likewise.
13120 * doc/posix-functions/wcsftime.texi: Likewise.
13121 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13122 * doc/posix-functions/wprintf.texi: Likewise.
13123 * doc/posix-functions/wscanf.texi: Likewise.
13124 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13126 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13128 maint.mk: really add $(AM_MAKEFLAGS)
13129 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13130 was inadvertently omitted in the last commit.
13131 Spotted by Bruno Haible.
13133 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13134 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13135 $(AM_MAKEFLAGS)' rather than plain `make'.
13137 gnulib-tool: execute $MAKE not make
13138 * gnulib-tool: Default $MAKE to 'make'.
13139 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13140 than make. Initialize $MAKE in the do-autobuild script.
13142 gnulib-tool: use $MAKE not make in generated files
13143 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13144 make, in generated files. Initialize $MAKE in the do-autobuild
13147 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13149 GNUmakefile: disable parallelism only for multiple, recursive targets
13150 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13151 additions in the Makefile.
13152 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13154 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13155 are listed on the command line and at least one of them is
13156 listed in $(ALL_RECURSIVE_TARGETS).
13158 2009-03-14 Bruno Haible <bruno@clisp.org>
13160 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13161 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13162 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13163 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13164 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13165 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13166 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13168 * modules/unistr/u8-strchr (Depends-on): Likewise.
13169 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13170 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13172 * modules/unistr/u16-strchr (Depends-on): Likewise.
13173 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13175 2009-03-12 Bruno Haible <bruno@clisp.org>
13177 Work around select() bug on Interix 3.5.
13178 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13179 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13180 * m4/select.m4: New file.
13181 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13182 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13183 * modules/select (Files): Add m4/select.m4.
13184 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13185 * modules/nanosleep (Depends-on): Add select.
13186 * modules/poll (Depends-on): Likewise.
13187 * doc/posix-functions/select.texi: Mention the Interix bug.
13188 Reported by Markus Duft <mduft@gentoo.org>.
13190 * lib/select.c: Renamed from lib/winsock-select.c.
13191 * modules/select (Files): Add lib/select.c, remove
13192 lib/winsock-select.c.
13193 (configure.ac): Update.
13195 2009-03-12 Jim Meyering <meyering@redhat.com>
13197 avoid gcc warnings about unused macro definitions
13198 * lib/readtokens.c (STREQ): Remove unused definition.
13199 * lib/xmalloc.c (SIZE_MAX): Likewise.
13200 * lib/openat-die.c (N_): Likewise.
13201 * lib/mountlist.c (SIZE_MAX): Remove definition.
13202 Instead, include <stdint.h>.
13203 * lib/readutmp.c: Likewise.
13204 * modules/readutmp (Depends-on): Add stdint.
13205 * modules/mountlist (Depends-on): Add stdint.
13206 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13208 2009-03-10 Bruno Haible <bruno@clisp.org>
13210 Tests for module 'mbmemcasecoll'.
13211 * modules/mbmemcasecoll-tests: New file.
13212 * tests/test-mbmemcasecoll1.sh: New file.
13213 * tests/test-mbmemcasecoll2.sh: New file.
13214 * tests/test-mbmemcasecoll3.sh: New file.
13215 * tests/test-mbmemcasecoll.c: New file.
13217 New module 'mbmemcasecoll'.
13218 * lib/mbmemcasecoll.h: New file.
13219 * lib/mbmemcasecoll.c: New file.
13220 * modules/mbmemcasecoll: New file.
13222 * tests/test-mbmemcasecmp.h: New file, extracted from
13223 tests/test-mbmemcasecmp.c.
13224 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13225 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13227 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13229 2009-03-09 Bruno Haible <bruno@clisp.org>
13231 Tests for module 'mbmemcasecmp'.
13232 * modules/mbmemcasecmp-tests: New file.
13233 * tests/test-mbmemcasecmp1.sh: New file.
13234 * tests/test-mbmemcasecmp2.sh: New file.
13235 * tests/test-mbmemcasecmp3.sh: New file.
13236 * tests/test-mbmemcasecmp.c: New file.
13238 New module 'mbmemcasecmp'.
13239 * lib/mbmemcasecmp.h: New file.
13240 * lib/mbmemcasecmp.c: New file.
13241 * modules/mbmemcasecmp: New file.
13243 2009-03-09 Bruno Haible <bruno@clisp.org>
13245 Tests for module 'unicase/ulc-casecoll'.
13246 * modules/unicase/ulc-casecoll-tests: New file.
13247 * tests/unicase/test-ulc-casecoll1.sh: New file.
13248 * tests/unicase/test-ulc-casecoll2.sh: New file.
13249 * tests/unicase/test-ulc-casecoll.c: New file.
13251 New module 'unicase/ulc-casecoll'.
13252 * lib/unicase.h (ulc_casecoll): New declaration.
13253 * lib/unicase/ulc-casecoll.c: New file.
13254 * modules/unicase/ulc-casecoll: New file.
13256 New module 'unicase/ulc-casexfrm'.
13257 * lib/unicase.h (ulc_casexfrm): New declaration.
13258 * lib/unicase/ulc-casexfrm.c: New file.
13259 * modules/unicase/ulc-casexfrm: New file.
13261 2009-03-09 Bruno Haible <bruno@clisp.org>
13263 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13266 * m4/mbscasecmp.m4: Remove file.
13267 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13268 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13270 * m4/mbscasestr.m4: Remove file.
13271 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13272 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13274 * m4/mbschr.m4: Remove file.
13275 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13276 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13278 * m4/mbscspn.m4: Remove file.
13279 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13280 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13282 * m4/mbslen.m4: Remove file.
13283 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13284 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13286 * m4/mbsncasecmp.m4: Remove file.
13287 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13288 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13290 * m4/mbsnlen.m4: Remove file.
13291 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13292 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13294 * m4/mbspbrk.m4: Remove file.
13295 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13296 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13298 * m4/mbspcasecmp.m4: Remove file.
13299 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13300 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13302 * m4/mbsrchr.m4: Remove file.
13303 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13304 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13306 * m4/mbssep.m4: Remove file.
13307 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13308 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13310 * m4/mbsspn.m4: Remove file.
13311 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13312 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13314 * m4/mbsstr.m4: Remove file.
13315 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13316 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13318 * m4/mbstok_r.m4: Remove file.
13319 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13320 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13322 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13324 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13325 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13327 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13329 2009-03-08 Bruno Haible <bruno@clisp.org>
13331 Tests for module 'unicase/ulc-casecmp'.
13332 * modules/unicase/ulc-casecmp-tests: New file.
13333 * tests/unicase/test-ulc-casecmp1.sh: New file.
13334 * tests/unicase/test-ulc-casecmp2.sh: New file.
13335 * tests/unicase/test-ulc-casecmp.c: New file.
13337 New module 'unicase/ulc-casecmp'.
13338 * lib/unicase.h (ulc_casecmp): New declaration.
13339 * lib/unicase/ulc-casecmp.c: New file.
13340 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13341 'const SRC_UNIT *'.
13342 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13343 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13344 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13345 * modules/unicase/ulc-casecmp: New file.
13347 Tests for module 'unicase/u32-is-cased'.
13348 * modules/unicase/u32-is-cased-tests: New file.
13349 * tests/unicase/test-u32-is-cased.c: New file.
13351 Tests for module 'unicase/u16-is-cased'.
13352 * modules/unicase/u16-is-cased-tests: New file.
13353 * tests/unicase/test-u16-is-cased.c: New file.
13355 Tests for module 'unicase/u8-is-cased'.
13356 * modules/unicase/u8-is-cased-tests: New file.
13357 * tests/unicase/test-u8-is-cased.c: New file.
13358 * tests/unicase/test-is-cased.h: New file.
13360 New module 'unicase/u32-is-cased'.
13361 * lib/unicase/u32-is-cased.c: New file.
13362 * modules/unicase/u32-is-cased: New file.
13364 New module 'unicase/u16-is-cased'.
13365 * lib/unicase/u16-is-cased.c: New file.
13366 * modules/unicase/u16-is-cased: New file.
13368 New module 'unicase/u8-is-cased'.
13369 * lib/unicase/u8-is-cased.c: New file.
13370 * lib/unicase/u-is-cased.h: New file.
13371 * modules/unicase/u8-is-cased: New file.
13373 Tests for module 'unicase/u32-is-casefolded'.
13374 * modules/unicase/u32-is-casefolded-tests: New file.
13375 * tests/unicase/test-u32-is-casefolded.c: New file.
13377 Tests for module 'unicase/u16-is-casefolded'.
13378 * modules/unicase/u16-is-casefolded-tests: New file.
13379 * tests/unicase/test-u16-is-casefolded.c: New file.
13381 Tests for module 'unicase/u8-is-casefolded'.
13382 * modules/unicase/u8-is-casefolded-tests: New file.
13383 * tests/unicase/test-u8-is-casefolded.c: New file.
13384 * tests/unicase/test-is-casefolded.h: New file.
13386 New module 'unicase/u32-is-casefolded'.
13387 * lib/unicase/u32-is-casefolded.c: New file.
13388 * modules/unicase/u32-is-casefolded: New file.
13390 New module 'unicase/u16-is-casefolded'.
13391 * lib/unicase/u16-is-casefolded.c: New file.
13392 * modules/unicase/u16-is-casefolded: New file.
13394 New module 'unicase/u8-is-casefolded'.
13395 * lib/unicase/u8-is-casefolded.c: New file.
13396 * modules/unicase/u8-is-casefolded: New file.
13398 Tests for module 'unicase/u32-is-titlecase'.
13399 * modules/unicase/u32-is-titlecase-tests: New file.
13400 * tests/unicase/test-u32-is-titlecase.c: New file.
13402 Tests for module 'unicase/u16-is-titlecase'.
13403 * modules/unicase/u16-is-titlecase-tests: New file.
13404 * tests/unicase/test-u16-is-titlecase.c: New file.
13406 Tests for module 'unicase/u8-is-titlecase'.
13407 * modules/unicase/u8-is-titlecase-tests: New file.
13408 * tests/unicase/test-u8-is-titlecase.c: New file.
13409 * tests/unicase/test-is-titlecase.h: New file.
13411 New module 'unicase/u32-is-titlecase'.
13412 * lib/unicase/u32-is-titlecase.c: New file.
13413 * modules/unicase/u32-is-titlecase: New file.
13415 New module 'unicase/u16-is-titlecase'.
13416 * lib/unicase/u16-is-titlecase.c: New file.
13417 * modules/unicase/u16-is-titlecase: New file.
13419 New module 'unicase/u8-is-titlecase'.
13420 * lib/unicase/u8-is-titlecase.c: New file.
13421 * modules/unicase/u8-is-titlecase: New file.
13423 Tests for module 'unicase/u32-is-lowercase'.
13424 * modules/unicase/u32-is-lowercase-tests: New file.
13425 * tests/unicase/test-u32-is-lowercase.c: New file.
13427 Tests for module 'unicase/u16-is-lowercase'.
13428 * modules/unicase/u16-is-lowercase-tests: New file.
13429 * tests/unicase/test-u16-is-lowercase.c: New file.
13431 Tests for module 'unicase/u8-is-lowercase'.
13432 * modules/unicase/u8-is-lowercase-tests: New file.
13433 * tests/unicase/test-u8-is-lowercase.c: New file.
13434 * tests/unicase/test-is-lowercase.h: New file.
13436 New module 'unicase/u32-is-lowercase'.
13437 * lib/unicase/u32-is-lowercase.c: New file.
13438 * modules/unicase/u32-is-lowercase: New file.
13440 New module 'unicase/u16-is-lowercase'.
13441 * lib/unicase/u16-is-lowercase.c: New file.
13442 * modules/unicase/u16-is-lowercase: New file.
13444 New module 'unicase/u8-is-lowercase'.
13445 * lib/unicase/u8-is-lowercase.c: New file.
13446 * modules/unicase/u8-is-lowercase: New file.
13448 Tests for module 'unicase/u32-is-uppercase'.
13449 * modules/unicase/u32-is-uppercase-tests: New file.
13450 * tests/unicase/test-u32-is-uppercase.c: New file.
13452 Tests for module 'unicase/u16-is-uppercase'.
13453 * modules/unicase/u16-is-uppercase-tests: New file.
13454 * tests/unicase/test-u16-is-uppercase.c: New file.
13456 Tests for module 'unicase/u8-is-uppercase'.
13457 * modules/unicase/u8-is-uppercase-tests: New file.
13458 * tests/unicase/test-u8-is-uppercase.c: New file.
13459 * tests/unicase/test-is-uppercase.h: New file.
13461 New module 'unicase/u32-is-uppercase'.
13462 * lib/unicase/u32-is-uppercase.c: New file.
13463 * modules/unicase/u32-is-uppercase: New file.
13465 New module 'unicase/u16-is-uppercase'.
13466 * lib/unicase/u16-is-uppercase.c: New file.
13467 * modules/unicase/u16-is-uppercase: New file.
13469 New module 'unicase/u8-is-uppercase'.
13470 * lib/unicase/u8-is-uppercase.c: New file.
13471 * modules/unicase/u8-is-uppercase: New file.
13473 New module 'unicase/u32-is-invariant'.
13474 * lib/unicase/u32-is-invariant.c: New file.
13475 * modules/unicase/u32-is-invariant: New file.
13477 New module 'unicase/u16-is-invariant'.
13478 * lib/unicase/u16-is-invariant.c: New file.
13479 * modules/unicase/u16-is-invariant: New file.
13481 New module 'unicase/u8-is-invariant'.
13482 * lib/unicase/u8-is-invariant.c: New file.
13483 * lib/unicase/invariant.h: New file.
13484 * lib/unicase/u-is-invariant.h: New file.
13485 * modules/unicase/u8-is-invariant: New file.
13487 Tests for module 'unicase/u32-casecoll'.
13488 * modules/unicase/u32-casecoll-tests: New file.
13489 * tests/unicase/test-u32-casecoll.c: New file.
13491 Tests for module 'unicase/u16-casecoll'.
13492 * modules/unicase/u16-casecoll-tests: New file.
13493 * tests/unicase/test-u16-casecoll.c: New file.
13495 Tests for module 'unicase/u8-casecoll'.
13496 * modules/unicase/u8-casecoll-tests: New file.
13497 * tests/unicase/test-u8-casecoll.c: New file.
13499 New module 'unicase/u32-casecoll'.
13500 * lib/unicase/u32-casecoll.c: New file.
13501 * modules/unicase/u32-casecoll: New file.
13503 New module 'unicase/u16-casecoll'.
13504 * lib/unicase/u16-casecoll.c: New file.
13505 * modules/unicase/u16-casecoll: New file.
13507 New module 'unicase/u8-casecoll'.
13508 * lib/unicase/u8-casecoll.c: New file.
13509 * lib/unicase/u-casecoll.h: New file.
13510 * modules/unicase/u8-casecoll: New file.
13512 New module 'unicase/u32-casexfrm'.
13513 * lib/unicase/u32-casexfrm.c: New file.
13514 * modules/unicase/u32-casexfrm: New file.
13516 New module 'unicase/u16-casexfrm'.
13517 * lib/unicase/u16-casexfrm.c: New file.
13518 * modules/unicase/u16-casexfrm: New file.
13520 New module 'unicase/u8-casexfrm'.
13521 * lib/unicase/u8-casexfrm.c: New file.
13522 * lib/unicase/u-casexfrm.h: New file.
13523 * modules/unicase/u8-casexfrm: New file.
13525 Tests for module 'unicase/u32-casecmp'.
13526 * modules/unicase/u32-casecmp-tests: New file.
13527 * tests/unicase/test-u32-casecmp.c: New file.
13529 Tests for module 'unicase/u16-casecmp'.
13530 * modules/unicase/u16-casecmp-tests: New file.
13531 * tests/unicase/test-u16-casecmp.c: New file.
13533 Tests for module 'unicase/u8-casecmp'.
13534 * modules/unicase/u8-casecmp-tests: New file.
13535 * tests/unicase/test-u8-casecmp.c: New file.
13536 * tests/unicase/test-casecmp.h: New file.
13538 New module 'unicase/u32-casecmp'.
13539 * lib/unicase/u32-casecmp.c: New file.
13540 * modules/unicase/u32-casecmp: New file.
13542 New module 'unicase/u16-casecmp'.
13543 * lib/unicase/u16-casecmp.c: New file.
13544 * modules/unicase/u16-casecmp: New file.
13546 New module 'unicase/u8-casecmp'.
13547 * lib/unicase/u8-casecmp.c: New file.
13548 * lib/unicase/u-casecmp.h: New file.
13549 * modules/unicase/u8-casecmp: New file.
13551 Tests for module 'unicase/u32-casefold'.
13552 * modules/unicase/u32-casefold-tests: New file.
13553 * tests/unicase/test-u32-casefold.c: New file.
13555 Tests for module 'unicase/u16-casefold'.
13556 * modules/unicase/u16-casefold-tests: New file.
13557 * tests/unicase/test-u16-casefold.c: New file.
13559 Tests for module 'unicase/u8-casefold'.
13560 * modules/unicase/u8-casefold-tests: New file.
13561 * tests/unicase/test-u8-casefold.c: New file.
13563 New module 'unicase/u32-casefold'.
13564 * lib/unicase/u32-casefold.c: New file.
13565 * modules/unicase/u32-casefold: New file.
13567 New module 'unicase/u16-casefold'.
13568 * lib/unicase/u16-casefold.c: New file.
13569 * modules/unicase/u16-casefold: New file.
13571 New module 'unicase/u8-casefold'.
13572 * lib/unicase/u8-casefold.c: New file.
13573 * lib/unicase/u-casefold.h: New file.
13574 * modules/unicase/u8-casefold: New file.
13576 New module 'unicase/tocasefold'.
13577 * lib/unicase/casefold.h: New file.
13578 * lib/unicase/tocasefold.c: New file.
13579 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13580 * modules/unicase/tocasefold: New file.
13582 Tests for module 'unicase/u32-totitle'.
13583 * modules/unicase/u32-totitle-tests: New file.
13584 * tests/unicase/test-u32-totitle.c: New file.
13586 Tests for module 'unicase/u16-totitle'.
13587 * modules/unicase/u16-totitle-tests: New file.
13588 * tests/unicase/test-u16-totitle.c: New file.
13590 Tests for module 'unicase/u8-totitle'.
13591 * modules/unicase/u8-totitle-tests: New file.
13592 * tests/unicase/test-u8-totitle.c: New file.
13594 New module 'unicase/u32-totitle'.
13595 * lib/unicase/u32-totitle.c: New file.
13596 * modules/unicase/u32-totitle: New file.
13598 New module 'unicase/u16-totitle'.
13599 * lib/unicase/u16-totitle.c: New file.
13600 * modules/unicase/u16-totitle: New file.
13602 New module 'unicase/u8-totitle'.
13603 * lib/unicase/u8-totitle.c: New file.
13604 * lib/unicase/u-totitle.h: New file.
13605 * modules/unicase/u8-totitle: New file.
13607 Tests for module 'unicase/u32-tolower'.
13608 * modules/unicase/u32-tolower-tests: New file.
13609 * tests/unicase/test-u32-tolower.c: New file.
13611 Tests for module 'unicase/u16-tolower'.
13612 * modules/unicase/u16-tolower-tests: New file.
13613 * tests/unicase/test-u16-tolower.c: New file.
13615 Tests for module 'unicase/u8-tolower'.
13616 * modules/unicase/u8-tolower-tests: New file.
13617 * tests/unicase/test-u8-tolower.c: New file.
13619 New module 'unicase/u32-tolower'.
13620 * lib/unicase/u32-tolower.c: New file.
13621 * modules/unicase/u32-tolower: New file.
13623 New module 'unicase/u16-tolower'.
13624 * lib/unicase/u16-tolower.c: New file.
13625 * modules/unicase/u16-tolower: New file.
13627 New module 'unicase/u8-tolower'.
13628 * lib/unicase/u8-tolower.c: New file.
13629 * modules/unicase/u8-tolower: New file.
13631 Tests for module 'unicase/u32-toupper'.
13632 * modules/unicase/u32-toupper-tests: New file.
13633 * tests/unicase/test-u32-toupper.c: New file.
13635 Tests for module 'unicase/u16-toupper'.
13636 * modules/unicase/u16-toupper-tests: New file.
13637 * tests/unicase/test-u16-toupper.c: New file.
13639 Tests for module 'unicase/u8-toupper'.
13640 * modules/unicase/u8-toupper-tests: New file.
13641 * tests/unicase/test-u8-toupper.c: New file.
13643 New module 'unicase/u32-toupper'.
13644 * lib/unicase/u32-toupper.c: New file.
13645 * modules/unicase/u32-toupper: New file.
13647 New module 'unicase/u16-toupper'.
13648 * lib/unicase/u16-toupper.c: New file.
13649 * modules/unicase/u16-toupper: New file.
13651 New module 'unicase/u8-toupper'.
13652 * lib/unicase/u8-toupper.c: New file.
13653 * modules/unicase/u8-toupper: New file.
13655 New module 'unicase/u32-casemap'.
13656 * lib/unicase/u32-casemap.c: New file.
13657 * modules/unicase/u32-casemap: New file.
13659 New module 'unicase/u16-casemap'.
13660 * lib/unicase/u16-casemap.c: New file.
13661 * modules/unicase/u16-casemap: New file.
13663 New module 'unicase/u8-casemap'.
13664 * lib/unicase/unicasemap.h: New file.
13665 * lib/unicase/u8-casemap.c: New file.
13666 * lib/unicase/u-casemap.h: New file.
13667 * modules/unicase/u8-casemap: New file.
13669 New module 'unicase/special-casing'.
13670 * lib/unicase/special-casing.h: New file.
13671 * lib/unicase/special-casing.c: New file.
13672 * lib/unicase/special-casing-table.gperf: New file, generated by
13674 * modules/unicase/special-casing: New file.
13676 Tests for module 'unicase/locale-language'.
13677 * modules/unicase/locale-language-tests: New file.
13678 * tests/unicase/test-locale-language.sh: New file.
13679 * tests/unicase/test-locale-language.c: New file.
13681 New module 'unicase/locale-language'.
13682 * lib/unicase/locale-language.c: New file.
13683 * lib/unicase/locale-languages.gperf: New file.
13684 * modules/unicase/locale-language: New file.
13686 Generate more tables for case conversion and case folding.
13687 * lib/gen-uni-tables.c (SCC_*): New enum items.
13688 (struct special_casing_rule): New type.
13689 (casing_rules, num_casing_rules, allocated_casing_rules): New
13691 (add_casing_rule, fill_casing_rules): New functions.
13692 (struct casefold_rule): New type.
13693 (casefolding_rules, num_casefolding_rules,
13694 allocated_casefolding_rules): New variables.
13695 (fill_casefolding_rules): New function.
13696 (unicode_casefold): New variable.
13697 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13698 sort_casing_rules, output_casing_rules): New functions.
13699 (main): Accept to more arguments: SpecialCasing.txt and
13700 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13701 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13702 Output mapping for casefolding.
13704 * lib/unicase.h: Include stdbool.h, uninorm.h.
13705 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13706 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13707 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13709 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13711 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13712 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13714 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13715 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13716 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13717 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13719 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13721 2009-03-08 Bruno Haible <bruno@clisp.org>
13723 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13724 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13725 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13726 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13728 2009-03-07 Bruno Haible <bruno@clisp.org>
13730 Adjust u*_normcmp, u*_normcoll API.
13731 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13732 u16_normcoll, u32_normcoll): Change failure conventions.
13733 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13734 errno and return -1.
13735 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13737 2009-03-07 Bruno Haible <bruno@clisp.org>
13739 Tests for module 'uninorm/u32-normcoll'.
13740 * modules/uninorm/u32-normcoll-tests: New file.
13741 * tests/uninorm/test-u32-normcoll.c: New file.
13743 Tests for module 'uninorm/u16-normcoll'.
13744 * modules/uninorm/u16-normcoll-tests: New file.
13745 * tests/uninorm/test-u16-normcoll.c: New file.
13747 Tests for module 'uninorm/u8-normcoll'.
13748 * modules/uninorm/u8-normcoll-tests: New file.
13749 * tests/uninorm/test-u8-normcoll.c: New file.
13751 2009-03-07 Bruno Haible <bruno@clisp.org>
13753 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13754 tests/uninorm/test-u32-normcmp.c.
13755 * tests/uninorm/test-u32-normcmp.c: Include it.
13756 (test_nonascii): New function, extracted from main. Add some more
13758 (main): Invoke test_ascii and test_nonascii.
13759 * modules/uninorm/u32-normcmp-tests (Files): Add
13760 tests/uninorm/test-u32-normcmp.h.
13761 (Depends-on): Remove uninorm/u32-normcmp.
13763 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13764 tests/uninorm/test-u16-normcmp.c.
13765 * tests/uninorm/test-u16-normcmp.c: Include it.
13766 (test_nonascii): New function, extracted from main. Add some more
13768 (main): Invoke test_ascii and test_nonascii.
13769 * modules/uninorm/u16-normcmp-tests (Files): Add
13770 tests/uninorm/test-u16-normcmp.h.
13771 (Depends-on): Remove uninorm/u16-normcmp.
13773 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13774 tests/uninorm/test-u8-normcmp.c.
13775 * tests/uninorm/test-u8-normcmp.c: Include it.
13776 (test_nonascii): New function, extracted from main. Add some more
13778 (main): Invoke test_ascii and test_nonascii.
13779 * modules/uninorm/u8-normcmp-tests (Files): Add
13780 tests/uninorm/test-u8-normcmp.h.
13781 (Depends-on): Remove uninorm/u8-normcmp.
13783 2009-03-07 Bruno Haible <bruno@clisp.org>
13785 New module 'uninorm/u32-normcoll'.
13786 * lib/uninorm/u32-normcoll.c: New file.
13787 * modules/uninorm/u32-normcoll: New file.
13789 New module 'uninorm/u16-normcoll'.
13790 * lib/uninorm/u16-normcoll.c: New file.
13791 * modules/uninorm/u16-normcoll: New file.
13793 New module 'uninorm/u8-normcoll'.
13794 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13796 * lib/uninorm/u8-normcoll.c: New file.
13797 * lib/uninorm/u-normcoll.h: New file.
13798 * modules/uninorm/u8-normcoll: New file.
13800 New module 'uninorm/u32-normxfrm'.
13801 * lib/uninorm/u32-normxfrm.c: New file.
13802 * modules/uninorm/u32-normxfrm: New file.
13804 New module 'uninorm/u16-normxfrm'.
13805 * lib/uninorm/u16-normxfrm.c: New file.
13806 * modules/uninorm/u16-normxfrm: New file.
13808 New module 'uninorm/u8-normxfrm'.
13809 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13811 * lib/uninorm/u8-normxfrm.c: New file.
13812 * lib/uninorm/u-normxfrm.h: New file.
13813 * modules/uninorm/u8-normxfrm: New file.
13815 2009-03-07 Bruno Haible <bruno@clisp.org>
13817 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13818 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13819 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13821 2009-03-07 Bruno Haible <bruno@clisp.org>
13823 New module 'memxfrm'.
13824 * lib/memxfrm.h: New file.
13825 * lib/memxfrm.c: New file.
13826 * modules/memxfrm: New file.
13828 2009-03-07 Bruno Haible <bruno@clisp.org>
13830 New module 'memcmp2'.
13831 * lib/memcmp2.h: New file.
13832 * lib/memcmp2.c: New file.
13833 * modules/memcmp2: New file.
13835 2009-03-07 Bruno Haible <bruno@clisp.org>
13837 Tests for module 'uninorm/decomposing-form'.
13838 * modules/uninorm/decomposing-form-tests: New file.
13839 * tests/uninorm/test-decomposing-form.c: New file.
13841 New module 'uninorm/decomposing-form'.
13842 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13843 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13844 Add 'decomposing_variant' field.
13845 * lib/uninorm/decomposing-form.c: New file.
13846 * lib/uninorm/nfc.c (uninorm_nfc): Update.
13847 * lib/uninorm/nfd.c (uninorm_nfd): Update.
13848 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13849 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13850 * modules/uninorm/decomposing-form: New file.
13851 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13852 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13854 2009-03-07 Bruno Haible <bruno@clisp.org>
13856 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13859 2009-03-06 Bruno Haible <bruno@clisp.org>
13861 Tests for module 'uninorm/u32-normcmp'.
13862 * tests/uninorm/test-u32-normcmp.c: New file.
13863 * modules/uninorm/u32-normcmp-tests: New file.
13865 Tests for module 'uninorm/u16-normcmp'.
13866 * tests/uninorm/test-u16-normcmp.c: New file.
13867 * modules/uninorm/u16-normcmp-tests: New file.
13869 Tests for module 'uninorm/u8-normcmp'.
13870 * tests/uninorm/test-u8-normcmp.c: New file.
13871 * modules/uninorm/u8-normcmp-tests: New file.
13873 New module 'uninorm/u32-normcmp'.
13874 * lib/uninorm/u32-normcmp.c: New file.
13875 * modules/uninorm/u32-normcmp: New file.
13877 New module 'uninorm/u16-normcmp'.
13878 * lib/uninorm/u16-normcmp.c: New file.
13879 * modules/uninorm/u16-normcmp: New file.
13881 New module 'uninorm/u8-normcmp'.
13882 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13884 * lib/uninorm/u8-normcmp.c: New file.
13885 * lib/uninorm/u-normcmp.h: New file.
13886 * modules/uninorm/u8-normcmp: New file.
13888 2009-03-06 Bruno Haible <bruno@clisp.org>
13890 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13891 Reported by Eric Blake.
13893 2009-03-06 Eric Blake <ebb9@byu.net>
13894 Bruno Haible <bruno@clisp.org>
13896 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13897 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13899 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13900 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13902 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13904 2009-03-06 Eric Blake <ebb9@byu.net>
13906 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13907 to avoid compiler warnings.
13908 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13910 2009-03-05 Bruno Haible <bruno@clisp.org>
13912 * tests/test-ftell.c (main): Disable test beyond end of file on
13914 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13916 2009-03-05 Kamil Dudka <kdudka@redhat.com>
13918 * lib/filevercmp.c: Move hidden files up in ordering.
13919 * tests/test-filevercmp.c: Add tests for hidden files.
13921 2009-03-04 Bruno Haible <bruno@clisp.org>
13923 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13924 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13926 Reported by Simon Josefsson.
13928 2009-03-03 Bruno Haible <bruno@clisp.org>
13930 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13931 Reported by Simon Josefsson.
13933 * doc/ld-version-script.texi: Update node reference.
13935 2009-03-03 Bruno Haible <bruno@clisp.org>
13937 * modules/visibility (License): Change to 'unlimited'.
13938 Suggested by Simon Josefsson.
13940 2009-03-03 Jim Meyering <meyering@redhat.com>
13942 unlinkdir: cannot_unlink_dir may modify process state
13943 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13944 it's neither thread-safe nor appropriate for use in a library.
13946 2009-03-03 Eric Blake <ebb9@byu.net>
13948 test-closein: silence test under Darwin
13949 * tests/test-closein.sh: Ignore stderr from cat, since we don't
13950 care if it dies from EPIPE or EBADF.
13952 2009-03-03 Bruno Haible <bruno@clisp.org>
13954 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13956 * doc/visibility.texi: Fix @node and @section.
13958 2009-03-03 Simon Josefsson <simon@josefsson.org>
13960 * doc/gnulib.texi: Link to sections for ld version script and
13962 * doc/visibility.texi: Add @node and @section.
13963 * modules/ld-version-script: New module.
13964 * m4/ld-version-script.m4: New file.
13965 * doc/ld-version-script.texi: New file.
13967 2009-03-02 David Lutterkort <lutter@redhat.com>
13969 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13970 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13972 2009-03-02 Bruno Haible <bruno@clisp.org>
13974 * doc/visibility.texi: Mention libtool's -export-symbols option.
13976 2009-03-02 Jim Meyering <meyering@redhat.com>
13978 announce-gen: new option: --no-print-checksums
13979 * build-aux/announce-gen (usage): Describe it.
13980 (print_checksums): Print a newline here, not in the [*] footnote.
13983 2009-03-01 Bruno Haible <bruno@clisp.org>
13985 Use socklen_t in the native Windows replacements prototypes.
13986 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13988 * lib/getsockopt.c (rpl_getsockopt): Likewise.
13989 * lib/setsockopt.c (rpl_setsockopt): Likewise.
13990 * modules/getsockopt (Depends-on): Add socklen.
13991 * modules/setsockopt (Depends-on): Add socklen.
13993 2009-03-01 Bruno Haible <bruno@clisp.org>
13995 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13998 2009-03-01 Eric Blake <ebb9@byu.net>
13999 Bruno Haible <bruno@clisp.org>
14001 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14003 * lib/wait-process.c (wait_subprocess): Omit error message about
14004 deadly signal sent to the child of termsigp != NULL.
14006 2009-03-01 Eric Blake <ebb9@byu.net>
14008 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14010 2009-03-01 Bruno Haible <bruno@clisp.org>
14012 Avoid a gcc warning.
14013 * tests/test-sched.c (b): Make global.
14014 Reported by Eric Blake.
14016 2009-01-19 Martin Lambers <marlam@marlam.de>
14018 Provide POSIX semantics for socket timeout options on W32.
14019 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14020 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14021 * modules/setsockopt: Depend on sys_time module for struct timeval.
14022 * modules/getsockopt: Depend on sys_time module for struct timeval.
14024 2009-03-01 Simon Josefsson <simon@josefsson.org>
14026 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14027 __USE_GNU, for consistency with netdb.in.h.
14028 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14030 2009-03-01 Bruno Haible <bruno@clisp.org>
14032 More support for FreeMiNT.
14033 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14034 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14036 2009-03-01 Bruno Haible <bruno@clisp.org>
14038 More support for FreeMiNT.
14039 * lib/fpurge.c (fpurge): Correct last commit.
14040 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14042 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14044 Fix unportable awk script in vc-list-files.
14045 * build-aux/vc-list-files: In the replacement awk script, use
14046 substr with a second argument of 1, not zero.
14047 Report by Simon Josefsson.
14049 2009-02-28 Bruno Haible <bruno@clisp.org>
14051 More support for FreeMiNT.
14052 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14054 * lib/fwriting.c (fwriting): Likewise.
14055 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14057 2009-02-28 Bruno Haible <bruno@clisp.org>
14059 * tests/test-freadseek.c (main): Disable test beyond end of file on
14061 * tests/test-ftello.c (main): Likewise.
14062 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14064 2009-02-28 Bruno Haible <bruno@clisp.org>
14066 Add tentative support for FreeMiNT.
14067 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14068 * lib/fpurge.c (fpurge): Likewise.
14069 * lib/freadable.c (freadable): Likewise.
14070 * lib/freading.c (freading): Likewise.
14071 * lib/freadptr.c (freadptr): Likewise.
14072 * lib/freadseek.c (freadptrinc): Likewise.
14073 * lib/fseeko.c (rpl_fseeko): Likewise.
14074 * lib/fseterr.c (fseterr): Likewise.
14075 * lib/fwritable.c (fwritable): Likewise.
14076 * lib/fwriting.c (fwriting): Likewise.
14077 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14079 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14081 2009-02-28 Bruno Haible <bruno@clisp.org>
14083 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14085 Reported by Jim Meyering.
14087 2009-02-28 Bruno Haible <bruno@clisp.org>
14089 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14090 Mention the results of these tests on various platforms.
14091 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14093 * doc/posix-functions/printf.texi: Likewise.
14094 * doc/posix-functions/snprintf.texi: Likewise.
14095 * doc/posix-functions/sprintf.texi: Likewise.
14096 * doc/posix-functions/vfprintf.texi: Likewise.
14097 * doc/posix-functions/vprintf.texi: Likewise.
14098 * doc/posix-functions/vsnprintf.texi: Likewise.
14099 * doc/posix-functions/vsprintf.texi: Likewise.
14100 * doc/glibc-functions/obstack_printf.texi: Likewise.
14101 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14103 2009-02-28 Bruno Haible <bruno@clisp.org>
14105 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14106 Reported by Loïc Minier <lool@dooz.org>.
14108 2009-02-27 Bruno Haible <bruno@clisp.org>
14110 * gnulib-tool (func_import): Make the sed expression used to create the
14111 sed script for updating the .gitignore file POSIX compliant.
14112 Reported by Eric Blake.
14114 2009-02-27 Bruno Haible <bruno@clisp.org>
14116 * gnulib-tool (sed): Don't alias as "sed --posix".
14117 Reported by Eric Blake.
14119 2009-02-27 Bruno Haible <bruno@clisp.org>
14121 Avoid test link errors.
14122 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14123 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14124 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14125 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14126 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14128 2009-02-27 Bruno Haible <bruno@clisp.org>
14130 Avoid spurious "(cached)" in configure output.
14131 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14132 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14133 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14134 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14135 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14136 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14137 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14138 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14139 Reported by Eric Blake.
14141 2009-02-27 Eric Blake <ebb9@byu.net>
14143 printf: fix regression in previous patch
14144 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14146 2009-02-27 Bruno Haible <bruno@clisp.org>
14148 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14150 * lib/stdint.in.h: Likewise.
14151 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14153 2009-02-27 Eric Blake <ebb9@byu.net>
14155 doc: mention more functions added in cygwin 1.7.0
14156 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14158 * doc/posix-functions/open_wmemstream.texi: Likewise.
14159 * doc/posix-functions/wcsnlen.texi: Likewise.
14160 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14161 * doc/posix-functions/wcstod.texi: Likewise.
14162 * doc/posix-functions/wcstof.texi: Likewise.
14163 * doc/posix-functions/wcstoimax.texi: Likewise.
14164 * doc/posix-functions/wcstok.texi: Likewise.
14165 * doc/posix-functions/wcstoumax.texi: Likewise.
14167 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14168 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14169 * doc/posix-functions/fprintf.texi: Update.
14170 * doc/posix-functions/printf.texi: Update.
14171 * doc/posix-functions/snprintf.texi: Update.
14172 * doc/posix-functions/sprintf.texi: Update.
14173 * doc/posix-functions/vfprintf.texi: Update.
14174 * doc/posix-functions/vprintf.texi: Update.
14175 * doc/posix-functions/vsnprintf.texi: Update.
14176 * doc/posix-functions/vsprintf.texi: Update.
14177 * doc/glibc-functions/obstack_printf.texi: Update.
14178 * doc/glibc-functions/obstack_vprintf.texi: Update.
14180 2009-02-26 Eric Blake <ebb9@byu.net>
14182 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14183 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14184 compilation bug by using runtime conversion.
14185 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14186 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14187 * modules/ceill-tests (Files): Use nan.h.
14188 * modules/floorl-tests (Files): Likewise.
14189 * modules/frexpl-tests (Files): Likewise.
14190 * modules/isnanl-tests (Files): Likewise.
14191 * modules/ldexpl-tests (Files): Likewise.
14192 * modules/roundl-tests (Files): Likewise.
14193 * modules/truncl-tests (Files): Likewise.
14194 * tests/test-ceill.c (main): Use a working NaN.
14195 * tests/test-floorl.c (main): Likewise.
14196 * tests/test-frexpl.c (main): Likewise.
14197 * tests/test-isnan.c (test_long_double): Likewise.
14198 * tests/test-isnanl.h (main): Likewise.
14199 * tests/test-ldexpl.h (main): Likewise.
14200 * tests/test-roundl.h (main): Likewise.
14201 * tests/test-truncl.h (main): Likewise.
14202 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14204 2009-02-26 Eric Blake <ebb9@byu.net>
14205 Bruno Haible <bruno@clisp.org>
14207 Work around a *printf bug with %ls on Solaris.
14208 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14209 precision is specified, sprintf stops converting the wide string
14210 argument when the number of bytes that have been produced by this
14211 conversion equals or exceeds the precision.
14212 * doc/posix-functions/fprintf.texi: Update.
14213 * doc/posix-functions/printf.texi: Update.
14214 * doc/posix-functions/snprintf.texi: Update.
14215 * doc/posix-functions/sprintf.texi: Update.
14216 * doc/posix-functions/vfprintf.texi: Update.
14217 * doc/posix-functions/vprintf.texi: Update.
14218 * doc/posix-functions/vsnprintf.texi: Update.
14219 * doc/posix-functions/vsprintf.texi: Update.
14220 * doc/glibc-functions/obstack_printf.texi: Update.
14221 * doc/glibc-functions/obstack_vprintf.texi: Update.
14223 2009-02-26 Eric Blake <ebb9@byu.net>
14225 stdlib: favor compiler check of random.h
14226 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14227 to avoid an ObjC random.h installed by Swarm.
14229 2009-02-26 Bruno Haible <bruno@clisp.org>
14231 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14232 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14233 Reported by Gary V. Vaughan <gary@gnu.org>.
14235 2009-02-26 Bruno Haible <bruno@clisp.org>
14237 Fix *printf behaviour regarding the %ls directive.
14238 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14239 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14240 NEED_PRINTF_DIRECTIVE_LS.
14241 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14242 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14243 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14244 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14245 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14246 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14247 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14248 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14249 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14250 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14251 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14252 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14253 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14254 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14255 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14256 * doc/posix-functions/fprintf.texi: Update.
14257 * doc/posix-functions/printf.texi: Update.
14258 * doc/posix-functions/snprintf.texi: Update.
14259 * doc/posix-functions/sprintf.texi: Update.
14260 * doc/posix-functions/vfprintf.texi: Update.
14261 * doc/posix-functions/vprintf.texi: Update.
14262 * doc/posix-functions/vsnprintf.texi: Update.
14263 * doc/posix-functions/vsprintf.texi: Update.
14264 * doc/glibc-functions/obstack_printf.texi: Update.
14265 * doc/glibc-functions/obstack_vprintf.texi: Update.
14266 Reported by Eric Blake.
14268 2009-02-25 Bruno Haible <bruno@clisp.org>
14270 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14272 Reported by Gary V. Vaughan <gary@gnu.org>.
14274 2009-02-25 Bruno Haible <bruno@clisp.org>
14276 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14277 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14278 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14279 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14280 Reported by Gary V. Vaughan <gary@gnu.org>.
14282 2009-02-25 Bruno Haible <bruno@clisp.org>
14284 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14285 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14286 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14287 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14288 Reported by Gary V. Vaughan <gary@gnu.org>.
14290 2009-02-25 Eric Blake <ebb9@byu.net>
14292 tests: skip fseek/ftell tests if ungetc is broken
14293 * m4/ungetc.m4: New file.
14294 * modules/fseek-tests: Split test, so ungetc dependency is
14295 separate from rest of test.
14296 * modules/fseeko-tests: Likewise.
14297 * modules/ftell-tests: Likewise.
14298 * modules/ftello-tests: Likewise.
14299 * tests/test-fseek.c (main): Isolate ungetc dependency.
14300 * tests/test-fseeko.c (main): Likewise.
14301 * tests/test-ftell.c (main): Likewise.
14302 * tests/test-ftello.c (main): Likewise.
14303 * tests/test-fseek2.sh: New file.
14304 * tests/test-fseeko2.sh: Likewise.
14305 * tests/test-ftell2.sh: Likewise.
14306 * tests/test-ftello2.sh: Likewise.
14308 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14310 test-getaddrinfo: fix usage of skip return code 77
14311 * tests/test-gettaddrinfo.c: Return skip code 77 only
14312 for first occurance of skip (4x77 is not 77)
14314 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14316 strtod: avoid C99 decl-after-statement
14317 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14319 2009-02-24 Eric Blake <ebb9@byu.net>
14321 strtod: detect HP-UX 11.31 bug
14322 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14323 Reported by Gary V. Vaughan.
14325 2009-02-23 Bruno Haible <bruno@clisp.org>
14327 Fix invalid read past end of memory block.
14328 * lib/vasnprintf.c (DCHAR_SET): Define.
14329 (local_wcslen): Define only when needed.
14330 (local_strnlen, local_wcsnlen): New functions.
14331 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14332 directives that involve a conversion ourselves.
14333 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14334 wcsnlen, mbrtowc, wcrtomb.
14335 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14336 * tests/test-vasprintf-posix.c (test_function): Likewise.
14337 * tests/test-snprintf-posix.h (test_function): Likewise.
14338 * tests/test-sprintf-posix.h (test_function): Likewise.
14339 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14341 2009-02-22 Bruno Haible <bruno@clisp.org>
14343 Implement new clarified decomposition of Hangul syllables.
14344 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14345 of type LTV, return only a pairwise decomposition.
14346 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14348 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14349 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14350 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14352 2009-02-22 Bruno Haible <bruno@clisp.org>
14354 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14355 zero-length results and shrink excess allocated memory.
14356 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14357 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14358 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14359 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14360 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14361 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14362 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14363 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14364 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14365 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14366 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14367 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14369 2009-02-21 Bruno Haible <bruno@clisp.org>
14371 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14372 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14373 spaces after a period. Put a space between a macro name and its
14374 argument list. Trivial rewordings.
14375 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14376 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14377 (main): Return 0 explicitly.
14379 2009-02-21 Bruno Haible <bruno@clisp.org>
14381 Tests for module 'uninorm/filter'.
14382 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14383 * modules/uninorm/filter-tests: New file.
14385 New module 'uninorm/filter'.
14386 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14387 uninorm_filter_flush, uninorm_filter_free): New declarations.
14388 * lib/uninorm/uninorm-filter.c: New file.
14389 * modules/uninorm/filter: New file.
14391 2009-02-21 Bruno Haible <bruno@clisp.org>
14393 Tests for module 'uninorm/nfkc'.
14394 * tests/uninorm/test-nfkc.c: New file.
14395 * tests/uninorm/test-u8-nfkc.c: New file.
14396 * tests/uninorm/test-u16-nfkc.c: New file.
14397 * tests/uninorm/test-u32-nfkc.c: New file.
14398 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14399 * tests/uninorm/test-u32-nfkc-big.c: New file.
14400 * modules/uninorm/nfkc-tests: New file.
14402 New module 'uninorm/nfkc'.
14403 * lib/uninorm/nfkc.c: New file.
14404 * modules/uninorm/nfkc: New file.
14406 Tests for module 'uninorm/nfkd'.
14407 * tests/uninorm/test-nfkd.c: New file.
14408 * tests/uninorm/test-u8-nfkd.c: New file.
14409 * tests/uninorm/test-u16-nfkd.c: New file.
14410 * tests/uninorm/test-u32-nfkd.c: New file.
14411 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14412 * tests/uninorm/test-u32-nfkd-big.c: New file.
14413 * modules/uninorm/nfkd-tests: New file.
14415 New module 'uninorm/nfkd'.
14416 * lib/uninorm/nfkd.c: New file.
14417 * modules/uninorm/nfkd: New file.
14419 Tests for module 'uninorm/nfc'.
14420 * tests/uninorm/test-nfc.c: New file.
14421 * tests/uninorm/test-u8-nfc.c: New file.
14422 * tests/uninorm/test-u16-nfc.c: New file.
14423 * tests/uninorm/test-u32-nfc.c: New file.
14424 * tests/uninorm/test-u32-nfc-big.sh: New file.
14425 * tests/uninorm/test-u32-nfc-big.c: New file.
14426 * modules/uninorm/nfc-tests: New file.
14428 New module 'uninorm/nfc'.
14429 * lib/uninorm/nfc.c: New file.
14430 * modules/uninorm/nfc: New file.
14432 Tests for module 'uninorm/nfd'.
14433 * tests/uninorm/test-nfd.c: New file.
14434 * tests/uninorm/test-u8-nfd.c: New file.
14435 * tests/uninorm/test-u16-nfd.c: New file.
14436 * tests/uninorm/test-u32-nfd.c: New file.
14437 * tests/uninorm/test-u32-nfd-big.sh: New file.
14438 * tests/uninorm/test-u32-nfd-big.c: New file.
14439 * tests/uninorm/test-u32-normalize-big.h: New file.
14440 * tests/uninorm/test-u32-normalize-big.c: New file.
14441 * tests/uninorm/NormalizationTest.txt: New file, created from
14442 Unicode 5.1.0 NormalizationTest.txt.
14443 * modules/uninorm/nfd-tests: New file.
14445 New module 'uninorm/nfd'.
14446 * lib/uninorm/nfd.c: New file.
14447 * modules/uninorm/nfd: New file.
14449 New module 'uninorm/u32-normalize'.
14450 * lib/uninorm/u32-normalize.c: New file.
14451 * modules/uninorm/u32-normalize: New file.
14453 New module 'uninorm/u16-normalize'.
14454 * lib/uninorm/u16-normalize.c: New file.
14455 * modules/uninorm/u16-normalize: New file.
14457 New module 'uninorm/u8-normalize'.
14458 * lib/uninorm/u8-normalize.c: New file.
14459 * lib/uninorm/normalize-internal.h: New file.
14460 * lib/uninorm/u-normalize-internal.h: New file.
14461 * modules/uninorm/u8-normalize: New file.
14463 New module 'uninorm/decompose-internal'.
14464 * lib/uninorm/decompose-internal.c: New file.
14465 * modules/uninorm/decompose-internal: New file.
14467 Tests for module 'uninorm/composition'.
14468 * tests/uninorm/test-composition.c: New file.
14469 * modules/uninorm/composition-tests: New file.
14471 New module 'uninorm/composition'.
14472 * lib/uninorm/composition.c: New file.
14473 * lib/uninorm/composition-table.gperf: New file, generated by
14475 * modules/uninorm/composition: New file.
14477 Tests for module 'uninorm/compat-decomposition'.
14478 * tests/uninorm/test-compat-decomposition.c: New file.
14479 * modules/uninorm/compat-decomposition-tests: New file.
14481 New module 'uninorm/compat-decomposition'.
14482 * lib/uninorm/decompose-internal.h: New file.
14483 * lib/uninorm/compat-decomposition.c: New file.
14484 * modules/uninorm/compat-decomposition: New file.
14486 Tests for module 'uninorm/canonical-decomposition'.
14487 * tests/uninorm/test-canonical-decomposition.c: New file.
14488 * modules/uninorm/canonical-decomposition-tests: New file.
14490 New module 'uninorm/canonical-decomposition'.
14491 * lib/uninorm/canonical-decomposition.c: New file.
14492 * modules/uninorm/canonical-decomposition: New file.
14494 Tests for module 'uninorm/decomposition'.
14495 * tests/uninorm/test-decomposition.c: New file.
14496 * modules/uninorm/decomposition-tests: New file.
14498 New module 'uninorm/decomposition'.
14499 * lib/uninorm/decomposition.c: New file.
14500 * modules/uninorm/decomposition: New file.
14502 New module 'uninorm/decomposition-table'.
14503 * lib/uninorm/decomposition-table.h: New file.
14504 * lib/uninorm/decomposition-table.c: New file.
14505 * lib/uninorm/decomposition-table1.h: New file, generated by
14507 * lib/uninorm/decomposition-table2.h: New file, generated by
14509 * modules/uninorm/decomposition-table: New file.
14511 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14512 (UC_DECOMP_*): New enumeration items.
14513 (get_decomposition): New function.
14514 (struct decomp_table): New type.
14515 (output_decomposition, output_decomposition_tables): New functions.
14516 (unicode_composition_exclusions): New variable.
14517 (fill_composition_exclusions, debug_output_composition_tables): New
14519 (main): Accept one more argument. Invoke fill_composition_exclusions.
14520 Output decomposition and composition tables.
14522 New module 'uninorm/base'.
14523 * lib/uninorm.h: New file.
14524 * lib/unictype.h: Update comment.
14525 * modules/uninorm/base: New file.
14527 2009-02-21 David Lutterkort <lutter@redhat.com>
14529 Tests for module 'safe-alloc'.
14530 * tests/test-safe-alloc.c: New file.
14531 * modules/safe-alloc-tests: New file.
14533 New module 'safe-alloc'.
14534 * lib/safe-alloc.h: New file.
14535 * lib/safe-alloc.c: New file.
14536 * m4/safe-alloc.m4: New file.
14537 * modules/safe-alloc: New file.
14538 * doc/safe-alloc.texi: New file.
14539 * doc/gnulib.texi: Include it.
14540 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14543 2009-02-18 Bruno Haible <bruno@clisp.org>
14545 Fix link error on non-glibc systems.
14546 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14548 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14550 2009-02-18 Jim Meyering <meyering@redhat.com>
14552 fts: avoid used-uninitialized error due to recent change
14553 * lib/fts.c (fts_read): Guard uses of the new member,
14554 parent->fts_n_dirs_remaining, since it's not relevant for
14555 the parent of a directory specified on the command-line.
14557 2009-02-17 James Youngman <jay@gnu.org>
14558 Bruno Haible <bruno@clisp.org>
14560 * m4/include_next.m4: Reformulate comment.
14562 2009-02-16 Jim Meyering <meyering@redhat.com>
14564 fts: add #if guards so that the fts_lgpl module still builds
14565 * lib/fts.c: Guard just-added hash-table-using parts with
14566 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14567 Reported by Simon Josefsson.
14569 2009-02-15 Bruno Haible <bruno@clisp.org>
14571 * modules/array-mergesort-tests: New file.
14572 * tests/test-array-mergesort.c: New file.
14574 New module 'array-mergesort'.
14575 * modules/array-mergesort: New file.
14576 * lib/array-mergesort.h: New file.
14578 2009-02-15 Bruno Haible <bruno@clisp.org>
14580 Fix 2009-02-07 commit.
14581 * lib/gen-uni-tables.c (output_predicate, output_category,
14582 output_combclass, output_bidi_category, output_decimal_digit,
14583 output_digit, output_numeric, output_mirror, output_scripts,
14584 output_ident_category, output_simple_mapping): Fix format directives.
14585 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14587 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14589 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14590 fixes are available from IBM.
14592 2009-02-13 Jim Meyering <meyering@redhat.com>
14594 fts: arrange not to stat non-directories in more cases
14595 This makes GNU find (when it doesn't need to stat each file)
14596 *much* more efficient at traversing reiserfs file systems.
14597 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14598 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14599 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14600 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14601 (leaf_optimization_applies): New function.
14602 (LCO_hash, LCO_compare): New helper functions.
14603 (link_count_optimize_ok): New function.
14604 (fts_stat): Initialize new member (if dir).
14605 (fts_read): Decrement parent's fts_n_dirs_remaining count if
14606 we've just stat'ed a directory. Skip the stat call when possible.
14608 Note this AFS-related exchange:
14609 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14610 and note find's pioctl call in find/fstype.c.
14611 But that is necessary only if you want to enable the
14612 optimization for AFS, and for now, I don't.
14614 fts: move a function definition "up" (no semantic change)
14615 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14616 "up" to precede upcoming use of a related function.
14618 2009-02-11 Jim Meyering <meyering@redhat.com>
14620 fts: correct internal computation of nlinks (optimization-related)
14621 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14622 whether the current entry is a directory, so don't test it.
14624 2009-02-10 Bruno Haible <bruno@clisp.org>
14626 Tests for module 'uniwbrk/ulc-wordbreaks'.
14627 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14628 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14629 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14631 Tests for module 'uniwbrk/u32-wordbreaks'.
14632 * modules/uniwbrk/u32-wordbreaks-tests: New file.
14633 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14635 Tests for module 'uniwbrk/u16-wordbreaks'.
14636 * modules/uniwbrk/u16-wordbreaks-tests: New file.
14637 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14639 Tests for module 'uniwbrk/u8-wordbreaks'.
14640 * modules/uniwbrk/u8-wordbreaks-tests: New file.
14641 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14643 2009-02-10 Bruno Haible <bruno@clisp.org>
14645 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14647 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14648 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14649 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14651 2009-02-10 Simon Josefsson <simon@josefsson.org>
14653 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14654 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
14656 2009-02-10 Bruno Haible <bruno@clisp.org>
14658 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14659 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14660 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14661 * lib/unilbrk/u8-possible-linebreaks.c: Update.
14662 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14663 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14665 2009-02-09 Simon Josefsson <simon@josefsson.org>
14667 * lib/sockets.h (gl_fd_to_handle): New function.
14669 * tests/test-sockets.c: Call gl_fd_to_handle.
14671 2009-02-09 Bruno Haible <bruno@clisp.org>
14673 * doc/havelib.texi: Document the conventions on bi-arch systems.
14675 2009-02-08 Bruno Haible <bruno@clisp.org>
14677 Document the AC_LIB_LINKFLAGS macro.
14678 * doc/havelib.texi: New file, mostly written on 2005-05-24.
14679 * doc/gnulib.texi: Include it.
14681 2009-02-08 Bruno Haible <bruno@clisp.org>
14683 Fix wrong order of sections, compared to TOC.
14684 * doc/gnulib.texi: Include relocatable-maint.texi after the
14685 "Regular expressions" node, not before.
14687 2009-02-08 Bruno Haible <bruno@clisp.org>
14689 Tests for module 'unicase/totitle'.
14690 * modules/unicase/totitle-tests: New file.
14692 Tests for module 'unicase/tolower'.
14693 * modules/unicase/tolower-tests: New file.
14695 Tests for module 'unicase/toupper'.
14696 * modules/unicase/toupper-tests: New file.
14697 * tests/unicase/test-mapping-part1.h: New file.
14698 * tests/unicase/test-mapping-part2.h: New file.
14700 New module 'unicase/totitle'.
14701 * modules/unicase/totitle: New file.
14702 * lib/unicase/totitle.c: New file.
14704 New module 'unicase/tolower'.
14705 * modules/unicase/tolower: New file.
14706 * lib/unicase/tolower.c: New file.
14708 New module 'unicase/toupper'.
14709 * modules/unicase/toupper: New file.
14710 * lib/unicase/toupper.c: New file.
14711 * lib/unicase/simple-mapping.h: New file.
14713 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14714 (mapping_table): New structure.
14715 (output_simple_mapping): New function.
14716 (main): Invoke output_simple_mapping_test and output_simple_mapping.
14717 * modules/gen-uni-tables (Description): Update.
14718 * lib/unicase/toupper.h: New file, automatically generated by
14720 * lib/unicase/tolower.h: New file, automatically generated by
14722 * lib/unicase/totitle.h: New file, automatically generated by
14724 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14726 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14728 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14731 New module 'unicase/base'.
14732 * modules/unicase/base: New file.
14733 * lib/unicase.h: New file.
14735 2009-02-08 Bruno Haible <bruno@clisp.org>
14737 New module 'uniwbrk/ulc-wordbreaks'.
14738 * modules/uniwbrk/ulc-wordbreaks: New file.
14739 * lib/uniwbrk/ulc-wordbreaks.c: New file.
14741 New module 'uniwbrk/u32-wordbreaks'.
14742 * modules/uniwbrk/u32-wordbreaks: New file.
14743 * lib/uniwbrk/u32-wordbreaks.c: New file.
14745 New module 'uniwbrk/u16-wordbreaks'.
14746 * modules/uniwbrk/u16-wordbreaks: New file.
14747 * lib/uniwbrk/u16-wordbreaks.c: New file.
14749 New module 'uniwbrk/u8-wordbreaks'.
14750 * modules/uniwbrk/u8-wordbreaks: New file.
14751 * lib/uniwbrk/u8-wordbreaks.c: New file.
14752 * lib/uniwbrk/u-wordbreaks.h: New file.
14754 New module 'uniwbrk/table'.
14755 * modules/uniwbrk/table: New file.
14756 * lib/uniwbrk/wbrktable.h: New file.
14757 * lib/uniwbrk/wbrktable.c: New file.
14759 New module 'uniwbrk/wordbreak-property'.
14760 * modules/uniwbrk/wordbreak-property: New file.
14761 * lib/uniwbrk/wordbreak-property.c: New file.
14763 * lib/gen-uni-tables.c (WBP_*): New enum items.
14764 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14765 (unicode_org_wbp): New variable.
14766 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14768 (wbp_table): New structure.
14769 (output_wbp, output_wbrk_tables): New functions.
14770 (main): Accept additional argument. Invoke fill_org_wbp,
14771 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14772 output_wbrk_tables.
14773 * modules/gen-uni-tables (Description): Update.
14774 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14777 New module 'uniwbrk/base'.
14778 * modules/uniwbrk/base: New file.
14779 * lib/uniwbrk.h: New file.
14781 2009-02-08 Bruno Haible <bruno@clisp.org>
14783 Update to Unicode 5.1.0.
14784 * lib/gen-uni-tables.c (is_property_alphabetic): Include
14786 (is_property_default_ignorable_code_point): Don't include characters
14787 of category Cc or Cs and not-a-characters.
14788 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14789 U+0D79, U+109E, U+109F, U+A60C.
14790 * lib/unictype/bidi_of.h: Regenerated.
14791 * lib/unictype/blocks.h: Regenerated.
14792 * lib/unictype/categ_C.h: Regenerated.
14793 * lib/unictype/categ_Cf.h: Regenerated.
14794 * lib/unictype/categ_Cn.h: Regenerated.
14795 * lib/unictype/categ_L.h: Regenerated.
14796 * lib/unictype/categ_Ll.h: Regenerated.
14797 * lib/unictype/categ_Lm.h: Regenerated.
14798 * lib/unictype/categ_Lo.h: Regenerated.
14799 * lib/unictype/categ_Lu.h: Regenerated.
14800 * lib/unictype/categ_M.h: Regenerated.
14801 * lib/unictype/categ_Mc.h: Regenerated.
14802 * lib/unictype/categ_Me.h: Regenerated.
14803 * lib/unictype/categ_Mn.h: Regenerated.
14804 * lib/unictype/categ_N.h: Regenerated.
14805 * lib/unictype/categ_Nd.h: Regenerated.
14806 * lib/unictype/categ_Nl.h: Regenerated.
14807 * lib/unictype/categ_No.h: Regenerated.
14808 * lib/unictype/categ_P.h: Regenerated.
14809 * lib/unictype/categ_Pd.h: Regenerated.
14810 * lib/unictype/categ_Pe.h: Regenerated.
14811 * lib/unictype/categ_Pf.h: Regenerated.
14812 * lib/unictype/categ_Pi.h: Regenerated.
14813 * lib/unictype/categ_Po.h: Regenerated.
14814 * lib/unictype/categ_Ps.h: Regenerated.
14815 * lib/unictype/categ_S.h: Regenerated.
14816 * lib/unictype/categ_Sk.h: Regenerated.
14817 * lib/unictype/categ_Sm.h: Regenerated.
14818 * lib/unictype/categ_So.h: Regenerated.
14819 * lib/unictype/categ_of.h: Regenerated.
14820 * lib/unictype/combining.h: Regenerated.
14821 * lib/unictype/ctype_alnum.h: Regenerated.
14822 * lib/unictype/ctype_alpha.h: Regenerated.
14823 * lib/unictype/ctype_graph.h: Regenerated.
14824 * lib/unictype/ctype_lower.h: Regenerated.
14825 * lib/unictype/ctype_print.h: Regenerated.
14826 * lib/unictype/ctype_punct.h: Regenerated.
14827 * lib/unictype/ctype_upper.h: Regenerated.
14828 * lib/unictype/decdigit.h: Regenerated.
14829 * lib/unictype/digit.h: Regenerated.
14830 * lib/unictype/mirror.h: Regenerated.
14831 * lib/unictype/numeric.h: Regenerated.
14832 * lib/unictype/pr_alphabetic.h: Regenerated.
14833 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14834 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14835 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14836 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14837 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14838 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14839 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14840 * lib/unictype/pr_combining.h: Regenerated.
14841 * lib/unictype/pr_dash.h: Regenerated.
14842 * lib/unictype/pr_decimal_digit.h: Regenerated.
14843 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14844 * lib/unictype/pr_deprecated.h: Regenerated.
14845 * lib/unictype/pr_diacritic.h: Regenerated.
14846 * lib/unictype/pr_extender.h: Regenerated.
14847 * lib/unictype/pr_format_control.h: Regenerated.
14848 * lib/unictype/pr_grapheme_base.h: Regenerated.
14849 * lib/unictype/pr_grapheme_extend.h: Regenerated.
14850 * lib/unictype/pr_grapheme_link.h: Regenerated.
14851 * lib/unictype/pr_id_continue.h: Regenerated.
14852 * lib/unictype/pr_id_start.h: Regenerated.
14853 * lib/unictype/pr_ideographic.h: Regenerated.
14854 * lib/unictype/pr_ignorable_control.h: Regenerated.
14855 * lib/unictype/pr_lowercase.h: Regenerated.
14856 * lib/unictype/pr_math.h: Regenerated.
14857 * lib/unictype/pr_numeric.h: Regenerated.
14858 * lib/unictype/pr_other_alphabetic.h: Regenerated.
14859 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14860 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14861 * lib/unictype/pr_other_id_continue.h: Regenerated.
14862 * lib/unictype/pr_other_lowercase.h: Regenerated.
14863 * lib/unictype/pr_other_math.h: Regenerated.
14864 * lib/unictype/pr_punctuation.h: Regenerated.
14865 * lib/unictype/pr_sentence_terminal.h: Regenerated.
14866 * lib/unictype/pr_soft_dotted.h: Regenerated.
14867 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14868 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14869 * lib/unictype/pr_unified_ideograph.h: Regenerated.
14870 * lib/unictype/pr_uppercase.h: Regenerated.
14871 * lib/unictype/pr_xid_continue.h: Regenerated.
14872 * lib/unictype/pr_xid_start.h: Regenerated.
14873 * lib/unictype/pr_zero_width.h: Regenerated.
14874 * lib/unictype/scripts.h: Regenerated.
14875 * lib/unictype/scripts_byname.gperf: Regenerated.
14876 * lib/unictype/sy_java_ident.h: Regenerated.
14877 * lib/unilbrk/lbrkprop1.h: Regenerated.
14878 * lib/unilbrk/lbrkprop2.h: Regenerated.
14879 * tests/unictype/test-categ_C.c: Regenerated.
14880 * tests/unictype/test-categ_Cf.c: Regenerated.
14881 * tests/unictype/test-categ_Cn.c: Regenerated.
14882 * tests/unictype/test-categ_L.c: Regenerated.
14883 * tests/unictype/test-categ_Ll.c: Regenerated.
14884 * tests/unictype/test-categ_Lm.c: Regenerated.
14885 * tests/unictype/test-categ_Lo.c: Regenerated.
14886 * tests/unictype/test-categ_Lu.c: Regenerated.
14887 * tests/unictype/test-categ_M.c: Regenerated.
14888 * tests/unictype/test-categ_Mc.c: Regenerated.
14889 * tests/unictype/test-categ_Me.c: Regenerated.
14890 * tests/unictype/test-categ_Mn.c: Regenerated.
14891 * tests/unictype/test-categ_N.c: Regenerated.
14892 * tests/unictype/test-categ_Nd.c: Regenerated.
14893 * tests/unictype/test-categ_Nl.c: Regenerated.
14894 * tests/unictype/test-categ_No.c: Regenerated.
14895 * tests/unictype/test-categ_P.c: Regenerated.
14896 * tests/unictype/test-categ_Pd.c: Regenerated.
14897 * tests/unictype/test-categ_Pe.c: Regenerated.
14898 * tests/unictype/test-categ_Pf.c: Regenerated.
14899 * tests/unictype/test-categ_Pi.c: Regenerated.
14900 * tests/unictype/test-categ_Po.c: Regenerated.
14901 * tests/unictype/test-categ_Ps.c: Regenerated.
14902 * tests/unictype/test-categ_S.c: Regenerated.
14903 * tests/unictype/test-categ_Sk.c: Regenerated.
14904 * tests/unictype/test-categ_Sm.c: Regenerated.
14905 * tests/unictype/test-categ_So.c: Regenerated.
14906 * tests/unictype/test-ctype_alnum.c: Regenerated.
14907 * tests/unictype/test-ctype_alpha.c: Regenerated.
14908 * tests/unictype/test-ctype_graph.c: Regenerated.
14909 * tests/unictype/test-ctype_lower.c: Regenerated.
14910 * tests/unictype/test-ctype_print.c: Regenerated.
14911 * tests/unictype/test-ctype_punct.c: Regenerated.
14912 * tests/unictype/test-ctype_upper.c: Regenerated.
14913 * tests/unictype/test-decdigit.h: Regenerated.
14914 * tests/unictype/test-digit.h: Regenerated.
14915 * tests/unictype/test-numeric.h: Regenerated.
14916 * tests/unictype/test-pr_alphabetic.c: Regenerated.
14917 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14918 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14919 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14920 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14921 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14922 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14923 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14924 * tests/unictype/test-pr_combining.c: Regenerated.
14925 * tests/unictype/test-pr_dash.c: Regenerated.
14926 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14927 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14928 * tests/unictype/test-pr_deprecated.c: Regenerated.
14929 * tests/unictype/test-pr_diacritic.c: Regenerated.
14930 * tests/unictype/test-pr_extender.c: Regenerated.
14931 * tests/unictype/test-pr_format_control.c: Regenerated.
14932 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14933 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14934 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14935 * tests/unictype/test-pr_id_continue.c: Regenerated.
14936 * tests/unictype/test-pr_id_start.c: Regenerated.
14937 * tests/unictype/test-pr_ideographic.c: Regenerated.
14938 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14939 * tests/unictype/test-pr_lowercase.c: Regenerated.
14940 * tests/unictype/test-pr_math.c: Regenerated.
14941 * tests/unictype/test-pr_numeric.c: Regenerated.
14942 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14943 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14945 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14946 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14947 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14948 * tests/unictype/test-pr_other_math.c: Regenerated.
14949 * tests/unictype/test-pr_punctuation.c: Regenerated.
14950 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14951 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14952 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14953 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14954 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14955 * tests/unictype/test-pr_uppercase.c: Regenerated.
14956 * tests/unictype/test-pr_xid_continue.c: Regenerated.
14957 * tests/unictype/test-pr_xid_start.c: Regenerated.
14958 * tests/unictype/test-pr_zero_width.c: Regenerated.
14960 Update to Unicode 5.1.0.
14961 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14962 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14963 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14964 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14965 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14966 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14967 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14968 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14969 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14970 (nonspacing_table_ind): Update.
14971 * tests/uniwidth/test-uc_width2.sh: Update expected result.
14973 Update to Unicode 5.1.0.
14974 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14976 * lib/uniname/uniname.c (unicode_character_name,
14977 unicode_name_character): Add the range 0x1Fxxx to the code transform.
14978 * lib/uniname/uninames.h: Regenerated.
14979 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14981 2009-02-07 Bruno Haible <bruno@clisp.org>
14983 Merge gen-ctype and gen-lbrk into a single program.
14984 * lib/gen-uni-tables.c: New file, incorporating
14985 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14986 Add directory prefixes to the names of the generated files.
14987 * lib/unictype/gen-ctype.c: Remove file.
14988 * lib/unilbrk/gen-lbrk.c: Remove file.
14989 * modules/gen-uni-tables: New file.
14990 * modules/unictype/gen-ctype: Remove file.
14991 * modules/unilbrk/gen-lbrk: Remove file.
14993 2009-02-07 Bruno Haible <bruno@clisp.org>
14995 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14997 New module 'unistr/u32-strcoll'.
14998 * modules/unistr/u32-strcoll: New file.
14999 * lib/unistr/u32-strcoll.c: New file.
15001 New module 'unistr/u16-strcoll'.
15002 * modules/unistr/u16-strcoll: New file.
15003 * lib/unistr/u16-strcoll.c: New file.
15005 New module 'unistr/u8-strcoll'.
15006 * modules/unistr/u8-strcoll: New file.
15007 * lib/unistr/u8-strcoll.c: New file.
15008 * lib/unistr/u-strcoll.h: New file.
15010 2009-02-07 Bruno Haible <bruno@clisp.org>
15012 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15013 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15014 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15015 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15016 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15017 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15019 2009-02-07 Bruno Haible <bruno@clisp.org>
15022 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15023 output_combclass, output_bidi_category, output_decimal_digit,
15024 output_digit, output_numeric, output_mirror, output_scripts,
15025 output_ident_category): Use proper width specifier in format strings.
15027 2009-02-07 Bruno Haible <bruno@clisp.org>
15029 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15032 2009-02-07 Jim Meyering <meyering@redhat.com>
15034 regex: avoid compilation failure with upcoming gcc-4.4
15035 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15036 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15037 "... error: integer overflow in preprocessor expression".
15039 2009-02-05 Ben Pfaff <blp@gnu.org>
15041 Fix link errors on Windows when close module is used.
15042 * modules/close: Add $(LIB_CLOSE) to Link section.
15043 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15044 $(LIB_CLOSE) on Windows.
15046 2009-02-05 Jim Meyering <meyering@redhat.com>
15048 still avoid unused-parameter warnings, but do it cleanly
15049 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15050 (get_fs_usage): Cast to void instead.
15051 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15052 (dev_from_mount_options, read_file_system_list): Cast to void.
15053 Prompted by Bruno Haible.
15055 2009-02-04 Jim Meyering <meyering@redhat.com>
15057 fsusage.c: correct copyright year
15058 * lib/fsusage.c: Reflect year in which the change is pushed into
15060 avoid misc. warnings
15061 * lib/fsusage.c (UNUSED_PARAM): Define.
15062 (get_fs_usage): Mark parameter "disk" as unused.
15063 * lib/getugroups.c (getgrent): Use "void" in prototype.
15064 * lib/mountlist.c: Mark unused parameters.
15065 (read_file_system_list): Declare a local with "const".
15066 * lib/nanosleep.c (getnow): Declare static.
15067 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15069 dirfd: set errno upon failure
15070 * lib/dirfd.c: Include <errno.h>.
15071 Set errno to ENOTSUP when returning -1.
15072 * modules/dirfd (Depends-on): Add errno.
15073 Suggested by John Kodis <kodis@comcast.net>.
15075 2009-02-01 Bruno Haible <bruno@clisp.org>
15077 Don't assume sizeof (long) >= sizeof (void *).
15078 * lib/memcmp.c: Include stdint.h.
15079 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15080 srcp2 to 'const byte *'.
15081 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15082 types to uintptr_t.
15083 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15084 * modules/memcmp (Depends-on): Add stdint.
15085 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15087 2009-01-30 Eric Blake <ebb9@byu.net>
15089 fix more require-before-expand issues
15090 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15091 expand, AC_PROG_AWK.
15092 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15094 2009-01-28 Eric Blake <ebb9@byu.net>
15096 version-etc: use consistent URL formatting
15097 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15098 Improve formatting. Use fputs for string without %.
15100 2009-01-28 Jim Meyering <meyering@redhat.com>
15102 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15103 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15104 "underquoted definition of NAME" from autoconf-2.59.
15106 2009-01-28 Bruno Haible <bruno@clisp.org>
15108 * doc/gnulib.texi: Add "Obsolete modules" to index.
15110 2009-01-28 Jim Meyering <meyering@redhat.com>
15112 useless-if-before-free: recognize more variants
15113 * build-aux/useless-if-before-free: Also recognize e.g.,
15114 if (NULL != p) free (p);
15116 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15118 test-getaddrinfo: skip (don't fail) this test when there's no network
15119 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15120 on the presumption that it means you lack network access.
15122 2009-01-26 Jim Meyering <meyering@redhat.com>
15124 fflush: avoid warnings on modern systems
15125 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15126 pos and result, into scopes where they're used.
15128 2009-01-26 Eric Blake <ebb9@byu.net>
15130 Silence warning reintroduced by recent extensions patch.
15131 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15132 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15135 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15136 * m4/00gnulib.m4: New file.
15137 * gnulib-tool (func_get_filelist): Always use it.
15138 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15139 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15141 2009-01-25 Bruno Haible <bruno@clisp.org>
15143 Make test-quotearg work on MacOS X and AIX.
15144 * tests/test-quotearg.sh: New file.
15145 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15146 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15147 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15148 include <libintl.h>.
15149 (fake_locale): Remove variable.
15150 (gettext, dgettext, dcgettext): Remove functions.
15151 (main): Instead of setting a fake locale, set a real locale. Call
15152 textdomain and bindtextdomain.
15153 * modules/quotearg-tests (Files): Add the new files.
15154 (Depends-on): Add gettext, setenv, unsetenv.
15155 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15156 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15157 Augment TESTS_ENVIRONMENT.
15159 2009-01-25 Bruno Haible <bruno@clisp.org>
15161 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15162 fr_FR.ISO8859-1 locale on MacOS X.
15163 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15164 ja_JP.eucJP locale on MacOS X.
15165 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15166 zh_CN.GB18030 locale on MacOS X.
15168 2009-01-25 Bruno Haible <bruno@clisp.org>
15170 Avoid link errors on MacOS X 10.3.
15171 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15172 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15174 2009-01-25 Bruno Haible <bruno@clisp.org>
15176 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15177 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15178 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15179 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15180 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15181 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15182 posix_spawnattr_init, posix_spawnattr_setsigmask,
15183 posix_spawnattr_setflags, posix_spawnattr_destroy.
15185 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15186 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15187 * modules/execute (Files): Remove m4/posix_spawn.m4.
15188 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15189 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15190 posix_spawnattr_init, posix_spawnattr_setsigmask,
15191 posix_spawnattr_setflags, posix_spawnattr_destroy.
15193 2009-01-25 Bruno Haible <bruno@clisp.org>
15195 * lib/glthread/threadlib.c: Include <stdlib.h>.
15197 2009-01-25 Bruno Haible <bruno@clisp.org>
15199 * lib/glthread/threadlib.c (dummy): New declaration.
15201 2009-01-25 Bruno Haible <bruno@clisp.org>
15203 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15204 multibyte characters also for the GB18030 encoding. Don't crash when
15205 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15207 2009-01-25 Bruno Haible <bruno@clisp.org>
15209 Avoid redefining 'struct random_data' on OSF/1 5.1.
15210 * lib/stdlib.in.h: Include <random.h> if it exists.
15211 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15212 HAVE_RANDOM_H. Include <random.h> when testing whether
15213 'struct random_data' exists.
15214 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15216 2009-01-25 Bruno Haible <bruno@clisp.org>
15218 Don't install charset.alias on MacOS X >= 10.3.
15219 * lib/localcharset.c (DARWIN7): New macro.
15220 (get_charset_aliases): Hardcode the result for Darwin7.
15221 * modules/localcharset (install-exec-local): Don't install
15222 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15224 2009-01-25 Bruno Haible <bruno@clisp.org>
15226 Don't install charset.alias on mingw and Cygwin.
15227 * modules/localcharset (install-exec-local): Don't install
15228 charset.alias on mingw and Cygwin, if the file does not yet exist.
15229 The result for these platforms is hardcoded in localcharset.c.
15231 2009-01-25 Bruno Haible <bruno@clisp.org>
15233 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15234 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15235 before requiring AC_USE_SYSTEM_EXTENSIONS.
15237 2009-01-25 Jim Meyering <meyering@redhat.com>
15239 c-strtod: avoid warnings
15240 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15241 "assignment discards qualifiers from pointer target type" warnings.
15243 2009-01-24 Bruno Haible <bruno@clisp.org>
15245 Add support for non-UTF-8 locales on MacOS X.
15246 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15247 canonical encodings. For Darwin 7 and newer, don't map traditional
15248 encodings to UTF-8.
15249 Reported by Vincent Lefevre <vincent@vinc17.org>
15250 at <http://savannah.gnu.org/bugs/?25235>.
15252 2009-01-24 Bruno Haible <bruno@clisp.org>
15254 * doc/gnulib.texi (Obsolete modules): New section.
15255 Reported by Mike Frysinger <vapier@gentoo.org>.
15257 2009-01-24 Bruno Haible <bruno@clisp.org>
15259 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15262 2009-01-24 Bruno Haible <bruno@clisp.org>
15264 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15265 Reported by Eric Blake.
15267 2009-01-24 Bruno Haible <bruno@clisp.org>
15269 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15270 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15271 Reported by Gary V. Vaughan <gary@gnu.org>.
15273 2009-01-24 Bruno Haible <bruno@clisp.org>
15275 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15277 2009-01-23 Bruno Haible <bruno@clisp.org>
15279 Make c-strtod, c-strtold usable in libraries.
15280 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15281 (C_STRTOD): Call strdup instead of xstrdup.
15282 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15283 * modules/c-strtold (Depends-on): Likewise.
15284 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15285 * NEWS: Mention the change.
15286 Reported by Michael Gold <mgold@ncf.ca>.
15288 2009-01-23 Jim Meyering <meyering@redhat.com>
15290 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15291 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15292 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15294 2009-01-23 Simon Josefsson <simon@josefsson.org>
15296 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15298 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15299 * modules/version-etc (Description): Update.
15301 2009-01-22 Bruno Haible <bruno@clisp.org>
15303 Cache the C locale object.
15304 * lib/c-strtod.c (c_locale_cache): New variable.
15305 (c_locale): New function.
15306 (C_STRTOD): Use it, and don't call freelocale.
15307 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15308 Suggested by Paolo Bonzini.
15310 2009-01-21 Bruno Haible <bruno@clisp.org>
15312 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15313 conditions other than overflow.
15315 2009-01-21 Bruno Haible <bruno@clisp.org>
15317 * lib/c-strtod.c: Include errno.h.
15318 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15319 value from STRTOD_L and STRTOD.
15321 2009-01-21 Bruno Haible <bruno@clisp.org>
15322 and Jim Meyering <meyering@redhat.com>
15324 nanosleep: skip configure test (fail it) for apple universal builds
15325 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15326 universal builds, assume that nanosleep does not work.
15327 * modules/nanosleep (Depends-on): Add multiarch.
15329 mktime: skip configure test (fail it) for apple universal builds
15330 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15331 universal builds, assume that mktime does not work.
15332 * modules/mktime (Depends-on): Add multiarch.
15334 2009-01-21 Eric Blake <ebb9@byu.net>
15336 multiarch: avoid expand-before-require warning
15337 * modules/multiarch (configure.ac): Require, rather than expand,
15339 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15340 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15341 enforce that all clients require it. Partial reversion of
15344 error: avoid expand-before-require warning
15345 * modules/errno (configure.ac): Require, rather than expand,
15347 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15348 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15349 enforce that all clients require it.
15351 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15352 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15353 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15354 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15356 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15359 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15361 regex: do not depend on obsolete modules.
15362 * modules/regex: Remove memcmp and memmove.
15364 2009-01-20 Bruno Haible <bruno@clisp.org>
15366 Make the 'link' module link on Windows NT 4.
15367 * lib/link.c (_WIN32_WINNT): Don't define.
15368 (CreateHardLinkFuncType): New type.
15369 (CreateHardLinkFunc, initialized): New variables.
15370 (initialize): New function.
15371 (link): Invoke CreateHardLink indirectly through the function pointer.
15373 2009-01-20 Bruno Haible <bruno@clisp.org>
15375 Fix compilation failure on mingw.
15376 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15378 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15380 * doc/c-strtod.texi: Mention a couple of restrictions.
15382 2009-01-20 Jim Meyering <meyering@redhat.com>
15384 gettimeofday: move more declarations out of functions
15385 * lib/gettimeofday.c: Move extern declarations of tzset and
15386 gmtime out of containing functions. Prompted by Bruno Haible.
15388 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15390 regex: do not depend on obsolete modules.
15391 * modules/regex: Remove memcmp and memmove.
15393 2009-01-19 Bruno Haible <bruno@clisp.org>
15395 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15396 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15397 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15398 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15399 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15401 2009-01-19 Bruno Haible <bruno@clisp.org>
15403 * tests/test-link.c: Include <errno.h>.
15404 (main): Exit with code 77 when a hard link cannot be created due to
15406 * tests/test-link.sh: Skip test when a hard link cannot be created due
15407 to the file system.
15408 Suggested by Eric Blake.
15410 2009-01-19 Martin Lambers <marlam@marlam.de>
15412 * modules/link-tests: New file.
15413 * tests/test-link.sh: New file.
15414 * tests/test-link.c: New file.
15416 2009-01-19 Eric Blake <ebb9@byu.net>
15418 doc: mention another function added in cygwin 1.7.0
15419 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15420 Another new function in cygwin 1.7.
15422 2009-01-19 Bruno Haible <bruno@clisp.org>
15424 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15425 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15426 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15427 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15428 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15429 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15430 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15431 * m4/md4.m4 (gl_MD4): Likewise.
15432 * m4/md5.m4 (gl_MD5): Likewise.
15433 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15434 * m4/sha1.m4 (gl_SHA1): Likewise.
15435 * m4/sha256.m4 (gl_SHA256): Likewise.
15436 * m4/sha512.m4 (gl_SHA512): Likewise.
15438 2009-01-19 Bruno Haible <bruno@clisp.org>
15440 * modules/uniname/uniname-tests (Depends-on): Add progname.
15441 * tests/uniname/test-uninames.c: Include progname.h.
15442 (main): Call set_program_name.
15444 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15445 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15446 (main): Call set_program_name.
15448 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15449 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15450 (main): Call set_program_name.
15452 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15453 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15454 (main): Call set_program_name.
15456 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15457 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15458 (main): Call set_program_name.
15460 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15461 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15462 (main): Call set_program_name.
15464 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15465 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15466 (main): Call set_program_name.
15468 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15469 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15470 (main): Call set_program_name.
15472 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15473 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15474 (main): Call set_program_name.
15476 2009-01-19 Eric Blake <ebb9@byu.net>
15478 test-unistd: test previous patch
15479 * tests/test-unistd.c: Test *_FILENO macros.
15481 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15482 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15483 Guarantee a definition.
15484 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15485 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15486 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15487 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15488 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15490 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15491 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15492 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15494 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15495 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15496 (STDERR_FILENO): Likewise.
15497 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15498 (STDERR_FILENO): Likewise.
15499 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15500 (STDERR_FILENO): Likewise.
15501 Reported by Elbert Pol.
15503 2009-01-19 Eric Blake <ebb9@byu.net>
15505 doc: mention more functions added in cygwin 1.7.0
15506 * doc/posix-functions/abort.texi (abort): Update wording related
15508 * doc/posix-functions/daylight.texi (daylight): Likewise.
15509 * doc/posix-functions/optarg.texi (optarg): Likewise.
15510 * doc/posix-functions/optarg.texi (opterr): Likewise.
15511 * doc/posix-functions/optarg.texi (optind): Likewise.
15512 * doc/posix-functions/optarg.texi (optopt): Likewise.
15513 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15514 worked in 1.5.x, and was withdrawn in 1.7.
15515 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15516 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15518 * doc/posix-functions/perror.texi (perror): Likewise.
15519 * doc/posix-functions/printf.texi (printf): Likewise.
15520 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15521 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15522 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15523 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15524 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15525 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15526 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15528 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15530 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15532 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15533 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15535 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15536 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15537 * doc/posix-functions/confstr.texi (confstr): Likewise.
15538 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15539 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15540 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15541 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15542 * doc/posix-functions/fputws.texi (fputws): Likewise.
15543 * doc/posix-functions/fwide.texi (fwide): Likewise.
15544 * doc/posix-functions/getwc.texi (getwc): Likewise.
15545 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15546 * doc/posix-functions/putwc.texi (putwc): Likewise.
15547 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15548 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15549 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15550 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15551 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15552 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15553 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15554 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15555 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15556 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15557 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15559 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15561 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15562 * lib/ioctl.c: Include <sys/ioctl.h>.
15564 2009-01-19 Simon Josefsson <simon@josefsson.org>
15566 * modules/getdate-tests (Depends-on): Add progname.
15567 * tests/test-getdate.c: Use progname module, to avoid link errors
15568 on non-glibc systems.
15570 2009-01-18 Simon Josefsson <simon@josefsson.org>
15572 * modules/filenamecat-tests (Depends-on): Add progname.
15573 * modules/fstrcmp-tests (Depends-on): Likewise.
15575 * tests/test-filenamecat.c: Use progname module, to avoid link
15576 errors on non-glibc systems.
15577 * tests/test-fstrcmp.c: Likewise.
15579 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15581 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15582 * lib/gettimeofday.c: Move extern declaration out of function.
15584 2009-01-18 Bruno Haible <bruno@clisp.org>
15586 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15587 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15588 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15590 2009-01-18 Bruno Haible <bruno@clisp.org>
15592 * lib/strftime.c (MEMPCPY): Remove unused macro.
15593 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15595 2009-01-18 Martin Lambers <marlam@marlam.de>
15598 * lib/unistd.in.h (link): New declaration.
15599 * lib/link.c: New file.
15600 * m4/link.m4: New file.
15601 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15603 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15604 * modules/link: New file.
15605 * doc/posix-functions/link.texi: Mention the new module.
15607 2009-01-18 Bruno Haible <bruno@clisp.org>
15609 * tests/test-avltree_list.c (main): Call set_program_name.
15610 * tests/test-avltree_oset.c (main): Likewise.
15611 * tests/test-obstack-printf.c: Include progname.h.
15612 (main): Call set_program_name.
15613 * tests/test-quotearg.c: Include progname.h.
15614 (main): Call set_program_name.
15615 * tests/test-xmemdup0.c: Include progname.h.
15616 (main): Call set_program_name.
15618 2009-01-18 Bruno Haible <bruno@clisp.org>
15620 New module 'alphasort'.
15621 * lib/dirent.in.h (alphasort): New declaration.
15622 * lib/alphasort.c: New file, from glibc with modifications.
15623 * m4/alphasort.m4: New file.
15624 * modules/alphasort: New file.
15625 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15627 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15629 * doc/posix-functions/alphasort.texi: Mention the new module and the
15630 portability problems.
15632 2009-01-18 Bruno Haible <bruno@clisp.org>
15634 New module 'scandir'.
15635 * lib/dirent.in.h (scandir): New declaration.
15636 * lib/scandir.c: New file, from glibc with modifications.
15637 * m4/scandir.m4: New file.
15638 * modules/scandir: New file.
15639 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15641 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15643 * doc/posix-functions/scandir.texi: Mention the new module and the
15644 portability problems.
15646 2009-01-17 Bruno Haible <bruno@clisp.org>
15648 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15649 Update documentation.
15650 (func_remove_suffix): Escape all dots in the suffix. Update
15652 (func_filter_filelist): Update documentation.
15653 Reported by Ralf Wildenhues.
15655 2009-01-17 Bruno Haible <bruno@clisp.org>
15657 * modules/dprintf-posix-tests: New file.
15658 * tests/test-dprintf-posix.sh: New file.
15659 * tests/test-dprintf-posix.c: New file.
15661 New modules 'dprintf', 'dprintf-posix'.
15662 * lib/stdio.in.h (dprintf): New declaration.
15663 * lib/dprintf.c: New file.
15664 * m4/dprintf.m4: New file.
15665 * m4/dprintf-posix.m4: New file.
15666 * modules/dprintf: New file.
15667 * modules/dprintf-posix: New file.
15668 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15669 HAVE_DPRINTF, REPLACE_DPRINTF.
15670 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15671 HAVE_DPRINTF, REPLACE_DPRINTF.
15672 * doc/posix-functions/dprintf.texi: Mention the new modules.
15674 2009-01-17 Bruno Haible <bruno@clisp.org>
15676 * modules/vdprintf-posix-tests: New file.
15677 * tests/test-vdprintf-posix.sh: New file.
15678 * tests/test-vdprintf-posix.c: New file.
15680 New modules 'vdprintf', 'vdprintf-posix'.
15681 * lib/stdio.in.h (vdprintf): New declaration.
15682 * lib/vdprintf.c: New file.
15683 * m4/vdprintf.m4: New file.
15684 * m4/vdprintf-posix.m4: New file.
15685 * modules/vdprintf: New file.
15686 * modules/vdprintf-posix: New file.
15687 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15688 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15689 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15690 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15691 * doc/posix-functions/vdprintf.texi: Mention the new modules.
15693 2009-01-17 Bruno Haible <bruno@clisp.org>
15695 Fix replacement of fopen on mingw.
15696 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15699 2009-01-17 Bruno Haible <bruno@clisp.org>
15701 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15702 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15704 2009-01-17 Bruno Haible <bruno@clisp.org>
15706 Avoid test-fflush2.sh failure on mingw.
15707 * tests/test-fflush2.c: Include binary-io.h.
15708 (main): Put standard input into binary mode.
15709 * modules/fflush-tests (Depends-on): Add binary-io.
15711 2009-01-17 Bruno Haible <bruno@clisp.org>
15713 * lib/wchar.in.h: In another particular situation, include only the
15714 system's <wchar.h> file.
15715 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15716 Reported by Albert Chin-A-Young <china@thewrittenword.com>
15717 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15719 2009-01-17 Bruno Haible <bruno@clisp.org>
15721 Support for stripping executables in --enable-relocatable.
15722 * build-aux/install-reloc: Expect one more argument, or an environment
15723 variable RELOC_STRIP_PROG. If set, strip the destination program and
15725 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15727 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15728 to set RELOCATABLE_STRIP.
15729 * NEWS: Mention the new Makefile requirement.
15731 2009-01-17 Bruno Haible <bruno@clisp.org>
15733 * build-aux/install-reloc: Remove debugging information left over by
15734 C compiler on MacOS X.
15736 2009-01-17 Bruno Haible <bruno@clisp.org>
15738 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15739 * lib/progreloc.c (find_executable): Fix type of pointer passed to
15740 _NSGetExecutablePath.
15742 2009-01-16 Jim Meyering <meyering@redhat.com>
15744 strerror: avoid warnings about discarding "const"
15745 * lib/strerror.c (rpl_strerror): Instead of returning a const
15746 string from each and every "case", use a variable, and add a single
15747 cast after the switch.
15749 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
15751 * lib/arpa_inet.in.h: Add extern "C" block for C++.
15753 2009-01-16 Bruno Haible <bruno@clisp.org>
15755 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15756 array initializer syntax that also works in C++ mode.
15757 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15759 2009-01-16 Jim Meyering <meyering@redhat.com>
15761 poll: suppress a warning
15762 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15763 to ignore "...unsigned expression < 0 is always false" warnings.
15765 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
15767 poll: remove declarations of unused variables
15768 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15769 sockbuf and optlen.
15771 2009-01-15 Bruno Haible <bruno@clisp.org>
15773 Make fflush-after-ungetc POSIX compliant on BSD systems.
15774 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15775 (clear_ungetc_buffer): Implement also for other systems.
15776 (rpl_fflush): On glibc systems, invoke
15777 clear_ungetc_buffer_preserving_position. Otherwise, invoke
15778 clear_ungetc_buffer after fetching the stream's position, not before.
15780 2009-01-15 Bruno Haible <bruno@clisp.org>
15782 Make fflush-after-ungetc POSIX compliant on glibc systems.
15783 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15785 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15786 (rpl_fflush): On glibc systems, simply call the system's fflush
15787 function after clearing the ungetc buffer.
15788 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15789 Instead, lseek only to the end of file, then use the system's fseeko
15790 for the rest. On glibc systems, reset the EOF indicator bit.
15792 2009-01-15 Jim Meyering <meyering@redhat.com>
15794 openmp.m4: revert quote-adding change, for portability to older autoconf
15795 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15796 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15797 Simon Josefsson noticed the problem when using autoconf-2.61.
15799 2009-01-15 Bruno Haible <bruno@clisp.org>
15801 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15802 * tests/test-fflush2.c (ASSERT): Always fail.
15803 (main): Add two tests for fflush() after ungetc(), taking into account
15804 the Austin Group's clarification.
15805 Suggested by Eric Blake.
15807 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
15809 mktime.m4: remove K&R-style function prototypes
15810 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15811 for the Sun C++ compiler.
15813 2009-01-14 Bruno Haible <bruno@clisp.org>
15815 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15816 while including <wchar.h>.
15817 * lib/wchar.in.h: In two particular situations on HP-UX, include only
15818 the system's <wchar.h> file.
15819 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15821 2009-01-14 Bruno Haible <bruno@clisp.org>
15823 * m4/csharp.m4: Don't mention gettext on the serial number line.
15824 * m4/csharpexec.m4: Likewise.
15825 * m4/eaccess.m4: Likewise.
15826 * m4/javaexec.m4: Likewise.
15827 * m4/sig_atomic_t.m4: Likewise.
15828 * m4/tmpdir.m4: Likewise.
15829 * m4/intldir.m4: Bump gettext version.
15830 * m4/lib-ld.m4: Likewise.
15832 2009-01-14 Bruno Haible <bruno@clisp.org>
15834 * lib/progname.c (set_program_name): Add more comments.
15835 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15837 2009-01-14 Simon Josefsson <simon@josefsson.org>
15839 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15840 were sys/stat.h does not define it.
15842 2009-01-14 Jim Meyering <meyering@redhat.com>
15844 many *.m4 files: improve m4 quoting
15845 99% of this change was performed by running the following commands:
15846 git ls-files | grep '\.m4$' | xargs perl -pi \
15847 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15848 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15849 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15850 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15851 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15852 The remainder were to add Copyright dates, increment serial numbers,
15853 undo some changes in comments, exclude m4/intl.m4, and add quotes
15854 around the "1" in ",1" where the unusual spacing prohibited the
15855 above regexps from doing the job. For more details, see
15856 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15857 * m4/acl.m4: Modified.
15858 * m4/afs.m4: Likewise.
15859 * m4/alloca.m4: Likewise.
15860 * m4/argp.m4: Likewise.
15861 * m4/argz.m4: Likewise.
15862 * m4/atexit.m4: Likewise.
15863 * m4/bison-i18n.m4: Likewise.
15864 * m4/bison.m4: Likewise.
15865 * m4/byteswap.m4: Likewise.
15866 * m4/c-stack.m4: Likewise.
15867 * m4/c-strtod.m4: Likewise.
15868 * m4/calloc.m4: Likewise.
15869 * m4/canonicalize-lgpl.m4: Likewise.
15870 * m4/chown.m4: Likewise.
15871 * m4/clock_time.m4: Likewise.
15872 * m4/codeset.m4: Likewise.
15873 * m4/copy-file.m4: Likewise.
15874 * m4/csharp.m4: Likewise.
15875 * m4/csharpcomp.m4: Likewise.
15876 * m4/csharpexec.m4: Likewise.
15877 * m4/d-ino.m4: Likewise.
15878 * m4/d-type.m4: Likewise.
15879 * m4/dirfd.m4: Likewise.
15880 * m4/double-slash-root.m4: Likewise.
15881 * m4/eaccess.m4: Likewise.
15882 * m4/eealloc.m4: Likewise.
15883 * m4/environ.m4: Likewise.
15884 * m4/errno_h.m4: Likewise.
15885 * m4/euidaccess.m4: Likewise.
15886 * m4/execute.m4: Likewise.
15887 * m4/fatal-signal.m4: Likewise.
15888 * m4/fchdir.m4: Likewise.
15889 * m4/fcntl_h.m4: Likewise.
15890 * m4/fileblocks.m4: Likewise.
15891 * m4/filenamecat.m4: Likewise.
15892 * m4/findprog.m4: Likewise.
15893 * m4/flexmember.m4: Likewise.
15894 * m4/fnmatch.m4: Likewise.
15895 * m4/fopen.m4: Likewise.
15896 * m4/fpending.m4: Likewise.
15897 * m4/fprintf-posix.m4: Likewise.
15898 * m4/free.m4: Likewise.
15899 * m4/frexp.m4: Likewise.
15900 * m4/frexpl.m4: Likewise.
15901 * m4/fsusage.m4: Likewise.
15902 * m4/ftruncate.m4: Likewise.
15903 * m4/gc-camellia.m4: Likewise.
15904 * m4/gc-random.m4: Likewise.
15905 * m4/gc.m4: Likewise.
15906 * m4/getaddrinfo.m4: Likewise.
15907 * m4/getcwd-abort-bug.m4: Likewise.
15908 * m4/getcwd-path-max.m4: Likewise.
15909 * m4/getdate.m4: Likewise.
15910 * m4/getdomainname.m4: Likewise.
15911 * m4/getgroups.m4: Likewise.
15912 * m4/gethostname.m4: Likewise.
15913 * m4/gethrxtime.m4: Likewise.
15914 * m4/getline.m4: Likewise.
15915 * m4/getloadavg.m4: Likewise.
15916 * m4/getndelim2.m4: Likewise.
15917 * m4/getpass.m4: Likewise.
15918 * m4/gettext.m4: Likewise.
15919 * m4/gettime.m4: Likewise.
15920 * m4/gettimeofday.m4: Likewise.
15921 * m4/gnulib-common.m4: Likewise.
15922 * m4/group-member.m4: Likewise.
15923 * m4/host-os.m4: Likewise.
15924 * m4/iconv.m4: Likewise.
15925 * m4/iconv_open.m4: Likewise.
15926 * m4/inet_ntop.m4: Likewise.
15927 * m4/inet_pton.m4: Likewise.
15928 * m4/inline.m4: Likewise.
15929 * m4/intldir.m4: Likewise.
15930 * m4/intlmacosx.m4: Likewise.
15931 * m4/intmax.m4: Likewise.
15932 * m4/intmax_t.m4: Likewise.
15933 * m4/inttypes.m4: Likewise.
15934 * m4/inttypes_h.m4: Likewise.
15935 * m4/inttypes-pri.m4: Likewise.
15936 * m4/isapipe.m4: Likewise.
15937 * m4/isnand.m4: Likewise.
15938 * m4/isnanf.m4: Likewise.
15939 * m4/isnanl.m4: Likewise.
15940 * m4/javacomp.m4: Likewise.
15941 * m4/javaexec.m4: Likewise.
15942 * m4/jm-winsz1.m4: Likewise.
15943 * m4/jm-winsz2.m4: Likewise.
15944 * m4/lchown.m4: Likewise.
15945 * m4/lcmessage.m4: Likewise.
15946 * m4/ldexpl.m4: Likewise.
15947 * m4/lib-ld.m4: Likewise.
15948 * m4/lib-link.m4: Likewise.
15949 * m4/libsigsegv.m4: Likewise.
15950 * m4/link-follow.m4: Likewise.
15951 * m4/localcharset.m4: Likewise.
15952 * m4/locale-fr.m4: Likewise.
15953 * m4/locale-ja.m4: Likewise.
15954 * m4/locale-tr.m4: Likewise.
15955 * m4/locale-zh.m4: Likewise.
15956 * m4/lock.m4: Likewise.
15957 * m4/longlong.m4: Likewise.
15958 * m4/ls-mntd-fs.m4: Likewise.
15959 * m4/lstat.m4: Likewise.
15960 * m4/malloc.m4: Likewise.
15961 * m4/mathl.m4: Likewise.
15962 * m4/mbrtowc.m4: Likewise.
15963 * m4/mbstate_t.m4: Likewise.
15964 * m4/mbswidth.m4: Likewise.
15965 * m4/memchr.m4: Likewise.
15966 * m4/memcmp.m4: Likewise.
15967 * m4/memcpy.m4: Likewise.
15968 * m4/memmem.m4: Likewise.
15969 * m4/memmove.m4: Likewise.
15970 * m4/mempcpy.m4: Likewise.
15971 * m4/memrchr.m4: Likewise.
15972 * m4/memset.m4: Likewise.
15973 * m4/minmax.m4: Likewise.
15974 * m4/mkdir-slash.m4: Likewise.
15975 * m4/mkdtemp.m4: Likewise.
15976 * m4/mktime.m4: Likewise.
15977 * m4/mmap-anon.m4: Likewise.
15978 * m4/mountlist.m4: Likewise.
15979 * m4/nanosleep.m4: Likewise.
15980 * m4/nls.m4: Likewise.
15981 * m4/nocrash.m4: Likewise.
15982 * m4/open.m4: Likewise.
15983 * m4/openat.m4: Likewise.
15984 * m4/openmp.m4: Likewise.
15985 * m4/pathmax.m4: Likewise.
15986 * m4/perl.m4: Likewise.
15987 * m4/physmem.m4: Likewise.
15988 * m4/pipe.m4: Likewise.
15989 * m4/po.m4: Likewise.
15990 * m4/poll.m4: Likewise.
15991 * m4/posixtm.m4: Likewise.
15992 * m4/posixver.m4: Likewise.
15993 * m4/printf-frexp.m4: Likewise.
15994 * m4/printf-frexpl.m4: Likewise.
15995 * m4/printf-posix.m4: Likewise.
15996 * m4/printf-posix-rpl.m4: Likewise.
15997 * m4/printf.m4: Likewise.
15998 * m4/progtest.m4: Likewise.
15999 * m4/putenv.m4: Likewise.
16000 * m4/readline.m4: Likewise.
16001 * m4/readlink.m4: Likewise.
16002 * m4/readutmp.m4: Likewise.
16003 * m4/realloc.m4: Likewise.
16004 * m4/regex.m4: Likewise.
16005 * m4/relocatable.m4: Likewise.
16006 * m4/relocatable-lib.m4: Likewise.
16007 * m4/rename-dest-slash.m4: Likewise.
16008 * m4/rename.m4: Likewise.
16009 * m4/rmdir-errno.m4: Likewise.
16010 * m4/rmdir.m4: Likewise.
16011 * m4/roundf.m4: Likewise.
16012 * m4/roundl.m4: Likewise.
16013 * m4/rpmatch.m4: Likewise.
16014 * m4/save-cwd.m4: Likewise.
16015 * m4/selinux-selinux-h.m4: Likewise.
16016 * m4/setenv.m4: Likewise.
16017 * m4/settime.m4: Likewise.
16018 * m4/sig2str.m4: Likewise.
16019 * m4/sig_atomic_t.m4: Likewise.
16020 * m4/signalblocking.m4: Likewise.
16021 * m4/signbit.m4: Likewise.
16022 * m4/sigpipe.m4: Likewise.
16023 * m4/sockets.m4: Likewise.
16024 * m4/sockpfaf.m4: Likewise.
16025 * m4/st_dm_mode.m4: Likewise.
16026 * m4/stat-time.m4: Likewise.
16027 * m4/stdbool.m4: Likewise.
16028 * m4/stdint.m4: Likewise.
16029 * m4/stdint_h.m4: Likewise.
16030 * m4/stpcpy.m4: Likewise.
16031 * m4/stpncpy.m4: Likewise.
16032 * m4/strcase.m4: Likewise.
16033 * m4/strchrnul.m4: Likewise.
16034 * m4/strcspn.m4: Likewise.
16035 * m4/strdup.m4: Likewise.
16036 * m4/strftime.m4: Likewise.
16037 * m4/strndup.m4: Likewise.
16038 * m4/strnlen.m4: Likewise.
16039 * m4/strpbrk.m4: Likewise.
16040 * m4/strptime.m4: Likewise.
16041 * m4/strsep.m4: Likewise.
16042 * m4/strtod.m4: Likewise.
16043 * m4/strtoimax.m4: Likewise.
16044 * m4/strtok_r.m4: Likewise.
16045 * m4/strtol.m4: Likewise.
16046 * m4/strtoll.m4: Likewise.
16047 * m4/strtoul.m4: Likewise.
16048 * m4/strtoull.m4: Likewise.
16049 * m4/strtoumax.m4: Likewise.
16050 * m4/strverscmp.m4: Likewise.
16051 * m4/threadlib.m4: Likewise.
16052 * m4/timegm.m4: Likewise.
16053 * m4/tm_gmtoff.m4: Likewise.
16054 * m4/tmpdir.m4: Likewise.
16055 * m4/tmpfile.m4: Likewise.
16056 * m4/tzset.m4: Likewise.
16057 * m4/uintmax_t.m4: Likewise.
16058 * m4/unlinkdir.m4: Likewise.
16059 * m4/unlocked-io.m4: Likewise.
16060 * m4/uptime.m4: Likewise.
16061 * m4/userspec.m4: Likewise.
16062 * m4/utimbuf.m4: Likewise.
16063 * m4/utime.m4: Likewise.
16064 * m4/utimes-null.m4: Likewise.
16065 * m4/utimes.m4: Likewise.
16066 * m4/vararrays.m4: Likewise.
16067 * m4/vasnprintf.m4: Likewise.
16068 * m4/vfprintf-posix.m4: Likewise.
16069 * m4/vprintf-posix.m4: Likewise.
16070 * m4/wait-process.m4: Likewise.
16071 * m4/wchar_t.m4: Likewise.
16072 * m4/wint_t.m4: Likewise.
16073 * m4/write-any-file.m4: Likewise.
16074 * m4/yield.m4: Likewise.
16076 2009-01-13 Bruno Haible <bruno@clisp.org>
16078 Avoid test-copy-file.sh failures when ACL support insufficient.
16079 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16081 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16082 Reported by Jim Meyering.
16084 2009-01-13 Bruno Haible <bruno@clisp.org>
16086 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16087 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16088 * modules/unistdio/u8-printf-parse (Files): Likewise.
16089 * modules/unistdio/u32-printf-parse (Files): Likewise.
16090 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16092 2009-01-13 Simon Josefsson <simon@josefsson.org>
16094 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16095 and m4/inttypes_h.m4 too.
16097 2009-01-12 Eric Blake <ebb9@byu.net>
16099 tests: IRIX 6.2 cc can't compile -0.0 into .data
16100 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16101 rather than at compile-time.
16102 * tests/test-floorl.c (minus_zero): Likewise.
16103 * tests/test-frexpl.c (minus_zero): Likewise.
16104 * tests/test-isnan.c (minus_zerol): Likewise.
16105 * tests/test-isnanl.h (minus_zero): Likewise.
16106 * tests/test-ldexpl.c (minus_zero): Likewise.
16107 * tests/test-roundl.c (minus_zero): Likewise.
16108 * tests/test-signbit.c (minus_zerol): Likewise.
16109 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16110 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16111 * tests/test-truncl.c (minus_zero): Likewise.
16112 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16113 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16114 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16116 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16118 regex: fix glibc bug 9697
16119 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16122 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16124 regex: fix glibc bug 697
16125 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16126 being NULL also if there are no backreferences.
16128 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16130 regex: merge glibc changes
16131 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16132 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16133 re_string_skip_chars, re_string_reconstruct): Likewise.
16134 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16136 2009-01-07 Jim Meyering <meyering@redhat.com>
16138 poll: filter through cppi
16139 * lib/poll.c: Indent cpp directives to reflect nesting.
16141 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16143 poll: don't return uninitialized
16144 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16146 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16148 avoid compile failure on AIX 6.1
16149 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16150 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16152 2009-01-04 Jim Meyering <meyering@redhat.com>
16154 remove duplicate inclusion of <stdio.h>
16155 * tests/test-fprintf-posix.c: Likewise.
16156 * tests/test-printf-posix.c: Likewise.
16157 * tests/test-snprintf-posix.c: Likewise.
16158 * tests/test-sprintf-posix.c: Likewise.
16159 * tests/test-vasprintf-posix.c: Likewise.
16160 * tests/test-vfprintf-posix.c: Likewise.
16161 * tests/test-vprintf-posix.c: Likewise.
16162 * tests/test-vsnprintf-posix.c: Likewise.
16163 * tests/test-vsprintf-posix.c: Likewise.
16165 2009-01-03 Jim Meyering <meyering@redhat.com>
16167 gnulib-tool: fix sed-based filtering
16168 * gnulib-tool (func_filter_filelist): Remove extra backslash
16169 in sed_fff_filter definition.
16171 2009-01-02 Jim Meyering <meyering@redhat.com>
16173 strftime: avoid compilation failure on Solaris 2.6
16174 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16175 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16176 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16177 be available. Reported by Tom G. Christensen. Details in
16178 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16180 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16181 Bruno Haible <bruno@clisp.org>
16183 Speed up gnulib-tool by doing more string processing through shell
16185 * gnulib-tool (fast_func_append): New variable.
16186 (func_remove_prefix, func_remove_suffix): New functions.
16187 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16188 (func_filter_filelist): New function.
16189 (func_get_dependencies): Use func_remove_suffix instead of sed.
16190 (func_get_automake_snippet): Use func_filter_filelist instead of a
16191 subshell and sed invocation.
16193 2009-01-01 Bruno Haible <bruno@clisp.org>
16195 Fix a security bug.
16196 * gnulib-tool (func_import, import, update): Don't allow the characters
16197 '"', '$', '`', '\' in macro arguments that become part of commands that
16200 2009-01-01 Bruno Haible <bruno@clisp.org>
16202 * gnulib-tool (func_reset_sigpipe): Add more comments.
16204 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16206 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16207 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16208 already know the answer.
16210 2009-01-01 Jim Meyering <meyering@redhat.com>
16212 * lib/version-etc.c (version_etc_va): Update copyright year.
16214 2008-12-30 Bruno Haible <bruno@clisp.org>
16216 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16217 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16218 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16220 2008-12-29 Eric Blake <ebb9@byu.net>
16222 multiarch: avoid autoconf AC_REQUIRE bug
16223 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16224 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16226 Reported by Bruno Haible, and analyzed in
16227 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16229 2008-12-29 Bruno Haible <bruno@clisp.org>
16231 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16232 files in subdirectories correctly.
16233 Reported by Ralf Wildenhues.
16235 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16237 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16238 rather than 'join FILE -', for Solaris join.
16240 2008-12-29 Bruno Haible <bruno@clisp.org>
16242 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16244 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16245 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16246 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16247 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16248 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16249 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16250 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16251 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16252 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16253 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16254 * m4/nls.m4 (AM_NLS): Likewise.
16255 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16256 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16257 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16258 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16259 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16260 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16261 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16262 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16263 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16264 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16265 * m4/xsize.m4 (gl_XSIZE): Likewise.
16266 Suggested by Jim Meyering.
16268 2008-11-17 Bruce Korb <bkorb@gnu.org>
16270 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16271 * lib/parse-duration.c: use a switch instead of cascading if's.
16273 2008-12-29 Eric Blake <ebb9@byu.net>
16275 wchar.h: supply WEOF on Irix 5.3
16276 * lib/wchar.in.h (wint_t): Also supply WEOF.
16277 * lib/wctype.in.h (wint_t): Likewise.
16278 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16279 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16280 Reported by Tom G. Christensen.
16282 2008-12-26 Bruno Haible <bruno@clisp.org>
16284 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16287 2008-12-26 Bruno Haible <bruno@clisp.org>
16289 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16291 2008-12-26 Bruno Haible <bruno@clisp.org>
16293 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16294 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16295 not __STDC_CONSTANT_MACROS.
16296 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16298 2008-12-25 Bruno Haible <bruno@clisp.org>
16300 Add support for universal builds to vasnprintf.
16301 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16302 universal builds, guess no.
16303 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16304 * modules/vasprintf-posix (Depends-on): Likewise.
16305 * modules/fprintf-posix (Depends-on): Likewise.
16306 * modules/vfprintf-posix (Depends-on): Likewise.
16307 * modules/snprintf-posix (Depends-on): Likewise.
16308 * modules/vsnprintf-posix (Depends-on): Likewise.
16309 * modules/sprintf-posix (Depends-on): Likewise.
16310 * modules/vsprintf-posix (Depends-on): Likewise.
16311 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16312 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16313 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16314 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16315 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16316 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16317 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16319 Add support for universal builds to <inttypes.h>.
16320 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16321 _SCNu64_PREFIX): In Apple
16322 universal builds, define directly, using _LP64.
16323 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16324 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16325 * modules/inttypes (Depends-on): Add multiarch.
16326 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16328 Add support for universal builds to <stdint.h>.
16329 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16330 universal builds, define directly, using _LP64.
16331 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16332 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16334 * modules/stdint (Depends-on): Add multiarch.
16335 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16337 New module 'multiarch'.
16338 * modules/multiarch: New file.
16339 * m4/multiarch.m4: New file.
16341 2008-12-25 Bruno Haible <bruno@clisp.org>
16343 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16345 2008-12-25 Bruno Haible <bruno@clisp.org>
16347 * modules/btowc (License): Relicense under LGPLv2+.
16348 * modules/mbsinit (License): Likewise.
16349 * modules/mbrtowc (License): Likewise.
16350 * modules/wcrtomb (License): Likewise.
16351 * modules/streq (License): Likewise.
16352 Reported by David Lutterkort <lutter@redhat.com>.
16354 2008-12-23 Bruno Haible <bruno@clisp.org>
16356 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16358 2008-12-23 Bruno Haible <bruno@clisp.org>
16360 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16361 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16362 GETADDRINFO_LIB, not in LIBS.
16363 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16364 * modules/canon-host (Link): Likewise.
16365 * NEWS: Mention the change.
16366 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16369 2008-12-22 Bruno Haible <bruno@clisp.org>
16371 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16372 * doc/posix-functions/iswalpha_l.texi: Likewise.
16373 * doc/posix-functions/iswblank_l.texi: Likewise.
16374 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16375 * doc/posix-functions/iswctype_l.texi: Likewise.
16376 * doc/posix-functions/iswdigit_l.texi: Likewise.
16377 * doc/posix-functions/iswgraph_l.texi: Likewise.
16378 * doc/posix-functions/iswlower_l.texi: Likewise.
16379 * doc/posix-functions/iswprint_l.texi: Likewise.
16380 * doc/posix-functions/iswpunct_l.texi: Likewise.
16381 * doc/posix-functions/iswspace_l.texi: Likewise.
16382 * doc/posix-functions/iswupper_l.texi: Likewise.
16383 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16384 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16385 * doc/posix-functions/open_wmemstream.texi: Likewise.
16386 * doc/posix-functions/swscanf.texi: Likewise.
16387 * doc/posix-functions/towctrans_l.texi: Likewise.
16388 * doc/posix-functions/towlower.texi: Likewise.
16389 * doc/posix-functions/towlower_l.texi: Likewise.
16390 * doc/posix-functions/towupper.texi: Likewise.
16391 * doc/posix-functions/towupper_l.texi: Likewise.
16392 * doc/posix-functions/vfwprintf.texi: Likewise.
16393 * doc/posix-functions/vfwscanf.texi: Likewise.
16394 * doc/posix-functions/vswscanf.texi: Likewise.
16395 * doc/posix-functions/vwprintf.texi: Likewise.
16396 * doc/posix-functions/vwscanf.texi: Likewise.
16397 * doc/posix-functions/wcpcpy.texi: Likewise.
16398 * doc/posix-functions/wcpncpy.texi: Likewise.
16399 * doc/posix-functions/wcscasecmp.texi: Likewise.
16400 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16401 * doc/posix-functions/wcscoll_l.texi: Likewise.
16402 * doc/posix-functions/wcsdup.texi: Likewise.
16403 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16404 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16405 * doc/posix-functions/wcsnlen.texi: Likewise.
16406 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16407 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16408 * doc/posix-functions/wctrans_l.texi: Likewise.
16409 * doc/posix-functions/wctype_l.texi: Likewise.
16410 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16411 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16412 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16413 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16414 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16415 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16416 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16417 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16418 * doc/glibc-functions/wcschrnul.texi: Likewise.
16419 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16420 * doc/glibc-functions/wcstod_l.texi: Likewise.
16421 * doc/glibc-functions/wcstof_l.texi: Likewise.
16422 * doc/glibc-functions/wcstol_l.texi: Likewise.
16423 * doc/glibc-functions/wcstold_l.texi: Likewise.
16424 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16425 * doc/glibc-functions/wcstoq.texi: Likewise.
16426 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16427 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16428 * doc/glibc-functions/wcstouq.texi: Likewise.
16429 * doc/glibc-functions/wmempcpy.texi: Likewise.
16431 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16432 Eric Blake <ebb9@byu.net>
16433 Paolo Bonzini <bonzini@gnu.org>
16434 Bruno Haible <bruno@clisp.org>
16436 Make c-stack work on Haiku.
16437 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16438 (c_stack_action): Use SA_ONSTACK flag.
16440 2008-12-22 Bruno Haible <bruno@clisp.org>
16442 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16444 2008-12-22 Bruno Haible <bruno@clisp.org>
16446 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16447 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16449 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16451 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16452 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16453 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16454 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16456 2008-12-22 Bruno Haible <bruno@clisp.org>
16458 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16461 2008-12-22 Eric Blake <ebb9@byu.net>
16463 Avoid gcc warnings on cygwin.
16464 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16465 Avoid unused variable.
16466 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16469 2008-12-22 Bruno Haible <bruno@clisp.org>
16471 Remove HAVE_MBRTOWC conditionals.
16472 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16473 (mbscasecmp): Assume mbrtowc function.
16474 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16475 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16476 * lib/mbschr.c: Include mbuiter.h unconditionally.
16477 (mbschr): Assume mbrtowc function.
16478 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16479 (mbscspn): Assume mbrtowc function.
16480 * lib/mbslen.c: Include mbuiter.h unconditionally.
16481 (mbslen): Assume mbrtowc function.
16482 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16483 (mbsncasecmp): Assume mbrtowc function.
16484 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16485 (mbsnlen): Assume mbrtowc function.
16486 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16487 (mbspbrk): Assume mbrtowc function.
16488 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16489 (mbspcasecmp): Assume mbrtowc function.
16490 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16491 (mbsrchr): Assume mbrtowc function.
16492 * lib/mbssep.c: Include mbuiter.h unconditionally.
16493 (mbssep): Assume mbrtowc function.
16494 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16495 (mbsspn): Assume mbrtowc function.
16496 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16497 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16498 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16499 (mbstok_r): Assume mbrtowc function.
16500 * lib/propername.c: Include mbuiter.h unconditionally.
16501 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16502 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16503 (trim2): Assume mbrtowc function.
16504 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16505 (mbsnwidth): Assume mbrtowc function.
16506 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16507 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16508 fallback definitions.
16509 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16511 2008-12-22 Bruno Haible <bruno@clisp.org>
16513 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16515 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16517 * modules/regex: Request emulations for the mb*/wc* functions we need.
16518 * m4/regex.m4: Don't look for those functions here.
16519 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16521 2008-12-22 Bruno Haible <bruno@clisp.org>
16523 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16525 2008-12-21 Bruno Haible <bruno@clisp.org>
16527 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16528 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16529 (Include): Remove conditionalization.
16530 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16531 (Include): Remove conditionalization.
16532 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16533 (Include): Remove conditionalization.
16534 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16535 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16536 * NEWS: Mention the change.
16537 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16538 via Sergey Poznyakoff <gray@gnu.org.ua>.
16540 2008-12-21 Bruno Haible <bruno@clisp.org>
16542 * MODULES.html.sh (Extended multibyte and wide character utilities
16543 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16544 wcrtomb, wcsrtombs.
16545 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16546 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16547 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16548 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16550 2008-12-21 Bruno Haible <bruno@clisp.org>
16552 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16554 2008-12-21 Bruno Haible <bruno@clisp.org>
16556 * modules/wcsnrtombs-tests: New file.
16557 * tests/test-wcsnrtombs1.sh: New file.
16558 * tests/test-wcsnrtombs2.sh: New file.
16559 * tests/test-wcsnrtombs3.sh: New file.
16560 * tests/test-wcsnrtombs4.sh: New file.
16561 * tests/test-wcsnrtombs.c: New file.
16563 New module 'wcsnrtombs'.
16564 * lib/wchar.in.h (wcsnrtombs): New declaration.
16565 * lib/wcsnrtombs.c: New file.
16566 * lib/wcsrtombs-state.c: New file.
16567 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16568 (internal_state): Remove variable.
16569 * m4/wcsnrtombs.m4: New file.
16570 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16572 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16574 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16576 * modules/wcsnrtombs: New file.
16577 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16578 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16580 2008-12-21 Bruno Haible <bruno@clisp.org>
16582 * modules/wcsrtombs-tests: New file.
16583 * tests/test-wcsrtombs1.sh: New file.
16584 * tests/test-wcsrtombs2.sh: New file.
16585 * tests/test-wcsrtombs3.sh: New file.
16586 * tests/test-wcsrtombs4.sh: New file.
16587 * tests/test-wcsrtombs.c: New file.
16589 New module 'wcsrtombs'.
16590 * lib/wchar.in.h (wcsrtombs): New declaration.
16591 * lib/wcsrtombs.c: New file.
16592 * m4/wcsrtombs.m4: New file.
16593 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16594 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16595 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16596 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16597 * modules/wcsrtombs: New file.
16598 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16601 2008-12-21 Bruno Haible <bruno@clisp.org>
16603 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16604 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16605 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16606 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16608 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16609 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16610 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16611 m4/locale-zh.m4, m4/codeset.m4.
16612 * doc/posix-functions/wcrtomb.texi: Document the bug.
16614 2008-12-21 Bruno Haible <bruno@clisp.org>
16616 Work around a btowc() bug on IRIX 6.5.
16617 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16618 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16619 REPLACE_WTOBC if not.
16620 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16621 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16622 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16624 2008-12-21 Bruno Haible <bruno@clisp.org>
16626 * modules/wcrtomb-tests: New file.
16627 * tests/test-wcrtomb.sh: New file.
16628 * tests/test-wcrtomb.c: New file.
16630 New module 'wcrtomb'.
16631 * lib/wchar.in.h (wcrtomb): New declaration.
16632 * lib/wcrtomb.c: New file.
16633 * m4/wcrtomb.m4: New file.
16634 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16636 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16638 * modules/wcrtomb: New file.
16639 * doc/posix-functions/wcrtomb.texi: Mention the new module.
16641 2008-12-21 Bruno Haible <bruno@clisp.org>
16643 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16644 * modules/mbsrtowcs (Files): Likewise.
16645 * modules/wctob (Files): Likewise.
16646 * modules/c-strcase-tests (Files): Likewise.
16647 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16648 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16649 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16650 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16651 * modules/vasnprintf-posix-tests (Files): Likewise.
16653 2008-12-21 William Pursell <bill.pursell@gmail.com>
16655 gitlog-to-changelog: pass all command-line arguments to git-log
16656 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16657 it is sometimes convenient to filter the commits in various ways.
16658 gitlog-to-changelog only allows --since to specify a start date,
16659 but git-log itself supports many other filtering mechanisms.
16660 At the moment, I want to filter by branch name. Rather than
16661 adding a --branch option to gitlog-to-changelog, it seems more
16662 flexible to simply pass all options directly to git-log and let
16663 git do the work. Notice that this effectively makes --since a
16664 redundant option for gitlog-to-changelog, but removing it would
16665 require current usage to change since calls would then require
16666 an additional '--'.
16668 2008-12-21 Bruno Haible <bruno@clisp.org>
16670 * modules/mbsnrtowcs-tests: New file.
16671 * tests/test-mbsnrtowcs1.sh: New file.
16672 * tests/test-mbsnrtowcs2.sh: New file.
16673 * tests/test-mbsnrtowcs3.sh: New file.
16674 * tests/test-mbsnrtowcs4.sh: New file.
16675 * tests/test-mbsnrtowcs.c: New file.
16677 New module 'mbsnrtowcs'.
16678 * lib/wchar.in.h (mbsnrtowcs): New declaration.
16679 * lib/mbsnrtowcs.c: New file.
16680 * lib/mbsrtowcs-state.c: New file.
16681 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16682 (internal_state): Remove variable.
16683 * m4/mbsnrtowcs.m4: New file.
16684 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16686 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16687 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16688 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16689 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16690 * modules/mbsnrtowcs: New file.
16691 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16692 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16693 portability problem.
16695 2008-12-21 Bruno Haible <bruno@clisp.org>
16697 Work around mbsrtowcs bug.
16698 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16699 (gl_FUNC_MBSRTOWCS): Invoke it.
16700 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16702 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16704 2008-12-21 Bruno Haible <bruno@clisp.org>
16706 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16708 2008-12-21 Bruno Haible <bruno@clisp.org>
16710 Update doc for AIX.
16711 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16712 16-bit wchar_t type.
16713 * doc/posix-functions/btowc.texi: Likewise.
16714 * doc/posix-functions/fgetwc.texi: Likewise.
16715 * doc/posix-functions/fgetws.texi: Likewise.
16716 * doc/posix-functions/fputwc.texi: Likewise.
16717 * doc/posix-functions/fputws.texi: Likewise.
16718 * doc/posix-functions/fwide.texi: Likewise.
16719 * doc/posix-functions/fwprintf.texi: Likewise.
16720 * doc/posix-functions/fwscanf.texi: Likewise.
16721 * doc/posix-functions/getwchar.texi: Likewise.
16722 * doc/posix-functions/getwc.texi: Likewise.
16723 * doc/posix-functions/iswalnum.texi: Likewise.
16724 * doc/posix-functions/iswalpha.texi: Likewise.
16725 * doc/posix-functions/iswblank.texi: Likewise.
16726 * doc/posix-functions/iswcntrl.texi: Likewise.
16727 * doc/posix-functions/iswctype.texi: Likewise.
16728 * doc/posix-functions/iswdigit.texi: Likewise.
16729 * doc/posix-functions/iswgraph.texi: Likewise.
16730 * doc/posix-functions/iswlower.texi: Likewise.
16731 * doc/posix-functions/iswprint.texi: Likewise.
16732 * doc/posix-functions/iswpunct.texi: Likewise.
16733 * doc/posix-functions/iswspace.texi: Likewise.
16734 * doc/posix-functions/iswupper.texi: Likewise.
16735 * doc/posix-functions/iswxdigit.texi: Likewise.
16736 * doc/posix-functions/mbrtowc.texi: Likewise.
16737 * doc/posix-functions/mbsrtowcs.texi: Likewise.
16738 * doc/posix-functions/mbstowcs.texi: Likewise.
16739 * doc/posix-functions/mbtowc.texi: Likewise.
16740 * doc/posix-functions/putwchar.texi: Likewise.
16741 * doc/posix-functions/putwc.texi: Likewise.
16742 * doc/posix-functions/swprintf.texi: Likewise.
16743 * doc/posix-functions/tolower.texi: Likewise.
16744 * doc/posix-functions/toupper.texi: Likewise.
16745 * doc/posix-functions/towctrans.texi: Likewise.
16746 * doc/posix-functions/ungetwc.texi: Likewise.
16747 * doc/posix-functions/vswprintf.texi: Likewise.
16748 * doc/posix-functions/wcrtomb.texi: Likewise.
16749 * doc/posix-functions/wcscat.texi: Likewise.
16750 * doc/posix-functions/wcschr.texi: Likewise.
16751 * doc/posix-functions/wcscmp.texi: Likewise.
16752 * doc/posix-functions/wcscoll.texi: Likewise.
16753 * doc/posix-functions/wcscpy.texi: Likewise.
16754 * doc/posix-functions/wcscspn.texi: Likewise.
16755 * doc/posix-functions/wcsftime.texi: Likewise.
16756 * doc/posix-functions/wcslen.texi: Likewise.
16757 * doc/posix-functions/wcsncat.texi: Likewise.
16758 * doc/posix-functions/wcsncmp.texi: Likewise.
16759 * doc/posix-functions/wcsncpy.texi: Likewise.
16760 * doc/posix-functions/wcspbrk.texi: Likewise.
16761 * doc/posix-functions/wcsrchr.texi: Likewise.
16762 * doc/posix-functions/wcsrtombs.texi: Likewise.
16763 * doc/posix-functions/wcsspn.texi: Likewise.
16764 * doc/posix-functions/wcsstr.texi: Likewise.
16765 * doc/posix-functions/wcstod.texi: Likewise.
16766 * doc/posix-functions/wcstof.texi: Likewise.
16767 * doc/posix-functions/wcstoimax.texi: Likewise.
16768 * doc/posix-functions/wcstok.texi: Likewise.
16769 * doc/posix-functions/wcstold.texi: Likewise.
16770 * doc/posix-functions/wcstoll.texi: Likewise.
16771 * doc/posix-functions/wcstol.texi: Likewise.
16772 * doc/posix-functions/wcstombs.texi: Likewise.
16773 * doc/posix-functions/wcstoull.texi: Likewise.
16774 * doc/posix-functions/wcstoul.texi: Likewise.
16775 * doc/posix-functions/wcstoumax.texi: Likewise.
16776 * doc/posix-functions/wcswidth.texi: Likewise.
16777 * doc/posix-functions/wcsxfrm.texi: Likewise.
16778 * doc/posix-functions/wctob.texi: Likewise.
16779 * doc/posix-functions/wctomb.texi: Likewise.
16780 * doc/posix-functions/wctrans.texi: Likewise.
16781 * doc/posix-functions/wctype.texi: Likewise.
16782 * doc/posix-functions/wcwidth.texi: Likewise.
16783 * doc/posix-functions/wmemchr.texi: Likewise.
16784 * doc/posix-functions/wmemcmp.texi: Likewise.
16785 * doc/posix-functions/wmemcpy.texi: Likewise.
16786 * doc/posix-functions/wmemmove.texi: Likewise.
16787 * doc/posix-functions/wmemset.texi: Likewise.
16788 * doc/posix-functions/wprintf.texi: Likewise.
16789 * doc/posix-functions/wscanf.texi: Likewise.
16791 2008-12-21 Bruno Haible <bruno@clisp.org>
16793 Update doc for HP-UX 11.11.
16794 * doc/posix-functions/btowc.texi: Clarify that the function is missing
16795 in HP-UX version 11.00, not in all versions of HP-UX 11.
16796 * doc/posix-functions/fwide.texi: Likewise.
16797 * doc/posix-functions/fwprintf.texi: Likewise.
16798 * doc/posix-functions/fwscanf.texi: Likewise.
16799 * doc/posix-functions/inet_ntop.texi: Likewise.
16800 * doc/posix-functions/inet_pton.texi: Likewise.
16801 * doc/posix-functions/mbrlen.texi: Likewise.
16802 * doc/posix-functions/mbrtowc.texi: Likewise.
16803 * doc/posix-functions/mbsinit.texi: Likewise.
16804 * doc/posix-functions/mbsrtowcs.texi: Likewise.
16805 * doc/posix-functions/swprintf.texi: Likewise.
16806 * doc/posix-functions/swscanf.texi: Likewise.
16807 * doc/posix-functions/towctrans.texi: Likewise.
16808 * doc/posix-functions/vfwprintf.texi: Likewise.
16809 * doc/posix-functions/vswprintf.texi: Likewise.
16810 * doc/posix-functions/vwprintf.texi: Likewise.
16811 * doc/posix-functions/wcrtomb.texi: Likewise.
16812 * doc/posix-functions/wcsrtombs.texi: Likewise.
16813 * doc/posix-functions/wcsstr.texi: Likewise.
16814 * doc/posix-functions/wctob.texi: Likewise.
16815 * doc/posix-functions/wctrans.texi: Likewise.
16816 * doc/posix-functions/wmemchr.texi: Likewise.
16817 * doc/posix-functions/wmemcmp.texi: Likewise.
16818 * doc/posix-functions/wmemcpy.texi: Likewise.
16819 * doc/posix-functions/wmemmove.texi: Likewise.
16820 * doc/posix-functions/wmemset.texi: Likewise.
16821 * doc/posix-functions/wprintf.texi: Likewise.
16822 * doc/posix-functions/wscanf.texi: Likewise.
16824 2008-12-21 Bruno Haible <bruno@clisp.org>
16826 Work around a portability problem.
16827 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16828 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16830 2008-12-20 Bruno Haible <bruno@clisp.org>
16832 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16833 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16834 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16835 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16836 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16838 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16839 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16841 (GNULIB_defined_mbstate_t): New macro.
16842 (mbsinit): Redefine if REPLACE_MBSINIT is set.
16843 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16844 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16845 reuses the system's mbrtowc function but works around the bugs.
16846 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16847 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16849 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16850 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16851 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16852 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16853 REPLACE_MBSINIT if mbsinit needs to be overridden.
16854 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16855 REPLACE_MBSINIT, REPLACE_MBRTOWC.
16856 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16857 REPLACE_MBSINIT, REPLACE_MBRTOWC.
16858 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16860 (Depends): Add mbsinit.
16861 * modules/mbsinit (Depends): Add mbrtowc.
16862 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16864 2008-12-20 Bruno Haible <bruno@clisp.org>
16866 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16867 so that there are no conversion errors on AIX.
16868 * tests/test-mbsrtowcs.c (main): LIkewise.
16870 2008-12-20 Bruno Haible <bruno@clisp.org>
16872 Work around wctob bug on Solaris <= 9.
16873 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16874 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16875 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16876 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16877 * modules/wctob (Files): Add m4/locale-fr.m4.
16878 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16880 2008-12-20 Bruno Haible <bruno@clisp.org>
16882 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16884 * tests/test-select-in.sh: Likewise.
16885 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16887 2008-12-20 Bruno Haible <bruno@clisp.org>
16889 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16890 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16893 2008-12-20 Bruno Haible <bruno@clisp.org>
16895 Ensure mbstate_t is defined on HP-UX 11.11.
16896 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16897 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16898 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16899 AC_USE_SYSTEM_EXTENSIONS.
16900 * modules/fnmatch (Depends-on): Add extensions.
16901 * modules/mbrlen (Depends-on): Likewise.
16902 * modules/mbrtowc (Depends-on): Likewise.
16903 * modules/mbsinit (Depends-on): Likewise.
16904 * modules/mbsrtowcs (Depends-on): Likewise.
16905 * modules/mbswidth (Depends-on): Likewise.
16906 * modules/quotearg (Depends-on): Likewise.
16907 * modules/strftime (Depends-on): Likewise.
16909 2008-12-20 Bruno Haible <bruno@clisp.org>
16911 Ensure wctob is declared on IRIX 6.5.
16912 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16913 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16914 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16915 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16917 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16919 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16921 2008-12-19 Bruno Haible <bruno@clisp.org>
16923 * modules/mbsrtowcs-tests: New file.
16924 * tests/test-mbsrtowcs1.sh: New file.
16925 * tests/test-mbsrtowcs2.sh: New file.
16926 * tests/test-mbsrtowcs3.sh: New file.
16927 * tests/test-mbsrtowcs4.sh: New file.
16928 * tests/test-mbsrtowcs.c: New file.
16930 New module 'mbsrtowcs'.
16931 * lib/wchar.in.h (mbsrtowcs): New declaration.
16932 * lib/mbsrtowcs.c: New file.
16933 * m4/mbsrtowcs.m4: New file.
16934 * modules/mbsrtowcs: New file.
16935 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16937 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16939 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16941 2008-12-19 Bruno Haible <bruno@clisp.org>
16943 New module 'mbrlen'.
16944 * lib/wchar.in.h (mbrlen): New declaration.
16945 * lib/mbrlen.c: New file.
16946 * m4/mbrlen.m4: New file.
16947 * modules/mbrlen: New file.
16948 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16950 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16952 * doc/posix-functions/mbrlen.texi: Document the new module.
16954 2008-12-19 Bruno Haible <bruno@clisp.org>
16956 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16957 * modules/mbrtowc (Depends-on): Add verify.
16958 Suggested by Paul Eggert.
16960 2008-12-18 Bruno Haible <bruno@clisp.org>
16962 * modules/mbsinit-tests: New file.
16963 * tests/test-mbsinit.sh: New file.
16964 * tests/test-mbsinit.c: New file.
16966 2008-12-18 Bruno Haible <bruno@clisp.org>
16968 * modules/mbrtowc-tests: New file.
16969 * tests/test-mbrtowc1.sh: New file.
16970 * tests/test-mbrtowc2.sh: New file.
16971 * tests/test-mbrtowc3.sh: New file.
16972 * tests/test-mbrtowc4.sh: New file.
16973 * tests/test-mbrtowc.c: New file.
16975 New module 'mbrtowc'.
16976 * lib/wchar.in.h (mbstate_t): Override when the system does not have
16977 mbsinit and mbrtowc.
16978 (mbrtowc): New declaration.
16979 * lib/mbrtowc.c: New file.
16980 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16981 * modules/mbrtowc: New file.
16982 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16984 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16986 * doc/posix-functions/mbrtowc.texi: Document the new module.
16988 2008-12-18 Bruno Haible <bruno@clisp.org>
16990 New module 'wctob'.
16991 * lib/wchar.in.h (wctob): New declaration.
16992 * lib/wctob.c: New file.
16993 * m4/wctob.m4: New file.
16994 * modules/wctob: New file.
16995 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16997 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16998 * doc/posix-functions/wctob.texi: Document the new module.
17000 2008-12-18 Bruno Haible <bruno@clisp.org>
17002 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17003 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17005 2008-12-18 Simon Josefsson <simon@josefsson.org>
17007 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17008 G. Christensen" <tgc@jupiterrise.com>.
17010 * lib/flock.c: Need to include errno.h. Reported by "Tom
17011 G. Christensen" <tgc@jupiterrise.com>.
17013 * lib/flock.c: Need to include string.h. Reported by "Tom
17014 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17017 2008-12-18 Bruno Haible <bruno@clisp.org>
17019 * m4/locale-ja.m4: New file, from GNU gettext.
17021 2008-12-17 Bruno Haible <bruno@clisp.org>
17023 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17024 Suggested by Eric Blake.
17026 2008-12-17 Bruno Haible <bruno@clisp.org>
17028 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17030 2008-12-17 Bruno Haible <bruno@clisp.org>
17032 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17033 * modules/mbsinit (Depends-on): Add verify.
17034 Suggested by Paul Eggert.
17036 2008-12-17 Bruno Haible <bruno@clisp.org>
17038 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17039 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17041 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17042 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17043 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17044 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17045 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17046 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17047 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17048 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17049 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17050 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17051 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17052 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17053 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17054 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17055 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17056 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17057 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17058 * modules/trim (configure.ac): Likewise.
17060 2008-12-17 Bruno Haible <bruno@clisp.org>
17062 * modules/btowc-tests: New file.
17063 * tests/test-btowc1.sh: New file.
17064 * tests/test-btowc2.sh: New file.
17065 * tests/test-btowc.c: New file.
17067 New module 'btowc'.
17068 * lib/wchar.in.h (btowc): New declaration.
17069 * lib/btowc.c: New file.
17070 * m4/btowc.m4: New file.
17071 * modules/btowc: New file.
17072 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17074 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17075 * doc/posix-functions/btowc.texi: Document the new module.
17077 2008-12-17 Bruno Haible <bruno@clisp.org>
17079 New module 'mbsinit'.
17080 * lib/wchar.in.h (mbsinit): New declaration.
17081 * lib/mbsinit.c: New file.
17082 * m4/mbsinit.m4: New file.
17083 * modules/mbsinit: New file.
17084 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17086 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17088 * doc/posix-functions/mbsinit.texi: Document the new module.
17090 2008-12-16 Bruno Haible <bruno@clisp.org>
17092 * lib/unistd.in.h: Add comment.
17093 * tests/test-environ.c: Don't include <stdlib.h>.
17095 2008-12-16 Bruno Haible <bruno@clisp.org>
17097 * lib/parse-duration.h (parse_duration): Document return value
17099 * lib/parse-duration.c: Include specification header first. Add
17102 (parse_year_month_day, parse_hour_minute_second): Move side effects
17103 outside of strchr call.
17104 (parse_non_iso8601): Move side effects outside of isspace call.
17105 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17108 2008-12-16 Bruno Haible <bruno@clisp.org>
17110 * tests/test-parse-duration.sh: Produce no output when the test
17113 2008-12-16 Bruno Haible <bruno@clisp.org>
17115 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17118 2008-12-15 Bruno Haible <bruno@clisp.org>
17120 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17121 * doc/glibc-functions/flistxattr.texi: Likewise.
17122 * doc/glibc-functions/fopencookie.texi: Likewise.
17123 * doc/glibc-functions/fremovexattr.texi: Likewise.
17124 * doc/glibc-functions/fsetxattr.texi: Likewise.
17125 * doc/glibc-functions/getxattr.texi: Likewise.
17126 * doc/glibc-functions/lgetxattr.texi: Likewise.
17127 * doc/glibc-functions/listxattr.texi: Likewise.
17128 * doc/glibc-functions/llistxattr.texi: Likewise.
17129 * doc/glibc-functions/lremovexattr.texi: Likewise.
17130 * doc/glibc-functions/lsetxattr.texi: Likewise.
17131 * doc/glibc-functions/removexattr.texi: Likewise.
17132 * doc/glibc-functions/setxattr.texi: Likewise.
17133 * doc/posix-functions/open_memstream.texi: Likewise.
17135 2008-12-15 Eric Blake <ebb9@byu.net>
17137 Update doc for cygwin 1.7.
17138 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17140 * doc/posix-functions/fchmodat.texi: Likewise.
17141 * doc/posix-functions/fchownat.texi: Likewise.
17142 * doc/posix-functions/fdopendir.texi: Likewise.
17143 * doc/posix-functions/fmemopen.texi: Likewise.
17144 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17145 * doc/posix-functions/fstatat.texi: Likewise.
17146 * doc/posix-functions/futimens.texi: Likewise.
17147 * doc/posix-functions/gai_strerror.texi: Likewise.
17148 * doc/posix-functions/getaddrinfo.texi: Likewise.
17149 * doc/posix-functions/getnameinfo.texi: Likewise.
17150 * doc/posix-functions/if_freenameindex.texi: Likewise.
17151 * doc/posix-functions/if_indextoname.texi: Likewise.
17152 * doc/posix-functions/if_nameindex.texi: Likewise.
17153 * doc/posix-functions/if_nametoindex.texi: Likewise.
17154 * doc/posix-functions/insque.texi: Likewise.
17155 * doc/posix-functions/linkat.texi: Likewise.
17156 * doc/posix-functions/llrint.texi: Likewise.
17157 * doc/posix-functions/llrintf.texi: Likewise.
17158 * doc/posix-functions/llrintl.texi: Likewise.
17159 * doc/posix-functions/lockf.texi: Likewise.
17160 * doc/posix-functions/lrintl.texi: Likewise.
17161 * doc/posix-functions/mkdirat.texi: Likewise.
17162 * doc/posix-functions/mkfifoat.texi: Likewise.
17163 * doc/posix-functions/mknodat.texi: Likewise.
17164 * doc/posix-functions/mq_close.texi: Likewise.
17165 * doc/posix-functions/mq_getattr.texi: Likewise.
17166 * doc/posix-functions/mq_notify.texi: Likewise.
17167 * doc/posix-functions/mq_open.texi: Likewise.
17168 * doc/posix-functions/mq_receive.texi: Likewise.
17169 * doc/posix-functions/mq_send.texi: Likewise.
17170 * doc/posix-functions/mq_setattr.texi: Likewise.
17171 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17172 * doc/posix-functions/mq_timedsend.texi: Likewise.
17173 * doc/posix-functions/mq_unlink.texi: Likewise.
17174 * doc/posix-functions/open_memstream.texi: Likewise.
17175 * doc/posix-functions/openat.texi: Likewise.
17176 * doc/posix-functions/posix_fadvise.texi: Likewise.
17177 * doc/posix-functions/posix_fallocate.texi: Likewise.
17178 * doc/posix-functions/posix_madvise.texi: Likewise.
17179 * doc/posix-functions/posix_memalign.texi: Likewise.
17180 * doc/posix-functions/posix_openpt.texi: Likewise.
17181 * doc/posix-functions/readlinkat.texi: Likewise.
17182 * doc/posix-functions/remque.texi: Likewise.
17183 * doc/posix-functions/renameat.texi: Likewise.
17184 * doc/posix-functions/rintl.texi: Likewise.
17185 * doc/posix-functions/sem_unlink.texi: Likewise.
17186 * doc/posix-functions/shm_open.texi: Likewise.
17187 * doc/posix-functions/shm_unlink.texi: Likewise.
17188 * doc/posix-functions/signgam.texi: Likewise.
17189 * doc/posix-functions/sigset.texi: Likewise.
17190 * doc/posix-functions/stpcpy.texi: Likewise.
17191 * doc/posix-functions/stpncpy.texi: Likewise.
17192 * doc/posix-functions/strerror.texi: Likewise.
17193 * doc/posix-functions/strtod.texi: Likewise.
17194 * doc/posix-functions/symlinkat.texi: Likewise.
17195 * doc/posix-functions/unlinkat.texi: Likewise.
17196 * doc/posix-functions/utimensat.texi: Likewise.
17197 * doc/glibc-functions/bindresvport.texi: Likewise.
17198 * doc/glibc-functions/dn_expand.texi: Likewise.
17199 * doc/glibc-functions/exp10.texi: Likewise.
17200 * doc/glibc-functions/exp10f.texi: Likewise.
17201 * doc/glibc-functions/fgetxattr.texi: Likewise.
17202 * doc/glibc-functions/flistxattr.texi: Likewise.
17203 * doc/glibc-functions/fopencookie.texi: Likewise.
17204 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17205 * doc/glibc-functions/fremovexattr.texi: Likewise.
17206 * doc/glibc-functions/fsetxattr.texi: Likewise.
17207 * doc/glibc-functions/getifaddrs.texi: Likewise.
17208 * doc/glibc-functions/getxattr.texi: Likewise.
17209 * doc/glibc-functions/lgetxattr.texi: Likewise.
17210 * doc/glibc-functions/listxattr.texi: Likewise.
17211 * doc/glibc-functions/llistxattr.texi: Likewise.
17212 * doc/glibc-functions/lremovexattr.texi: Likewise.
17213 * doc/glibc-functions/lsetxattr.texi: Likewise.
17214 * doc/glibc-functions/pow10.texi: Likewise.
17215 * doc/glibc-functions/pow10f.texi: Likewise.
17216 * doc/glibc-functions/rcmd_af.texi: Likewise.
17217 * doc/glibc-functions/removexattr.texi: Likewise.
17218 * doc/glibc-functions/res_init.texi: Likewise.
17219 * doc/glibc-functions/res_mkquery.texi: Likewise.
17220 * doc/glibc-functions/res_query.texi: Likewise.
17221 * doc/glibc-functions/res_querydomain.texi: Likewise.
17222 * doc/glibc-functions/res_send.texi: Likewise.
17223 * doc/glibc-functions/rresvport_af.texi: Likewise.
17224 * doc/glibc-functions/setxattr.texi: Likewise.
17225 * doc/glibc-functions/strcasestr.texi: Likewise.
17227 2008-12-15 Bruno Haible <bruno@clisp.org>
17229 Fix compilation error on OSF/1 4.0.
17230 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17231 <sys/time.h>, simply delegate to the system header.
17232 Reported by Daniel Richard G. <oss@teragram.com>.
17234 2008-12-15 Bruno Haible <bruno@clisp.org>
17236 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17237 * doc/posix-functions/fchmodat.texi: Likewise.
17238 * doc/posix-functions/fchownat.texi: Likewise.
17239 * doc/posix-functions/fdopendir.texi: Likewise.
17240 * doc/posix-functions/fstatat.texi: Likewise.
17241 * doc/posix-functions/mkdirat.texi: Likewise.
17242 * doc/posix-functions/unlinkat.texi: Likewise.
17244 2008-12-14 Bruno Haible <bruno@clisp.org>
17246 Update doc for POSIX:2008.
17247 * doc/posix-functions/faccessat.texi: New file.
17248 * doc/posix-functions/fchmodat.texi: New file.
17249 * doc/posix-functions/fchownat.texi: New file.
17250 * doc/posix-functions/fdopendir.texi: New file.
17251 * doc/posix-functions/fstatat.texi: New file.
17252 * doc/posix-functions/futimens.texi: New file.
17253 * doc/posix-functions/linkat.texi: New file.
17254 * doc/posix-functions/mkdirat.texi: New file.
17255 * doc/posix-functions/mkfifoat.texi: New file.
17256 * doc/posix-functions/mknodat.texi: New file.
17257 * doc/posix-functions/open_wmemstream.texi: New file.
17258 * doc/posix-functions/openat.texi: New file.
17259 * doc/posix-functions/psiginfo.texi: New file.
17260 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17261 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17262 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17263 * doc/posix-functions/readlinkat.texi: New file.
17264 * doc/posix-functions/renameat.texi: New file.
17265 * doc/posix-functions/strerror_l.texi: New file.
17266 * doc/posix-functions/symlinkat.texi: New file.
17267 * doc/posix-functions/unlinkat.texi: New file.
17268 * doc/posix-functions/utimensat.texi: New file.
17269 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17271 2008-12-14 Bruno Haible <bruno@clisp.org>
17273 Update doc for POSIX:2008.
17274 * doc/posix-functions/alphasort.texi: Renamed from
17275 doc/glibc-functions/alphasort.texi.
17276 * doc/posix-functions/dirfd.texi: Renamed from
17277 doc/glibc-functions/dirfd.texi.
17278 * doc/posix-functions/dprintf.texi: Renamed from
17279 doc/glibc-functions/dprintf.texi.
17280 * doc/posix-functions/duplocale.texi: Renamed from
17281 doc/glibc-functions/duplocale.texi.
17282 * doc/posix-functions/fexecve.texi: Renamed from
17283 doc/glibc-functions/fexecve.texi.
17284 * doc/posix-functions/fmemopen.texi: Renamed from
17285 doc/glibc-functions/fmemopen.texi.
17286 * doc/posix-functions/freelocale.texi: Renamed from
17287 doc/glibc-functions/freelocale.texi.
17288 * doc/posix-functions/getdate_err.texi: Renamed from
17289 doc/glibc-functions/getdate_err.texi.
17290 * doc/posix-functions/isalnum_l.texi: Renamed from
17291 doc/glibc-functions/isalnum_l.texi.
17292 * doc/posix-functions/isalpha_l.texi: Renamed from
17293 doc/glibc-functions/isalpha_l.texi.
17294 * doc/posix-functions/isblank_l.texi: Renamed from
17295 doc/glibc-functions/isblank_l.texi.
17296 * doc/posix-functions/iscntrl_l.texi: Renamed from
17297 doc/glibc-functions/iscntrl_l.texi.
17298 * doc/posix-functions/isdigit_l.texi: Renamed from
17299 doc/glibc-functions/isdigit_l.texi.
17300 * doc/posix-functions/isgraph_l.texi: Renamed from
17301 doc/glibc-functions/isgraph_l.texi.
17302 * doc/posix-functions/islower_l.texi: Renamed from
17303 doc/glibc-functions/islower_l.texi.
17304 * doc/posix-functions/isprint_l.texi: Renamed from
17305 doc/glibc-functions/isprint_l.texi.
17306 * doc/posix-functions/ispunct_l.texi: Renamed from
17307 doc/glibc-functions/ispunct_l.texi.
17308 * doc/posix-functions/isspace_l.texi: Renamed from
17309 doc/glibc-functions/isspace_l.texi.
17310 * doc/posix-functions/isupper_l.texi: Renamed from
17311 doc/glibc-functions/isupper_l.texi.
17312 * doc/posix-functions/iswalnum_l.texi: Renamed from
17313 doc/glibc-functions/iswalnum_l.texi.
17314 * doc/posix-functions/iswalpha_l.texi: Renamed from
17315 doc/glibc-functions/iswalpha_l.texi.
17316 * doc/posix-functions/iswblank_l.texi: Renamed from
17317 doc/glibc-functions/iswblank_l.texi.
17318 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17319 doc/glibc-functions/iswcntrl_l.texi.
17320 * doc/posix-functions/iswctype_l.texi: Renamed from
17321 doc/glibc-functions/iswctype_l.texi.
17322 * doc/posix-functions/iswdigit_l.texi: Renamed from
17323 doc/glibc-functions/iswdigit_l.texi.
17324 * doc/posix-functions/iswgraph_l.texi: Renamed from
17325 doc/glibc-functions/iswgraph_l.texi.
17326 * doc/posix-functions/iswlower_l.texi: Renamed from
17327 doc/glibc-functions/iswlower_l.texi.
17328 * doc/posix-functions/iswprint_l.texi: Renamed from
17329 doc/glibc-functions/iswprint_l.texi.
17330 * doc/posix-functions/iswpunct_l.texi: Renamed from
17331 doc/glibc-functions/iswpunct_l.texi.
17332 * doc/posix-functions/iswspace_l.texi: Renamed from
17333 doc/glibc-functions/iswspace_l.texi.
17334 * doc/posix-functions/iswupper_l.texi: Renamed from
17335 doc/glibc-functions/iswupper_l.texi.
17336 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17337 doc/glibc-functions/iswxdigit_l.texi.
17338 * doc/posix-functions/isxdigit_l.texi: Renamed from
17339 doc/glibc-functions/isxdigit_l.texi.
17340 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17341 doc/glibc-functions/mbsnrtowcs.texi.
17342 * doc/posix-functions/mkdtemp.texi: Renamed from
17343 doc/glibc-functions/mkdtemp.texi.
17344 * doc/posix-functions/newlocale.texi: Renamed from
17345 doc/glibc-functions/newlocale.texi.
17346 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17347 doc/glibc-functions/nl_langinfo_l.texi.
17348 * doc/posix-functions/open_memstream.texi: Renamed from
17349 doc/glibc-functions/open_memstream.texi.
17350 * doc/posix-functions/opterr.texi: Renamed from
17351 doc/glibc-functions/opterr.texi.
17352 * doc/posix-functions/optind.texi: Renamed from
17353 doc/glibc-functions/optind.texi.
17354 * doc/posix-functions/optopt.texi: Renamed from
17355 doc/glibc-functions/optopt.texi.
17356 * doc/posix-functions/psignal.texi: Renamed from
17357 doc/glibc-functions/psignal.texi.
17358 * doc/posix-functions/scandir.texi: Renamed from
17359 doc/glibc-functions/scandir.texi.
17360 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17361 doc/glibc-functions/sched_get_priority_min.texi.
17362 * doc/posix-functions/signgam.texi: Renamed from
17363 doc/glibc-functions/signgam.texi.
17364 * doc/posix-functions/stpcpy.texi: Renamed from
17365 doc/glibc-functions/stpcpy.texi.
17366 * doc/posix-functions/stpncpy.texi: Renamed from
17367 doc/glibc-functions/stpncpy.texi.
17368 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17369 doc/glibc-functions/strcasecmp_l.texi.
17370 * doc/posix-functions/strcoll_l.texi: Renamed from
17371 doc/glibc-functions/strcoll_l.texi.
17372 * doc/posix-functions/strfmon_l.texi: Renamed from
17373 doc/glibc-functions/strfmon_l.texi.
17374 * doc/posix-functions/strftime_l.texi: Renamed from
17375 doc/glibc-functions/strftime_l.texi.
17376 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17377 doc/glibc-functions/strncasecmp_l.texi.
17378 * doc/posix-functions/strndup.texi: Renamed from
17379 doc/glibc-functions/strndup.texi.
17380 * doc/posix-functions/strnlen.texi: Renamed from
17381 doc/glibc-functions/strnlen.texi.
17382 * doc/posix-functions/strsignal.texi: Renamed from
17383 doc/glibc-functions/strsignal.texi.
17384 * doc/posix-functions/strxfrm_l.texi: Renamed from
17385 doc/glibc-functions/strxfrm_l.texi.
17386 * doc/posix-functions/timer_gettime.texi: Renamed from
17387 doc/glibc-functions/timer_gettime.texi.
17388 * doc/posix-functions/tolower_l.texi: Renamed from
17389 doc/glibc-functions/tolower_l.texi.
17390 * doc/posix-functions/toupper_l.texi: Renamed from
17391 doc/glibc-functions/toupper_l.texi.
17392 * doc/posix-functions/towctrans_l.texi: Renamed from
17393 doc/glibc-functions/towctrans_l.texi.
17394 * doc/posix-functions/towlower_l.texi: Renamed from
17395 doc/glibc-functions/towlower_l.texi.
17396 * doc/posix-functions/towupper_l.texi: Renamed from
17397 doc/glibc-functions/towupper_l.texi.
17398 * doc/posix-functions/uselocale.texi: Renamed from
17399 doc/glibc-functions/uselocale.texi.
17400 * doc/posix-functions/vdprintf.texi: Renamed from
17401 doc/glibc-functions/vdprintf.texi.
17402 * doc/posix-functions/wcpcpy.texi:
17403 Renamed from doc/glibc-functions/wcpcpy.texi.
17404 * doc/posix-functions/wcpncpy.texi: Renamed from
17405 doc/glibc-functions/wcpncpy.texi.
17406 * doc/posix-functions/wcscasecmp.texi: Renamed from
17407 doc/glibc-functions/wcscasecmp.texi.
17408 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17409 doc/glibc-functions/wcscasecmp_l.texi.
17410 * doc/posix-functions/wcscoll_l.texi: Renamed from
17411 doc/glibc-functions/wcscoll_l.texi.
17412 * doc/posix-functions/wcsdup.texi: Renamed from
17413 doc/glibc-functions/wcsdup.texi.
17414 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17415 doc/glibc-functions/wcsncasecmp.texi.
17416 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17417 doc/glibc-functions/wcsncasecmp_l.texi.
17418 * doc/posix-functions/wcsnlen.texi: Renamed from
17419 doc/glibc-functions/wcsnlen.texi.
17420 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17421 doc/glibc-functions/wcsnrtombs.texi.
17422 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17423 doc/glibc-functions/wcsxfrm_l.texi.
17424 * doc/posix-functions/wctrans_l.texi: Renamed from
17425 doc/glibc-functions/wctrans_l.texi.
17426 * doc/posix-functions/wctype_l.texi: Renamed from
17427 doc/glibc-functions/wctype_l.texi.
17428 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17429 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17430 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17431 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17433 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17436 2008-12-14 Bruno Haible <bruno@clisp.org>
17438 Update doc for POSIX:2008.
17439 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17441 2008-12-14 Bruno Haible <bruno@clisp.org>
17443 Update doc for POSIX:2008.
17444 * doc/pastposix-functions/bcmp.texi: Renamed from
17445 doc/posix-functions/bcmp.texi.
17446 * doc/pastposix-functions/bcopy.texi: Renamed from
17447 doc/posix-functions/bcopy.texi.
17448 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17449 doc/posix-functions/bsd_signal.texi.
17450 * doc/pastposix-functions/bzero.texi: Renamed from
17451 doc/posix-functions/bzero.texi.
17452 * doc/pastposix-functions/ecvt.texi: Renamed from
17453 doc/posix-functions/ecvt.texi.
17454 * doc/pastposix-functions/fcvt.texi: Renamed from
17455 doc/posix-functions/fcvt.texi.
17456 * doc/pastposix-functions/ftime.texi: Renamed from
17457 doc/posix-functions/ftime.texi.
17458 * doc/pastposix-functions/gcvt.texi: Renamed from
17459 doc/posix-functions/gcvt.texi.
17460 * doc/pastposix-functions/getcontext.texi: Renamed from
17461 doc/posix-functions/getcontext.texi.
17462 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17463 doc/posix-functions/gethostbyaddr.texi.
17464 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17465 doc/posix-functions/gethostbyname.texi.
17466 * doc/pastposix-functions/getwd.texi: Renamed from
17467 doc/posix-functions/getwd.texi.
17468 * doc/pastposix-functions/h_errno.texi: Renamed from
17469 doc/posix-functions/h_errno.texi.
17470 * doc/pastposix-functions/index.texi: Renamed from
17471 doc/posix-functions/index.texi.
17472 * doc/pastposix-functions/makecontext.texi: Renamed from
17473 doc/posix-functions/makecontext.texi.
17474 * doc/pastposix-functions/mktemp.texi: Renamed from
17475 doc/posix-functions/mktemp.texi.
17476 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17477 doc/posix-functions/pthread_attr_getstackaddr.texi.
17478 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17479 doc/posix-functions/pthread_attr_setstackaddr.texi.
17480 * doc/pastposix-functions/rindex.texi: Renamed from
17481 doc/posix-functions/rindex.texi.
17482 * doc/pastposix-functions/scalb.texi: Renamed from
17483 doc/posix-functions/scalb.texi.
17484 * doc/pastposix-functions/setcontext.texi: Renamed from
17485 doc/posix-functions/setcontext.texi.
17486 * doc/pastposix-functions/swapcontext.texi: Renamed from
17487 doc/posix-functions/swapcontext.texi.
17488 * doc/pastposix-functions/ualarm.texi: Renamed from
17489 doc/posix-functions/ualarm.texi.
17490 * doc/pastposix-functions/usleep.texi: Renamed from
17491 doc/posix-functions/usleep.texi.
17492 * doc/pastposix-functions/vfork.texi: Renamed from
17493 doc/posix-functions/vfork.texi.
17494 * doc/pastposix-functions/wcswcs.texi: Renamed from
17495 doc/posix-functions/wcswcs.texi.
17496 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17497 (Function Substitutes): Update.
17499 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17501 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17504 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17505 Bruno Haible <bruno@clisp.org>
17507 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17509 2008-12-13 Bruno Haible <bruno@clisp.org>
17511 * modules/strtoull (Depends-on): Remove unistd.
17513 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17515 * modules/strtoull (Depends-on): Add stdlib.
17517 2008-12-11 Simon Josefsson <simon@josefsson.org>
17519 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17521 2008-12-10 Jim Meyering <meyering@redhat.com>
17523 gl_ASSERT: don't say assertions are disabled when they're not
17524 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17525 "checking whether to enable assertions... no", when they are in
17526 fact enabled. This is solely a bug in the output of configure.
17527 In spite of saying "no", NDEBUG was not defined in that case.
17528 Also, as noted by Eric Blake, leave assertions enabled upon
17529 --enable-assert=INVALID.
17531 2008-12-10 Bruno Haible <bruno@clisp.org>
17533 Change MODULES.html to refer to POSIX:2008 where possible.
17534 * MODULES.html.sh (POSIX2008_URL): New variable.
17535 (posix_headers): Remove sys/timeb, ucontext.
17536 (posix2001_headers): New variable.
17537 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17538 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17539 index, makecontext, mktemp, pthread_attr_getstackaddr,
17540 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17541 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17542 (posix2001_functions): New variable.
17543 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17546 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17548 add missing include to parse-duration.c
17549 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17550 * modules/parse-duration (Depends-on): Add xalloc.
17552 fix sed script reading maint.mk
17553 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17554 (syntax-check-rules): Use it.
17556 2008-12-09 Bruno Haible <bruno@clisp.org>
17558 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17559 MacOS X 10.4/PowerPC.
17560 Reported by Simon Josefsson.
17562 2008-12-08 Jim Meyering <meyering@redhat.com>
17564 work around mingw's lack of some S_IF definitions
17565 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17566 Reported by Simon Josefsson.
17568 2008-12-08 Bruno Haible <bruno@clisp.org>
17570 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17571 applied to variables. Needed on MacOS X 10.4/PowerPC.
17572 Reported by Simon Josefsson.
17574 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17575 and Eric Blake <ebb9@byu.net>
17577 assert: honor --enable-assert
17578 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17579 order to honor --enable-assert, rather than treating it as a
17580 synonym for --disable-assert.
17582 2008-12-08 Jim Meyering <meyering@redhat.com>
17584 * lib/posixtm.c: Remove now-useless declaration of mktime.
17586 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17588 2008-12-07 Bruno Haible <bruno@clisp.org>
17590 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17591 test_once): Mark functions as static.
17592 * tests/test-tls.c (test_tls): Likewise.
17594 2008-12-07 Bruno Haible <bruno@clisp.org>
17596 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17597 iconv_register_autodetect.
17599 2008-12-07 Jim Meyering <meyering@redhat.com>
17601 posixtm.c: avoid a warning
17602 * lib/posixtm.c (posixtime): Don't initialize tm0.
17603 It's no longer needed to placate gcc4's -Wuninitialized,
17604 and the attempt to placate would elicit a new warning.
17606 unicodeio.c: mark unused parameters
17607 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17608 (fallback_failure_callback): Likewise.
17610 2008-12-07 Bruno Haible <bruno@clisp.org>
17612 * gnulib-tool (func_create_testdir): When building the tests
17613 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17614 Reported by Simon Josefsson.
17616 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17618 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17620 2008-12-06 Bruno Haible <bruno@clisp.org>
17622 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17623 Suggested by Eric Blake.
17625 2008-12-06 Bruno Haible <bruno@clisp.org>
17627 Fix a c-stack test failure on MacOS X.
17628 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17629 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17630 handler for SIGBUS as well.
17631 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17632 install a signal handler for SIGBUS as well.
17633 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17635 2008-12-06 Bruno Haible <bruno@clisp.org>
17637 Advocacy documentation.
17638 * doc/gnulib-intro.texi (Benefits): New section.
17639 * doc/gnulib.texi: Update.
17641 2008-12-06 Bruno Haible <bruno@clisp.org>
17643 Document the 'manywarnings' module.
17644 * doc/manywarnings.texi: New file.
17645 * doc/gnulib.texi: Include it.
17647 2008-12-05 Eric Blake <ebb9@byu.net>
17649 tests: silence some gcc warnings
17650 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17651 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17654 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17655 Bruno Haible <bruno@clisp.org>
17657 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17659 2008-11-29 Jim Meyering <meyering@redhat.com>
17661 unicodeio.c: mark unused parameters
17662 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17663 (fallback_failure_callback): Likewise.
17666 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
17667 (set_stat_type): Return S_IF*-valued "type" directly.
17668 Prompted by James Youngman's spotting a related bug.
17669 Confirmed by further testing through find.
17671 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17672 * lib/fts.c (D_TYPE): Define.
17673 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17674 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17675 (s_ifmt_shift_bits): New function.
17676 (set_stat_type): New function.
17677 (fts_build): When not calling fts_stat, call set_stat_type
17678 to propagate dirent.d_type info to fts_read caller.
17679 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17680 fts_statp->st_mode type information may be valid.
17682 2008-11-28 Simon Josefsson <simon@josefsson.org>
17684 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
17685 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
17688 2008-11-20 Bruno Haible <bruno@clisp.org>
17690 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17691 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17693 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17694 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17695 * modules/math (Makefile.am): Substitute
17696 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17697 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17699 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
17700 Bruno Haible <bruno@clisp.org>
17702 * lib/stdint.in.h: Define all type macros so that their expansion is
17703 a single typedef'ed token. Fixes a compilation failure in Boost which
17704 does "using ::int8_t;".
17706 2008-11-18 Simon Josefsson <simon@josefsson.org>
17708 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17709 gl_MANYWARN_ALL_GCC.
17710 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17711 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
17712 * modules/manywarnings: New file.
17713 * MODULES.html.sh: Mention manywarnings module.
17715 2008-11-18 Bruno Haible <bruno@clisp.org>
17717 * doc/gnulib-tool.texi (Unit tests): New section.
17719 2008-11-18 Simon Josefsson <simon@josefsson.org>
17721 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17722 paths like 'lib/po/foo.po'.
17724 2008-11-17 Simon Josefsson <simon@josefsson.org>
17726 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
17727 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17729 2008-11-17 Simon Josefsson <simon@josefsson.org>
17731 * m4/warnings.m4: Use CPPFLAGS to really check whether the
17734 2008-11-17 Simon Josefsson <simon@josefsson.org>
17736 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17738 2008-11-17 Bruce Korb <bkorb@gnu.org>
17740 * modules/parse-duration-tests: New file.
17741 * tests/test-parse-duration.sh: New file.
17742 * tests/test-parse-duration.c: New file.
17744 New module 'parse-duration'.
17745 * lib/parse-duration.h: New file.
17746 * lib/parse-duration.c: New file.
17747 * modules/parse-duration: New file.
17749 2008-11-17 Bruno Haible <bruno@clisp.org>
17751 * tests/test-select-out.sh: Comment out the first pipe test.
17752 Reported by Simon Josefsson.
17754 2008-11-17 Bruno Haible <bruno@clisp.org>
17756 * modules/getaddrinfo (Depends-on): Add servent, hostent.
17757 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17760 2008-11-17 Bruno Haible <bruno@clisp.org>
17762 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17763 -lnetwork and -lnet. Needed for Haiku and BeOS.
17765 2008-11-16 Bruno Haible <bruno@clisp.org>
17767 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17769 2008-11-16 Bruno Haible <bruno@clisp.org>
17771 Avoid test failure on Haiku.
17772 * tests/test-fsync.c: Include <errno.h>.
17773 (main): Don't require that fsync (0) fails.
17775 2008-11-15 Bruno Haible <bruno@clisp.org>
17777 New module 'hostent'.
17778 * modules/hostent: New file.
17779 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17781 2008-11-15 Bruno Haible <bruno@clisp.org>
17783 New module 'servent'.
17784 * modules/servent: New file.
17785 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17787 2008-11-15 Bruno Haible <bruno@clisp.org>
17789 Avoid generating same test program with two different rules.
17790 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17791 test-frexp to test-frexp-nolibm.
17792 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17793 test-frexpl to test-frexpl-nolibm.
17795 2008-11-15 Bruno Haible <bruno@clisp.org>
17797 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17800 2008-11-15 Bruno Haible <bruno@clisp.org>
17802 * lib/netdb.in.h: Activate the definitions also when the system's
17803 <netdb.h> has 'struct addrinfo'.
17804 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17805 EAI_OVERFLOW or AI_NUMERICSERV.
17806 * doc/posix-headers/netdb.texi: Document the problem.
17808 2008-11-15 Bruno Haible <bruno@clisp.org>
17810 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17812 Make the 'sched' module work on platforms where <sched.h> exists but
17813 is incomplete (such as Haiku).
17814 * lib/sched.in.h; Include the system's <sched.h> if it exists.
17815 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17816 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17817 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17818 HAVE_STRUCT_SCHED_PARAM.
17819 * modules/sched (Depends-on): Add include_next.
17820 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17821 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17822 * doc/posix-headers/sched.texi: Document the issue.
17824 2008-11-13 Jim Meyering <meyering@redhat.com>
17826 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17827 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17828 test would fail due to the difference in the Report bugs to ...
17829 line. The expected address is empty, "<>", while the actual
17830 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
17832 2008-11-12 Bruno Haible <bruno@clisp.org>
17834 lstat: don't compile lstat.c on systems lacking lstat
17835 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17836 which don't have lstat; this is handled by lib/sys_stat.in.h already.
17837 Reported by Daniel P. Berrange via Jim Meyering.
17839 2008-11-12 Jim Meyering <meyering@redhat.com>
17841 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17843 2008-11-12 Simon Josefsson <simon@josefsson.org>
17845 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17848 2008-11-12 Bruno Haible <bruno@clisp.org>
17850 * lib/unicodeio.c: Include unistr.h.
17851 (utf8_wctomb): Remove function.
17852 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17854 2008-11-12 Simon Josefsson <simon@josefsson.org>
17856 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17857 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17859 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17861 2008-11-12 Simon Josefsson <simon@josefsson.org>
17863 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17864 * doc/gnulib.texi: Add section for warnings.
17866 2008-11-11 Bruno Haible <bruno@clisp.org>
17868 * lib/sockets.h: Add a comment.
17870 2008-11-11 Karl Berry <karl@gnu.org>
17872 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17874 2008-11-11 Eric Blake <ebb9@byu.net>
17876 fdl.texi: avoid git symlinks
17877 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17879 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17881 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17883 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17885 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17886 (gl_WARN_ADD): Substitute $2 if literal.
17888 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17890 * m4/warning.m4: Remove.
17892 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17894 * m4/warnings.m4: Almost complete rewrite. :-)
17896 2008-11-10 Simon Josefsson <simon@josefsson.org>
17898 * modules/warnings: New module.
17899 * m4/warnings.m4: New file.
17900 * MODULES.html.sh: Mention warnings module.
17901 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17902 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17904 2008-11-10 Eric Blake <ebb9@byu.net>
17906 fdl.texi: make a symlink to the latest version
17907 * doc/standards.texi: Revert today's earlier change.
17908 * doc/fdl-1.2.texi: Rename from old fdl.texi...
17909 * doc/fdl.texi: ...and replace this with a symlink to the newer
17912 2008-11-10 Bruno Haible <bruno@clisp.org>
17914 * tests/test-select-fd.c (main): Accept the result file name as fourth
17916 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17917 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17919 2008-11-10 Bruno Haible <bruno@clisp.org>
17921 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17922 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17923 as autoconf-substituted macros.
17924 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17925 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17926 gl_NETDB_H_DEFAULTS. Set these variables.
17927 * modules/netdb (Makefile.am): Substitute these variables.
17929 2008-11-10 Eric Blake <ebb9@byu.net>
17931 standards.texi: include correct file for FDL 1.3
17932 * doc/standards.texi (GNU Free Documentation License): Change
17933 include file to pull in FDL 1.3, not 1.2.
17935 fdl.texi: revert accidental change to license
17936 * doc/fdl.texi: This is FDL 1.2, not 1.3.
17938 2008-11-10 Bruno Haible <bruno@clisp.org>
17940 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17941 cross-compiling guesses also when the native compile gives no result.
17943 2008-11-10 Bruno Haible <bruno@clisp.org>
17945 * lib/spawni.c (__spawni): Force variable into the stack.
17947 2008-11-10 Bruno Haible <bruno@clisp.org>
17949 Add support for Haiku.
17950 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17951 glibc and BeOS, but also on Haiku.
17952 * lib/fpurge.c (fpurge): Likewise.
17953 * lib/freadable.c (freadable): Likewise.
17954 * lib/freadahead.c (freadahead): Likewise.
17955 * lib/freading.c (freading): Likewise.
17956 * lib/freadptr.c (freadptr): Likewise.
17957 * lib/freadseek.c (freadptrinc): Likewise.
17958 * lib/fseeko.c (rpl_fseeko): Likewise.
17959 * lib/fseterr.c (fseterr): Likewise.
17960 * lib/fwritable.c (fwritable): Likewise.
17961 * lib/fwriting.c (fwriting): Likewise.
17962 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17964 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
17966 * lib/config.charset: Treat Haiku like BeOS.
17968 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
17970 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17971 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17973 2008-11-08 Bruno Haible <bruno@clisp.org>
17975 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17978 2008-11-08 Bruno Haible <bruno@clisp.org>
17980 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17982 2008-11-08 Bruno Haible <bruno@clisp.org>
17984 * tests/test-select-fd.c: New file.
17985 * tests/test-select-in.sh: New file.
17986 * tests/test-select-out.sh: New file.
17987 * tests/test-select-stdin.c: New file.
17988 * modules/select-tests (Files): Add the new files.
17989 (Depends-on): Add gettimeofday.
17990 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17991 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17992 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17994 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
17995 Bruno Haible <bruno@clisp.org>
17997 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17999 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18001 * build-aux/pmccabe2html: Added support for C++ source files.
18003 2008-11-05 Ben Pfaff <blp@gnu.org>
18005 Fix lib/close.c build on Windows.
18006 * modules/close (Files): Add lib/w32sock.h.
18008 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18010 Accept Bison's NEWS format.
18011 * build-aux/announce-gen (print_news_deltas): Tweak
18014 2008-11-04 Bruno Haible <bruno@clisp.org>
18016 * modules/random_r (Maintainer): Add glibc.
18018 2008-11-04 Simon Josefsson <simon@josefsson.org>
18020 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18021 by karl@freefriends.org (Karl Berry).
18022 * doc/alloca.texi: Likewise.
18023 * doc/c-ctype.texi: Likewise.
18024 * doc/c-strcase.texi: Likewise.
18025 * doc/c-strcaseeq.texi: Likewise.
18026 * doc/c-strcasestr.texi: Likewise.
18027 * doc/c-strstr.texi: Likewise.
18028 * doc/c-strtod.texi: Likewise.
18029 * doc/c-strtold.texi: Likewise.
18030 * doc/ctime.texi: Likewise.
18031 * doc/error.texi: Likewise.
18032 * doc/fdl.texi: Likewise.
18033 * doc/gcd.texi: Likewise.
18034 * doc/getdate.texi: Likewise.
18035 * doc/gnulib-intro.texi: Likewise.
18036 * doc/gnulib-tool.texi: Likewise.
18037 * doc/gnulib.texi: Likewise.
18038 * doc/inet_ntoa.texi: Likewise.
18039 * doc/maintain.texi: Likewise.
18040 * doc/make-stds.texi: Likewise.
18041 * doc/quote.texi: Likewise.
18042 * doc/regexprops-generic.texi: Likewise.
18043 * doc/standards.texi: Likewise.
18044 * doc/verify.texi: Likewise.
18045 * doc/visibility.texi: Likewise.
18046 * doc/gnulib.texi (GNU Free Documentation License): Include
18047 fdl-1.3.texi instead of fdl.texi.
18049 2008-11-04 Simon Josefsson <simon@josefsson.org>
18051 * doc/fdl-1.3.texi: New file, from
18052 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18053 * modules/fdl-1.3: Add.
18054 * MODULES.html.sh: Add fdl-1.3.
18056 2008-11-03 Bruno Haible <bruno@clisp.org>
18058 Make determination of absolute name of header file work with AIX xlc.
18059 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18060 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18062 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18063 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18065 2008-11-03 Simon Josefsson <simon@josefsson.org>
18067 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18068 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18071 2008-11-02 Bruno Haible <bruno@clisp.org>
18073 Mark 'strpbrk' obsolete.
18074 * modules/strpbrk (Status, Notice): New sections.
18075 * modules/strtok_r (Depends-on): Add strpbrk.
18077 2008-11-02 Bruno Haible <bruno@clisp.org>
18079 Mark 'strdup' obsolete.
18080 * modules/strdup (Status, Notice): New sections.
18081 * modules/findprog (Depends-on): Add strdup.
18082 * modules/getaddrinfo (Depends-on): Likewise.
18083 * modules/localename (Depends-on): Likewise.
18084 * modules/relocatable-lib (Depends-on): Likewise.
18085 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18086 * modules/relocatable-prog (Depends-on): Likewise.
18087 * modules/trim (Depends-on): Likewise.
18088 * modules/unictype/gen-ctype (Depends-on): Likewise.
18089 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18091 2008-11-02 Bruno Haible <bruno@clisp.org>
18093 Mark 'strcspn' obsolete.
18094 * modules/strcspn (Status, Notice): New sections.
18096 2008-11-02 Bruno Haible <bruno@clisp.org>
18098 Mark 'rmdir' obsolete.
18099 * modules/rmdir (Status, Notice): New sections.
18100 * modules/clean-temp (Depends-on): Add rmdir.
18101 * modules/openat (Depends-on): Likewise.
18103 2008-11-02 Bruno Haible <bruno@clisp.org>
18105 Mark 'raise' obsolete.
18106 * modules/raise (Status, Notice): New sections.
18107 (Include): Specify <signal.h>.
18108 * modules/stdio (Depends-on): Add raise.
18109 * modules/write (Depends-on): Likewise.
18111 2008-11-02 Bruno Haible <bruno@clisp.org>
18113 Mark 'memset' obsolete.
18114 * modules/memset (Status, Notice): New sections.
18116 2008-11-02 Bruno Haible <bruno@clisp.org>
18118 Mark 'memmove' obsolete.
18119 * modules/memmove (Status, Notice): New sections.
18120 * modules/argp (Depends-on): Add memmove.
18121 * modules/argz (Depends-on): Likewise.
18122 * modules/canonicalize (Depends-on): Likewise.
18123 * modules/canonicalize-lgpl (Depends-on): Likewise.
18124 * modules/fts (Depends-on): Likewise.
18125 * modules/getcwd (Depends-on): Likewise.
18126 * modules/human (Depends-on): Likewise.
18127 * modules/regex (Depends-on): Likewise.
18128 * modules/striconveh (Depends-on): Likewise.
18129 * modules/trim (Depends-on): Likewise.
18130 * modules/unistr/u8-move (Depends-on): Likewise.
18131 * modules/unistr/u16-move (Depends-on): Likewise.
18132 * modules/unistr/u32-move (Depends-on): Likewise.
18134 2008-11-02 Bruno Haible <bruno@clisp.org>
18136 Mark 'memcpy' obsolete.
18137 * modules/memcpy (Status, Notice): New sections.
18139 2008-11-02 Bruno Haible <bruno@clisp.org>
18141 Mark 'memcmp' obsolete.
18142 * modules/memcmp (Status, Notice): New sections.
18143 * modules/argmatch (Depends-on): Add memchr.
18144 * modules/backupfile (Depends-on): Likewise.
18145 * modules/c-strcasestr (Depends-on): Likewise.
18146 * modules/crypto/des (Depends-on): Likewise.
18147 * modules/csharpcomp (Depends-on): Likewise.
18148 * modules/fnmatch (Depends-on): Likewise.
18149 * modules/git-merge-changelog (Depends-on): Likewise.
18150 * modules/isnand (Depends-on): Likewise.
18151 * modules/isnand-nolibm (Depends-on): Likewise.
18152 * modules/isnanf (Depends-on): Likewise.
18153 * modules/isnanf-nolibm (Depends-on): Likewise.
18154 * modules/isnanl (Depends-on): Likewise.
18155 * modules/isnanl-nolibm (Depends-on): Likewise.
18156 * modules/mbchar (Depends-on): Likewise.
18157 * modules/memcoll (Depends-on): Likewise.
18158 * modules/quotearg (Depends-on): Likewise.
18159 * modules/regex (Depends-on): Likewise.
18160 * modules/relocatable-prog (Depends-on): Likewise.
18161 * modules/same (Depends-on): Likewise.
18162 * modules/signbit (Depends-on): Likewise.
18163 * modules/strcasestr-simple (Depends-on): Likewise.
18164 * modules/unictype/gen-ctype (Depends-on): Likewise.
18165 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18166 * modules/uniname/uniname (Depends-on): Likewise.
18167 * modules/unistr/u8-cmp (Depends-on): Likewise.
18169 2008-11-02 Bruno Haible <bruno@clisp.org>
18171 Mark 'memchr' obsolete.
18172 * modules/memchr (Status, Notice): New sections.
18173 * modules/argp (Depends-on): Add memchr.
18174 * modules/base64 (Depends-on): Likewise.
18175 * modules/c-strcasestr (Depends-on): Likewise.
18176 * modules/chdir-long (Depends-on): Likewise.
18177 * modules/fnmatch (Depends-on): Likewise.
18178 * modules/getsubopt (Depends-on): Likewise.
18179 * modules/git-merge-changelog (Depends-on): Likewise.
18180 * modules/glob (Depends-on): Likewise.
18181 * modules/strcasestr-simple (Depends-on): Likewise.
18182 * modules/strnlen (Depends-on): Likewise.
18184 2008-11-02 Bruno Haible <bruno@clisp.org>
18186 Mark 'atexit' obsolete.
18187 * modules/atexit (Status, Notice): New sections.
18188 * modules/chdir-long (Depends-on): Add atexit.
18189 * modules/wait-process (Depends-on): Likewise.
18191 2008-11-02 Bruno Haible <bruno@clisp.org>
18193 * gnulib-tool: New option --with-obsolete.
18194 (func_usage): Document it.
18195 (func_modules_transitive_closure): Drop obsolete dependencies if
18196 incobsolete is not true.
18197 (func_import): Read and save the incobsolete variable to the cache.
18199 2008-11-02 Bruno Haible <bruno@clisp.org>
18201 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18202 * gnulib-tool: New option --extract-status.
18203 (func_usage): Document it.
18204 (sed_extract_prog): Recognize it.
18205 (func_get_status): New function.
18207 2008-10-30 Simon Josefsson <simon@josefsson.org>
18209 * modules/sockets (License): Change from LGPL to LGPLv2+.
18211 2008-10-28 Simon Josefsson <simon@josefsson.org>
18213 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18215 2008-10-28 Simon Josefsson <simon@josefsson.org>
18217 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18218 Mention times and sys_times.
18219 * modules/sys_times, modules/sys_times-tests: New modules.
18220 * modules/times, modules/times-tests: Likewise
18221 * m4/sys_times_h.m4: New file.
18222 * lib/sys_times.in.h: Likewise
18223 * lib/times.c: Likewise.
18224 * tests/test-sys_times.c: Likewise.
18225 * tests/test-times.c: Likewise.
18226 * doc/posix-headers/sys_times.texi: Update.
18227 * doc/posix-functions/times.texi: Update.
18229 2008-10-28 Jim Meyering <meyering@redhat.com>
18231 * modules/tempname (Depends-on): Add lstat.
18233 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18235 2008-10-28 Simon Josefsson <simon@josefsson.org>
18237 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18238 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18239 using idiom used elsewhere in gnulib.
18241 2008-10-27 Jim Meyering <meyering@redhat.com>
18243 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18245 2008-10-27 Simon Josefsson <simon@josefsson.org>
18247 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18248 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18250 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18252 2008-10-27 Simon Josefsson <simon@josefsson.org>
18254 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18256 2008-10-27 Bruno Haible <bruno@clisp.org>
18258 * tests/test-lstat.c: Include <stdio.h>.
18260 2008-10-27 Simon Josefsson <simon@josefsson.org>
18262 * modules/lstat-tests: New module.
18263 * tests/test-lstat.c: New file.
18265 2008-10-26 Jim Meyering <meyering@redhat.com>
18267 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18269 2008-10-26 Simon Josefsson <simon@josefsson.org>
18270 Bruno Haible <bruno@clisp.org>
18272 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18273 * modules/configmake (Include): Add a note that the include must come
18274 after all system headers.
18275 * lib/javaversion.c: Include configmake.h after all other includes.
18277 2008-10-26 Bruno Haible <bruno@clisp.org>
18279 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18280 HAVE_STRUCT_RANDOM_DATA to 1.
18281 (gl_STDLIB_H): Simplify.
18283 2008-10-26 Simon Josefsson <simon@josefsson.org>
18285 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18286 substitute HAVE_STRUCT_RANDOM_DATA.
18287 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18289 * modules/stdlib (Makefile.am): Substitute
18290 HAVE_STRUCT_RANDOM_DATA.
18292 2008-10-26 Simon Josefsson <simon@josefsson.org>
18294 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18295 * doc/gnulib-intro.texi (Copyright): Likewise.
18297 2008-10-26 Simon Josefsson <simon@josefsson.org>
18299 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18302 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18303 Bruno Haible <bruno@clisp.org>
18305 * lib/unistd.in.h: Include <winsock2.h>.
18306 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18307 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18308 Provide dummy declarations.
18309 (gethostname): Override.
18310 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18311 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18312 gl_PREREQ_SYS_H_WINSOCK2.
18313 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18314 * doc/posix-functions/gethostname.texi: More details.
18316 2008-10-25 Bruno Haible <bruno@clisp.org>
18318 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18319 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18320 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18322 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18324 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18325 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18326 gl_UNISTD_H_DEFAULTS.
18328 2008-10-25 Eric Blake <ebb9@byu.net>
18330 signbit: avoid spurious compiler failure
18331 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18332 declarations inside function.
18334 2008-10-24 Simon Josefsson <simon@josefsson.org>
18335 Bruno Haible <bruno@clisp.org>
18337 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18338 * modules/random_r (Depends-on): Add stdint.
18340 2008-10-24 Bruno Haible <bruno@clisp.org>
18342 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18344 * modules/strerror (License): Likewise.
18346 2008-10-24 Jim Meyering <meyering@redhat.com>
18348 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18349 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18351 2008-10-24 Eric Blake <ebb9@byu.net>
18353 getgroups: fix compilation when getgroups is available
18354 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18355 but with <config.h> override of getgroups disabled.
18357 2008-10-24 Simon Josefsson <simon@josefsson.org>
18359 * doc/gnulib.texi (Header files): Add note about C++ problems.
18360 Explained by Bruno Haible <bruno@clisp.org>.
18362 2008-10-23 Bruno Haible <bruno@clisp.org>
18364 Define a dummy SA_NODEFER macro on Interix.
18365 * lib/signal.in.h (SA_NODEFER): Define fallback.
18366 Reported by Aleksey Cheusov <cheusov@tut.by> via
18367 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18369 2008-10-23 Bruno Haible <bruno@clisp.org>
18371 * modules/freadahead (License): Change to LGPLv2+.
18372 Suggested by Simon Josefsson.
18374 2008-10-23 Jim Meyering <meyering@redhat.com>
18376 random_r: new module
18377 * modules/random_r: New file.
18378 * m4/random_r.m4: New file.
18379 * lib/random_r.c: New file, from glibc.
18380 * modules/random_r-tests: New file.
18381 * tests/test-random_r.c: New file.
18382 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18384 (RAND_MAX): Define.
18385 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18386 * modules/stdlib: Substitute them, too.
18387 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18388 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18389 * doc/glibc-functions/random_r.texi: Likewise.
18390 * doc/glibc-functions/setstate_r.texi: Likewise.
18391 * doc/glibc-functions/srandom_r.texi: Likewise.
18392 * config/srclist.txt: Mention it.
18394 2008-10-23 David Lutterkort <lutter@redhat.com>
18396 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18399 2008-10-23 Jim Meyering <meyering@redhat.com>
18401 selinux-h: mark parameters of stub functions as intentionally unused
18402 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18403 * lib/se-context.in.h: Likewise.
18405 2008-10-22 Simon Josefsson <simon@josefsson.org>
18407 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18409 2008-10-22 Simon Josefsson <simon@josefsson.org>
18411 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18413 2008-10-22 Eric Blake <ebb9@byu.net>
18415 glthread/thread: avoid compiler warning
18416 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18417 Add unreachable abort to silence compiler.
18419 2008-10-22 Eric Blake <ebb9@byu.net>
18421 netdb: also supply struct addrinfo for cygwin 1.5.x
18422 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18424 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18426 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18428 2008-10-22 Bruno Haible <bruno@clisp.org>
18430 * users.txt: Update entry about pspp.
18432 2008-10-21 Bruno Haible <bruno@clisp.org>
18435 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18436 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18439 * lib/ioctl.c (ioctl): Don't undefine.
18440 * lib/socket.c (socket): Don't undefine.
18442 Remove unused module indicator macros.
18443 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18444 GNULIB_$1 as a C macro.
18446 * doc/posix-functions/close.texi: Undo last change.
18447 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18450 2008-10-21 Bruno Haible <bruno@clisp.org>
18452 Add gethostname() declaration to <unistd.h>.
18453 * lib/unistd.in.h (gethostname): New declaration.
18454 * lib/gethostname.c: Include <unistd.h>.
18455 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18456 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18457 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18458 and HAVE_GETHOSTNAME.
18459 * modules/gethostname (Depends-on): Add unistd.
18460 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18461 (Include): Specify <unistd.h>.
18462 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18464 * tests/test-gethostname.c: Include <unistd.h> first.
18466 2008-10-21 Bruno Haible <bruno@clisp.org>
18468 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18469 * modules/select-tests (Depends-on): Likewise.
18470 Reported by Simon Josefsson.
18472 2008-10-21 Simon Josefsson <simon@josefsson.org>
18474 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18475 * lib/accept.c: New file, based on winsock.c.
18476 * lib/bind.c: New file, based on winsock.c.
18477 * lib/connect.c: New file, based on winsock.c.
18478 * lib/getpeername.c: New file, based on winsock.c.
18479 * lib/getsockname.c: New file, based on winsock.c.
18480 * lib/getsockopt.c: New file, based on winsock.c.
18481 * lib/ioctl.c: New file, based on winsock.c.
18482 * lib/listen.c: New file, based on winsock.c.
18483 * lib/recv.c: New file, based on winsock.c.
18484 * lib/recvfrom.c: New file, based on winsock.c.
18485 * lib/send.c: New file, based on winsock.c.
18486 * lib/sendto.c: New file, based on winsock.c.
18487 * lib/setsockopt.c: New file, based on winsock.c.
18488 * lib/shutdown.c: New file, based on winsock.c.
18489 * lib/socket.c: New file, based on winsock.c.
18490 * lib/w32sock.h: New file, based on winsock.c.
18491 * lib/winsock.c: Remove file.
18492 * modules/accept: Likewise.
18493 * modules/bind: Likewise.
18494 * modules/connect: Likewise.
18495 * modules/getpeername: Likewise.
18496 * modules/getsockname: Likewise.
18497 * modules/getsockopt: Likewise.
18498 * modules/ioctl: Likewise.
18499 * modules/listen: Likewise.
18500 * modules/recv: Likewise.
18501 * modules/recvfrom: Likewise.
18502 * modules/send: Likewise.
18503 * modules/sendto: Likewise.
18504 * modules/setsockopt: Likewise.
18505 * modules/shutdown: Likewise.
18506 * modules/socket: Use socket.c instead of winsock.c.
18507 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18508 * doc/posix-functions/accept.texi: Doc fix.
18509 * doc/posix-functions/bind.texi: Doc fix.
18510 * doc/posix-functions/close.texi: Doc fix.
18511 * doc/posix-functions/connect.texi: Doc fix.
18512 * doc/posix-functions/getpeername.texi: Doc fix.
18513 * doc/posix-functions/getsockname.texi: Doc fix.
18514 * doc/posix-functions/getsockopt.texi: Doc fix.
18515 * doc/posix-functions/ioctl.texi: Doc fix.
18516 * doc/posix-functions/listen.texi: Doc fix.
18517 * doc/posix-functions/recv.texi: Doc fix.
18518 * doc/posix-functions/recvfrom.texi: Doc fix.
18519 * doc/posix-functions/send.texi: Doc fix.
18520 * doc/posix-functions/sendto.texi: Doc fix.
18521 * doc/posix-functions/setsockopt.texi: Doc fix.
18522 * doc/posix-functions/shutdown.texi: Doc fix.
18523 * doc/posix-functions/socket.texi: Doc fix.
18525 2008-10-20 Bruno Haible <bruno@clisp.org>
18527 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18528 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18529 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18530 as an alias for SIGABRT.
18531 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18532 (sigaction): Map it to SIGABRT.
18533 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18535 2008-10-20 Bruno Haible <bruno@clisp.org>
18537 * lib/fts.c: Don't include lstat.h.
18538 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18540 Move the lstat() declaration to <sys/stat.h>.
18541 * lib/lstat.h: Remove file.
18542 * lib/sys_stat.in.h: Add special invocation convention.
18543 (lstat): New declaration.
18544 * lib/lstat.c (orig_lstat): New function.
18545 (rpl_lstat): Use orig_lstat instead of lstat.
18546 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18547 AC_C_INLINE. Set REPLACE_LSTAT.
18548 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18550 * modules/lstat (Files): Remove lib/lstat.h.
18551 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18552 (Include): Specify <sys/stat.h> instead of lstat.h.
18553 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18555 * NEWS: Mention the change.
18557 2008-10-20 Bruno Haible <bruno@clisp.org>
18559 * modules/posix_spawn-tests: New file.
18560 * tests/test-posix_spawn3.c: New file.
18562 2008-10-20 Bruno Haible <bruno@clisp.org>
18564 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18565 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18566 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18567 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18568 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18570 2008-10-20 Bruno Haible <bruno@clisp.org>
18572 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18573 of posix_spawn on AIX 5.3.
18575 2008-10-20 Bruno Haible <bruno@clisp.org>
18577 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18579 2008-10-20 Bruno Haible <bruno@clisp.org>
18581 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18582 of AC_LANG_PROGRAM.
18584 2008-10-20 Simon Josefsson <simon@josefsson.org>
18586 * lib/netdb.in.h: Don't define GNU specific constants until they
18587 are supported or needed. Reported by Bruno Haible
18590 2008-10-20 Simon Josefsson <simon@josefsson.org>
18592 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18594 2008-10-20 Simon Josefsson <simon@josefsson.org>
18596 * lib/getaddrinfo.h: Remove file.
18597 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18598 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18599 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18600 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18601 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18602 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18603 * tests/test-getaddrinfo.c: Likewise.
18604 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18605 * NEWS: Mention change.
18607 2008-10-19 Bruno Haible <bruno@clisp.org>
18609 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18611 2008-10-19 Bruno Haible <bruno@clisp.org>
18613 * lib/wait-process.c: Include simply <sys/wait.h>.
18614 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18615 WIFSTOPPED): Remove fallback definitions.
18616 * modules/wait-process (Depends-on): Add sys_wait.
18618 New module 'sys_wait'.
18619 * modules/sys_wait: New file.
18620 * lib/sys_wait.in.h: New file, partially copied from
18621 lib/wait-process.c.
18622 * m4/sys_wait_h.m4: New file.
18623 * doc/posix-headers/sys_wait.texi: Mention the new module.
18625 2008-10-19 Bruno Haible <bruno@clisp.org>
18627 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18629 2008-10-19 Bruno Haible <bruno@clisp.org>
18631 Assume that waitpid() fills an 'int' status, not a 'union wait'.
18632 * lib/wait-process.c (WAIT_T): Remove type.
18633 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18634 (wait_subprocess): Update.
18636 2008-10-19 Bruno Haible <bruno@clisp.org>
18638 New module 'atoll'.
18639 * modules/atoll: New file.
18640 * lib/stdlib.in.h (atoll): New declaration.
18641 * lib/atoll.c: New file, from glibc with modifications.
18642 * m4/atoll.m4: New file.
18643 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18645 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18646 * doc/posix-functions/atoll.texi: Mention the new module.
18648 2008-10-19 Bruno Haible <bruno@clisp.org>
18650 Add strtoull() declaration to <stdlib.h>.
18651 * lib/stdlib.in.h (strtoull): New declaration.
18652 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18654 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18656 * modules/strtoull (Depends-on): Add stdlib.
18657 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18658 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18661 2008-10-19 Bruno Haible <bruno@clisp.org>
18663 Add strtoll() declaration to <stdlib.h>.
18664 * lib/stdlib.in.h (strtoll): New declaration.
18665 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18667 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18669 * modules/strtoll (Depends-on): Add stdlib.
18670 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18671 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18673 2008-10-19 Bruno Haible <bruno@clisp.org>
18675 * modules/bcopy (Depends-on): Add strings.
18676 (Include): Specify <strings.h>.
18678 2008-10-19 Bruno Haible <bruno@clisp.org>
18680 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18682 2008-10-19 Bruno Haible <bruno@clisp.org>
18684 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18685 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18688 2008-10-19 Bruno Haible <bruno@clisp.org>
18690 * lib/atanl.c: Don't include isnanl.h.
18691 * lib/cosl.c: Likewise.
18692 * lib/ldexpl.c: Likewise.
18693 * lib/logl.c: Likewise.
18694 * lib/sinl.c: Likewise.
18695 * lib/sqrtl.c: Likewise.
18696 * lib/tanl.c: Likewise.
18698 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18699 * lib/isnanf.h: Remove file.
18700 * lib/isnand.h: Remove file.
18701 * lib/isnanl.h: Remove file.
18702 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18703 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18705 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18706 HAVE_ISNANF, don't define it as a C macro.
18707 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18708 HAVE_ISNAND, don't define it as a C macro.
18709 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18710 HAVE_ISNANL, don't define it as a C macro.
18711 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18713 * modules/isnanf (Files): Remove lib/isnanf.h.
18714 (Depends-on): Add math.
18715 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18716 (Include): Specify <math.h> instead of isnanf.h.
18717 * modules/isnand (Files): Remove lib/isnand.h.
18718 (Depends-on): Add math.
18719 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18720 (Include): Specify <math.h> instead of isnand.h.
18721 * modules/isnanl (Files): Remove lib/isnanl.h.
18722 (Depends-on): Add math.
18723 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18724 (Include): Specify <math.h> instead of isnanl.h.
18725 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18727 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18728 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18729 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18730 * NEWS: Mention the change.
18732 2008-10-18 Bruno Haible <bruno@clisp.org>
18734 Add getusershell(), setusershell(), endusershell() declarations to
18736 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18738 * lib/getusershell.c: Include unistd.h.
18739 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18740 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18742 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18743 and HAVE_GETUSERSHELL.
18744 * modules/getusershell (Depends-on): Add unistd, extensions.
18745 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18746 (Include): Specify <unistd.h>.
18747 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18750 2008-10-18 Bruno Haible <bruno@clisp.org>
18752 Add a getloadavg() declaration to <stdlib.h>.
18753 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18754 getloadavg declaration.
18755 (getloadavg): New declaration.
18756 * lib/getloadavg.c: Include <stdlib.h> first.
18757 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18758 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18759 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18760 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18761 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18762 * modules/getloadavg (Depends-on): Add stdlib, extensions.
18763 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18764 (Include): Specify <stdlib.h>.
18765 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18766 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18768 2008-10-18 Bruno Haible <bruno@clisp.org>
18770 * lib/dirchownmod.c: Don't include lchmod.h.
18772 Move the lchmod() declaration to <sys/stat.h>.
18773 * lib/lchmod.h: Remove file.
18774 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18775 (lchmod): New declaration, moved here from lib/lchown.h.
18776 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18777 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18778 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18780 * modules/lchmod (Files): Remove lib/lchmod.h.
18781 (Depends-on): Add sys_stat, extensions.
18782 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18783 (Include): Specify <sys/stat.h> instead of lchmod.h.
18784 * modules/sys_stat (Depends-on): Add link-warning.
18785 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18786 definition of GL_LINK_WARNING.
18787 * NEWS: Mention the change.
18789 2008-10-18 Bruno Haible <bruno@clisp.org>
18791 * lib/fchdir.c: Don't include dirfd.h.
18792 * lib/fts.c: Likewise.
18793 * lib/getcwd.c: Likewise.
18794 * lib/glob.c: Likewise.
18796 Move the dirfd() declaration to <dirent.h>.
18797 * lib/dirfd.h: Remove file.
18798 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18799 (dirfd): New declaration.
18800 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18801 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18802 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18804 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18806 * modules/dirfd (Files): Remove lib/dirfd.h.
18807 (Depends-on): Add dirent, extensions.
18808 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18809 (Include): Specify <dirent.h> instead of dirfd.h.
18810 * modules/dirent (Depends-on): Add link-warning.
18811 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18812 definition of GL_LINK_WARNING.
18813 * NEWS: Mention the change.
18815 2008-10-18 Bruno Haible <bruno@clisp.org>
18817 Move the euidaccess() declaration to <unistd.h>.
18818 * lib/euidaccess.h: Remove file.
18819 * lib/unistd.in.h (euidaccess): New declaration.
18820 * lib/euidaccess.c: Don't include euidaccess.h.
18821 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18822 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18823 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18824 and HAVE_EUIDACCESS.
18825 * modules/euidaccess (Files): Remove lib/euidaccess.h.
18826 (Depends-on): Add unistd.
18827 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18828 (Include): Specify <unistd.h> instead of euidaccess.h.
18829 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18831 * NEWS: Mention the change.
18833 2008-10-18 Bruno Haible <bruno@clisp.org>
18835 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18837 Move the getdomainname() declaration to <unistd.h>.
18838 * lib/getdomainname.h: Remove file.
18839 * lib/unistd.in.h (getdomainname): New declaration.
18840 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18841 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18842 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18843 HAVE_GETDOMAINNAME.
18844 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18845 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18846 * modules/getdomainname (Files): Remove lib/getdomainname.h.
18847 (Depends-on): Add unistd, extensions.
18848 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18849 (Includes): Specify <unistd.h> instead of getdomainname.h.
18850 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18851 HAVE_GETDOMAINNAME.
18852 * NEWS: Mention the change.
18854 2008-10-18 Bruno Haible <bruno@clisp.org>
18856 * modules/dirent: New file.
18857 * m4/dirent_h.m4: New file.
18858 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18859 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18860 * modules/fchdir (Files): Remove lib/dirent.in.h.
18861 (Depends-on): Add dirent.
18862 (Makefile.am): Move rules to modules/dirent.
18863 * doc/posix-headers/dirent.texi: Mention the new module.
18865 2008-10-18 Bruno Haible <bruno@clisp.org>
18867 Avoid -Wunused-parameter warnings in public gnulib header files.
18868 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18870 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18872 2008-10-18 Bruno Haible <bruno@clisp.org>
18874 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18875 * doc/glibc-functions/error.texi: Mention the module 'error'.
18876 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18877 * doc/glibc-functions/getdomainname.texi: Mention the module
18879 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18880 * doc/glibc-functions/getpagesize.texi: Mention the module
18882 * doc/glibc-functions/getusershell.texi: Mention the module
18884 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18885 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18886 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18887 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18888 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18889 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18890 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18891 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18892 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18893 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18894 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18895 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18896 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18897 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18899 2008-10-17 Bruno Haible <bruno@clisp.org>
18901 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18902 HP-UX and IRIX, use -0.0L.
18903 * tests/test-ceill.c (minus_zero): Likewise.
18904 * tests/test-floorl.c (minus_zero): Likewise.
18905 * tests/test-frexpl.c (minus_zero): Likewise.
18906 * tests/test-isnan.c (minus_zerol): Likewise.
18907 * tests/test-isnanl.h (minus_zero): Likewise.
18908 * tests/test-ldexpl.c (minus_zero): Likewise.
18909 * tests/test-roundl.c (minus_zero): Likewise.
18910 * tests/test-signbit.c (minus_zerol): Likewise.
18911 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18912 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18913 * tests/test-truncl.c (minus_zero): Likewise.
18914 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18915 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18916 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18917 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18919 2008-10-17 Bruno Haible <bruno@clisp.org>
18921 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18922 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18923 that it gets activated only for gcc >= 3.0.
18924 * lib/dirent.in.h: Likewise.
18925 * lib/errno.in.h: Likewise.
18926 * lib/fcntl.in.h: Likewise.
18927 * lib/float.in.h: Likewise.
18928 * lib/iconv.in.h: Likewise.
18929 * lib/inttypes.in.h: Likewise.
18930 * lib/locale.in.h: Likewise.
18931 * lib/math.in.h: Likewise.
18932 * lib/netdb.in.h: Likewise.
18933 * lib/netinet_in.in.h: Likewise.
18934 * lib/search.in.h: Likewise.
18935 * lib/signal.in.h: Likewise.
18936 * lib/spawn.in.h: Likewise.
18937 * lib/stdarg.in.h: Likewise.
18938 * lib/stdint.in.h: Likewise.
18939 * lib/stdio.in.h: Likewise.
18940 * lib/stdlib.in.h: Likewise.
18941 * lib/string.in.h: Likewise.
18942 * lib/strings.in.h: Likewise.
18943 * lib/sys_file.in.h: Likewise.
18944 * lib/sys_ioctl.in.h: Likewise.
18945 * lib/sys_select.in.h: Likewise.
18946 * lib/sys_socket.in.h: Likewise.
18947 * lib/sys_stat.in.h: Likewise.
18948 * lib/sys_time.in.h: Likewise.
18949 * lib/sysexits.in.h: Likewise.
18950 * lib/time.in.h: Likewise.
18951 * lib/unistd.in.h: Likewise.
18952 * lib/wchar.in.h: Likewise.
18953 * lib/wctype.in.h: Likewise.
18954 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18956 2008-10-17 Jim Meyering <meyering@redhat.com>
18958 ignore-value: don't depend on inline module
18959 * modules/ignore-value (Depends-on): Remove 'inline'.
18960 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18961 Suggestion from Bruno Haible.
18963 2008-10-17 Bruno Haible <bruno@clisp.org>
18965 New implementation of condition variables for Win32.
18966 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18967 (gl_linked_waitqueue_t): New type.
18968 (gl_cond_t): Use it.
18969 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18970 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18971 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18972 (glthread_cond_init_func, glthread_cond_wait_func,
18973 glthread_cond_timedwait_func, glthread_cond_signal_func,
18974 glthread_cond_broadcast_func, glthread_cond_destroy_func):
18975 Reimplemented on the basis of gl_linked_waitqueue_t.
18976 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18978 (gl_rwlock_t): Update.
18979 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18981 2008-10-17 Simon Josefsson <simon@josefsson.org>
18983 * modules/recvfrom (Depends-on): Add dependency on getpeername.
18984 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18986 2008-10-17 Jim Meyering <meyering@redhat.com>
18988 ignore-value: new module
18989 * modules/ignore-value: New file.
18990 * lib/ignore-value.h: New file.
18991 * MODULES.html.sh (Compiler warning management): New section,
18992 just for this module. More to come.
18994 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
18996 open-safer.c: avoid 'signed and unsigned in conditional...' warning
18997 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18998 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19000 2008-10-16 Jim Meyering <meyering@redhat.com>
19002 openat-die.c: avoid 'no previous prototype' warning
19003 * lib/openat-die.c: Include "openat.h".
19004 Reported by Reuben Thomas <rrt@sc3d.org>.
19006 2008-10-16 Simon Josefsson <simon@josefsson.org>
19008 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19009 * lib/netdb.in.h: Fix typo.
19010 Reported by Bruno Haible <bruno@clisp.org>
19012 * lib/netdb.in.h: Include sys/socket.h for platforms without
19013 netdb.h, to get structures like hostent on MinGW.
19014 * modules/netdb (Depends-on): Add sys_socket.
19016 2008-10-15 Simon Josefsson <simon@josefsson.org>
19018 * modules/netdb, modules/netdb-tests: New file.
19019 * m4/netdb_h.m4: New file.
19020 * lib/netdb.in.h: Add, currently just an empty file pending
19022 * tests/test-netdb.c: New file.
19023 * doc/posix-headers/netdb.texi: Mention that we replace it if
19025 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19028 2008-10-15 Simon Josefsson <simon@josefsson.org>
19030 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19033 2008-10-13 Bruno Haible <bruno@clisp.org>
19035 * lib/glthread/cond.c (glthread_cond_wait_func,
19036 glthread_cond_timedwait_func): Add a comment.
19038 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19040 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19041 * tests/test-select.c: Likewise,
19043 2008-10-13 Bruno Haible <bruno@clisp.org>
19045 * lib/glthread/cond.c (glthread_cond_wait_func,
19046 glthread_cond_timedwait_func): Fix variable name.
19047 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19049 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19051 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19052 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19053 struct sockaddr.sa_len.
19054 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19056 2008-10-13 Simon Josefsson <simon@josefsson.org>
19058 * build-aux/pmccabe2html: Add css and css_url parameters.
19060 2008-10-12 Bruno Haible <bruno@clisp.org>
19062 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19064 Reported by Rainer Tammer <tammer@tammer.net>.
19066 2008-10-12 Bruno Haible <bruno@clisp.org>
19068 Use msvcrt aware primitives for creation/termination of Win32 threads.
19069 * lib/glthread/thread.c: Include <process.h>.
19070 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19071 (wrapper_func): Update signature.
19072 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19074 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19075 Bruno Haible <bruno@clisp.org>
19077 Provide a Win32 implementation of the 'cond' module.
19078 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19079 * lib/glthread/cond.c (glthread_cond_init_func,
19080 glthread_cond_wait_func, glthread_cond_timedwait_func,
19081 glthread_cond_signal_func, glthread_cond_broadcast_func,
19082 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19083 * modules/cond (Dependencies): Add gettimeofday.
19085 2008-10-11 Bruno Haible <bruno@clisp.org>
19087 Make sleep work on older versions of mingw.
19088 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19089 only whether it exists.
19090 * doc/posix-functions/sleep.texi: Mention the problem with older
19093 2008-10-11 Bruno Haible <bruno@clisp.org>
19095 New module 'shutdown'.
19096 * modules/shutdown: New file.
19097 * lib/sys_socket.in.h (shutdown): New declaration.
19098 * lib/winsock.c (shutdown): New function.
19099 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19101 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19102 * doc/posix-functions/shutdown.texi: Document the new module.
19104 2008-10-11 Jim Meyering <meyering@redhat.com>
19106 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19108 2008-10-11 Bruno Haible <bruno@clisp.org>
19110 New module 'fclose'.
19111 * modules/fclose: New file.
19112 * lib/stdio.in.h (fclose): New declaration.
19113 * lib/fclose.c: New file.
19114 * m4/fclose.m4: New file.
19115 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19117 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19118 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19120 * modules/close (Depends-on): fclose.
19121 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19123 2008-10-11 Bruno Haible <bruno@clisp.org>
19125 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19126 set errno and don't call _close.
19128 2008-10-10 Bruno Haible <bruno@clisp.org>
19130 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19131 ACL, not afterwards. Fixes test failure on Cygwin.
19133 2008-10-09 Ben Pfaff <blp@gnu.org>
19135 * build-aux/announce-gen: Fix gnulib version related part of usage
19136 message. Die with a useful error message if no tarballs are
19139 2008-10-10 Jim Meyering <meyering@redhat.com>
19141 bootstrap: use git's --depth=N option only if it's supported
19142 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19143 recognize the --depth option. Reported by Pádraig Brady.
19145 2008-10-09 Bruno Haible <bruno@clisp.org>
19147 New module 'ioctl'.
19148 * modules/ioctl: New file.
19149 * lib/sys_socket.in.h (ioctl): Remove declaration.
19150 * lib/winsock.c: Include <sys/ioctl.h>.
19151 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19152 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19153 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19154 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19155 * doc/posix-functions/ioctl.texi: Mention the new module.
19157 2008-10-09 Bruno Haible <bruno@clisp.org>
19159 New module 'sys_ioctl'.
19160 * lib/sys_ioctl.in.h: New file.
19161 * m4/sys_ioctl_h.m4: New file.
19162 * modules/sys_ioctl: New file.
19163 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19165 2008-10-09 Bruno Haible <bruno@clisp.org>
19167 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19168 * lib/winsock.c: Include <stdarg.h>.
19169 (rpl_ioctl): Change to second argument 'int' and then varargs.
19171 2008-10-09 Bruno Haible <bruno@clisp.org>
19173 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19174 when the sys_socket module is present and the system has <winsock2.h>.
19176 2008-10-09 Bruno Haible <bruno@clisp.org>
19178 * doc/posix-functions/close.texi: Mention module 'close' instead of
19179 module 'sys_socket'.
19181 2008-10-09 Bruno Haible <bruno@clisp.org>
19183 * doc/glibc-headers/sys_ioctl.texi: New file.
19184 * doc/gnulib.texi: Include it.
19186 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19187 Bruno Haible <bruno@clisp.org>
19189 Combine the two replacements of 'close'.
19190 * lib/sys_socket.in.h (close): Define to a reminder to include
19192 (_gl_close_fd_maybe_socket): New declaration.
19193 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19194 * lib/winsock.c (close): Remove undefinition.
19195 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19196 needed for the gnulib module 'close'.
19197 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19198 define to an error symbol or to a warning, if suitable.
19199 * lib/close.c: Include <sys/socket.h>.
19200 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19201 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19202 UNISTD_H_HAVE_WINSOCK2_H.
19203 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19204 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19205 UNISTD_H_HAVE_WINSOCK2_H.
19206 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19207 (configure.ac): Set a module indicator.
19208 (Makefile.am): Substitute GNULIB_CLOSE.
19209 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19210 * modules/poll-tests (Depends-on): Add close.
19211 * modules/select-tests (Depends-on): Likewise.
19213 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19214 Bruno Haible <bruno@clisp.org>
19216 New module 'close'.
19217 * modules/close: New file.
19218 * lib/unistd.in.h (close): Move declaration out of the
19219 FCHDIR_REPLACEMENT scope.
19220 (_gl_unregister_fd): New declaration.
19221 * lib/close.c: New file.
19222 * lib/fchdir.c (rpl_close): Remove function.
19223 * m4/close.m4: New file.
19224 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19226 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19228 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19230 * modules/fchdir (Depends-on): Add close.
19232 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19233 Bruno Haible <bruno@clisp.org>
19235 * lib/fcntl.in.h (open): Simplify conditionals.
19236 (_gl_register_fd): New declaration.
19237 * lib/fchdir.c (rpl_open): Remove function.
19238 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19240 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19241 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19244 2008-10-09 Jim Meyering <meyering@redhat.com>
19246 GNUmakefile: use the more name-space-friendly "_version"
19247 * top/GNUmakefile (_dummy): Update.
19248 (_version): Rename from "version".
19250 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19251 Bruno Haible <bruno@clisp.org>
19253 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19255 (_gl_register_fd): New function, extracted from rpl_open.
19256 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19257 (rpl_open, rpl_opendir): Use _gl_register_fd.
19259 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19261 Fix organization of 'open' replacement.
19262 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19263 (gl_FUNC_OPEN): Use it.
19264 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19266 2008-10-08 Bruno Haible <bruno@clisp.org>
19268 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19270 2008-10-08 Simon Josefsson <simon@josefsson.org>
19272 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19273 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19276 2008-10-08 Eric Blake <ebb9@byu.net>
19278 GNUmakefile: add 'make version' target
19279 * top/GNUmakefile (_curr-ver): Split version update rules...
19280 (version): ...into a target.
19282 2008-10-07 Bruno Haible <bruno@clisp.org>
19284 Use a more portable replacement expression for -0.0L.
19285 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19286 instead of -0.0L. Fix m4 quotation.
19288 * tests/test-signbit.c: Include <float.h>.
19289 (minus_zero): New variable.
19290 (test_signbitl): Use minus_zero instead of -zero.
19291 * modules/signbit-tests (Depends-on): Add float.
19293 * tests/test-ceill.c: Include <float.h>.
19294 (zero): Remove variable.
19295 (minus_zero): New variable.
19296 (main): Use minus_zero instead of -zero.
19297 * modules/ceill-tests (Depends-on): Add float.
19299 * tests/test-floorl.c: Include <float.h>.
19300 (zero): Remove variable.
19301 (minus_zero): New variable.
19302 (main): Use minus_zero instead of -zero.
19303 * modules/floorl-tests (Depends-on): Add float.
19305 * tests/test-roundl.c: Include <float.h>.
19306 (zero): Remove variable.
19307 (minus_zero): New variable.
19308 (main): Use minus_zero instead of -zero.
19309 * modules/roundl-tests (Depends-on): Add float.
19311 * tests/test-truncl.c: Include <float.h>.
19312 (zero): Remove variable.
19313 (minus_zero): New variable.
19314 (main): Use minus_zero instead of -zero.
19315 * modules/truncl-tests (Depends-on): Add float.
19317 * tests/test-frexpl.c (zero): Remove variable.
19318 (minus_zero): New variable.
19319 (main): Use minus_zero instead of -zero.
19320 * modules/frexpl-tests (Depends-on): Add float.
19322 * tests/test-isnan.c (zerol): Remove variable.
19323 (minus_zerol): New variable.
19324 (test_long_double): Use minus_zerol instead of -zerol.
19325 * modules/isnan-tests (Depends-on): Add float.
19327 * tests/test-isnanl.h (zero): Remove variable.
19328 (minus_zero): New variable.
19329 (main): Use minus_zero instead of -zero.
19330 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19331 * modules/isnanl-tests (Depends-on): Add float.
19333 * tests/test-ldexpl.c (zero): Remove variable.
19334 (minus_zero): New variable.
19335 (main): Use minus_zero instead of -zero.
19336 * modules/ldexpl-tests (Depends-on): Add float.
19338 * tests/test-snprintf-posix.h (zerol): Remove variable.
19339 (minus_zerol): New variable.
19340 (test_function): Use minus_zerol instead of -zerol.
19341 * modules/snprintf-posix-tests (Depends-on): Add float.
19342 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19344 * tests/test-sprintf-posix.h (zerol): Remove variable.
19345 (minus_zerol): New variable.
19346 (test_function): Use minus_zerol instead of -zerol.
19347 * modules/sprintf-posix-tests (Depends-on): Add float.
19348 * modules/vsprintf-posix-tests (Depends-on): Add float.
19350 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19351 (minus_zerol): New variable.
19352 (test_function): Use minus_zerol instead of -zerol.
19353 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19355 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19356 (minus_zerol): New variable.
19357 (test_function): Use minus_zerol instead of -zerol.
19358 * modules/vasprintf-posix-tests (Depends-on): Add float.
19360 2008-10-07 Simon Josefsson <simon@josefsson.org>
19362 * MODULES.html.sh (Support for building documentation): Mention
19363 pmccabe2html. Sort entries.
19365 Add pmccabe2html module, from gnupdf.
19366 * build-aux/pmccabe.css: New file.
19367 * build-aux/pmccabe2html: New file.
19368 * m4/pmccabe2html.m4: New file.
19369 * modules/pmccabe2html: New file.
19371 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19374 * MODULES.html.sh: Add to list of modules.
19375 * lib/flock.c: flock implementation for Windows and Unix systems
19377 * doc/glibc-functions/flock.texi: Update documentation.
19378 * lib/sys_file.in.h: <sys/file.h> header file.
19379 * m4/flock.m4: M4 macros.
19380 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19381 * modules/flock: flock module.
19382 * modules/flock-tests: flock tests module.
19383 * modules/sys_file: sys/file.h module.
19384 * tests/test-flock.c: test suite for flock.
19386 2008-10-06 Jim Meyering <meyering@redhat.com>
19388 bootstrap: check for LT_INIT more portably still ;-)
19389 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19390 Spotted by Bruno Haible.
19392 2008-10-06 Eric Blake <ebb9@byu.net>
19394 test-signbit: avoid tripping Irix cc bug on -0.0L
19395 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19396 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19397 entire testsuite consistent and avoids an Irix 6.2 bug.
19399 2008-10-05 Bruno Haible <bruno@clisp.org>
19400 Jim Meyering <jim@meyering.net>
19402 Add an option for ignoring EPIPE during close_stdout.
19403 * lib/closeout.h: Include <stdbool.h>.
19404 (close_stdout_set_ignore_EPIPE): New declaration.
19405 * lib/closeout.c: Include <stdbool.h>.
19406 (ignore_EPIPE): New variable.
19407 (close_stdout_set_ignore_EPIPE): New function.
19408 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19409 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19411 * modules/closeout (Depends-on): Add stdbool.
19413 2008-10-05 Bruno Haible <bruno@clisp.org>
19415 * modules/accept: New file.
19416 * modules/bind: New file.
19417 * modules/connect: New file.
19418 * modules/getpeername: New file.
19419 * modules/getsockname: New file.
19420 * modules/getsockopt: New file.
19421 * modules/listen: New file.
19422 * modules/recv: New file.
19423 * modules/recvfrom: New file.
19424 * modules/send: New file.
19425 * modules/sendto: New file.
19426 * modules/setsockopt: New file.
19427 * modules/socket: New file.
19428 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19429 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19430 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19431 the particular module is requested. Add a link warning when the
19432 particular module is not requested.
19433 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19434 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19435 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19436 the particular module is requested.
19437 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19438 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19439 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19440 * modules/sys_socket (Depends-on): Add link-warning.
19441 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19442 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19443 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19444 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19446 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19447 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19448 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19449 * doc/posix-functions/getpeername.texi: Mention the new module
19451 * doc/posix-functions/getsockname.texi: Mention the new module
19453 * doc/posix-functions/getsockopt.texi: Mention the new module
19455 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19456 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19457 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19458 * doc/posix-functions/send.texi: Mention the new module 'send'.
19459 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19460 * doc/posix-functions/setsockopt.texi: Mention the new module
19462 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19463 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19464 listen, connect, accept.
19465 * modules/select-tests (Depends-on): Likewise.
19467 2008-10-05 Bruno Haible <bruno@clisp.org>
19469 * lib/winsock.c (strerror): Remove unused #undef.
19470 (rpl_close): Remove unused local variable.
19472 * modules/sys_socket (Depends-on); Add errno.
19474 2008-10-05 Bruno Haible <bruno@clisp.org>
19476 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19477 (select): Add a link warning when the 'select' module is not used.
19478 * modules/sys_select (Depends-on): Add link-warning.
19479 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19480 Suggested by Paolo Bonzini.
19482 2008-10-05 Jim Meyering <meyering@redhat.com>
19484 bootstrap: check for LT_INIT more portably
19485 * build-aux/bootstrap: Avoid using grep -E, since it's not
19486 portable enough. Suggestion from Bruno Haible.
19488 2008-10-05 Bruno Haible <bruno@clisp.org>
19490 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19491 as being fixed by gnulib.
19493 2008-10-05 Bruno Haible <bruno@clisp.org>
19495 * modules/select-tests: New file, mostly copied from
19496 modules/sys_select-tests.
19497 * tests/test-select.c: New file, mostly copied from
19498 tests/test-sys_select.c.
19499 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19500 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19501 (Makefile.am): Remove test_sys_select_LDADD.
19503 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19504 to an undefined symbol, for an error message.
19505 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19506 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19507 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19508 winsock-select.c here.
19509 * modules/sys_select (Files): Remove lib/winsock-select.c.
19510 (Depends-on): Remove alloca.
19511 (Makefile.am): Substitute GNULIB_SELECT.
19512 * modules/select: New file.
19513 * doc/posix-functions/select.texi: Update.
19515 2008-10-05 Bruno Haible <bruno@clisp.org>
19517 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19518 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19519 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19520 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19522 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19523 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19525 2008-10-05 Bruno Haible <bruno@clisp.org>
19527 * modules/getdtablesize-tests: New file.
19528 * tests/test-getdtablesize.c: New file.
19530 New module 'getdtablesize'.
19531 * lib/unistd.in.h (getdtablesize): New declaration.
19532 * lib/getdtablesize.c: New file.
19533 * m4/getdtablesize.m4: New file.
19534 * modules/getdtablesize: New file.
19535 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19536 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19537 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19538 HAVE_GETDTABLESIZE.
19539 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19541 2008-10-05 Bruno Haible <bruno@clisp.org>
19543 * modules/sched (Makefile.am): Fix typo.
19544 Reported by Simon Josefsson.
19546 2008-10-05 Jim Meyering <meyering@redhat.com>
19548 bootstrap: check for LT_INIT, too
19549 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19550 are deprecated. Suggestion from Ralf Wildenhues.
19552 2008-10-05 Bruno Haible <bruno@clisp.org>
19554 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19555 overriding them by ours.
19556 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19558 2008-10-05 Jim Meyering <meyering@redhat.com>
19560 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19561 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19562 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19564 2008-10-04 Bruno Haible <bruno@clisp.org>
19566 * modules/dup2 (License): Change to LGPLv2+.
19567 * modules/sleep (License): Likewise.
19568 * modules/perror (License): Likewise.
19569 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19571 * modules/signal (License): Likewise.
19572 * modules/sigprocmask (License): Likewise.
19573 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19576 2008-10-04 Bruno Haible <bruno@clisp.org>
19578 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19579 Reported by Rainer Tammer <tammer@tammer.net>.
19581 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19582 Bruno Haible <bruno@clisp.org>
19584 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19585 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19586 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19588 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19590 filevercmp: new module
19591 * lib/filevercmp.h: New function filevercmp comparing version strings.
19592 * lib/filevercmp.c: Implementation of filevercmp function.
19593 * modules/filevercmp: Module metadata.
19594 * tests/test-filevercmp.c: Unit test for new module.
19595 * modules/filevercmp-tests: Unit test metadata.
19596 * MODULES.html.sh: Add filevercmp module.
19598 2008-10-03 Bruno Haible <bruno@clisp.org>
19600 * lib/c-ctype.h: Add comment.
19601 Reported by Jim Meyering.
19603 2008-10-02 Bruno Haible <bruno@clisp.org>
19605 * modules/posix_spawn-internal (Depends-on): Add 'open'.
19607 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19609 * build-aux/bootstrap: Allow renaming bootstrap, and change the
19610 name of bootstrap.conf accordingly.
19612 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19614 * build-aux/bootstrap: Install git-merge-changelog configuration
19615 items into .gitconfig if needed.
19617 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19619 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19620 git repository, and initialize/update it accordingly.
19622 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
19624 * modules/fsync-tests: New file.
19625 * tests/test-fsync.c: New file.
19627 New module 'fsync'.
19628 * lib/fsync.c: New file.
19629 * m4/fsync.m4: New file.
19630 * modules/fsync: New file.
19631 * lib/unistd.in.h (fsync): New declaration.
19632 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19633 GNULIB_FSYNC and HAVE_FSYNC.
19634 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19635 * MODULES.html.sh (posix_functions): Add fsync.
19636 * doc/posix-functions/fsync.texi: Mention the new module.
19638 2008-10-02 Jim Meyering <meyering@redhat.com>
19640 fts.c: sync with similar code from coreutils' remove.c
19641 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19642 Guard also with "#if defined __linux__", since for now at least,
19643 this code is Linux-kernel-specific.
19645 2008-10-02 Jim Meyering <meyering@redhat.com>
19648 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19649 Include <sys/vfs.h>, not <sys/statfs.h>.
19651 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19652 Include <sys/vfs.h>, not <sys/statfs.h>.
19654 2008-10-01 Bruno Haible <bruno@clisp.org>
19656 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19657 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19658 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19659 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19660 * doc/posix-functions/posix_spawnp.texi: Likewise.
19661 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19662 whether posix_spawn actually works.
19663 * m4/pipe.m4 (gl_PIPE): Likewise.
19664 * modules/execute (Files): Add m4/posix_spawn.m4.
19665 * modules/pipe (Files): Add m4/posix_spawn.m4.
19666 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19668 2008-10-01 Jim Meyering <meyering@redhat.com>
19670 remove trailing spaces
19672 * lib/poll.c (poll): Likewise.
19673 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19674 * lib/winsock.c (rpl_close): Likewise.
19675 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19676 * modules/yield: Likewise.
19677 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19678 * tests/test-sys_select.c (connect_to_socket): Likewise.
19680 fts.c: adjust a new interface to be more generally useful
19681 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19682 (fts_build): Adjust caller.
19684 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19686 * modules/cond-tests: New file.
19687 * tests/test-cond.c: New file.
19689 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19690 Bruno Haible <bruno@clisp.org>
19692 * modules/cond (Dependencies): Add errno, time.
19693 * lib/glthread/cond.h: Include <time.h>.
19694 (gl_cond_define, gl_cond_define_initialized): Use the same definition
19697 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19698 Bruno Haible <bruno@clisp.org>
19700 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19702 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19703 Bruno Haible <bruno@clisp.org>
19705 * modules/tls-tests (Depends-on): Add thread, yield.
19706 (configure.ac): Remove all checks.
19707 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19708 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19709 gl_thread_self): Remove definitions. Include glthread/thread.h and
19710 glthread/yield.h instead.
19711 (test_tls): Pass an additional NULL argument to gl_thread_join.
19713 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19714 Bruno Haible <bruno@clisp.org>
19716 * modules/lock-tests (Depends-on): Add thread, yield.
19717 (configure.ac): Remove all checks.
19718 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19719 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19720 gl_thread_self): Remove definitions. Include glthread/thread.h and
19721 glthread/yield.h instead.
19722 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19723 additional NULL argument to gl_thread_join.
19725 2008-09-30 Bruno Haible <bruno@clisp.org>
19727 Fix the Win32 implementation of the 'thread' module.
19728 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19730 (gl_thread_self): Invoke gl_thread_self_func.
19731 (gl_thread_self_func): New declaration.
19732 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19733 (do_init_self_key, init_self_key): New functions.
19734 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19735 Remove some fields.
19736 (running_threads, running_lock): Remove variables.
19737 (get_current_thread_handle): New function.
19738 (gl_thread_self_func, wrapper_func, glthread_create_func,
19739 glthread_join_func, gl_thread_exit_func): Largely rewritten and
19742 2008-09-30 Bruno Haible <bruno@clisp.org>
19744 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19747 2008-09-30 Jim Meyering <meyering@redhat.com>
19749 fts.m4: correct the test for statfs.f_type
19750 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19751 when checking for statfs.f_type.
19753 2008-09-15 Simon Josefsson <simon@josefsson.org>
19755 tests: avoid some compiler warnings
19756 * tests/test-memchr.c (main): Pass NULL indirectly.
19757 * tests/test-getdate.c (main): Remove unused variable 'ret'.
19759 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19761 getdate.y: disallow countable dayshifts like "4 yesterday ago"
19762 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19763 exactly specified dayshifts.
19764 (dayshift): New rule.
19765 (rel): Add dayshift.
19766 (relative_time_table) [tomorrow, yesterday, today, now]:
19767 Use tDAY_SHIFT in place of tDAY_UNIT.
19768 * tests/test-getdate.c: Add tests for now-disallowed countable
19769 dayshifts, e.g., "4 yesterday ago".
19771 2008-09-29 Bruno Haible <bruno@clisp.org>
19773 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19774 * tests/test-posix_spawn1.in.sh: Renamed from
19775 tests/test-posix_spawn.in.sh.
19776 * tests/test-posix_spawn2.c: New file.
19777 * tests/test-posix_spawn2.in.sh: New file.
19778 * modules/posix_spawnp-tests (Files): Update.
19779 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19781 2008-09-29 Bruno Haible <bruno@clisp.org>
19783 Propagate effects of putenv/setenv/unsetenv to child processes.
19784 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19785 * lib/pipe.c (create_pipe): Likewise.
19787 2008-09-29 Bruno Haible <bruno@clisp.org>
19789 Enable use of shell scripts as executables in mingw.
19790 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19791 run the program as a shell script.
19792 * lib/pipe.c (create_pipe): Likewise.
19793 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19796 2008-09-29 Eric Blake <ebb9@byu.net>
19798 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19800 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
19802 * doc/posix-functions/accept.texi: Update mingw problems.
19803 * doc/posix-functions/bind.texi: Update mingw problems.
19804 * doc/posix-functions/close.texi: Update mingw problems.
19805 * doc/posix-functions/connect.texi: Update mingw problems.
19806 * doc/posix-functions/getpeername.texi: Update mingw problems.
19807 * doc/posix-functions/getsockname.texi: Update mingw problems.
19808 * doc/posix-functions/getsockopt.texi: Update mingw problems.
19809 * doc/posix-functions/ioctl.texi: Update mingw problems.
19810 * doc/posix-functions/listen.texi: Update mingw problems.
19811 * doc/posix-functions/recv.texi: Update mingw problems.
19812 * doc/posix-functions/recvfrom.texi: Update mingw problems.
19813 * doc/posix-functions/select.texi: Update mingw problems.
19814 * doc/posix-functions/send.texi: Update mingw problems.
19815 * doc/posix-functions/sendto.texi: Update mingw problems.
19816 * doc/posix-functions/setsockopt.texi: Update mingw problems.
19817 * doc/posix-functions/socket.texi: Update mingw problems.
19819 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
19820 Bruno Haible <bruno@clisp.org>
19822 * lib/sys_select.in.h: Include sys/time.h.
19823 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19824 * modules/sys_select: Depend on sys_time.
19825 * tests/test-sys_select.c: Test that sys/select.h defines struct
19828 2008-09-29 Bruno Haible <bruno@clisp.org>
19830 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19831 * lib/sys_select.in.h: Likewise.
19833 2008-09-29 Bruno Haible <bruno@clisp.org>
19835 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19837 2008-09-29 Bruno Haible <bruno@clisp.org>
19839 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19840 Set LIBSOCKET instead of augmenting LIBS.
19841 * modules/sockets (Link): New section.
19842 * modules/sockets-tests (test_sockets_LDADD): New variable.
19843 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19844 * modules/poll-tests (test_poll_LDADD): New variable.
19845 * NEWS: Document the change.
19847 2008-09-29 Bruno Haible <bruno@clisp.org>
19849 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19850 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19851 ARPA_INET_H directly.
19852 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19854 2008-09-28 Bruno Haible <bruno@clisp.org>
19856 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19857 from gl_HEADER_SYS_SOCKET.
19858 (gl_HEADER_SYS_SOCKET): Invoke it.
19859 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19861 2008-09-28 Bruno Haible <bruno@clisp.org>
19863 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19864 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19865 Needed on OSF/1 4.0.
19867 2008-09-28 Bruno Haible <bruno@clisp.org>
19869 Override open more carefully.
19870 * lib/open.c (orig_open): New function.
19871 (rpl_open): Use orig_open instead of open.
19872 * lib/fcntl.in.h: Add special invocation convention.
19873 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19874 (gl_FUNC_OPEN): Invoke it.
19876 Override freopen more carefully.
19877 * lib/freopen.c (orig_freopen): New function.
19878 (rpl_freopen): Use orig_freopen instead of freopen.
19879 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19880 (gl_FUNC_FREOPEN): Invoke it.
19882 Override fopen more carefully.
19883 * lib/fopen.c (orig_fopen): New function.
19884 (rpl_fopen): Use orig_fopen instead of fopen.
19885 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19886 (gl_FUNC_FOPEN): Invoke it.
19887 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19889 2008-09-28 Bruno Haible <bruno@clisp.org>
19891 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19894 2008-09-28 Bruno Haible <bruno@clisp.org>
19896 * tests/test-sigaction.c (handler, main): Disable the check whether
19897 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19898 glibc systems with LinuxThreads.
19900 2008-09-28 Bruno Haible <bruno@clisp.org>
19902 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19904 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19906 * lib/fcntl.in.h (open): Likewise.
19907 Reported by Rainer Tammer <tammer@tammer.net>.
19909 2008-09-28 Bruno Haible <bruno@clisp.org>
19911 * modules/posix_spawnp-tests: New file.
19912 * tests/test-posix_spawn.c: New file.
19913 * tests/test-posix_spawn.in.sh: New file.
19915 New module 'posix_spawnp'.
19916 * modules/posix_spawnp: New file.
19917 * lib/spawnp.c: New file, from GNU libc with modifications.
19918 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19920 New module 'posix_spawn'.
19921 * modules/posix_spawn: New file.
19922 * lib/spawn.c: New file, from GNU libc with modifications.
19923 * doc/posix-functions/posix_spawn.texi: Mention the new module.
19925 New module 'posix_spawnattr_destroy'.
19926 * modules/posix_spawnattr_destroy: New file.
19927 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19928 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19931 New module 'posix_spawnattr_setsigmask'.
19932 * modules/posix_spawnattr_setsigmask: New file.
19933 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19935 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19938 New module 'posix_spawnattr_getsigmask'.
19939 * modules/posix_spawnattr_getsigmask: New file.
19940 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19942 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19945 New module 'posix_spawnattr_setsigdefault'.
19946 * modules/posix_spawnattr_setsigdefault: New file.
19947 * lib/spawnattr_setdefault.c: New file, from GNU libc with
19949 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19952 New module 'posix_spawnattr_getsigdefault'.
19953 * modules/posix_spawnattr_getsigdefault: New file.
19954 * lib/spawnattr_getdefault.c: New file, from GNU libc with
19956 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19959 New module 'posix_spawnattr_setschedpolicy'.
19960 * modules/posix_spawnattr_setschedpolicy: New file.
19961 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19963 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19966 New module 'posix_spawnattr_getschedpolicy'.
19967 * modules/posix_spawnattr_getschedpolicy: New file.
19968 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19970 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19973 New module 'posix_spawnattr_setschedparam'.
19974 * modules/posix_spawnattr_setschedparam: New file.
19975 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19977 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19980 New module 'posix_spawnattr_getschedparam'.
19981 * modules/posix_spawnattr_getschedparam: New file.
19982 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19984 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19987 New module 'posix_spawnattr_setpgroup'.
19988 * modules/posix_spawnattr_setpgroup: New file.
19989 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19991 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19994 New module 'posix_spawnattr_getpgroup'.
19995 * modules/posix_spawnattr_getpgroup: New file.
19996 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19998 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20001 New module 'posix_spawnattr_setflags'.
20002 * modules/posix_spawnattr_setflags: New file.
20003 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20004 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20007 New module 'posix_spawnattr_getflags'.
20008 * modules/posix_spawnattr_getflags: New file.
20009 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20010 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20013 New module 'posix_spawnattr_init'.
20014 * modules/posix_spawnattr_init: New file.
20015 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20016 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20019 New module 'posix_spawn_file_actions_destroy'.
20020 * modules/posix_spawn_file_actions_destroy: New file.
20021 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20023 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20026 New module 'posix_spawn_file_actions_addopen'.
20027 * modules/posix_spawn_file_actions_addopen: New file.
20028 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20030 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20033 New module 'posix_spawn_file_actions_adddup2'.
20034 * modules/posix_spawn_file_actions_adddup2: New file.
20035 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20037 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20040 New module 'posix_spawn_file_actions_addclose'.
20041 * modules/posix_spawn_file_actions_addclose: New file.
20042 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20044 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20047 New module 'posix_spawn_file_actions_init'.
20048 * modules/posix_spawn_file_actions_init: New file.
20049 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20050 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20053 New module 'posix_spawn-internal'.
20054 * modules/posix_spawn-internal: New file.
20055 * lib/spawn_int.h: New file, from GNU libc with modifications.
20056 * lib/spawni.c: New file, from GNU libc with modifications.
20057 * m4/posix_spawn.m4: New file.
20059 New module 'spawn'.
20060 * modules/spawn: New file.
20061 * lib/spawn.in.h: New file, from GNU libc with modifications.
20062 * m4/spawn_h.m4: New file.
20063 * doc/posix-headers/spawn.texi: Mention the new module.
20065 2008-09-28 Bruno Haible <bruno@clisp.org>
20067 * modules/sched-tests: New file.
20068 * tests/test-sched.c: New file.
20070 New module 'sched'.
20071 * modules/sched: New file.
20072 * lib/sched.in.h: New file.
20073 * m4/sched_h.m4: New file.
20074 * doc/posix-headers/sched.texi: Mention the new module.
20076 2008-09-27 Eric Blake <ebb9@byu.net>
20078 Fix previous patch, and tweak references to $0.
20079 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20080 (func_version, func_gnulib_dir): Don't call this program
20082 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20083 with using $0 in function.
20084 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20085 (func_fatal_error): Reuse the name the user invoked us with.
20087 2008-09-27 Bruno Haible <bruno@clisp.org>
20089 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20090 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20091 (gl_ICONV_H): Not here.
20092 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20093 instead of assigning ICONV_H directly.
20095 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20096 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20099 2008-09-27 Bruno Haible <bruno@clisp.org>
20101 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20102 * modules/arpa_inet (Depends-on): Add link-warning.
20103 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20104 * modules/unistd (Makefile.am): Likewise.
20106 2008-09-26 Bruno Haible <bruno@clisp.org>
20108 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20110 (func_version): Essentially copied from gnulib-tool.
20111 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20112 func_readlink): Copied from gnulib-tool.
20114 2008-09-26 Bruno Haible <bruno@clisp.org>
20116 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20117 invoking git-version-gen.
20119 2008-09-26 Bruno Haible <bruno@clisp.org>
20121 * posix-modules: Update to directory names changed on 2008-01-19.
20122 Remove commas in output before splitting into words. No more need to
20123 avoid 'ftruncate' since 2007-02-19.
20125 2008-09-26 Bruno Haible <bruno@clisp.org>
20127 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20129 2008-09-26 Bruno Haible <bruno@clisp.org>
20131 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20132 * modules/fwriteerror (Depends-on): Add errno.
20134 2008-09-26 Bruno Haible <bruno@clisp.org>
20136 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20137 * tests/test-vc-list-files-cvs.sh: Likewise.
20139 2008-09-26 Bruno Haible <bruno@clisp.org>
20141 * doc/posix-headers/sys_resource.texi: Reorder items.
20143 2008-09-26 Jim Meyering <meyering@redhat.com>
20145 fts: tweak inode comparison function
20146 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20147 inode numbers, as documented.
20149 fts: sort dirent entries on inode number before traversing
20150 This avoids a quadratic, seek-related performance penalty when
20151 operating on a directory containing many entries (measurable at 10k;
20152 3.5 hours at 2 million entries with a cold cache) on certain types
20153 of file systems, including ext3 and ext4, but not tmpfs.
20154 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20155 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20156 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20157 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20158 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20159 (fts_build): Set the stat.st_ino member from D_INO.
20160 If it is likely to be useful, sort dirent entries on inode number.
20162 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20163 and the struct statfs.f_type member.
20164 * modules/fts (Depends-on): Add d-ino.
20166 2008-09-26 Bruno Haible <bruno@clisp.org>
20168 * modules/sigpipe-die (Depends-on): Add sigpipe.
20170 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20171 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20172 and GNULIB_STDIO_H_SIGPIPE are set.
20173 * lib/stdio-write.c: New file.
20174 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20175 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20176 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20177 REPLACE_STDIO_WRITE_FUNCS.
20178 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20179 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20180 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20181 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20182 * modules/stdio (Files): Add lib/stdio-write.c.
20183 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20184 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20185 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20186 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20187 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20188 REPLACE_FPRINTF_POSIX.
20189 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20190 REPLACE_PRINTF_POSIX.
20191 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20192 REPLACE_VFPRINTF_POSIX.
20193 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20194 REPLACE_VPRINTF_POSIX.
20195 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20197 * doc/posix-functions/fputc.texi: Likewise.
20198 * doc/posix-functions/fputs.texi: Likewise.
20199 * doc/posix-functions/fwrite.texi: Likewise.
20200 * doc/posix-functions/printf.texi: Likewise.
20201 * doc/posix-functions/putc.texi: Likewise.
20202 * doc/posix-functions/putchar.texi: Likewise.
20203 * doc/posix-functions/puts.texi: Likewise.
20204 * doc/posix-functions/vfprintf.texi: Likewise.
20205 * doc/posix-functions/vprintf.texi: Likewise.
20207 * modules/safe-write (Depends-on): Add write.
20209 * modules/sigpipe-tests: New file.
20210 * tests/test-sigpipe.c: New file.
20211 * tests/test-sigpipe.sh: New file.
20213 * modules/write: New file.
20214 * lib/unistd.in.h: Include <sys/types.h>.
20215 (write): New declaration.
20216 * lib/write.c: New file.
20217 * m4/write.m4: New file.
20218 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20219 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20220 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20221 GNULIB_WRITE, REPLACE_WRITE.
20222 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20223 and the SIGPIPE issue.
20225 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20226 (raise): New declaration.
20227 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20228 (ext_signal): New function.
20229 (rpl_raise): New function.
20230 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20231 GNULIB_SIGNAL_H_SIGPIPE.
20232 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20233 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20235 * modules/sigpipe: New file.
20236 * m4/sigpipe.m4: New file.
20238 2008-09-25 Derek Price <derek@ximbiot.com>
20239 Bruno Haible <bruno@clisp.org>
20241 * gnulib-tool (func_import): Report all license incompatibilities, not
20242 just the first one.
20244 2008-09-25 Bruno Haible <bruno@clisp.org>
20246 * gnulib-tool (func_import): When computing the edits, consider not
20247 only the Makefile.ams that exist but also those that will be generated.
20249 2008-09-25 Simon Josefsson <simon@josefsson.org>
20251 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20252 fixes gnulib-tool --test warning about duplicate dependency.
20254 2008-09-25 Bruno Haible <bruno@clisp.org>
20256 * gnulib-tool: Don't ask the user to perform edits in the generated
20258 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20259 apply to the Makefile.am being generated.
20260 (func_emit_tests_Makefile_am): Execute edits that apply to the
20261 Makefile.am being generated.
20262 (func_import): Setup list of Makefile.am edits before emitting the
20263 Makefile.ams, not at the end.
20264 (func_create_testdir): Update.
20265 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20267 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20269 * gnulib-tool (func_import): Store the --tests-base option in the
20270 comment in gnulib-cache.m4.
20272 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20274 * NEWS: Document increased portability that sys_select now provides.
20276 * lib/sys_select.in.h: Install select wrapper.
20277 * lib/sys_socket.in.h: Use more descriptive name when there is no
20279 * lib/winsock-select.c: New.
20280 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20281 Require gl_HEADER_SYS_SOCKET.
20282 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20283 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20284 * tests/test-sys_select.c: Add functional tests.
20286 2008-09-24 Eric Blake <ebb9@byu.net>
20288 open, fopen: close fd leak in last patch
20289 * lib/open.c (rpl_open): Close fd before returning error.
20290 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20291 * doc/posix-functions/open.texi (open): Document that Irix also
20293 * doc/posix-functions/fopen.texi (fopen): Likewise.
20294 Reported by Paolo Bonzini.
20296 2008-09-24 Bruno Haible <bruno@clisp.org>
20298 Ensure that a filename ending in a slash cannot be used to access a
20300 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20301 to check whether it's really a directory.
20302 * lib/fopen.c: Include fcntl.h, unistd.h.
20303 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20305 * modules/fopen (Depends-on): Add unistd.
20306 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20307 * tests/test-fopen.c (main): Likewise.
20308 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20309 * doc/posix-functions/fopen.texi: Likewise.
20310 Reported by Eric Blake.
20312 2008-09-23 Eric Blake <ebb9@byu.net>
20314 c-stack: avoid compiler optimizations when provoking overflow
20315 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20316 recursion harder to optimize, to ensure a stack overflow occurs.
20317 * tests/test-c-stack.c (recurse): Likewise.
20318 Borrowed from libsigsegv.
20320 c-stack: work around Irix sigaltstack bug
20321 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20322 whether sigaltstack uses wrong end of stack_t (copied in part from
20324 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20325 Irix bug, without requiring an over-allocation.
20326 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20329 fopen: document mingw bug on directories
20330 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20331 not allowing a stream visiting a directory, even though reading
20332 from such a stream is not portable.
20334 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20336 * lib/poll.c: Rewrite.
20337 * modules/poll: Depend on alloca.
20339 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20341 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20342 instead define prototypes for a full set of wrappers. Ensure
20343 that Cygwin does not use the compatibility code, which is only
20345 * lib/winsock.c: New.
20346 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20347 * modules/sys_socket: Add lib/winsock.c.
20349 * modules/poll-tests: Add errno and perror.
20350 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20352 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20354 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20356 2008-09-23 Bruno Haible <bruno@clisp.org>
20358 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20359 * doc/glibc-functions/*: Likewise.
20361 2008-09-23 Simon Josefsson <simon@josefsson.org>
20363 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20366 2008-09-22 Eric Blake <ebb9@byu.net>
20367 Bruno Haible <bruno@clisp.org>
20369 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20370 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20371 supply %A but mishandle pseudo-NaN.
20372 Reported by Simon Josefsson.
20374 2008-09-21 Bruno Haible <bruno@clisp.org>
20376 * tests/test-lock.c (main): Tweak skip message.
20377 * tests/test-tls.c (main): Likewise.
20379 2008-09-21 Bruno Haible <bruno@clisp.org>
20381 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20382 whether 'struct sigaction' has sa_sigaction here...
20383 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20384 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20386 2008-09-21 Bruno Haible <bruno@clisp.org>
20388 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20390 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20391 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20393 (Support for obsolete systems lacking POSIX:2001): New section.
20394 (String handling <string.h>): Move strdup to the new section.
20395 Suggested by Simon Josefsson and Paolo Bonzini.
20397 2008-09-21 Bruno Haible <bruno@clisp.org>
20399 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20400 exponents in %e and %g results on 'long double'. Needed for mingw's
20401 improved *printf functions.
20402 * tests/test-vasprintf-posix.c (test_function): Likewise.
20403 * tests/test-snprintf-posix.h (test_function): Likewise.
20404 * tests/test-sprintf-posix.h (test_function): Likewise.
20405 Reported by Eric Blake.
20407 2008-09-21 Bruno Haible <bruno@clisp.org>
20409 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20410 * tests/test-sprintf-posix.h (test_function): Likewise.
20412 2008-09-21 Bruno Haible <bruno@clisp.org>
20414 * modules/getpass (Depends-on): Add strdup-posix.
20416 New module 'strdup-posix'.
20417 * modules/strdup-posix: New file.
20418 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20419 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20420 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20422 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20423 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20424 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20427 * modules/strdup (Depends-on): Remove malloc-posix.
20429 2008-09-20 Bruno Haible <bruno@clisp.org>
20431 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20434 2008-09-20 Bruno Haible <bruno@clisp.org>
20436 Ensure that wint_t gets defined on IRIX 5.3.
20437 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20438 * lib/wctype.in.h (wint_t): Likewise.
20439 (__wctype_wint_t): Remove type.
20440 (isw*): Use wint_t instead of __wctype_wint_t.
20441 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20442 * modules/wchar (Files): Add m4/wint_t.m4.
20443 (Makefile.am): Substitute HAVE_WINT_T.
20444 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20445 * tests/test-wctype.c: Check that wint_t is defined.
20446 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20447 * doc/posix-headers/wctype.texi: Likewise.
20448 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20450 2008-09-18 Bruno Haible <bruno@clisp.org>
20452 * gnulib-tool (func_exit): Update comment.
20454 2008-09-18 Simon Josefsson <simon@josefsson.org>
20456 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20457 assumes strdup exists and does not depend on strdup to return
20458 ENOMEM on out of memory conditions.
20460 2008-09-18 Bruno Haible <bruno@clisp.org>
20462 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20463 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20464 digits for the exponent.
20466 2008-09-18 Jim Meyering <meyering@redhat.com>
20467 Bruno Haible <bruno@clisp.org>
20469 * lib/vasnprintf.c (decimal_point_char): Define also if
20470 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20472 2008-09-16 Bruno Haible <bruno@clisp.org>
20473 and Eric Blake <ebb9@byu.net>
20475 vasnprintf: support Irix 5.3
20476 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20477 that mishandle long double infinity.
20478 Reported by Tom G. Christensen.
20480 2008-09-16 Bruno Haible <bruno@clisp.org>
20482 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20484 * doc/glibc-functions/alphasort.texi: Likewise.
20485 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20487 2008-09-16 Jim Meyering <meyering@redhat.com>
20489 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20490 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20491 a umask modification leak out of a subshell. Otherwise, the
20492 opensolaris /bin/sh would be accepted and thus cause unwarranted
20493 failures in the coreutils test suite.
20495 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20497 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20500 2008-09-16 Jim Meyering <meyering@redhat.com>
20502 avoid spurious test failure when library is built without ACL support
20503 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20504 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20505 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20506 * tests/test-copy-acl.sh: Likewise.
20508 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20510 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20511 based on character occurrence counts.
20513 2008-09-15 Eric Blake <ebb9@byu.net>
20515 tests: avoid some compiler warnings
20516 * tests/test-memchr.c (main): Pass NULL indirectly.
20517 * tests/test-closein.c (main): Avoid unused variable.
20519 2008-09-15 Bruno Haible <bruno@clisp.org>
20521 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20522 are missing on OpenBSD 4.0 individually.
20523 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20525 2008-09-15 Bruno Haible <bruno@clisp.org>
20527 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20528 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20529 * doc/posix-functions/perror.texi: Likewise.
20530 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20532 Reported by Eric Blake.
20534 * lib/errno.in.h: Use replacement values >= 2000.
20535 Reported by Eric Blake.
20537 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20539 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20540 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20542 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20543 compareseq was aborted.
20545 2008-09-14 Bruno Haible <bruno@clisp.org>
20547 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20549 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20550 (fstrcmp_bounded): Simplify result computation accordingly.
20552 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20554 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20555 (fstrcmp): Define in terms of fstrcmp_bounded.
20556 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20557 lower_bound argument.
20558 Return quickly if the result is certainly < lower_bound.
20559 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20561 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20563 * lib/diffseq.h (EARLY_ABORT): New macro.
20564 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20567 2008-09-14 Bruno Haible <bruno@clisp.org>
20569 * modules/perror-tests: New file.
20570 * tests/test-perror.sh: New file.
20571 * tests/test-perror.c: New file.
20573 New module 'perror'.
20574 * lib/stdio.in.h (perror): New declaration.
20575 * lib/perror.c: New file.
20576 * m4/perror.m4: New file.
20577 * modules/perror: New file.
20578 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20579 * doc/posix-functions/perror.texi: Mention the perror module.
20580 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20582 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20585 2008-09-14 Bruno Haible <bruno@clisp.org>
20587 * modules/stdio (Makefile.am): Reorder to match the order in
20589 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20591 2008-09-13 Bruno Haible <bruno@clisp.org>
20593 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20595 2008-09-13 Bruno Haible <bruno@clisp.org>
20597 Extend strerror to cover the added errno values.
20598 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20599 (rpl_strerror): Provide error messages for the added errno values and
20600 for the WSA* values.
20601 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20602 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20604 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20605 * modules/strerror (Depends-on): Add errno.
20606 * doc/posix-functions/strerror.texi: Document the change.
20607 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20610 2008-09-13 Bruno Haible <bruno@clisp.org>
20612 * modules/EOVERFLOW: Remove file.
20613 * m4/eoverflow.m4: Remove file.
20614 * modules/EOVERFLOW-tests: Remove file.
20615 * tests/test-EOVERFLOW.c: Remove file.
20616 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20617 * modules/ftell (Depends-on): Likewise.
20618 * modules/getdelim (Depends-on): Likewise.
20619 * modules/getugroups (Depends-on): Likewise.
20620 * modules/poll (Depends-on): Likewise.
20621 * modules/snprintf (Depends-on): Likewise.
20622 * modules/sprintf-posix (Depends-on): Likewise.
20623 * modules/vasnprintf (Depends-on): Likewise.
20624 * modules/vasprintf (Depends-on): Likewise.
20625 * modules/vfprintf-posix (Depends-on): Likewise.
20626 * modules/vsnprintf (Depends-on): Likewise.
20627 * modules/vsprintf-posix (Depends-on): Likewise.
20628 * modules/xvasprintf (Depends-on): Likewise.
20629 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20630 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20631 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20632 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20633 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20634 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20635 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20636 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20637 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20638 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20639 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20640 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20641 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20642 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20643 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20644 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20645 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20646 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20647 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20648 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20649 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20650 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20651 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20652 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20653 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20654 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20655 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20656 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20657 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20658 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20659 * MODULES.html.sh: Remove EOVERFLOW.
20660 * NEWS: Mention the change.
20662 2008-09-13 Bruno Haible <bruno@clisp.org>
20664 * modules/errno-tests: New file.
20665 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20667 * lib/errno.in.h: New file.
20668 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20669 * modules/errno: New file.
20670 * doc/posix-headers/errno.texi: Update documentation.
20671 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20673 2008-09-13 Bruno Haible <bruno@clisp.org>
20675 * tests/test-poll.c: Use #if for native Windows, rather than testing
20678 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20679 Bruno Haible <bruno@clisp.org>
20681 * lib/glob.c: Don't include <pwd.h> on native Windows.
20682 (WINDOWS32): New macro.
20683 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20685 2008-09-13 Bruno Haible <bruno@clisp.org>
20687 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20688 (ETIMEDOUT): Remove macro.
20689 (glthread_cond_timedwait_multithreaded): New declaration.
20690 (glthread_cond_timedwait): Use it.
20691 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20692 (glthread_cond_timedwait_multithreaded): New function.
20694 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20696 * modules/poll-tests: Do not check for io.h.
20697 * tests/test-poll.c: Check for __MSVCRT__ instead.
20699 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20701 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20702 * modules/poll-tests: Add inet_pton, stdbool, sockets.
20703 * tests/test-poll.c: Use them. Use _pipe on Windows.
20705 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20707 * modules/poll-tests: New.
20708 * tests/test-poll.c: New.
20710 2008-09-12 Eric Blake <ebb9@byu.net>
20712 frexp: test for NetBSD failure on -0.0
20713 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20714 not all, bugs from NetBSD 3.0 have been fixed.
20715 * doc/posix-functions/frexp.texi (frexp): Document bug.
20716 Reported by Thomas Klausner.
20718 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20719 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20721 Reported by Jonathan C. Patschke <jp@centtech.com>.
20723 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20725 * lib/glthread/cond.h: Use dummy implementation also if
20728 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20730 * modules/fnmatch-posix (License): Change to LGPLv2+.
20731 * modules/fnmatch-gnu (License): Likewise.
20733 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20735 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20737 2008-09-11 Jim Meyering <meyering@redhat.com>
20739 * users.txt: Add gtk-vnc.
20741 2008-09-08 Simon Josefsson <simon@josefsson.org>
20743 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20746 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20747 required for 16-bit and 8-bit rotates.
20748 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20749 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20750 UINT8_MAX instead of hard-coded constants.
20751 Suggested by Paul Eggert.
20753 2008-09-07 Bruno Haible <bruno@clisp.org>
20755 * tests/test-striconveh.c (main): Check behaviour when converting from
20758 Make striconveh work better with stateful encodings.
20759 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20760 that iconv does not increment the inptr when returning -1/EINVAL.
20762 2008-09-07 Bruno Haible <bruno@clisp.org>
20764 * build-aux/config.rpath: Update according to libtool-2.2.6.
20765 * build-aux/config.libpath: Likewise.
20767 2008-09-06 Bruno Haible <bruno@clisp.org>
20769 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20770 * lib/freadptr.c (freadptr): Likewise.
20771 * lib/freadseek.c (freadptrinc): Likewise.
20772 Reported by Simon Josefsson.
20774 2008-09-06 Bruno Haible <bruno@clisp.org>
20776 * modules/freadptr (License): Change to LGPLv2+.
20777 * modules/freadseek (License): Likewise.
20778 Suggested by Eric Blake.
20780 * modules/memchr2 (License): Change to LGPLv2+.
20781 Approved by Eric Blake.
20783 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20784 Bruno Haible <bruno@clisp.org>
20786 Make gnulib-tool work with native 'sed' on AIX.
20787 * gnulib-tool (sed_noop): New variable.
20788 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20789 func_add_or_update, func_create_testdir): Use it to initialize sed
20791 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20793 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
20794 Bruno Haible <bruno@clisp.org>
20796 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20797 also works after #include directives.
20799 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20801 getdate.y: reject an out-of-range timezone value
20802 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20803 the range [-24...+24]. When specified with only one or two digits,
20804 * tests/test-getdate.c: Tests for the fix.
20805 * doc/getdate.texi: Document this change.
20807 2008-09-03 Bruno Haible <bruno@clisp.org>
20809 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20811 2008-09-02 Simon Josefsson <simon@josefsson.org>
20813 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
20814 <bruce.korb@gmail.com> with ideas from Ben Pfaff
20815 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20816 Blake <ebb9@byu.net>.
20818 * tests/test-bitrotate.c: Add more test vectors.
20820 2008-09-02 Eric Blake <ebb9@byu.net>
20822 vasnprintf-posix: handle large precision via %.*d
20823 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20824 when handling it ourselves.
20825 * tests/test-vasnprintf-posix.c (test_function): Add test.
20826 * tests/test-snprintf-posix.h (test_function): Likewise.
20827 * tests/test-sprintf-posix.h (test_function): Likewise.
20828 * tests/test-vasprintf-posix.c (test_function): Likewise.
20829 Reported by Alain Guibert.
20831 2008-09-01 Eric Blake <ebb9@byu.net>
20833 c-stack: make configure-time check more robust
20834 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20835 successful sigaction call.
20836 Reported by Tom G. Christensen.
20838 2008-09-01 Bruno Haible <bruno@clisp.org>
20840 New module 'findprog-lgpl'.
20841 * modules/findprog-lgpl: New file.
20842 * lib/findprog-lgpl.c: New file.
20843 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20844 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20845 to decide whether to use strdup or xstrdup, concatenated_filename or
20846 xconcatenated_filename.
20848 2008-09-01 Bruno Haible <bruno@clisp.org>
20850 Split module 'concat-filename' into 'concat-filename' (LGPL) and
20851 'xconcat-filename' (GPL).
20852 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20853 (License): Change to LGPLv2+.
20854 * modules/xconcat-filename: New file.
20855 * lib/concat-filename.h (concatenated_filename): Change specification.
20856 (xconcatenated_filename): New declaration.
20857 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20858 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20860 * lib/xconcat-filename.c: New file.
20861 * NEWS: Mention the change.
20862 * lib/findprog.c: Include concat-filename.h, not filename.h.
20863 (find_in_path): Use xconcatenated_filename instead of
20864 concatenated_filename.
20865 * lib/javacomp.c: Include concat-filename.h, not filename.h.
20866 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20867 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20868 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20869 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20870 instead of concatenated_filename.
20871 * lib/javaexec.c: Include concat-filename.h, not filename.h.
20872 (execute_java_class): Use xconcatenated_filename instead of
20873 concatenated_filename.
20874 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20875 * modules/javacomp (Depends-on): Likewise.
20876 * modules/javaexec (Depends-on): Likewise.
20878 2008-09-01 Bruno Haible <bruno@clisp.org>
20880 Split module 'filename' into 'filename' and 'concat-filename'.
20881 * modules/filename: Keep only lib/filename.h.
20882 (License): Change to LGPLv2+.
20883 * modules/concat-filename: New file, extracted from modules/filename.
20884 * lib/filename.h (concatenated_filename): Remove declaration.
20885 * lib/concat-filename.h: New file, extracted from lib/filename.h.
20886 * lib/concat-filename.c: Include concat-filename.h.
20887 * NEWS: Mention the change.
20889 2008-09-01 Simon Josefsson <simon@josefsson.org>
20891 * lib/bitrotate.h (rotl8, rotr8): Add.
20893 * modules/bitrotate (configure.ac): Need
20894 AC_REQUIRE([AC_C_INLINE]).
20895 (Description): Mention stdint.h. Reported by Bruno Haible
20898 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
20899 Paolo Bonzini <bonzini@gnu.org>.
20901 2008-08-31 Bruno Haible <bruno@clisp.org>
20903 Assume Solaris specific bi-arch conventions on Solaris systems.
20904 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20905 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20906 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20907 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20908 like acl_libdirstem.
20909 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20911 * NEWS: Mention the change.
20912 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20914 2008-08-31 Jim Meyering <meyering@redhat.com>
20916 * lib/strftime.h: Add comments describing the two added arguments.
20918 remove duplicate #include directives
20919 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20920 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20922 2008-08-31 Bruno Haible <bruno@clisp.org>
20924 New module 'sigpipe-die'.
20925 * modules/sigpipe-die: New file.
20926 * lib/sigpipe-die.h: New file.
20927 * lib/sigpipe-die.c: New file.
20928 * MODULES.html.sh (Signal handling): Add sigpipe-die.
20930 2008-08-31 Bruno Haible <bruno@clisp.org>
20932 Don't override previously installed signal handlers.
20933 * lib/fatal-signal.c (saved_sigactions): New variable.
20934 (uninstall_handlers): Reset the signal to the saved handler, not
20935 to SIG_DFL (except when ignored).
20936 (install_handlers): Save the previous handlers.
20938 2008-08-30 Bruno Haible <bruno@clisp.org>
20940 * gnulib-tool (func_reset_sigpipe): New function.
20941 (func_get_automake_snippet, func_modules_transitive_closure,
20942 func_import): Invoke it before a join command that reads from stdin,
20943 to avoid "echo: write error: Broken pipe" error messages on stderr.
20944 Reported by Sam Steingold <sds@gnu.org>.
20946 2008-08-30 Bruno Haible <bruno@clisp.org>
20948 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20949 Code copied from m4/open.m4.
20950 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20951 access and the filename ends in a slash. Code copied from lib/open.c.
20952 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20953 * tests/test-fopen.c (main): Check against bug with trailing slash.
20955 2008-08-29 Bruno Haible <bruno@clisp.org>
20957 Avoid some "gcc -pedantic" warnings.
20958 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20959 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20960 * lib/dirent.in.h: Likewise.
20961 * lib/fcntl.in.h: Likewise.
20962 * lib/float.in.h: Likewise.
20963 * lib/iconv.in.h: Likewise.
20964 * lib/inttypes.in.h: Likewise.
20965 * lib/locale.in.h: Likewise.
20966 * lib/math.in.h: Likewise.
20967 * lib/netinet_in.in.h: Likewise.
20968 * lib/search.in.h: Likewise.
20969 * lib/signal.in.h: Likewise.
20970 * lib/stdarg.in.h: Likewise.
20971 * lib/stdint.in.h: Likewise.
20972 * lib/stdio.in.h: Likewise.
20973 * lib/stdlib.in.h: Likewise.
20974 * lib/string.in.h: Likewise.
20975 * lib/strings.in.h: Likewise.
20976 * lib/sys_select.in.h: Likewise.
20977 * lib/sys_socket.in.h: Likewise.
20978 * lib/sys_stat.in.h: Likewise.
20979 * lib/sys_time.in.h: Likewise.
20980 * lib/sysexits.in.h: Likewise.
20981 * lib/time.in.h: Likewise.
20982 * lib/unistd.in.h: Likewise.
20983 * lib/wchar.in.h: Likewise.
20984 * lib/wctype.in.h: Likewise.
20985 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20986 * modules/fchdir (Makefile.am): Likewise.
20987 * modules/fcntl (Makefile.am): Likewise.
20988 * modules/float (Makefile.am): Likewise.
20989 * modules/iconv_open (Makefile.am): Likewise.
20990 * modules/inttypes (Makefile.am): Likewise.
20991 * modules/locale (Makefile.am): Likewise.
20992 * modules/math (Makefile.am): Likewise.
20993 * modules/netinet_in (Makefile.am): Likewise.
20994 * modules/search (Makefile.am): Likewise.
20995 * modules/signal (Makefile.am): Likewise.
20996 * modules/stdarg (Makefile.am): Likewise.
20997 * modules/stdint (Makefile.am): Likewise.
20998 * modules/stdio (Makefile.am): Likewise.
20999 * modules/stdlib (Makefile.am): Likewise.
21000 * modules/string (Makefile.am): Likewise.
21001 * modules/strings (Makefile.am): Likewise.
21002 * modules/sys_select (Makefile.am): Likewise.
21003 * modules/sys_socket (Makefile.am): Likewise.
21004 * modules/sys_stat (Makefile.am): Likewise.
21005 * modules/sys_time (Makefile.am): Likewise.
21006 * modules/sysexits (Makefile.am): Likewise.
21007 * modules/time (Makefile.am): Likewise.
21008 * modules/unistd (Makefile.am): Likewise.
21009 * modules/wchar (Makefile.am): Likewise.
21010 * modules/wctype (Makefile.am): Likewise.
21011 Reported by Reuben Thomas <rrt@sc3d.org>.
21013 2008-08-29 Bruno Haible <bruno@clisp.org>
21015 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21018 2008-08-29 Simon Josefsson <simon@josefsson.org>
21020 * MODULES.html.sh (Misc): Add bitrotate.
21022 * modules/bitrotate: New file.
21024 * lib/bitrotate.h: New file.
21026 * modules/bitrotate-tests: New file.
21028 * tests/test-bitrotate.c: New file.
21030 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21031 on the bitrotate module.
21033 * lib/arctwo.c: Use new bitrotate module.
21035 2008-08-29 Jim Meyering <meyering@redhat.com>
21037 bootstrap: merge changes from coreutils
21038 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21039 of copied files. Remove a kludge, now that this is fixed.
21040 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21041 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21042 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21044 2008-08-29 Bruno Haible <bruno@clisp.org>
21046 * MODULES.html.sh: Remove --cvs-urls option.
21048 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21050 maint.mk: adjust to file name change
21051 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21053 2008-08-28 Jim Meyering <meyering@redhat.com>
21055 * modules/getndelim2 (License): Relicense to LGPLv2+.
21056 Approved by Richard Stallman for the version of 1995, and by
21057 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21059 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21061 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21062 dummy if one is not available. Do not touch them if
21063 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21064 (getc_maybe_unlocked): New.
21065 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21067 2008-08-26 Eric Blake <ebb9@byu.net>
21069 doc/INSTALL: resync from autoconf
21070 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21071 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21073 * install.texi [!autoconf]: ...here. Resync from autoconf.
21074 * INSTALL: Regenerate.
21075 * INSTALL.ISO: New file.
21076 * INSTALL.UTF-8: Likewise.
21078 2008-08-26 Jim Meyering <meyering@redhat.com>
21080 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21081 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21082 these definitions conditional, so that they may be overridden, too.
21084 2008-08-26 Bruno Haible <bruno@clisp.org>
21086 Generate INSTALL file variants with prettier quotes.
21087 * doc/Makefile (INSTALL_PRELUDE): New macro.
21089 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21091 2008-08-26 Bruno Haible <bruno@clisp.org>
21093 Run makeinfo in an English locale.
21094 * doc/Makefile (MAKEINFO): New variable.
21096 2008-08-26 Bruno Haible <bruno@clisp.org>
21098 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21099 Suggested by Eric Blake.
21101 2008-08-25 Bruno Haible <bruno@clisp.org>
21103 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21105 2008-08-25 Eric Blake <ebb9@byu.net>
21107 c-stack: test that stack overflow can be caught
21108 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21109 that platform allows handling stack overflow; at least OS/2 EMX
21110 has sigaltstack, but crashes before transferring control to
21111 handler on stack overflow.
21112 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21113 check for HAVE_STACK_OVERFLOW_HANDLING.
21114 Reported by Elbert Pol.
21116 2008-08-25 Bruno Haible <bruno@clisp.org>
21118 * doc/posix-functions/strftime.texi: Fix description of strftime
21121 2008-08-24 Bruno Haible <bruno@clisp.org>
21123 * tests/uniwidth/test-uc_width2.c: New file.
21124 * tests/uniwidth/test-uc_width2.sh: New file.
21125 * modules/uniwidth/width-tests (Files): Add the new files.
21126 (TESTS): Add uniwidth/test-uc_width2.sh.
21127 (TESTS_ENVIRONMENT): New variable.
21128 (check_PROGRAMS): Add test-uc_width2.
21129 (test_uc_width2_SOURCES): New variable.
21131 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21132 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21134 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21136 2008-08-22 Eric Blake <ebb9@byu.net>
21138 test-lock, test-tls: mention why a test is skipped
21139 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21141 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21143 count-one-bits: relax license
21144 * modules/count-one-bits (License): Relicense to LGPLv2+.
21145 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21147 2008-08-22 Andreas Schwab <schwab@suse.de>
21149 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21150 Remove spurious space in assignment.
21152 2008-08-21 Simon Josefsson <simon@josefsson.org>
21154 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21155 Paul Eggert <eggert@CS.UCLA.EDU>.
21157 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21159 * modules/gettext: Add m4/threadlib.m4.
21161 2008-08-19 Eric Blake <ebb9@byu.net>
21163 test-c-stack: fix compilation failure on FreeBSD 5.0
21164 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21165 headers before <sys/resource.h>.
21166 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21168 Reported by Nelson H. F. Beebe.
21170 strverscmp: migrate from "strverscmp.h" to <string.h>
21171 * modules/string (Makefile.am): Add new hooks.
21172 * modules/strverscmp (Files): Remove strverscmp.h.
21173 (Depends-on): Add string.
21174 (configure.ac): Add indicator.
21175 (Include): Mention new header.
21176 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21178 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21180 * lib/strverscmp.h: Delete.
21181 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21182 * tests/test-strverscmp.c (includes): Adjust client.
21183 * lib/check-version.c (includes): Likewise.
21184 * NEWS: Document the change.
21186 strverscmp: add unit test
21187 * modules/strverscmp-tests: New file.
21188 * tests/test-strverscmp.c: Likewise.
21190 2008-08-19 Simon Josefsson <simon@josefsson.org>
21192 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21193 regarding Windows crypto stuff, from Mono.
21195 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21197 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21198 if present, for intel RND. Return error on failures.
21200 2008-08-18 Ben Pfaff <blp@gnu.org>
21202 gitlog-to-changelog: give better diagnostic for failed pipe-open
21203 * build-aux/gitlog-to-changelog: Improve error message: suggest
21204 that the version of Git may be too old.
21206 2008-08-18 Simon Josefsson <simon@josefsson.org>
21208 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21209 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21211 2008-08-18 Bruno Haible <bruno@clisp.org>
21213 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21216 2008-08-18 Bruno Haible <bruno@clisp.org>
21218 * lib/glthread/threadlib.c: Include <pthread.h>.
21220 2008-08-18 Bruno Haible <bruno@clisp.org>
21222 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21223 glthread_recursive_lock_* macros.
21224 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21227 2008-08-18 Bruno Haible <bruno@clisp.org>
21229 * lib/glthread/thread.c: Avoid forcing a context switch right after
21232 2008-08-17 Bruno Haible <bruno@clisp.org>
21234 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21235 * lib/glthread/thread.h: Provide Win32 specific implementation.
21236 * modules/thread (Files): Add lib/glthread/thread.c.
21237 (Depends-on): Add lock.
21238 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21240 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21242 New module 'yield'.
21243 * modules/yield: New file.
21244 * lib/glthread/yield.h: New file.
21245 * m4/yield.m4: New file.
21246 * MODULES.html.sh (Multithreading): Add yield.
21248 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21250 New module 'thread'.
21251 * modules/thread: New file.
21252 * lib/glthread/thread.h: New file.
21253 * m4/thread.m4: New file.
21254 * MODULES.html.sh (Multithreading): Add thread.
21256 2008-08-17 Bruno Haible <bruno@clisp.org>
21258 * lib/glthread/lock.h: Include <stdlib.h> always.
21259 * lib/glthread/tls.h: Likewise.
21260 * lib/glthread/cond.h: Likewise.
21262 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21265 * modules/cond: New file.
21266 * lib/glthread/cond.h: New file.
21267 * lib/glthread/cond.c: New file.
21268 * m4/cond.m4: New file.
21269 * MODULES.html.sh (Multithreading): Add cond.
21271 2008-08-16 Eric Blake <ebb9@byu.net>
21273 c-stack: fix regression on Irix 5.3 from 2008-06-21
21274 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21276 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21277 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21278 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21279 * modules/signal (Makefile.am): Use the value.
21280 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21281 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21282 * doc/posix-headers/signal.texi (signal.h): Document this
21284 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21285 Reported by Tom G. Christensen.
21287 2008-08-17 Bruno Haible <bruno@clisp.org>
21289 New module 'threadlib'.
21290 * modules/threadlib: New file.
21291 * lib/glthread/threadlib.c: New file, extracted from
21292 lib/glthread/lock.c.
21293 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21295 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21296 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21297 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21299 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21300 (gl_DISABLE_THREADS): Remove macro.
21301 * modules/lock (Files): Remove build-aux/config.rpath.
21302 (Depends-on): Remove havelib. Add threadlib.
21303 (configure.ac-early): Remove section.
21304 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21305 * modules/tls (Depends-on): Remove lock. Add threadlib.
21306 (Link): New section, copied from threadlib.
21307 * MODULES.html.sh (Multithreading): Add threadlib.
21309 2008-08-14 Bruno Haible <bruno@clisp.org>
21311 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21312 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21313 glthread_rwlock_unlock, glthread_rwlock_destroy,
21314 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21315 glthread_recursive_lock_destroy): Define as macros always.
21316 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21317 glthread_lock_lock.
21318 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21319 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21320 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21321 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21322 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21323 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21324 (glthread_recursive_lock_lock_func): Renamed from
21325 glthread_recursive_lock_lock.
21326 (glthread_recursive_lock_unlock_func): Renamed from
21327 glthread_recursive_lock_unlock.
21328 (glthread_recursive_lock_destroy_func): Renamed from
21329 glthread_recursive_lock_destroy.
21331 2008-08-14 Bruno Haible <bruno@clisp.org>
21333 * lib/glthread/lock.h: Renamed from lib/lock.h.
21334 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21335 * lib/glthread/tls.h: Renamed from lib/tls.h.
21336 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21337 * lib/fstrcmp.c: Update includes.
21338 * lib/strsignal.c: Update includes.
21339 * modules/lock (Files, Makefile.am): Update.
21340 (Include): Change to "glthread/lock.h".
21341 * modules/tls (Files, Makefile.am): Update.
21342 (Include): Change to "glthread/tls.h".
21343 * tests/test-lock.c: Update includes.
21344 * tests/test-tls.c: Update includes.
21345 * NEWS: Mention the renamed header files.
21347 2008-08-11 Jim Meyering <meyering@redhat.com>
21349 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21351 2008-08-11 Eric Blake <ebb9@byu.net>
21353 test-c-stack: avoid C99-ism
21354 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21356 Reported by Alain Guibert.
21358 2008-08-10 Jim Meyering <meyering@redhat.com>
21360 ensure that return value of uinttostr et al are not ignored
21361 * lib/inttostr.h (__GNUC_PREREQ): Define.
21362 (__attribute_warn_unused_result__): Define.
21363 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21365 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21367 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21368 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21370 2008-08-07 Jim Meyering <meyering@redhat.com>
21372 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21374 * modules/mkstemp (License): Relicense under LGPLv2+.
21375 * modules/tempname (License): Likewise.
21377 2008-08-06 Bruno Haible <bruno@clisp.org>
21379 * lib/poll.c (poll): Further micro-optimization.
21381 2008-08-06 Jim Meyering <meyering@redhat.com>
21383 inet_pton.c: use locale-independent tolower
21384 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21385 (inet_pton6): Use c_tolower rather than tolower.
21386 * modules/inet_pton (Depends-on): Add c-ctype.
21388 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21390 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21391 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21393 2008-08-06 Jim Meyering <meyering@redhat.com>
21395 * modules/inet_pton (License): Relicense under LGPLv2+.
21397 2008-08-03 Bruno Haible <bruno@clisp.org>
21399 Additional non-aborting API for lock and tls.
21400 * lib/lock.h: Include <errno.h>.
21401 (glthread_lock_init): New macro/function.
21402 (gl_lock_init): Define as wrapper around glthread_lock_init.
21403 (glthread_lock_lock): New macro/function.
21404 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21405 (glthread_lock_unlock): New macro/function.
21406 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21407 (glthread_lock_destroy): New macro/function.
21408 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21409 (glthread_rwlock_init): New macro/function.
21410 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21411 (glthread_rwlock_rdlock): New macro/function.
21412 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21413 (glthread_rwlock_wrlock): New macro/function.
21414 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21415 (glthread_rwlock_unlock): New macro/function.
21416 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21417 (glthread_rwlock_destroy): New macro/function.
21418 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21419 (glthread_recursive_lock_init): New macro/function.
21420 (gl_recursive_lock_init): Define as wrapper around
21421 glthread_recursive_lock_init.
21422 (glthread_recursive_lock_lock): New macro/function.
21423 (gl_recursive_lock_lock): Define as wrapper around
21424 glthread_recursive_lock_lock.
21425 (glthread_recursive_lock_unlock): New macro/function.
21426 (gl_recursive_lock_unlock): Define as wrapper around
21427 glthread_recursive_lock_unlock.
21428 (glthread_recursive_lock_destroy): New macro/function.
21429 (gl_recursive_lock_destroy): Define as wrapper around
21430 glthread_recursive_lock_destroy.
21431 (glthread_once): New macro/function.
21432 (gl_once): Define as wrapper around glthread_once.
21433 Update function declarations.
21434 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21435 glthread_rwlock_init. Return error code.
21436 (glthread_rwlock_rdlock_multithreaded): Renamed from
21437 glthread_rwlock_rdlock. Return error code.
21438 (glthread_rwlock_wrlock_multithreaded): Renamed from
21439 glthread_rwlock_wrlock. Return error code.
21440 (glthread_rwlock_unlock_multithreaded): Renamed from
21441 glthread_rwlock_unlock. Return error code.
21442 (glthread_rwlock_destroy_multithreaded): Renamed from
21443 glthread_rwlock_destroy. Return error code.
21444 (glthread_recursive_lock_init_multithreaded): Renamed from
21445 glthread_recursive_lock_init. Return error code.
21446 (glthread_recursive_lock_lock_multithreaded): Renamed from
21447 glthread_recursive_lock_lock. Return error code.
21448 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21449 glthread_recursive_lock_unlock. Return error code.
21450 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21451 glthread_recursive_lock_destroy. Return error code.
21452 (glthread_once_call): Make static.
21453 (glthread_once_multithreaded): Renamed from glthread_once.
21454 * lib/tls.h: Include <errno.h>.
21455 (glthread_tls_key_init): New macro/function.
21456 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21457 (glthread_tls_set): New macro/function.
21458 (gl_tls_set): Define as wrapper around glthread_tls_set.
21459 (glthread_tls_key_destroy): New macro/function.
21460 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21461 Update function declarations.
21462 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21464 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21466 2008-08-04 Eric Blake <ebb9@byu.net>
21468 gnumakefile: use space, not TAB, outside of targets
21469 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21471 2008-08-02 Jim Meyering <meyering@redhat.com>
21473 getdate.y: avoid locale-dependent date parsing failure
21474 In Turkish locales, getdate would fail to recognize keywords
21475 containing a lowercase "i". The solution is not to rely on
21476 locale-sensitive case-conversion.
21477 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21478 (lookup_word): Use c_toupper in place of toupper.
21479 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21480 Reported by Vefa Bicakci <bicave@superonline.com> in
21481 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21482 * modules/getdate (Depends-on): Add c-ctype.
21484 2008-08-02 Bruno Haible <bruno@clisp.org>
21486 * gnulib-tool (func_import): When updating or creating a .gitignore
21487 file, prepend each added line with a slash, and ignore leading slashes
21488 from the existing lines.
21489 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21491 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21493 Portability fix for GNU make 3.79.1.
21494 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21495 versions do not understand.
21497 2008-08-01 Bruno Haible <bruno@clisp.org>
21499 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21500 * tests/test-isnanf.h (zero): New variable.
21501 (main): Avoid literal -0.0f.
21502 * tests/test-isnand.h (zero): New variable.
21503 (main): Avoid literal -0.0.
21504 * tests/test-isnanl.h (zero): New variable.
21505 (main): Avoid literal -0.0L.
21506 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21507 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21509 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21510 (test_signbitd): Avoid literal -0.0.
21511 (test_signbitl): Avoid literal -0.0L.
21512 * tests/test-ceilf1.c (zero): New variable.
21513 (main): Avoid literal -0.0f.
21514 * tests/test-ceill.c (zero): New variable.
21515 (main): Avoid literal -0.0L.
21516 * tests/test-floorf1.c (zero): New variable.
21517 (main): Avoid literal -0.0f.
21518 * tests/test-floorl.c (zero): New variable.
21519 (main): Avoid literal -0.0L.
21520 * tests/test-roundf1.c (zero): New variable.
21521 (main): Avoid literal -0.0f.
21522 * tests/test-round1.c (zero): New variable.
21523 (main): Avoid literal -0.0.
21524 * tests/test-roundl.c (zero): New variable.
21525 (main): Avoid literal -0.0L.
21526 * tests/test-truncf1.c (zero): New variable.
21527 (main): Avoid literal -0.0f.
21528 * tests/test-trunc1.c (zero): New variable.
21529 (main): Avoid literal -0.0.
21530 * tests/test-truncl.c (zero): New variable.
21531 (main): Avoid literal -0.0L.
21532 * tests/test-frexp.c (zero): New variable.
21533 (main): Avoid literal -0.0.
21534 * tests/test-frexpl.c (zero): New variable.
21535 (main): Avoid literal -0.0L.
21536 * tests/test-ldexpl.c (zero): New variable.
21537 (main): Avoid literal -0.0L.
21538 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21539 (zerod, zerol): New variables.
21540 (test_function): Avoid literals -0.0, -0.0L.
21541 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21542 (zerod, zerol): New variables.
21543 (test_function): Avoid literals -0.0, -0.0L.
21544 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21545 (zerod, zerol): New variables.
21546 (test_function): Avoid literals -0.0, -0.0L.
21547 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21548 (zerod, zerol): New variables.
21549 (test_function): Avoid literals -0.0, -0.0L.
21550 * tests/test-strtod.c (zero): New variable.
21551 (main): Avoid literal -0.0.
21552 Reported by Jonathan C. Patschke <jp@centtech.com>.
21554 2008-07-31 Jim Meyering <meyering@redhat.com>
21556 sha256.h: correct definition of SHA224_DIGEST_SIZE
21557 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21558 Reported by Paulie Pena IV <paulie4@gmail.com>.
21559 Define as 224 / 8, rather than as a literal.
21560 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21561 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21562 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21564 2008-07-31 Bruno Haible <bruno@clisp.org>
21566 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21567 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21568 Reported by Jonathan Patschke <jp@centtech.com>.
21570 2008-07-31 Bruno Haible <bruno@clisp.org>
21572 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21573 Reported by Paolo Bonzini <bonzini@gnu.org>.
21575 2008-07-30 Eric Blake <ebb9@byu.net>
21577 test-strtod: allow compilation without -lm
21578 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21579 Reported by Dennis Clarke <blastwave@gmail.com>.
21581 2008-07-28 Jim Meyering <meyering@redhat.com>
21583 bootstrap: work also when there are no .po files in po/
21584 * build-aux/bootstrap (update_po_files): Complete the change
21585 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21587 2008-07-27 Jim Meyering <meyering@redhat.com>
21589 * users.txt: Add zile.
21591 2008-07-26 Ben Pfaff <blp@gnu.org>
21593 Add missing dependencies on new m4/exponent[fdl].m4 files.
21594 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21595 * modules/isnand-nolibm: Add m4/exponentd.m4.
21596 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21597 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21598 m4/isnan[fdl].m4, because the macros actually used moved.
21599 Reported by Jim Meyering.
21601 2008-07-14 Ben Pfaff <blp@gnu.org>
21604 * lib/isinf.c: New file.
21605 * lib/math.in.h: Define isinf macro if we have decided to replace
21607 * m4/isinf.m4: New file.
21608 * m4/math_h.m4: Initialize and substitute variables for isinf
21610 * modules/isinf: New file.
21611 * modules/isinf-tests: New file.
21612 * modules/math: Add substitutions for new module.
21613 * tests/test-isinf.c: New file.
21614 * doc/posix-functions/isinf.texi: Mention new module.
21615 * MODULES.html.sh: Mention new module.
21617 2008-07-14 Ben Pfaff <blp@gnu.org>
21619 Factor out some macros for use by additional modules.
21620 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21622 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21624 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21626 * m4/exponentf.m4: New file.
21627 * m4/exponentd.m4: New file.
21628 * m4/exponentl.m4: New file.
21629 * modules/isnanf: Use new file m4/exponentf.m4.
21630 * modules/isnand: Use new file m4/exponentd.m4.
21631 * modules/isnanl: Use new file m4/exponentl.m4.
21633 2008-07-23 Ulrich Drepper <drepper@redhat.com>
21635 mktime.c: normalize tp->tm_isdst value to -1/0/1.
21636 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21637 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21638 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21640 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21641 readlink on platforms without PATH_MAX.
21643 2008-07-21 Eric Blake <ebb9@byu.net>
21645 Warn, not fail, on stale version.
21646 * top/GNUmakefile (_curr-ver): Tone down previous patch.
21648 Don't allow installation with stale devel version number.
21649 * top/GNUmakefile (_is-install-target): New macro.
21650 (_curr-ver): Forbid installation with stale version number.
21652 2008-07-20 Bruno Haible <bruno@clisp.org>
21654 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21656 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21658 2008-07-20 Bruno Haible <bruno@clisp.org>
21660 * lib/c-stack.h (c_stack_action): Add documentation.
21661 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21663 2008-07-20 Bruno Haible <bruno@clisp.org>
21665 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21666 * modules/readlink (License): Likewise.
21668 2008-07-17 Eric Blake <ebb9@byu.net>
21670 * modules/c-stack (Link): Fix typo.
21672 Make c-stack use libsigsegv, when available.
21673 * modules/c-stack (Depends-on): Add libsigsegv.
21674 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21676 * lib/c-stack.c (SIGSTKSZ): Define fallback.
21677 (segv_handler, overflow_handler, c_stack_action)
21678 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21679 implementation when libsigsegv is available, but only when using
21680 the library is necessary.
21681 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21682 comment, explaining why XSI check fails on Linux.
21683 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21684 * tests/test-c-stack2.sh: Tweak skip message.
21685 * NEWS: Document new link-time requirements.
21687 2008-07-16 Eric Blake <ebb9@byu.net>
21689 c-stack: Expose false positives when not using libsigsegv.
21690 * modules/c-stack-tests (Files): Expand test.
21691 * tests/test-c-stack.c (main): Add means to conditionally trigger
21692 non-overflow SIGSEGV.
21693 * tests/test-c-stack2.sh: New file.
21695 2008-07-14 Bruno Haible <bruno@clisp.org>
21697 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21698 Reported by Eric Blake.
21700 2008-07-14 Sam Steingold <sds@gnu.org>
21701 Bruno Haible <bruno@clisp.org>
21703 New module libsigsegv.
21704 * modules/libsigsegv: New file.
21705 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21707 * MODULES.html.sh (Signal handling): New section.
21709 2008-07-14 Bruno Haible <bruno@clisp.org>
21711 * modules/unictype/ctype-* (Description): Add the word "function".
21712 Improves the resulting doc in MODULES.html.
21714 2008-07-12 Ben Pfaff <blp@gnu.org>
21716 Add longlong module.
21717 * modules/longlong: New file.
21719 2008-07-12 Bruno Haible <bruno@clisp.org>
21721 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21724 2008-07-10 Ben Pfaff <blp@gnu.org>
21727 * doc/posix-functions/isnan.texi: Mention new module.
21728 * lib/math.in.h: Define isnan macro if we have decided to replace
21730 * m4/isnan.m4: New file.
21731 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21732 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21734 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21736 * m4/math_h.m4: Initialize and substitute variables for isnan
21738 * modules/isnan: New file.
21739 * modules/isnan-tests: New file.
21740 * modules/math: Add substitutions for new module.
21741 * tests/test-isnan.c: New file.
21742 * MODULES.html.sh: Mention new module.
21744 2008-07-10 Ben Pfaff <blp@gnu.org>
21747 * lib/isnanf.m4: New file.
21748 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21749 (gl_HAVE_ISNANF_IN_LIBM): New macro.
21750 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21751 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21752 * modules/isnanf: New file.
21753 * modules/isnanf-tests: New file.
21754 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21756 * tests/test-isnanf-nolibm.c: factored most of its contents into
21757 new file tests/test-isnanf.h.
21758 * tests/test-isnanf.h: New file.
21759 * tests/test-isnanf.c: New file.
21760 * MODULES.html.sh: Mention new module.
21761 * doc/glibc-functions/isnanf.texi: Mention new module.
21763 2008-07-10 Ben Pfaff <blp@gnu.org>
21766 * lib/isnand.h: New file.
21767 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21768 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21769 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21770 functionality also.
21771 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21772 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21773 (gl_HAVE_ISNAND_IN_LIBM): New macro.
21774 * modules/isnand: New file.
21775 * modules/isnand-tests: New file.
21776 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21778 * tests/test-isnand-nolibm.c: factored most of its contents into
21779 new file tests/test-isnand.h.
21780 * tests/test-isnand.h: New file.
21781 * tests/test-isnand.c: New file.
21782 * MODULES.html.sh: Mention new module.
21784 2008-07-10 Ben Pfaff <blp@gnu.org>
21786 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21787 * lib/isnand.h: Rename lib/isnand-nolibm.h.
21788 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21789 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21790 * modules/isnanf-nolibm: Update references to renamed files.
21791 * modules/isnand-nolibm: Likewise.
21792 * modules/isnanf-nolibm-tests: Likewise.
21793 * modules/isnand-nolibm-tests: Likewise.
21794 * lib/frexp.c: Likewise.
21795 * lib/isfinite.c: Likewise.
21796 * lib/signbitd.c: Likewise.
21797 * lib/signbitf.c: Likewise.
21798 * lib/vasnprintf.c: Likewise.
21799 * tests/test-ceilf1.c: Likewise.
21800 * tests/test-ceilf2.c: Likewise.
21801 * tests/test-floorf1.c: Likewise.
21802 * tests/test-floorf2.c: Likewise.
21803 * tests/test-frexp.c: Likewise.
21804 * tests/test-round1.c: Likewise.
21805 * tests/test-round2.c: Likewise.
21806 * tests/test-roundf1.c: Likewise.
21807 * tests/test-strtod.c: Likewise.
21808 * tests/test-trunc1.c: Likewise.
21809 * tests/test-trunc2.c: Likewise.
21810 * tests/test-truncf1.c: Likewise.
21811 * tests/test-truncf2.c: Likewise.
21812 * NEWS: Mention the renamed header files.
21814 2008-07-11 Jim Meyering <meyering@redhat.com>
21816 vc-list-files: make the last-resort awk code more portable
21817 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21818 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21819 does not support it.
21821 2008-07-10 Eric Blake <ebb9@byu.net>
21823 Work with tar's bootstrap.
21824 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21825 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21828 2008-07-09 Jim Meyering <meyering@redhat.com>
21830 posix-shell.m4: fix typo that made this test malfunction
21831 * m4/posix-shell.m4: Remove capitalization in variable name.
21833 2008-07-08 Bruno Haible <bruno@clisp.org>
21835 * m4/onceonly.m4: Update comments.
21836 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21838 2008-07-04 Jim Meyering <meyering@redhat.com>
21840 * users.txt: Add vc-dwim.
21841 (bison, coreutils): Use the gitweb URL.
21843 2008-07-03 Jim Meyering <meyering@redhat.com>
21845 * users.txt: Add libffcall. From Sam Steingold.
21847 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21849 getdate.y: do not ignore TZ with relative day, month or year offset
21850 * lib/getdate.y (get_date): Move the tz-handling block to follow the
21851 relative-date-handling, since otherwise, the latter would clobber the
21852 sole output (an updated Start value) of the tz-handling block.
21853 * tests/test-getdate.c: Tests for the fix
21855 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21857 Recognize 'foo_LIBRARIES += libgnu.a'.
21858 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21859 makefile snippet has already specified an installation location,
21862 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21864 getdate.y: factor out common actions
21865 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21866 Use them in place of open-coded actions.
21868 2008-07-01 Simon Josefsson <simon@josefsson.org>
21870 Add self-test for getdate module.
21871 * modules/getdate-tests: New file.
21872 * tests/test-getdate.c: New file.
21874 2008-06-29 Bruno Haible <bruno@clisp.org>
21876 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21878 Reported by Sylvain Beucler <beuc@beuc.net>.
21880 2008-06-29 Bruno Haible <bruno@clisp.org>
21882 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21883 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21885 2008-06-29 Bruno Haible <bruno@clisp.org>
21887 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21889 Reported by Sylvain Beucler <beuc@beuc.net>.
21891 2008-06-26 Jim Meyering <meyering@redhat.com>
21893 make several modules depend on the "open" module
21894 This provides slightly increased consistency when opening-for-write
21895 the name of a non-directory spelled with a trailing slash.
21896 * modules/chdir-safer: Likewise.
21897 * modules/chown: Likewise.
21898 * modules/clean-temp: Likewise.
21899 * modules/copy-file: Likewise.
21900 * modules/fchdir: Likewise.
21901 * modules/fcntl-safer: Likewise.
21902 * modules/pipe: Likewise.
21903 * modules/utime: Likewise.
21904 Prompted by Eric Blake and Bruno Haible.
21906 2008-06-24 Andreas Schwab <schwab@suse.de>
21908 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21909 literals can be used as initializers for global variables.
21911 2008-06-23 Eric Blake <ebb9@byu.net>
21913 Make gnulib-cache.m4 easier to diff.
21914 * gnulib-tool (func_import): Allow newlines when reading cached
21915 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21917 2008-06-23 Bruno Haible <bruno@clisp.org>
21919 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21920 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21921 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21922 m4/signalblocking.m4.
21923 (gl_PREREQ_SIGACTION): Don't invoke it.
21924 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21925 gl_PREREQ_SIG_HANDLER_H.
21926 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21927 Don't check for sigaction here.
21929 2008-06-23 Bruno Haible <bruno@clisp.org>
21931 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21932 (install_handlers): Don't set the SA_RESETHAND flag.
21934 2008-06-23 Bruno Haible <bruno@clisp.org>
21936 * m4/sigaction.m4: Comment fixes.
21937 * lib/signal.in.h: Likewise.
21939 2008-06-23 Eric Blake <ebb9@byu.net>
21942 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21944 Avoid SA_ namespace.
21945 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21946 Reported by Ralf Wildenhues.
21948 Avoid test failure due to SA_RESTORER.
21949 * tests/test-sigaction.c (SA_MASK): New macro.
21950 (main): Avoid failing due to extension flags being set.
21951 Reported by Jim Meyering.
21953 Revert use of sig-handler.h in sigprocmask.c.
21954 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21955 it requires the existence of struct sigaction.
21956 * lib/sigprocmask.c (handler_t): Restore typedef.
21957 (rpl_signal, old_handlers): Use local type.
21959 2008-06-22 Bruno Haible <bruno@clisp.org>
21961 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21963 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21965 2008-06-22 Bruno Haible <bruno@clisp.org>
21967 * doc/posix-functions/siginterrupt.texi: Move note.
21969 * lib/signal.in.h (SA_RESTART): New macro.
21970 * lib/sigaction.c: Update comment.
21972 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21974 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21975 (gl_PREREQ_SIGPROCMASK): Invoke it.
21976 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21978 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21980 * lib/sigprocmask.c: Update a comment.
21982 2008-06-21 Eric Blake <ebb9@byu.net>
21984 Use sigaction module rather than signal().
21985 * modules/c-stack (Depends-on): Add sigaction.
21986 * modules/fatal-signal (Depends-on): Likewise.
21987 * modules/nanosleep (Depends-on): Likewise.
21988 * modules/sigprocmask (Files): Add sig-handler.h.
21989 * modules/sigaction (Files): Likewise.
21990 * lib/sig-handler.h (get_handler): New file, suggested by Paul
21992 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21993 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21994 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21995 (init_fatal_signals): Likewise.
21996 * lib/nanosleep.c (rpl_nanosleep): Likewise.
21997 (siginterrupt): Delete fallback.
21998 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22000 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22003 New module sigaction, for mingw.
22004 * modules/sigaction: New module...
22005 * modules/sigaction-tests: ...and its test.
22006 * m4/sigaction.m4: New file.
22007 * lib/sigaction.c: Likewise.
22008 * tests/test-sigaction.c: Likewise.
22009 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22010 * modules/signal (Makefile.am): Likewise.
22011 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22013 * doc/posix-headers/signal.texi (signal.h): Mention provided
22015 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22016 that sigaction is preferable.
22017 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22019 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22022 Improve robustness of sigprocmask by overriding signal.
22023 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22025 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22026 (SIGKILL, SIGSTOP): Provide fallbacks.
22027 (rpl_signal): Implement.
22028 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22029 signal can be called inside handlers.
22031 Fix nanosleep module on mingw.
22032 * modules/nanosleep (Depends-on): Add sys_select.
22033 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22035 Fix licensing of sigprocmask.
22036 * modules/raise (License): Relicense as LGPL.
22038 2008-06-21 Bruno Haible <bruno@clisp.org>
22040 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22041 result if it contains question marks.
22042 Reported by Michael Geng <linux@michaelgeng.de>.
22044 2008-06-19 Bruno Haible <bruno@clisp.org>
22047 * doc/gnulib.texi: Include updated-stamp.texi.
22048 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22049 (updated-stamp.texi): New rule.
22050 (gnulib.info): Depend on it.
22051 * doc/.gitignore: Add updated-stamp.texi.
22052 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22054 2008-06-19 Bruno Haible <bruno@clisp.org>
22056 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22057 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22059 2008-06-19 Eric Blake <ebb9@byu.net>
22061 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22062 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22063 Reported by Stepan Kasal.
22065 2008-06-18 Bruno Haible <bruno@clisp.org>
22067 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22068 Reported by Eric Blake.
22070 2008-06-18 Eric Blake <ebb9@byu.net>
22072 Work around cygwin 1.5.25 strsignal bug.
22073 * tests/test-strsignal.c: Allow for const char *.
22074 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22076 2008-06-18 Simon Josefsson <simon@josefsson.org>
22078 * users.txt: Update URL to article and add author/date
22081 2008-06-17 Bruno Haible <bruno@clisp.org>
22083 New macro gl_DISABLE_THREADS.
22084 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22085 if the user did not pass --enable-threads or --disable-threads option.
22086 (gl_DISABLE_THREADS): New macro.
22087 Reported by Eric Blake <ebb9@byu.net>.
22089 2008-06-17 Bruno Haible <bruno@clisp.org>
22091 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22092 when the macro ignores it.
22093 Based on a patch by Eric Blake <ebb9@byu.net>.
22095 2008-06-17 Bruno Haible <bruno@clisp.org>
22097 * modules/tls (License): Change to LGPLv2+.
22098 Reported by Eric Blake.
22100 2008-06-17 Eric Blake <ebb9@byu.net>
22102 Simplify c-stack prerequisites.
22103 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22104 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22105 no longer requires <ucontext.h> to exist. Optimize setrlimit
22107 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22110 Move c-stack test into testsuite.
22111 * modules/c-stack-tests: New file.
22112 * lib/c-stack.c [DEBUG]: Move test program...
22113 * tests/test-c-stack.c: ...into this new file. Skip rather than
22114 fail test if sigaltstack is lacking.
22115 * tests/test-c-stack.sh: New driver file.
22117 2008-06-16 Eric Blake <ebb9@byu.net>
22119 Use raise module consistently.
22120 * modules/fatal-signal (Depends-on): Add raise.
22121 * modules/sigprocmask (Depends-on): Likewise.
22122 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22123 * lib/sigprocmask.c (sigprocmask): Likewise.
22124 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22125 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22127 Fix compliance bug in sigpending.
22128 * lib/sigprocmask.c (sigpending): Return pending array via
22129 parameter, not return value.
22131 2008-06-14 Eric Blake <ebb9@byu.net>
22133 Improve obstack-printf test code.
22134 * tests/test-obstack-printf.c (test_function): Fix comment, and
22135 simplify usage of obstack_* in macros. Add a test for coverage.
22136 Reported by Bruno Haible.
22138 2008-06-14 Bruno Haible <bruno@clisp.org>
22140 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22141 array size as a constant, not as a const variable.
22142 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22143 AC_USE_SYSTEM_EXTENSIONS.
22144 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22145 Test whether the obstack_printf function actually exists.
22146 * modules/obstack-printf (Depends-on): Add extensions.
22147 (Include): Remove obstack.h.
22148 * modules/obstack-printf-posix (Depends-on): Add extensions.
22149 (Include): Remove obstack.h.
22151 2008-06-13 Eric Blake <ebb9@byu.net>
22153 Add obstack-printf and obstack-printf-posix modules.
22154 * modules/obstack-printf: New file.
22155 * modules/obstack-printf-posix: Likewise.
22156 * MODULES.html.sh (Misc): Mention them.
22157 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22159 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22161 * modules/stdio (Makefile.am): Accomodate new modules.
22162 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22163 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22165 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22167 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22168 (gl_REPLACE_OBSTACK_PRINTF): New macros
22169 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22170 * tests/test-obstack-printf.c: New file.
22171 * modules/obstack-printf-tests: Likewise.
22172 * modules/obstack-printf-posix-tests: Likewise.
22174 2008-06-11 Bruno Haible <bruno@clisp.org>
22176 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22177 * lib/open.c: Include errno.h.
22178 (open): Fail when attempting to write to a file that has a trailing
22180 * tests/test-open.c (main): Test against trailing slash bug.
22181 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22183 2008-06-10 Bruno Haible <bruno@clisp.org>
22185 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22186 for $? to work inside the trap command, with various /bin/sh-s.
22187 * tests/test-vc-list-files-cvs.sh: Likewise.
22189 2008-06-10 Bruno Haible <bruno@clisp.org>
22191 * lib/acl-internal.h: Don't include gettext.h here.
22192 * lib/set-mode-acl.c: Include gettext.h here.
22193 * lib/copy-acl.c: Likewise.
22195 2008-06-10 Bruno Haible <bruno@clisp.org>
22197 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22198 * lib/wait-process.c (wait_subprocess): Likewise.
22199 * lib/execute.h (execute): Add termsigp argument.
22200 * lib/execute.c (execute): Likewise.
22201 * lib/csharpcomp.c (compile_csharp_using_pnet,
22202 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22203 * lib/csharpexec.c (execute_csharp_using_pnet,
22204 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22205 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22206 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22207 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22208 is_jikes_present): Update.
22209 * lib/javaexec.c (execute_java_class): Update.
22210 * lib/javaversion.c (execute_and_read_line): Update.
22211 * NEWS: Document the changes.
22212 Reported by Eric Blake.
22214 2008-06-10 Eric Blake <ebb9@byu.net>
22216 Add missing include.
22217 * tests/test-strstr.c (includes): Add <signal.h>.
22218 * tests/test-strcasestr.c (includes): Likewise.
22219 * tests/test-memmem.c (includes): Likewise.
22221 2008-06-10 Bruno Haible <bruno@clisp.org>
22223 * lib/wait-process.c (wait_subprocess): Add an assertion.
22225 2008-06-10 Bruno Haible <bruno@clisp.org>
22227 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22229 2008-06-10 Bruno Haible <bruno@clisp.org>
22231 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22233 * tests/test-strcasestr.c (main): Likewise.
22234 * tests/test-strstr.c (main): Likewise.
22236 2008-06-09 Bruno Haible <bruno@clisp.org>
22238 Work around the Solaris 10 ACE ACLs ABI change.
22239 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22240 declare if ACL_NO_TRIVIAL is present.
22241 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22242 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22243 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22244 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22245 define if ACL_NO_TRIVIAL is present.
22246 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22247 and use the current ABI.
22248 (file_has_acl): Use same #if condition as elsewhere.
22249 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22250 in use, and use the current ABI.
22251 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22252 Reported by Jim Meyering.
22254 2008-06-09 Eric Blake <ebb9@byu.net>
22256 Work around environments that (stupidly) ignore SIGALRM.
22257 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22258 before using alarm().
22259 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22260 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22261 Reported by Ian Beckwith <ianb@erislabs.net>.
22263 Produce autobuild blurb earlier in log.
22264 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22266 2008-06-09 Jim Meyering <meyering@redhat.com>
22267 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22269 utimens.c: correct kernel bug work-around
22270 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
22271 failure, not success, and the kernel bug we're trying to work
22272 around affects not just the utimensat call, but also the fallback
22274 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22276 [HAVE_FUTIMENS]: Use the same work-around, here.
22278 2008-06-09 Jim Meyering <meyering@redhat.com>
22280 add more guards around definition of ACE_-related code
22281 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22282 ALLOW and ACE_OWNER are also defined.
22284 2008-06-08 Bruno Haible <bruno@clisp.org>
22286 * lib/acl-internal.h: Add me as co-author.
22287 * lib/file-has-acl.c: Likewise.
22288 * lib/set-mode-acl.c: Likewise.
22289 * lib/copy-acl.c: Likewise.
22291 2008-06-08 Bruno Haible <bruno@clisp.org>
22293 Add support for AIX ACLs.
22294 * lib/acl-internal.h (acl_nontrivial): New declaration.
22295 * lib/file-has-acl.c (acl_nontrivial): New function.
22296 (file_has_acl): Add implementation using AIX 4 ACL API.
22297 * lib/set-mode-acl.c (qset_acl): Likewise.
22298 * lib/copy-acl.c (qcopy_acl): Likewise.
22300 2008-06-08 Bruno Haible <bruno@clisp.org>
22302 Add support for HP-UX ACLs.
22303 * lib/acl-internal.h (acl_nontrivial): New declaration.
22304 * lib/file-has-acl.c (acl_nontrivial): New function.
22305 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22306 * lib/set-mode-acl.c (qset_acl): Likewise.
22307 * lib/copy-acl.c (qcopy_acl): Likewise.
22309 2008-06-08 Bruno Haible <bruno@clisp.org>
22311 Add support for Cygwin ACLs.
22312 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22313 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22314 the chmod_or_fchmod call.
22315 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22317 2008-06-08 Bruno Haible <bruno@clisp.org>
22319 Fix bug with setuid modes in Solaris 10+ code.
22320 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22321 succeeded, when the mode contains some special bits.
22323 2008-06-08 Bruno Haible <bruno@clisp.org>
22325 Add support for Solaris 7..10 ACLs.
22326 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22328 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22330 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22331 * lib/set-mode-acl.c (qset_acl): Likewise.
22332 * lib/copy-acl.c (qcopy_acl): Likewise.
22334 2008-06-08 Bruno Haible <bruno@clisp.org>
22336 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22338 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22339 (acl_access_nontrivial): Remove MacOS X case.
22340 (file_has_acl): Use acl_extended_nontrivial.
22341 * lib/copy-acl.c (qcopy_acl): Likewise.
22343 2008-06-08 Bruno Haible <bruno@clisp.org>
22345 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22347 2008-06-08 Jim Meyering <meyering@redhat.com>
22349 * modules/acl (Maintainer): Add Bruno Haible.
22351 2008-06-07 Bruno Haible <bruno@clisp.org>
22353 Improve support for Tru64 ACLs.
22354 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22357 2008-06-07 Bruno Haible <bruno@clisp.org>
22359 Add support for MacOS X ACLs.
22360 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22361 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22362 * lib/set-mode-acl.c (qset_acl): Likewise.
22363 * lib/copy-acl.c (qcopy_acl): Likewise.
22365 2008-06-07 Bruno Haible <bruno@clisp.org>
22367 Fix memory leak introduced on 2008-05-22.
22368 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22371 2008-06-07 Bruno Haible <bruno@clisp.org>
22373 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22374 to construct an empty ACL.
22376 2008-06-07 Bruno Haible <bruno@clisp.org>
22378 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22380 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22382 2008-06-07 Bruno Haible <bruno@clisp.org>
22384 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22385 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22387 2008-06-07 Bruno Haible <bruno@clisp.org>
22389 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22390 regardless of POSIX.
22391 * doc/posix-functions/_longjmp.texi: Likewise.
22392 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22393 SystemV platform in this case.
22395 2008-06-06 Eric Blake <ebb9@byu.net>
22397 Document abort() bugs.
22398 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22400 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22401 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22403 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22404 siglongjmp, but only as a macro.
22405 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22407 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22409 Tweak documentation to cover cygwin argz bugs.
22410 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22411 argz bug fix; no code change needed since no cygwin releases
22412 occurred between the last fix and the bug being tested.
22413 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22414 module and recently fixed cygwin bugs.
22415 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22416 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22417 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22418 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22419 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22421 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22422 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22423 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22424 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22425 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22426 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22429 Avoid gcc warning on cygwin.
22430 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22431 !ACL_NO_TRIVIAL]: Avoid unused variable.
22433 2008-06-05 Eric Blake <ebb9@byu.net>
22435 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22436 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22437 git-version-gen fails to come up with a version.
22438 Reported by Simon Josefsson.
22440 2008-06-05 Jim Meyering <meyering@redhat.com>
22441 Paul Eggert <eggert@cs.ucla.edu>
22443 utimens.c: work around a probable Linux kernel bug
22444 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22445 appears to be a kernel bug that causes utimensat to return 280
22446 instead of 0, indicating success.
22448 2008-06-04 Bruno Haible <bruno@clisp.org>
22450 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22453 2008-06-04 Bruno Haible <bruno@clisp.org>
22455 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22456 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22457 (file_has_acl): Use it. Save errno afterwards.
22458 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22460 2008-06-03 Bruno Haible <bruno@clisp.org>
22462 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22463 draft code. Simplify #ifs.
22464 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22465 Put Solaris code after POSIX-draft code. Fix comments regarding
22466 Solaris 10, HP-UX. Mention Cygwin.
22467 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22469 2008-06-03 Eric Blake <ebb9@byu.net>
22471 Provide fallback for older kernels.
22472 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22473 Provide runtime fallback if kernel lacks support.
22474 Reported by Mike Frysinger.
22476 2008-06-02 Bruno Haible <bruno@clisp.org>
22478 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22481 2008-06-02 Bruno Haible <bruno@clisp.org>
22483 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22484 * lib/copy-acl.c (qcopy_acl): Update comment.
22486 2008-06-02 Bruno Haible <bruno@clisp.org>
22488 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22491 2008-06-02 Bruno Haible <bruno@clisp.org>
22493 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22494 * tests/test-set-mode-acl.sh: Likewise.
22495 * tests/test-copy-acl.sh: Likewise.
22496 * tests/test-copy-file.sh: Likewise.
22498 2008-06-02 Bruno Haible <bruno@clisp.org>
22500 * tests/test-file-has-acl.sh: Remove unused code.
22502 2008-06-01 Bruno Haible <bruno@clisp.org>
22504 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22505 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22507 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22509 2008-06-01 Bruno Haible <bruno@clisp.org>
22511 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22512 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22513 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22515 * modules/acl-tests (configure.ac): Remove tests now contained in
22518 2008-06-02 Jim Meyering <meyering@redhat.com>
22520 announce-gen: use a better key-server host name
22521 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22522 it may be more consistently reliable. Suggested by Werner Koch
22523 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22525 2008-06-01 Bruno Haible <bruno@clisp.org>
22527 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22528 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22530 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22532 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22534 2008-06-01 Bruno Haible <bruno@clisp.org>
22537 * tests/test-file-has-acl.sh: New file.
22538 * tests/test-file-has-acl.c: New file.
22539 * tests/test-set-mode-acl.sh: New file.
22540 * tests/test-set-mode-acl.c: New file.
22541 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22542 * tests/test-copy-acl.c: New file.
22543 * modules/acl-tests: New file, based on modules/copy-file-tests.
22544 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22545 (Depends-on): Add acl-tests.
22546 (configure.ac): Remove checks.
22547 (Makefile.am): Don't create test-sameacls program here any more.
22549 2008-06-01 Bruno Haible <bruno@clisp.org>
22551 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22552 * tests/test-sameacls.c: Include progname.h.
22553 (main): Invoke set_program_name. Portability fixes for MacOS X,
22556 2008-06-01 Bruno Haible <bruno@clisp.org>
22558 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22560 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22562 2008-06-01 Bruno Haible <bruno@clisp.org>
22564 * modules/rpmatch (Depends-on): Add strdup.
22566 2008-06-01 Bruno Haible <bruno@clisp.org>
22568 * lib/pipe.c: Include unistd-safer.h.
22569 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22570 * modules/pipe (Depends-on): Add unistd-safer.
22572 2008-05-30 Simon Josefsson <simon@josefsson.org>
22574 * modules/autobuild (configure.ac): Call AB_INIT.
22576 2008-05-30 Simon Josefsson <simon@josefsson.org>
22578 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22579 Suggested by Bruno Haible <bruno@clisp.org>.
22581 2008-05-30 Simon Josefsson <simon@josefsson.org>
22583 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22584 printf. Use %lu instead of %d. Reported by Bruno Haible
22587 2008-05-29 Eric Blake <ebb9@byu.net>
22589 Prefer new POSIX 200x interfaces over futimesat.
22590 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22591 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22593 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22595 2008-05-28 Bruno Haible <bruno@clisp.org>
22597 * modules/stpcpy (License): Change to LGPLv2+.
22598 Requested by David Lutterkort <dlutter@redhat.com>.
22600 2008-05-27 Bruno Haible <bruno@clisp.org>
22602 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22604 Reported by Jose E. Marchesi <jemarch@gnu.org>.
22606 2008-05-27 Bruno Haible <bruno@clisp.org>
22608 * modules/iconv_open (Link): New section, from module 'iconv'.
22609 * modules/striconv (Link): Likewise.
22610 * modules/striconveh (Link): Likewise.
22611 * modules/xstriconv (Link): Likewise.
22612 * modules/unicodeio (Link): Likewise.
22613 * modules/propername (Link): Likewise.
22614 Reported by Jim Meyering.
22616 2008-05-26 Jim Meyering <meyering@redhat.com>
22618 sha256: do not artificially restrict buffer length to be < 2^32
22619 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22620 uint32_t to size_t.
22621 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22624 avoid unaligned access errors, e.g., on sparc
22625 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22626 direct access through a possibly-unaligned uint64* pointer.
22627 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22628 direct access through a possibly-unaligned uint32* pointer.
22629 Prompted by this patch from Tom "spot" Callaway:
22630 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22632 sha512.c: fix typo in comment
22633 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22635 2008-05-25 Bruno Haible <bruno@clisp.org>
22637 * lib/set-mode-acl.c: Renamed from lib/acl.c.
22638 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22639 (Makefile.am): Update lib_SOURCES.
22641 2008-05-25 Bruno Haible <bruno@clisp.org>
22643 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22645 2008-05-25 Jim Meyering <meyering@redhat.com>
22647 useless-if-before-free: freed expr may have white-space differences
22648 * build-aux/useless-if-before-free: Recognize cases in which the
22649 freed expression differs from the tested one in embedded white
22650 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
22651 $1 was used, so we can't make any regexp shy. Improved tests now
22654 useless-if-before-free: accept white space in the expression.
22655 * build-aux/useless-if-before-free: For now, any white space
22656 in the expression must be identical in the free argument.
22658 useless-if-before-free: efficiency tweak
22659 * build-aux/useless-if-before-free: Make the expression-matching
22661 Make the *outer* regexp shy, not the expr-matching one.
22663 update code-in-comment to accept cast of free arg
22664 * build-aux/useless-if-before-free: Update regexp.
22666 2008-05-25 Bruno Haible <bruno@clisp.org>
22668 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22669 * modules/copy-file-tests (Files, Makefile.am): Update.
22670 * tests/test-copy-file.c (func_test_copy): Update.
22672 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
22674 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22676 2008-05-23 Bruno Haible <bruno@clisp.org>
22678 Improve support for ACLs on OSF/1.
22679 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22680 Remove fallback for unknown flavors of ACLs.
22682 2008-05-22 Bruno Haible <bruno@clisp.org>
22684 Add support for ACLs on OSF/1.
22685 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22687 (acl_free_text): New macro fallback.
22688 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22690 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22691 acl_free_text function. Require AC_C_INLINE.
22693 2008-05-22 Bruno Haible <bruno@clisp.org>
22695 Make copy_acl work on MacOS X 10.5.
22696 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22697 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22698 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22699 If MODE_INSIDE_ACL, don't assume that every system has the same text
22700 representation for ACLs as FreeBSD.
22701 * lib/copy-acl.c (copy_acl): Add support for platforms with
22703 * lib/file-has-acl.c (file_has_acl): Likewise.
22704 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22705 FreeBSD, MacOS X, or IRIX, respectively.
22707 2008-05-22 Bruno Haible <bruno@clisp.org>
22709 * lib/acl.h: Don't include <sys/acl.h>.
22710 (GETACLCNT): Move fallback to lib/acl-internal.h.
22711 * lib/acl-internal.h: Include <sys/acl.h> here.
22712 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22714 2008-05-22 Bruno Haible <bruno@clisp.org>
22716 Split off copy_acl function to separate file.
22717 * lib/copy-acl.c: New file, extracted from lib/acl.c.
22718 * lib/acl.c (copy_acl): Moved function to separate file.
22719 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22720 * modules/acl (Files): Add lib/copy-acl.c.
22721 (Makefiles.am): Augment lib_SOURCES.
22723 2008-05-22 Bruno Haible <bruno@clisp.org>
22725 * modules/copy-file-tests: New file.
22726 * tests/test-copy-file.sh: New file.
22727 * tests/test-copy-file.c: New file.
22728 * tests/test-copy-file-sameacls.c: New file.
22730 2008-05-22 Eric Blake <ebb9@byu.net>
22733 * tests/test-memcmp.c (main): Pass NULL indirectly.
22735 2008-05-21 Bruno Haible <bruno@clisp.org>
22737 Add reference doc about ACLs.
22738 * doc/acl-resources.txt: New file.
22739 * doc/acl-cygwin.txt: New file.
22741 2008-05-21 Bruno Haible <bruno@clisp.org>
22743 Avoid one more warning from gcc.
22744 * lib/vasnprintf.c (IF_LINT): Update comments.
22745 (VASNPRINTF): Use it also for the 'prefix' array initializer.
22747 2008-05-21 Jim Meyering <meyering@redhat.com>
22749 avoid a warning from gcc
22750 * lib/vasnprintf.c (IF_LINT): Define.
22751 (scale10_round_decimal_long_double):
22752 Use it to avoid a "may be used uninitialized" warning.
22753 (scale10_round_decimal_double): Likewise.
22755 2008-05-21 Simon Josefsson <simon@josefsson.org>
22757 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22760 2008-05-20 Bruno Haible <bruno@clisp.org>
22762 * tests/test-memcmp.c (main): Test also the sign of the result. Test
22763 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22765 2008-05-20 Simon Josefsson <simon@josefsson.org>
22767 * modules/memcmp-tests: New file.
22768 * tests/test-memcmp.c: New file.
22770 2008-05-19 Bruno Haible <bruno@clisp.org>
22772 * modules/propername (Notice, configure.ac): Put quoted "..." into
22774 * lib/propername.h: Update comments accordingly.
22775 Reported by Eric Blake.
22777 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
22779 * modules/getpass-gnu (Depends-on): Add fseeko.
22781 2008-05-19 Simon Josefsson <simon@josefsson.org>
22783 * modules/base64-tests: New file.
22785 2008-05-19 Bo Borgerson <gigabo@gmail.com>
22787 * lib/base64.c (base64_decode_ctx): If a decode context structure
22788 was passed in use it to ignore newlines. If a context structure
22789 was _not_ passed in, continue to treat newlines as garbage (this
22790 is the historical behavior). Formerly base64_decode.
22791 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
22792 takes a decode context structure.
22793 * lib/base64.h (base64_decode): Macro for four-argument calls.
22794 (base64_decode_alloc): Likewise.
22795 * lib/base64.c (base64_decode_ctx): If a decode context structure
22796 was passed in use it to ignore newlines. If a context structure
22797 was _not_ passed in, continue to treat newlines as garbage (this
22798 is the historical behavior). Formerly base64_decode.
22799 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
22800 takes a decode context structure.
22801 * lib/base64.h (base64_decode): Macro for four-argument calls.
22802 (base64_decode_alloc): Likewise.
22804 2008-05-19 Jim Meyering <meyering@redhat.com>
22806 avoid a warning from gcc
22807 * lib/trim.c (IF_LINT): Define.
22808 (trim2): Use it to avoid a "may be used uninitialized" warning.
22811 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22813 2008-05-19 Bruno Haible <bruno@clisp.org>
22815 * doc/glibc-functions/getpass.texi: Document limits of other
22818 2008-05-19 Simon Josefsson <simon@josefsson.org>
22819 Bruno Haible <bruno@clisp.org>
22821 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22823 2008-05-18 Bruno Haible <bruno@clisp.org>
22825 * modules/propername: New file, from GNU gettext.
22826 * lib/propername.h: New file, from GNU gettext.
22827 * lib/propername.c: New file, from GNU gettext.
22828 * MODULES.html.sh (Internationalization functions): Add propername.
22830 2008-05-16 Jim Meyering <meyering@redhat.com>
22831 Bruno Haible <bruno@clisp.org>
22833 Avoid some warnings from "gcc -Wshadow".
22834 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22836 2008-05-15 Eric Blake <ebb9@byu.net>
22838 Extend previous patch to cygwin 1.7.0.
22839 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22840 fast implementation in cygwin >= 1.7.0.
22841 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22842 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22844 2008-05-15 Bruno Haible <bruno@clisp.org>
22846 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22847 implementation in glibc >= 2.9.
22848 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22849 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22851 2008-05-15 Bruno Haible <bruno@clisp.org>
22853 * MODULES.html.sh (Internationalization functions): Remove linebreak.
22854 (Unicode string functions): Add unilbrk/*.
22855 Reported by Karl Berry.
22857 2008-05-15 Eric Blake <ebb9@byu.net>
22859 Fix violation of <stdbool.h> replacement in regex.
22860 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22861 * lib/regexec.c (re_search_internal): Likewise.
22862 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22864 2008-05-15 Jim Meyering <meyering@redhat.com>
22866 avoid distracting test output when git or cvs is not found
22867 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22868 * tests/test-vc-list-files-git.sh: Likewise.
22870 2008-05-15 Eric Blake <ebb9@byu.net>
22872 Glibc finally accepted the memmem speedup code, bugzilla #5514.
22873 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22875 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22876 * doc/posix-functions/strstr.texi (strstr): Likewise.
22877 * lib/str-two-way.h (MAX): Sychronize with glibc.
22879 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
22881 * lib/regcomp.c (optimize_utf8): Add a note on why we test
22883 (calc_first): Initialize constraint field.
22884 (duplicate_node_closure): Use it instead of special casing ANCHORS.
22886 (duplicate_node): Merge constraint field for all node types.
22887 (calc_eclosure_iter): Look at constraint field for all node types.
22888 * lib/regex_internal.c (create_cd_newstate): Don't look at
22891 2008-05-14 Bruno Haible <bruno@clisp.org>
22893 Help GCC to do better code generation.
22894 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22895 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22896 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22897 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22898 Declare with attribute 'malloc' if supported.
22900 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
22902 use "echo STR|wc -c" rather than unportable "expr length STR"
22903 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22904 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22906 2008-05-14 Jim Meyering <meyering@redhat.com>
22908 use dd ibs=$n count=1 ... rather than less-portable head -c$n
22909 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22910 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22911 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22914 2008-05-14 Eric Blake <ebb9@byu.net>
22916 Avoid quadratic growth in gl_LIBSOURCES.
22917 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22918 Suggested by Bruno Haible.
22921 * modules/xmemdup0-tests: New file.
22922 * tests/test-xmemdup0.c: Likewise.
22924 2008-05-13 Eric Blake <ebb9@byu.net>
22926 Split xmemdup0 into its own module.
22927 * modules/xmemdup0: New file.
22928 * lib/xmemdup0.h: Likewise.
22929 * lib/xmemdup0.c: Likewise.
22930 * MODULES.html.sh (Memory management functions): Add xmemdup0.
22931 * lib/xalloc.h (xmemdup0): Remove.
22932 * lib/xmalloc.c (xmemdup0): Likewise.
22934 2008-05-13 Eric Blake <ebb9@byu.net>
22935 Bruno Haible <bruno@clisp.org>
22937 Reduce number of forks required during autoconf.
22938 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22939 and gl_LIBSOURCES_DIR.
22940 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22941 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22942 m4_syscmd per file.
22943 <m4_foreach_w>: Move...
22944 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22946 2008-05-13 Eric Blake <ebb9@byu.net>
22948 * gnulib-tool: Fix various comment typos.
22950 2008-05-12 Bruno Haible <bruno@clisp.org>
22952 Tailor the linebreaking algorithm.
22953 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22955 2008-05-12 Bruno Haible <bruno@clisp.org>
22957 Update to Unicode 5.0.0.
22958 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22959 LBP_JV, LBP_JT. Redistribute values.
22960 (unilbrk_table): Change size.
22961 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22962 Unicode TR#14 rev. 22.
22963 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22964 LBP_JV, LBP_JT. Redistribute values.
22965 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22966 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22968 * lib/unilbrk/lbrkprop1.h: Regenerated.
22969 * lib/unilbrk/lbrkprop2.h: Regenerated.
22970 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22971 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22972 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22974 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22976 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22978 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22979 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22980 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22981 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22982 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22983 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22985 2008-05-11 Bruno Haible <bruno@clisp.org>
22987 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22989 2008-05-11 Bruno Haible <bruno@clisp.org>
22991 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22992 * modules/unilbrk/gen-lbrk: New file.
22994 2008-05-11 Bruno Haible <bruno@clisp.org>
22996 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22997 * m4/sha512.m4 (gl_SHA512): Likewise.
22999 2008-05-11 Jim Meyering <meyering@redhat.com>
23001 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23002 * modules/crypto/sha256: New file.
23003 * modules/crypto/sha512: Likewise.
23004 * lib/sha256.c: Likewise.
23005 * lib/sha256.h: Likewise.
23006 * lib/sha512.c: Likewise.
23007 * lib/sha512.h: Likewise.
23008 * lib/u64.h: Likewise.
23009 * m4/sha256.m4: Likewise.
23010 * m4/sha512.m4: Likewise.
23011 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23013 2008-05-10 Bruno Haible <bruno@clisp.org>
23015 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23016 (Input/Output <stdio.h>): Add xprintf.
23017 (Signal handling <signal.h>): Add strsignal.
23018 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23019 (Core language properties): Add func.
23020 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23021 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23023 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23024 (Input/output): New section.
23025 (File system functions): Add openat-die, stat-macros.
23026 (Networking functions): Add sockets.
23027 (Unicode string functions): Add unictype/*.
23028 (Support for building libraries and executables): Add gperf.
23029 (Support for building documentation): Add agpl-3.0.
23030 (Misc): Add nocrash.
23032 2008-05-10 Bruno Haible <bruno@clisp.org>
23034 * modules/unictype/gen-ctype: New file.
23036 2008-05-10 Jim Meyering <meyering@redhat.com>
23038 Make chdir-safer.c more efficient on a system with no symlinks.
23039 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23040 also if ELOOP is zero. Suggested by Bruno Haible.
23042 Make chdir-safer.c slightly safer.
23043 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23044 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23046 Avoid compile failure on systems without ELOOP (like mingw).
23047 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23048 Reported by Bruno Haible.
23050 2008-05-10 Bruno Haible <bruno@clisp.org>
23052 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23053 (is_utf8_encoding): Use a case-insensitive comparison.
23054 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23057 2008-05-10 Bruno Haible <bruno@clisp.org>
23059 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23060 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23061 * lib/unilbrk/ulc-common.h (iconv_string_length,
23062 iconv_string_keeping_offsets): Remove declarations.
23063 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23064 Don't include <iconv.h>, streq.h, xsize.h.
23065 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23067 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23068 <iconv.h>, streq.h, xsize.h.
23069 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23071 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23072 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23073 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23074 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23076 2008-05-10 Bruno Haible <bruno@clisp.org>
23078 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23079 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23081 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23082 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23084 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23085 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23087 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23088 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23090 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23091 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23093 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23094 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23096 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23097 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23099 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23100 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23102 2008-05-10 Bruno Haible <bruno@clisp.org>
23104 Split up 'linebreak' module.
23105 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23106 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23107 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23109 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23110 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23111 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23113 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23115 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23117 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23118 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23119 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23121 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23123 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23125 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23127 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23129 * modules/unilbrk/base: New file.
23130 * modules/unilbrk/tables: New file.
23131 * modules/unilbrk/u8-possible-linebreaks: New file.
23132 * modules/unilbrk/u16-possible-linebreaks: New file.
23133 * modules/unilbrk/u32-possible-linebreaks: New file.
23134 * modules/unilbrk/ulc-common: New file.
23135 * modules/unilbrk/ulc-possible-linebreaks: New file.
23136 * modules/unilbrk/u8-width-linebreaks: New file.
23137 * modules/unilbrk/u16-width-linebreaks: New file.
23138 * modules/unilbrk/u32-width-linebreaks: New file.
23139 * modules/unilbrk/ulc-width-linebreaks: New file.
23140 * lib/linebreak.h: Remove file.
23141 * lib/linebreak.c: Remove file.
23142 * m4/linebreak.m4: Remove file.
23143 * modules/linebreak: Remove file.
23144 * NEWS: Mention the changes.
23146 2008-05-09 Eric Blake <ebb9@byu.net>
23149 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23151 * lib/xmalloc.c (xmemdup0): New C implementation.
23153 2008-05-08 Bruno Haible <bruno@clisp.org>
23155 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23157 2008-05-07 Eric Blake <ebb9@byu.net>
23159 Support cross-compilation of <wctype.h>.
23160 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23163 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23165 * build-aux/vc-list-files: Add support for bzr.
23167 2008-05-03 Jim Meyering <meyering@redhat.com>
23169 avoid failed assertion with tight malloc
23170 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23172 2008-05-03 Simon Josefsson <simon@josefsson.org>
23174 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23175 are needed from arpa/inet.h.
23176 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23177 Reported by Bruno Haible.
23179 2008-05-02 Jim Meyering <meyering@redhat.com>
23181 avoid compilation error on FreeBSD 6
23182 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23184 2008-05-01 Jim Meyering <meyering@redhat.com>
23186 useless-if-before-free: correct --help's exit status description
23187 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23188 for one or more matches, etc. Reported by Bruno Haible.
23190 vc-list-files: make the stand-alone gnulib test work
23191 * modules/vc-list-files-tests (configure.ac):
23192 Define and AC_SUBST abs_aux_dir.
23193 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23194 $(abs_top_srcdir) to each script and having each of them
23195 duplicate the work of setting PATH, set PATH here, using
23196 the new variable, abs_aux_dir instead.
23197 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23198 * tests/test-vc-list-files-git.sh: Likewise.
23199 Reported by Bruno Haible.
23201 2008-05-01 Bruno Haible <bruno@clisp.org>
23203 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23204 reallocation. Rename 'done' to 'found_delimiter'.
23206 2008-05-01 Jim Meyering <meyering@redhat.com>
23208 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23209 * build-aux/vc-list-files: Use `...`, not $(...).
23211 2008-04-30 Jim Meyering <meyering@redhat.com>
23213 add tests for vc-list-files
23214 * modules/vc-list-files-tests: New module.
23215 * tests/test-vc-list-files-cvs.sh: New file.
23216 * tests/test-vc-list-files-git.sh: New file.
23218 avoid a warning from gcc
23219 * lib/getndelim2.c (IF_LINT): Define.
23220 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23222 vc-list-files: work properly with build-aux/cvsu, too
23223 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23224 to all cvs-based clauses.
23226 vc-list-files: work properly in the CVS+awk case, too
23227 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23229 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23230 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23231 take more than one file argument, so . Add quotes, just in case $dir
23232 ever contains a shell meta-character. Prompted by Soren Hansen in
23233 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23235 2008-04-29 Eric Blake <ebb9@byu.net>
23237 Optimize getndelim2 to use block operations when possible.
23238 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23239 freadseek, and memchr2.
23240 * lib/getndelim2.c (getndelim2): Use them for block reads.
23242 2008-04-29 Bruno Haible <bruno@clisp.org>
23244 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23245 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23246 * modules/inet_ntop (Depends-on): Add extensions.
23247 * modules/inet_pton (Depends-on): Likewise.
23248 Reported by Simon Josefsson.
23250 2008-04-29 Jim Meyering <meyering@redhat.com>
23252 When the is more than one match in a block, match all of them.
23253 * build-aux/useless-if-before-free: Iterate through each block
23254 until there are no more matches.
23256 Fix broken useless-if-before-free script.
23257 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23258 the expression to match cast of argument to free-like function.
23260 2008-04-29 Eric Blake <ebb9@byu.net>
23263 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23265 2008-04-29 Jim Meyering <meyering@redhat.com>
23267 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23268 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23269 by gnulib to exist and to declare e.g., inet_ntop.
23270 Don't include "inet_ntop.h", now removed.
23272 * m4/arpa_inet_h.m4: Remove trailing blanks.
23274 2008-04-29 Eric Blake <ebb9@byu.net>
23276 Silence valgrind on safe reads beyond potential array bounds.
23277 * lib/rawmemchr.valgrind: New file.
23278 * lib/strchrnul.valgrind: Likewise.
23279 * modules/rawmemchr (Files): Distribute new file.
23280 * modules/strchrnul (Files): Likewise.
23281 Suggested by Bruno Haible.
23283 2008-04-29 Bruno Haible <bruno@clisp.org>
23285 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23286 (inet_ntop, inet_pton): Change portability warning's wording.
23287 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23288 Invoke gl_CHECK_NEXT_HEADERS.
23289 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23290 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23292 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23293 * modules/arpa_inet (Description): No longer only for systems that
23295 (Depends-on): Add include_next.
23296 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23299 2008-04-29 Jim Meyering <meyering@redhat.com>
23301 * modules/mkdir (License): Re-license as LGPLv2+.
23303 2008-04-29 Bruno Haible <bruno@clisp.org>
23305 * modules/rawmemchr (Maintainer): Set to Eric.
23306 * modules/strchrnul (Maintainer): Likewise.
23308 2008-04-29 Simon Josefsson <simon@josefsson.org>
23310 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23311 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23313 * modules/arpa_inet (arpa/inet.h): Use them.
23315 2008-04-28 Eric Blake <ebb9@byu.net>
23318 * modules/getndelim2-tests: New file.
23319 * tests/test-getndelim2.c: Likewise.
23320 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23322 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23324 * MODULES.html.sh: Document new module.
23326 2008-04-20 Bruno Haible <bruno@clisp.org>
23328 * lib/c-stack.c (die): Use raise.
23329 * modules/c-stack (Depends-on): Add raise.
23331 2008-04-28 Bruno Haible <bruno@clisp.org>
23333 Expect rpmatch to be declared.
23334 * lib/yesno.c (rpmatch): Remove declaration.
23337 * lib/stdlib.in.h (rpmatch): New declaration.
23338 * lib/rpmatch.c: Include <stdlib.h> first.
23339 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23340 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23341 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23343 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23344 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23345 (Include): Set to <stdlib.h>.
23346 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23348 * NEWS: Document the change.
23350 2008-04-28 Bruno Haible <bruno@clisp.org>
23352 Change rpmatch to use nl_langinfo when appropriate.
23353 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23355 (localized_pattern): New function/macro.
23356 (try): Remove match, nomatch arguments. Copy the pattern into safe
23357 memory before caching it.
23358 (rpmatch): Use localized_pattern. Add translator comments.
23359 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23360 Suggested by Eric Blake.
23361 * modules/rpmatch (Depends-on): Add stdbool.
23363 2008-04-28 Eric Blake <ebb9@byu.net>
23365 Add rawmemchr module, matching glibc.
23366 * modules/string (Makefile.am): New indicator.
23367 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23368 * lib/string.in.h (rawmemchr): Declare when appropriate.
23369 * modules/rawmemchr: New file.
23370 * m4/rawmemchr.m4: Likewise.
23371 * lib/rawmemchr.c: Likewise.
23372 * modules/rawmemchr-tests: Likewise.
23373 * tests/test-rawmemchr.c: Likewise.
23374 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23376 * modules/strchrnul (Depends-on): Add rawmemchr.
23377 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23379 Whitespace cleanup.
23380 * tests/test-strchrnul.c: Reindent.
23381 * lib/strchrnul.c: Likewise.
23383 Optimize and test strchrnul.
23384 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23385 * modules/strchrnul-tests: New file.
23386 * tests/test-strchrnul.c: Likewise.
23388 Remove intprops dependency.
23389 * modules/memchr (Depends-on): Remove intprops.
23390 * modules/memrchr (Depends-on): Likewise.
23391 * modules/memchr2 (Depends-on): Likewise.
23392 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23393 * lib/memrchr.c (__memrchr): Likewise.
23394 * lib/memrchr2.c (memchr2): Likewise.
23395 Reported by Simon Josefsson.
23397 2008-04-28 Simon Josefsson <simon@josefsson.org>
23399 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23400 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23402 2008-04-28 Simon Josefsson <simon@josefsson.org>
23404 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23406 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23408 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23410 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23412 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23414 * m4/inet_pton.m4: Don't check for header files.
23416 * m4/inet_ntop.m4: Don't check for header files.
23418 2008-04-28 Simon Josefsson <simon@josefsson.org>
23420 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23421 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23422 trigger for cygwin).
23423 Reported by Bruno Haible <bruno@clisp.org>.
23425 2008-04-28 Bruno Haible <bruno@clisp.org>
23427 * doc/posix-functions/strdup.texi: Mention mingw problem.
23429 2008-04-27 Bruno Haible <bruno@clisp.org>
23431 * modules/stat-time-tests (Depends-on): Add sleep.
23432 * tests/test-stat-time.c (force_unlink): New function.
23434 (test_mtime): Remove the ctime related tests.
23435 (test_ctime): New function, containing the ctime related tests.
23436 (main): Call test_ctime, except on native Windows platforms.
23438 2008-04-27 Bruno Haible <bruno@clisp.org>
23440 * lib/rpmatch.c (rpmatch): Add some comments.
23441 Reported by James Youngman <jay@gnu.org>.
23443 2008-04-27 Bruno Haible <bruno@clisp.org>
23445 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23448 2008-04-27 Bruno Haible <bruno@clisp.org>
23450 Make test-yesno.sh work on mingw.
23451 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23452 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23453 (main): Set stdin to binary mode.
23454 * modules/yesno-tests (Depends-on): Add binary-io.
23456 2008-04-27 Bruno Haible <bruno@clisp.org>
23458 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23459 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23460 argument that lie outside the IEEE 854 domain.
23461 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23462 (gl_ISFINITE): Use it.
23463 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23465 2008-04-27 Bruno Haible <bruno@clisp.org>
23467 Allow local renaming in config.h.
23468 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23470 2008-04-27 Bruno Haible <bruno@clisp.org>
23472 * lib/memchr.c (__memchr): Change type of 'i'.
23473 * lib/memchr2.c (memchr2): Likewise.
23475 2008-04-26 Eric Blake <ebb9@byu.net>
23476 and Bruno Haible <bruno@clisp.org>
23478 Optimize and test memrchr.
23479 * modules/memrchr (Depends-on): Add intprops.
23480 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23481 * modules/memrchr-tests: New file.
23482 * tests/test-memrchr.c: New file.
23484 2008-04-26 Bruno Haible <bruno@clisp.org>
23486 Add tentative support for DragonFly BSD.
23487 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23488 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23490 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23491 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23492 * lib/fpurge.c (fpurge): Likewise.
23493 * lib/freadable.c (freaadable): Likewise.
23494 * lib/freadahead.c (freadahead): Likewise.
23495 * lib/freading.c (freading): Likewise.
23496 * lib/freadptr.c (freadptr): Likewise.
23497 * lib/freadseek.c (freadptrinc): Likewise.
23498 * lib/fseeko.c (fseeko): Likewise.
23499 * lib/fseterr.c (fseterr): Likewise.
23500 * lib/fwritable.c (fwritable): Likewise.
23501 * lib/fwriting.c (fwriting): Likewise.
23503 2008-04-26 Bruno Haible <bruno@clisp.org>
23505 * lib/stdio-impl.h: New file.
23506 * lib/fbufmode.c: Include stdio-impl.h.
23507 (fbufmode): Use fp_, remove redundant #defines.
23508 * lib/fflush.c: Include stdio-impl.h.
23509 (clear_ungetc_buffer): Remove redundant #defines.
23510 * lib/fpurge.c: Include stdio-impl.h.
23511 (fpurge): Remove redundant #defines.
23512 * lib/freadable.c: Include stdio-impl.h.
23513 (freadable): Remove redundant #defines.
23514 * lib/freadahead.c: Include stdio-impl.h.
23515 (freadahead): Remove redundant #defines.
23516 * lib/freading.c: Include stdio-impl.h.
23517 (freading): Remove redundant #defines.
23518 * lib/freadptr.c: Include stdio-impl.h.
23519 (freadptr): Remove redundant #defines.
23520 * lib/freadseek.c: Include stdio-impl.h.
23521 (freadptrinc): Remove redundant #defines.
23522 * lib/fseeko.c: Include stdio-impl.h.
23523 (rpl_fseeko): Remove redundant #defines.
23524 * lib/fseterr.c: Include stdio-impl.h.
23525 (fseterr): Remove redundant #defines.
23526 * lib/fwritable.c: Include stdio-impl.h.
23527 (fwritable: Remove redundant #defines.
23528 * lib/fwriting.c: Include stdio-impl.h.
23529 (fwriting): Remove redundant #defines.
23530 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23531 * modules/fflush (Files): Likewise.
23532 * modules/fpurge (Files): Likewise.
23533 * modules/freadable (Files): Likewise.
23534 * modules/freadahead (Files): Likewise.
23535 * modules/freading (Files): Likewise.
23536 * modules/freadptr (Files): Likewise.
23537 * modules/freadseek (Files): Likewise.
23538 * modules/fseeko (Files): Likewise.
23539 * modules/fseterr (Files): Likewise.
23540 * modules/fwritable (Files): Likewise.
23541 * modules/fwriting (Files): Likewise.
23543 2008-04-26 Bruno Haible <bruno@clisp.org>
23545 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23546 restore_seek_optimization, update_fpos_cache): New functions, extracted
23548 (rpl_fflush): Use them.
23549 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23550 (gl_REPLACE_FFLUSH): Use it.
23552 2008-04-26 Bruno Haible <bruno@clisp.org>
23554 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23556 * tests/test-xstrtoimax.sh: Likewise.
23557 * tests/test-xstrtoumax.sh: Likewise.
23558 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23560 2008-04-26 Bruno Haible <bruno@clisp.org>
23562 * modules/memchr-tests: New file.
23563 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23565 2008-04-26 Eric Blake <ebb9@byu.net>
23566 Bruno Haible <bruno@clisp.org>
23568 * lib/memchr.c: Include intprops.h.
23569 (__memchr): Optimize parallel detection of matching bytes. Rename local
23570 variables. Add explanatory comments.
23572 2008-04-26 Bruno Haible <bruno@clisp.org>
23574 Fix module 'memchr', broken since 2000-10-28.
23575 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23577 2008-04-26 Bruno Haible <bruno@clisp.org>
23579 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23582 2008-04-25 Eric Blake <ebb9@byu.net>
23584 Use native fstatat on cygwin 1.7.0.
23585 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23588 2008-04-23 Eric Blake <ebb9@byu.net>
23590 Improve memchr2 performance.
23591 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23593 * modules/memchr2 (Depends-on): Use intprops.h.
23595 2008-04-23 Simon Josefsson <simon@josefsson.org>
23597 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23598 an inline function instead of a CPP macro. Patch by Ben Pfaff
23599 <blp@cs.stanford.edu>.
23601 2008-04-23 Simon Josefsson <simon@josefsson.org>
23603 * lib/arpa_inet.in.h: New file.
23605 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23606 (Makefile.am): Sed in substitute header file.
23608 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23609 gl_ARPA_INET_MODULE_INDICATOR. Use them.
23611 * modules/inet_ntop (configure.ac): Use
23612 gl_ARPA_INET_MODULE_INDICATOR.
23614 * modules/inet_pton (configure.ac): Use
23615 gl_ARPA_INET_MODULE_INDICATOR.
23617 2008-04-22 Jim Meyering <meyering@redhat.com>
23619 * modules/verify (License): Re-license as LGPLv2+.
23621 2008-04-22 Simon Josefsson <simon@josefsson.org>
23623 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23624 parameter to void* as per POSIX standard (MinGW uses char*).
23626 2008-04-21 Bruno Haible <bruno@clisp.org>
23628 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23629 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23630 Define to replacements if REPLACE_ISWCNTRL is 1.
23631 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23632 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23633 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23634 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23636 * doc/posix-functions/iswalpha.texi: Likewise.
23637 * doc/posix-functions/iswblank.texi: Likewise.
23638 * doc/posix-functions/iswcntrl.texi: Likewise.
23639 * doc/posix-functions/iswdigit.texi: Likewise.
23640 * doc/posix-functions/iswgraph.texi: Likewise.
23641 * doc/posix-functions/iswlower.texi: Likewise.
23642 * doc/posix-functions/iswprint.texi: Likewise.
23643 * doc/posix-functions/iswpunct.texi: Likewise.
23644 * doc/posix-functions/iswspace.texi: Likewise.
23645 * doc/posix-functions/iswupper.texi: Likewise.
23646 * doc/posix-functions/iswxdigit.texi: Likewise.
23647 Reported by Alain Guibert.
23649 2008-04-21 Bruno Haible <bruno@clisp.org>
23651 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23652 Patch by Alain Guibert.
23654 2008-04-21 Bruno Haible <bruno@clisp.org>
23656 Fix test failures on mingw.
23657 * tests/test-xstrtol.c (print_no_progname): New function.
23658 (main): Install it in error_print_progname hook.
23659 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23660 * tests/test-xstrtoimax.sh: Likewise.
23661 * tests/test-xstrtoumax.sh: Likewise.
23663 2008-04-21 Bruno Haible <bruno@clisp.org>
23665 Fix test failure on mingw.
23666 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23668 2008-04-21 Bruno Haible <bruno@clisp.org>
23670 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23671 Actually assign a value.
23673 2008-04-20 Bruno Haible <bruno@clisp.org>
23675 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23677 * lib/canonicalize.c (canonicalize_file_name): Elide if the
23678 'canonicalize-lgpl' module is also used.
23679 * lib/canonicalize-lgpl.c: Undo last change.
23680 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23682 2008-04-20 Bruno Haible <bruno@clisp.org>
23684 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23685 config.h. Provide _mkdir based fallback for mingw.
23686 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23687 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23688 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23689 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23690 rather than defining mkdir in config.h.
23691 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23692 (gl_SYS_STAT_H_DEFAULTS): New macro.
23693 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23694 HAVE_IO_H any more.
23695 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23696 HAVE_DECL_MKDIR and HAVE_IO_H.
23698 2008-04-20 Bruno Haible <bruno@clisp.org>
23700 * lib/isapipe.c: Port to native Windows platforms.
23702 2008-04-20 Bruno Haible <bruno@clisp.org>
23704 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23706 2008-04-21 Eric Blake <ebb9@byu.net>
23708 Work around preprocessors that don't handle UINTMAX_MAX.
23709 * lib/memchr2.c (memchr2): Avoid embedded #if.
23710 Reported by Alain Guibert, fix suggested by Bruno Haible.
23712 2008-04-21 Simon Josefsson <simon@josefsson.org>
23714 * doc/posix-functions/strftime.texi (strftime): Explain better
23715 Windows incompatibility. Suggested by Micah Cowan
23716 <micah@cowan.name>.
23718 2008-04-20 Bruno Haible <bruno@clisp.org>
23720 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23723 2008-04-20 Bruno Haible <bruno@clisp.org>
23725 Fix test failure on platforms with non-GNU iconv.
23726 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23727 (U_TO_U8): Use it, rather than u16_to_u8.
23728 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23729 units at the end of the input string.
23730 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23732 2008-04-20 Bruno Haible <bruno@clisp.org>
23734 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23735 when the resulting length is 0.
23736 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23738 2008-04-20 Bruno Haible <bruno@clisp.org>
23740 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23742 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23744 2008-04-20 Bruno Haible <bruno@clisp.org>
23746 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23747 * modules/tsearch-tests (configure.ac): Test for initstate function.
23749 2008-04-20 Bruno Haible <bruno@clisp.org>
23751 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23752 for nlink_t if missing.
23753 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23755 2008-04-19 Bruno Haible <bruno@clisp.org>
23757 Work around snprintf bug on Linux libc5.
23758 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23759 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23761 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23762 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23764 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23765 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23766 * modules/snprintf (Files): Add m4/printf.m4.
23767 * modules/vsnprintf (Files): Likewise.
23768 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23769 * doc/posix-functions/vsnprintf.texi: Likewise.
23771 2008-04-19 Bruno Haible <bruno@clisp.org>
23773 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23774 from 0.0058 to less than 10^-7.
23776 2008-04-19 Bruno Haible <bruno@clisp.org>
23778 Fix rounding when a precision is given.
23779 * lib/vasnprintf.c (is_borderline): New function.
23780 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23782 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23784 * tests/test-vasprintf-posix.c (test_function): Likewise.
23785 * tests/test-snprintf-posix.h (test_function): Likewise.
23786 * tests/test-sprintf-posix.h (test_function): Likewise.
23787 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23788 * tests/test-printf-posix.h (test_function): Likewise.
23789 * tests/test-printf-posix.output: Update.
23790 Reported by John Darrington <john@darrington.wattle.id.au> via
23791 Ben Pfaff <blp@cs.stanford.edu>.
23793 2008-04-18 Simon Josefsson <simon@josefsson.org>
23795 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23796 Suggested by Bruno Haible <bruno@clisp.org>.
23798 2008-04-17 Bruno Haible <bruno@clisp.org>
23800 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23801 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23803 Patch by Bruce Merry <bmerry@gmail.com>.
23805 2008-04-17 Simon Josefsson <simon@josefsson.org>
23807 * doc/posix-functions/strftime.texi (strftime): Mention that %e
23808 doesn't work under Windows.
23810 2008-04-16 Bruno Haible <bruno@clisp.org>
23812 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23814 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23815 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23816 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23817 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23818 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23819 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23820 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23822 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23823 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23824 Northern Sotho, Uighur.
23826 2008-04-16 Bruno Haible <bruno@clisp.org>
23828 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23829 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23830 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23831 Reported by Daniel Bergström <daniel@octocode.com>.
23833 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
23834 Bruno Haible <bruno@clisp.org>
23836 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23838 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23839 New functions, mostly extracted from gl_locale_name_default.
23840 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23842 2008-04-16 Eric Blake <ebb9@byu.net>
23844 Adjust strtod detection to catch glibc 2.7 bug.
23845 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23846 Reported by John Gatewood Ham.
23848 2008-04-16 Bruno Haible <bruno@clisp.org>
23850 Add tentative support for Linux libc5.
23851 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23852 * lib/fpurge.c (fpurge): Likewise.
23853 * lib/freadable.c (freadable): Likewise.
23854 * lib/freadahead.c (freadahead): Likewise.
23855 * lib/freading.c (freading): Likewise.
23856 * lib/freadptr.c (freadptr): Likewise.
23857 * lib/freadseek.c (freadptrinc): Likewise.
23858 * lib/fseeko.c (rpl_fseeko): Likewise.
23859 * lib/fseterr.c (fseterr): Likewise.
23860 * lib/fwritable.c (fwritable): Likewise.
23861 * lib/fwriting.c (fwriting): Likewise.
23862 Reported by Alain Guibert <alguibert+bts@free.fr>.
23864 2008-04-15 Bruno Haible <bruno@clisp.org>
23866 * modules/mathl (configure.ac): Define module indicator.
23868 2008-04-15 Bruno Haible <bruno@clisp.org>
23870 * lib/logl.c (logl): Remove unused variables.
23872 2008-04-15 Bruno Haible <bruno@clisp.org>
23874 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23877 2008-04-15 Bruno Haible <bruno@clisp.org>
23879 * lib/trim.c (trim2): Fix argument of isspace() macro.
23881 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
23883 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23885 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23887 2008-04-14 Bruno Haible <bruno@clisp.org>
23889 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23890 AC_LANG_PROGRAM argument.
23891 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23892 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23893 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23894 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23895 * m4/math_h.m4 (gl_MATH_H): Likewise.
23896 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23897 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23898 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23899 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23900 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23901 * m4/regex.m4 (gl_REGEX): Likewise.
23902 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23903 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23904 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23905 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23906 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23907 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23908 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23909 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23911 2008-04-14 Jim Meyering <meyering@redhat.com>
23913 test-strtod: fix typos: s/abs/fabs/
23914 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23916 2008-04-13 Bruno Haible <bruno@clisp.org>
23918 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23919 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23920 module is also used and while not building the reloc-wrapper.
23922 2008-04-13 Bruno Haible <bruno@clisp.org>
23924 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23926 2008-04-13 Bruno Haible <bruno@clisp.org>
23928 Fix AIX compilation failure introduced on 2008-04-02.
23929 * tests/test-frexp.c (exp): Undefine before redefining.
23930 * tests/test-frexpl.c (exp): Likewise.
23932 2008-04-13 Bruno Haible <bruno@clisp.org>
23934 Work around a HP-UX stdio bug.
23935 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23936 * tests/test-ftello.c (main): Likewise.
23937 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23938 * doc/posix-functions/ftello.texi: Likewise.
23940 2008-04-13 Bruno Haible <bruno@clisp.org>
23942 Make test-signbit pass on HP-UX/hppa.
23943 * tests/test-signbit.c (minus_zerol): New variable.
23944 (test_signbitl): Use it.
23946 2008-04-13 Bruno Haible <bruno@clisp.org>
23948 Make truncl work on OSF/1 4.0.
23949 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23950 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23951 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23952 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23954 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23956 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23958 2008-04-13 Bruno Haible <bruno@clisp.org>
23960 * lib/unictype.h: Remove trailing comma from enumeration definitions.
23962 2008-04-13 Bruno Haible <bruno@clisp.org>
23964 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23965 expression, so as to avoid HP-UX 11 cc compiler bug.
23967 2008-04-13 Bruno Haible <bruno@clisp.org>
23969 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23971 2008-04-13 Bruno Haible <bruno@clisp.org>
23973 * lib/git-merge-changelog.c: Remove empty declaration outside of
23976 2008-04-13 Bruno Haible <bruno@clisp.org>
23978 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23980 2008-04-13 Bruno Haible <bruno@clisp.org>
23982 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23983 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23984 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23985 also if it exists but lacks definitions of the SHUT_* macros.
23986 * modules/sys_socket (Description): Update.
23987 Reported by Elbert Pol <e.pol@chello.nl>.
23989 2008-04-13 Bruno Haible <bruno@clisp.org>
23991 * lib/localcharset.c (OS2): Don't redefine if already defined.
23992 Reported by Elbert Pol <e.pol@chello.nl>.
23994 2008-04-13 Bruno Haible <bruno@clisp.org>
23996 * lib/binary-io.h [__EMX__]: Include <io.h>.
23997 Reported by Elbert Pol <e.pol@chello.nl>.
23999 2008-04-12 Bruno Haible <bruno@clisp.org>
24001 * lib/fpucw.h: Enable the definitions also for x86_64.
24002 Needed for NetBSD/x86_64.
24003 Reported by Thomas Klausner <tk@giga.or.at>.
24005 2008-04-12 Bruno Haible <bruno@clisp.org>
24007 * tests/test-strtod.c: Include isnand.h.
24008 (main): Use isnand instead of isnan.
24009 Reported by Jim Meyering.
24011 2008-04-12 Bruno Haible <bruno@clisp.org>
24013 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24014 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24016 2008-04-12 Jim Meyering <meyering@redhat.com>
24018 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24020 2008-04-12 Bruno Haible <bruno@clisp.org>
24022 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24023 Reported by Elbert Pol <e.pol@chello.nl>.
24025 2008-04-12 Eric Blake <ebb9@byu.net>
24027 Work around Solaris 10 math.h bug.
24028 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24029 (gl_MATH_H_DEFAULTS): Set up default.
24030 * modules/math (Makefile.am): Replace new indicators.
24031 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24032 * tests/test-math.c (main): Test this.
24033 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24034 * doc/posix-headers/math.texi (math.h): Mention bug.
24035 Reported by Nelson H. F. Beebe and Jim Meyering.
24037 2008-04-11 Bruno Haible <bruno@clisp.org>
24039 Adapt to future versions of Apple GCC.
24040 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24041 Reported by Peter O'Gorman <peter@pogma.com>.
24043 2008-04-11 Bruno Haible <bruno@clisp.org>
24045 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24047 2008-04-11 Bruno Haible <bruno@clisp.org>
24049 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24051 * modules/getaddrinfo-tests (Makefile.am): Define
24052 test_getaddrinfo_LDADD.
24054 2008-04-11 Bruno Haible <bruno@clisp.org>
24056 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24057 (init): Fix syntax error.
24058 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24061 2008-04-11 Bruno Haible <bruno@clisp.org>
24063 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24064 * modules/glob (Depends-on): Add stdbool.
24066 2008-04-11 Bruno Haible <bruno@clisp.org>
24068 * lib/trim.c: Include <string.h>.
24070 2008-04-11 Eric Blake <ebb9@byu.net>
24072 Avoid compile failure on OS/2.
24073 * lib/regex_internal.h (internal_function): Disable optimization
24074 on OS/2 (__EMX__), where it caused compiler error.
24075 Reported by Elbert Pol.
24077 2008-04-11 Bruno Haible <bruno@clisp.org>
24079 Flush the standard error stream before aborting. Needed on mingw.
24080 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24081 * tests/test-array_list.c (ASSERT): Likewise.
24082 * tests/test-array_oset.c (ASSERT): Likewise.
24083 * tests/test-avltree_list.c (ASSERT): Likewise.
24084 * tests/test-avltree_oset.c (ASSERT): Likewise.
24085 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24086 * tests/test-binary-io.c (ASSERT): Likewise.
24087 * tests/test-byteswap.c (ASSERT): Likewise.
24088 * tests/test-c-ctype.c (ASSERT): Likewise.
24089 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24090 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24091 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24092 * tests/test-c-strstr.c (ASSERT): Likewise.
24093 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24094 * tests/test-canonicalize.c (ASSERT): Likewise.
24095 * tests/test-carray_list.c (ASSERT): Likewise.
24096 * tests/test-ceilf1.c (ASSERT): Likewise.
24097 * tests/test-ceilf2.c (ASSERT): Likewise.
24098 * tests/test-ceill.c (ASSERT): Likewise.
24099 * tests/test-count-one-bits.c (ASSERT): Likewise.
24100 * tests/test-fbufmode.c (ASSERT): Likewise.
24101 * tests/test-fflush2.c (ASSERT): Likewise.
24102 * tests/test-floorf1.c (ASSERT): Likewise.
24103 * tests/test-floorf2.c (ASSERT): Likewise.
24104 * tests/test-floorl.c (ASSERT): Likewise.
24105 * tests/test-fopen.c (ASSERT): Likewise.
24106 * tests/test-fpending.c (ASSERT): Likewise.
24107 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24108 * tests/test-fpurge.c (ASSERT): Likewise.
24109 * tests/test-freadable.c (ASSERT): Likewise.
24110 * tests/test-freadahead.c (ASSERT): Likewise.
24111 * tests/test-freading.c (ASSERT): Likewise.
24112 * tests/test-freadptr.c (ASSERT): Likewise.
24113 * tests/test-freadptr2.c (ASSERT): Likewise.
24114 * tests/test-freadseek.c (ASSERT): Likewise.
24115 * tests/test-freopen.c (ASSERT): Likewise.
24116 * tests/test-frexp.c (ASSERT): Likewise.
24117 * tests/test-frexpl.c (ASSERT): Likewise.
24118 * tests/test-fseek.c (ASSERT): Likewise.
24119 * tests/test-fseeko.c (ASSERT): Likewise.
24120 * tests/test-fstrcmp.c (ASSERT): Likewise.
24121 * tests/test-ftell.c (ASSERT): Likewise.
24122 * tests/test-ftello.c (ASSERT): Likewise.
24123 * tests/test-func.c (ASSERT): Likewise.
24124 * tests/test-fwritable.c (ASSERT): Likewise.
24125 * tests/test-fwriting.c (ASSERT): Likewise.
24126 * tests/test-getdelim.c (ASSERT): Likewise.
24127 * tests/test-getline.c (ASSERT): Likewise.
24128 * tests/test-i-ring.c (ASSERT): Likewise.
24129 * tests/test-iconv-utf.c (ASSERT): Likewise.
24130 * tests/test-iconv.c (ASSERT): Likewise.
24131 * tests/test-isfinite.c (ASSERT): Likewise.
24132 * tests/test-isnand.c (ASSERT): Likewise.
24133 * tests/test-isnanf.c (ASSERT): Likewise.
24134 * tests/test-isnanl.h (ASSERT): Likewise.
24135 * tests/test-ldexpl.c (ASSERT): Likewise.
24136 * tests/test-linked_list.c (ASSERT): Likewise.
24137 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24138 * tests/test-localename.c (ASSERT): Likewise.
24139 * tests/test-lseek.c (ASSERT): Likewise.
24140 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24141 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24142 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24143 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24144 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24145 * tests/test-mbschr.c (ASSERT): Likewise.
24146 * tests/test-mbscspn.c (ASSERT): Likewise.
24147 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24148 * tests/test-mbspbrk.c (ASSERT): Likewise.
24149 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24150 * tests/test-mbsrchr.c (ASSERT): Likewise.
24151 * tests/test-mbsspn.c (ASSERT): Likewise.
24152 * tests/test-mbsstr1.c (ASSERT): Likewise.
24153 * tests/test-mbsstr2.c (ASSERT): Likewise.
24154 * tests/test-mbsstr3.c (ASSERT): Likewise.
24155 * tests/test-memchr2.c (ASSERT): Likewise.
24156 * tests/test-memmem.c (ASSERT): Likewise.
24157 * tests/test-open.c (ASSERT): Likewise.
24158 * tests/test-printf-frexp.c (ASSERT): Likewise.
24159 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24160 * tests/test-printf-posix.c (ASSERT): Likewise.
24161 * tests/test-quotearg.c (ASSERT): Likewise.
24162 * tests/test-rbtree_list.c (ASSERT): Likewise.
24163 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24164 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24165 * tests/test-round1.c (ASSERT): Likewise.
24166 * tests/test-roundf1.c (ASSERT): Likewise.
24167 * tests/test-roundl.c (ASSERT): Likewise.
24168 * tests/test-signbit.c (ASSERT): Likewise.
24169 * tests/test-sleep.c (ASSERT): Likewise.
24170 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24171 * tests/test-snprintf.c (ASSERT): Likewise.
24172 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24173 * tests/test-stat-time.c (ASSERT): Likewise.
24174 * tests/test-strcasestr.c (ASSERT): Likewise.
24175 * tests/test-strerror.c (ASSERT): Likewise.
24176 * tests/test-striconv.c (ASSERT): Likewise.
24177 * tests/test-striconveh.c (ASSERT): Likewise.
24178 * tests/test-striconveha.c (ASSERT): Likewise.
24179 * tests/test-strsignal.c (ASSERT): Likewise.
24180 * tests/test-strstr.c (ASSERT): Likewise.
24181 * tests/test-strtod.c (ASSERT): Likewise.
24182 * tests/test-trunc1.c (ASSERT): Likewise.
24183 * tests/test-trunc2.c (ASSERT): Likewise.
24184 * tests/test-truncf1.c (ASSERT): Likewise.
24185 * tests/test-truncf2.c (ASSERT): Likewise.
24186 * tests/test-truncl.c (ASSERT): Likewise.
24187 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24188 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24189 * tests/test-vasnprintf.c (ASSERT): Likewise.
24190 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24191 * tests/test-vasprintf.c (ASSERT): Likewise.
24192 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24193 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24194 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24195 * tests/test-vsnprintf.c (ASSERT): Likewise.
24196 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24197 * tests/test-wcwidth.c (ASSERT): Likewise.
24198 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24199 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24200 * tests/test-xvasprintf.c (ASSERT): Likewise.
24201 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24202 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24203 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24204 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24205 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24206 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24207 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24208 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24209 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24210 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24211 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24212 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24213 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24214 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24215 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24216 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24217 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24218 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24219 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24220 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24221 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24222 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24223 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24224 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24225 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24226 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24227 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24228 * tests/unictype/test-combining.c (ASSERT): Likewise.
24229 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24230 * tests/unictype/test-digit.c (ASSERT): Likewise.
24231 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24232 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24233 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24234 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24235 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24236 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24237 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24238 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24239 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24240 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24241 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24242 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24243 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24244 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24245 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24246 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24247 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24248 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24249 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24250 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24251 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24252 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24253 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24254 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24255 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24256 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24257 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24258 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24259 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24260 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24261 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24262 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24263 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24264 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24265 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24266 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24267 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24268 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24269 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24270 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24271 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24272 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24273 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24274 Reported by Eric Blake.
24276 2008-04-11 Bruno Haible <bruno@clisp.org>
24278 * lib/wchar.in.h: Tweak comment.
24280 2008-04-11 Bruno Haible <bruno@clisp.org>
24282 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24283 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24285 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24287 2008-04-11 Bruno Haible <bruno@clisp.org>
24289 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24291 2008-04-11 Simon Josefsson <simon@josefsson.org>
24293 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24294 of attempting to use non-existing /dev/*random. Based on patch
24295 from Adam Strzelecki <ono@java.pl> in
24296 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24298 2008-04-08 Bruno Haible <bruno@clisp.org>
24300 Add tentative support for emx+gcc.
24301 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24302 * lib/fpurge.c (fpurge): Likewise.
24303 * lib/freadable.c (freadable): Likewise.
24304 * lib/freadahead.c (freadahead): Likewise.
24305 * lib/freading.c (freading): Likewise.
24306 * lib/freadptr.c (freadptr): Likewise.
24307 * lib/freadseek.c (freadptrinc): Likewise.
24308 * lib/fseeko.c (rpl_fseeko): Likewise.
24309 * lib/fseterr.c (fseterr): Likewise.
24310 * lib/fwritable.c (fwritable): Likewise.
24311 * lib/fwriting.c (fwriting): Likewise.
24312 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24314 2008-04-09 Eric Blake <ebb9@byu.net>
24316 Avoid some autoconf warnings.
24317 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24318 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24319 * m4/afs.m4 (gl_AFS): Likewise.
24320 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24321 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24322 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24323 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24324 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24325 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24326 (AC_CHECK_DECLS_ONCE): Likewise.
24328 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24329 gnulib-tool requires autoconf 2.59 or better.
24330 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24332 2008-04-08 Eric Blake <ebb9@byu.net>
24334 Use 'git describe --match' if present (added in git 1.5.5).
24335 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24338 2008-04-08 Bruno Haible <bruno@clisp.org>
24340 Add tentative support for OpenServer.
24341 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24343 * lib/fpurge.c (fpurge): Likewise.
24344 * lib/freadable.c (freadable): Likewise.
24345 * lib/freadahead.c (freadahead): Likewise.
24346 * lib/freading.c (freading): Likewise.
24347 * lib/freadptr.c (freadptr): Likewise.
24348 * lib/freadseek.c (freadptrinc): Likewise.
24349 * lib/fseeko.c (rpl_fseeko): Likewise.
24350 * lib/fseterr.c (fseterr): Likewise.
24351 * lib/fwritable.c (fwritable): Likewise.
24352 * lib/fwriting.c (fwriting): Likewise.
24353 Reported by Roger Cornelius <rac@tenzing.org> and
24354 Brian K. White <brian@aljex.com>.
24356 2008-04-06 Jim Meyering <meyering@redhat.com>
24358 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24360 2008-04-06 Bruno Haible <bruno@clisp.org>
24362 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24363 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24364 * tests/test-printf-posix.sh: Likewise.
24365 * tests/test-vfprintf-posix.sh: Likewise.
24366 * tests/test-vprintf-posix.sh: Likewise.
24367 * tests/test-xprintf-posix.sh: Likewise.
24369 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24371 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24372 hide error from 'ls', needed on OS/2.
24373 Report by Elbert Pol <elbert.pol@gmail.com>.
24375 2008-04-04 Eric Blake <ebb9@byu.net>
24377 Make test-fseeko.c failures meaningful.
24378 * tests/test-fseeko.c: Print line number on failure.
24379 * tests/test-fseek.c: Likewise.
24380 Reported by Nelson H. F. Beebe.
24382 Improve strtod bug detection check.
24383 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24384 required for Solaris 10.
24385 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24387 2008-04-04 Bruno Haible <bruno@clisp.org>
24389 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24392 2008-04-03 Eric Blake <ebb9@byu.net>
24394 Ensure sane .version contents.
24395 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24397 * build-aux/git-version-gen: Improve documentation.
24399 Make GNU make output nicer.
24400 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24401 MAKECMDGOALS to enforce message for all command line targets. Set
24402 srcdir for use in maint.mk.
24404 Another maintainer tweak.
24405 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24406 a target that regenerates version.
24408 2008-04-03 Jim Meyering <meyering@redhat.com>
24410 vc-list-files: don't cause coreutils "make po-check" failure
24411 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24413 2008-04-03 Eric Blake <ebb9@byu.net>
24415 Allow VPATH usage of vc-list-files.
24416 * build-aux/vc-list-files (scriptversion): Add timestamp.
24417 (options): Add --help, --version, -C.
24418 (CVS): Support installed cvsu.
24420 2008-04-02 Bruno Haible <bruno@clisp.org>
24422 Avoid some "statement with no effect" warnings from gcc.
24423 * tests/test-wctype.c (main): Explicitly ignore unused values.
24424 Reported by Jim Meyering.
24426 2008-04-02 Jim Meyering <meyering@redhat.com>
24428 Avoid some warnings from "gcc -Wshadow".
24429 * tests/test-frexp.c (exp): Define to a different identifier.
24430 * tests/test-frexpl.c (exp): Likewise.
24432 2008-04-03 Jim Meyering <meyering@redhat.com>
24434 bootstrap: remove dangling *.[ch] symlinks from lib
24435 * build-aux/bootstrap [dangling symlink removal]: Move find's
24436 -depth option to precede all others, to avoid a warning.
24437 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24439 2008-04-02 Bruno Haible <bruno@clisp.org>
24441 Avoid some warnings from "gcc -Wshadow".
24442 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24443 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24444 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24445 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24446 Reported by Jim Meyering.
24448 2008-04-01 Bruno Haible <bruno@clisp.org>
24450 Fix test to work on IRIX 6.5 with cc.
24451 * tests/test-math.c (numeric_equal): New function.
24454 2008-04-01 Bruno Haible <bruno@clisp.org>
24456 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24458 2008-04-01 Bruno Haible <bruno@clisp.org>
24460 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24461 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24462 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24463 (Depends-on): Remove math.
24465 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24466 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24467 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24468 (Depends-on): Remove math.
24470 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24471 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24472 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24473 (Depends-on): Remove math.
24474 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24475 (Depends-on): Remove math.
24477 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24478 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24479 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24480 (Depends-on): Remove math.
24481 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24482 (Depends-on): Remove math.
24484 * tests/test-round1.c: Include nan.h.
24485 (main): Use NaNd instead of NAN.
24486 * modules/round-tests (Files): Add tests/nan.h.
24488 * tests/test-trunc1.c: Include nan.h.
24489 (main): Use NaNd instead of NAN.
24490 * modules/trunc-tests (Files): Add tests/nan.h.
24492 * tests/test-roundf1.c: Include nan.h.
24493 (main): Use NaNf instead of NAN.
24494 * modules/roundf-tests (Files): Add tests/nan.h.
24496 * tests/test-truncf1.c: Include nan.h.
24497 (main): Use NaNf instead of NAN.
24498 * modules/truncf-tests (Files): Add tests/nan.h.
24500 * tests/test-ceilf1.c: Include nan.h.
24501 (main): Use NaNf instead of NAN.
24502 * modules/ceilf-tests (Files): Add tests/nan.h.
24504 * tests/test-floorf1.c: Include nan.h.
24505 (main): Use NaNf instead of NAN.
24506 * modules/floorf-tests (Files): Add tests/nan.h.
24508 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24509 (main): Use NaNf instead of NAN.
24510 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24512 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24513 (main): Use NaNd instead of NAN.
24514 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24516 * tests/test-frexp.c: Include nan.h.
24517 (main): Use NaNd instead of NAN.
24518 * modules/frexp-tests (Files): Add tests/nan.h.
24520 * lib/isnan.c: Don't include <math.h>.
24521 (FUNC): Don't use NAN macro.
24522 * modules/isnand-nolibm (Depends-on): Remove math.
24523 * modules/isnanf-nolibm (Depends-on): Remove math.
24524 * modules/isnanl (Depends-on): Remove math.
24525 * modules/isnanl-nolibm (Depends-on): Remove math.
24527 * tests/nan.h: New file.
24529 2008-04-01 Eric Blake <ebb9@byu.net>
24532 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24533 values to be the right type.
24535 For now, cater to gnulib strtod inaccuracies.
24536 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24537 fractional results. While not as nice from a QoI perspective, it
24538 is a quicker patch than correctly implementing decimal to binary
24541 2008-03-31 Eric Blake <ebb9@byu.net>
24543 Guarantee a definition of NAN.
24544 * lib/math.in.h (NAN): Define if missing.
24545 * tests/test-math.c (main): Test it.
24546 * doc/posix-headers/math.texi (math.h): Document this.
24547 * lib/isnan.c (rpl_isnand): Use it.
24548 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24549 * tests/test-floorf1.c (NaN): Likewise.
24550 * tests/test-frexp.c (NaN): Likewise.
24551 * tests/test-isnand.c (NaN): Likewise.
24552 * tests/test-isnanf.c (NaN): Likewise.
24553 * tests/test-round1.c (NaN): Likewise.
24554 * tests/test-roundf1.c (NaN): Likewise.
24555 * tests/test-snprintf-posix.h (NaN): Likewise.
24556 * tests/test-sprintf-posix.h (NaN): Likewise.
24557 * tests/test-trunc1.c (NaN): Likewise.
24558 * tests/test-truncf1.c (NaN): Likewise.
24559 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24560 * tests/test-vasprintf-posix.c (NaN): Likewise.
24561 * modules/isnand-nolibm (Depends-on): Add math.
24562 * modules/isnanf-nolibm (Depends-on): Likewise.
24563 * modules/isnanl (Depends-on): Likewise.
24564 * modules/isnanl-nolibm (Depends-on): Likewise.
24565 * modules/snprintf-posix-tests (Depends-on): Likewise.
24566 * modules/sprintf-posix-tests (Depends-on): Likewise.
24567 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24568 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24569 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24570 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24572 2008-03-31 Bruno Haible <bruno@clisp.org>
24574 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24575 * doc/posix-functions/strtod.texi: Likewise.
24577 2008-03-31 Bruno Haible <bruno@clisp.org>
24579 * tests/test-strtod.c (main): Don't use C99 syntax.
24581 2008-03-31 Bruno Haible <bruno@clisp.org>
24583 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24584 Reported by Eric Blake.
24586 2008-03-31 Jim Meyering <meyering@redhat.com>
24588 Don't compare actual signbit return values.
24589 * tests/test-strtod.c (main): Rather, compare only their
24590 zero/non-zero nature.
24592 2008-03-31 Eric Blake <ebb9@byu.net>
24594 More strtod documentation.
24595 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24596 failures as distinct bugs.
24598 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24600 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24601 Problem reported by Erik Benada in
24602 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24604 2008-03-30 Bruno Haible <bruno@clisp.org>
24606 * tests/test-strtod.c: Add comments about which assertion fails on which
24608 * doc/posix-functions/strtod.texi: Add info about many more platforms.
24610 2008-03-30 Eric Blake <ebb9@byu.net>
24612 Test signbit behavior on zeros.
24613 * tests/test-signbit.c (test_signbitf): Add tests for zero.
24614 (test_signbitd, test_signbitl): Likewise.
24616 More strtod touchups.
24617 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24618 sign of negative underflow, for now. Use .5, not .1.
24619 * doc/posix-functions/strtod.texi (strtod): Mention these
24621 Reported by Jim Meyering.
24623 2008-03-30 Bruno Haible <bruno@clisp.org>
24625 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24626 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24628 2008-03-30 Bruno Haible <bruno@clisp.org>
24630 Avoid failure when attempting to return empty iconv results on some
24632 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24633 allocation, don't report ENOMEM when the resulting string is empty.
24635 2008-03-30 Bruno Haible <bruno@clisp.org>
24637 Fix buffer overrun.
24638 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24639 Don't consider the width for tmp_length. Check count against tmp_length
24640 before doing the padding. Ensure enough allocation during padding.
24642 2008-03-30 Eric Blake <ebb9@byu.net>
24645 * lib/strtod.c (strtod): Avoid compiler warnings.
24646 Reported by Jim Meyering.
24648 2008-03-30 Bruno Haible <bruno@clisp.org>
24650 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24651 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24652 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24653 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24654 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24655 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24656 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24657 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24659 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24660 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24661 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24662 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24663 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24664 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24665 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24666 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24668 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24669 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24670 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24671 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24672 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24673 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24674 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24675 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24677 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24678 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24680 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24681 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24683 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24684 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24686 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24687 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24688 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24690 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24691 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24692 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24694 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24695 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24696 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24698 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24699 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24700 * modules/vasprintf (Depends-on): Add EOVERFLOW.
24702 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24703 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24704 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24705 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24706 (Depends-on): Add EOVERFLOW.
24707 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24708 (Depends-on): Add EOVERFLOW.
24709 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24710 (Depends-on): Add EOVERFLOW.
24711 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24712 (Depends-on): Add EOVERFLOW.
24713 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24714 (Depends-on): Add EOVERFLOW.
24715 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24716 (Depends-on): Add EOVERFLOW.
24717 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24718 (Depends-on): Add EOVERFLOW.
24719 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24720 (Depends-on): Add EOVERFLOW.
24722 * lib/sprintf.c (EOVERFLOW): Remove fallback.
24723 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24724 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24726 * lib/snprintf.c (EOVERFLOW): Remove fallback.
24727 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24728 * modules/snprintf (Depends-on): Add EOVERFLOW.
24730 * lib/poll.c (EOVERFLOW): Remove fallback.
24731 * modules/poll (Depends-on): Add EOVERFLOW.
24733 * lib/getugroups.c (EOVERFLOW): Remove fallback.
24734 * modules/getugroups (Depends-on): Add EOVERFLOW.
24736 * lib/getdelim.c (EOVERFLOW): Remove fallback.
24737 * modules/getdelim (Depends-on): Add EOVERFLOW.
24739 * lib/ftell.c (EOVERFLOW): Remove fallback.
24740 * modules/ftell (Depends-on): Add EOVERFLOW.
24742 * lib/fprintf.c (EOVERFLOW): Remove fallback.
24743 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24744 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24746 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24748 * modules/EOVERFLOW-tests: New file.
24749 * tests/test-EOVERFLOW.c: New file.
24751 * modules/EOVERFLOW: New file.
24752 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24754 2008-03-30 Bruno Haible <bruno@clisp.org>
24756 Fix bug introduced on 2007-06-10.
24757 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24758 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24760 2008-03-30 Bruno Haible <bruno@clisp.org>
24762 Improve freadseek's efficiency after ungetc.
24763 * lib/freadseek.c: Include freadahead.h.
24764 (freadptrinc): New function, extracted from freadseek.
24765 (freadseek): Use it in a loop. Use freadahead to determine the number
24766 of loop iterations.
24767 * modules/freadseek (Depends-on): Add freadahead.
24768 (configure.ac): Require AC_C_INLINE.
24770 2008-03-30 Bruno Haible <bruno@clisp.org>
24772 * lib/freadseek.c (freadseek): Don't ignore the return value of
24775 2008-03-29 Eric Blake <ebb9@byu.net>
24777 Add hex float support.
24778 * modules/strtod (Depends-on): Add c-ctype.
24779 (Link): Mention POW_LIB.
24780 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
24781 whitespace between 'e' and exponent.
24782 * tests/test-strtod.c (main): Enable hex float tests.
24783 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24786 Document various strtod bugs, with some fixes.
24787 * doc/posix-functions/strtod.texi (strtod): Document bugs with
24788 "-0x", "inf", "nan", and hex constants.
24789 * doc/posix-functions/atof.texi (atof): Likewise.
24790 * modules/stdlib (Makefile.am): Support strtod.
24791 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24792 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24793 detect additional strtod bugs.
24794 * lib/stdlib.in.h (rpl_strtod): Add declarations.
24795 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
24796 bool where appropriate. Parse 'inf' and 'nan'.
24797 * tests/test-strtod.c: New file.
24798 * modules/strtod (Depends-on): Add stdbool, stdlib.
24799 (configure.ac): Turn on module indicator.
24800 * modules/strtod-tests: New module.
24802 2008-03-29 Eric Blake <ebb9@byu.net>
24804 Fix ftell on mingw.
24805 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24806 * modules/ftell-tests (Depends-on): Add binary-io.
24807 * modules/ftello-tests (Depends-on): Likewise.
24808 * tests/test-ftell.c (main): Enhance test to cover behavior after
24809 ungetc. Enforce binary mode.
24810 * tests/test-ftello.c (main): Likewise.
24812 Pass test-freadseek on cygwin.
24813 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24814 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24817 * tests/test-fflush2.c (main): Fix typo.
24819 2008-03-29 Bruno Haible <bruno@clisp.org>
24821 * tests/test-fflush2.c (main): Temporarily disable the contents of
24823 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24824 Reported by Eric Blake.
24826 2008-03-28 Simon Josefsson <simon@josefsson.org>
24828 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24829 (GC_SHA224_DIGEST_SIZE): Add.
24831 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24832 (gc_hash_digest_length): Likewise.
24833 (gc_hash_buffer): Likewise.
24835 2008-03-25 Bruno Haible <bruno@clisp.org>
24837 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24838 detail which gettext release to use.
24839 Reported by Simon Josefsson.
24841 2008-03-26 Jim Meyering <meyering@redhat.com>
24843 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24844 * modules/gnumakefile (clean-GNUmakefile): Also, use
24845 test ... && ... || : syntax rather than if-then ... fi.
24847 gnumakefile: Don't double-quote-expand $(VPATH) value.
24848 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24850 2008-03-24 Eric Blake <ebb9@byu.net>
24852 Alter GNUmakefile to install into top directory.
24853 * modules/maintainer-makefile: Split, and add dependency...
24854 * modules/gnumakefile: to this new module.
24855 * build-aux/GNUmakefile: Move...
24856 * top/GNUmakefile: ...here.
24857 * build-aux/maint.mk: Move...
24858 * top/maint.mk: ...here.
24859 * MODULES.html.sh (Support for maintaining...): Document new
24862 2008-03-23 Bruno Haible <bruno@clisp.org>
24864 * gnulib-tool: New options --vc-files, --no-vc-files.
24865 (func_usage): Document them.
24866 (vc_files): New variable.
24867 (func_import): Consider vc_files.
24868 (func_create_testdir): Set vc_files to empty.
24869 Suggested by Jim Meyering and Karl Berry.
24871 2008-03-23 Bruno Haible <bruno@clisp.org>
24873 Fix regex compilation error on HP-UX 11.
24874 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24875 * modules/regex (Files): Add m4/mbstate_t.m4.
24876 Reported by Ton Voon <ton.voon@altinity.com>.
24878 2008-03-23 Bruno Haible <bruno@clisp.org>
24880 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24882 2008-03-23 Eric Blake <ebb9@byu.net>
24883 Bruno Haible <bruno@clisp.org>
24885 Install files from top/ in the destination directory.
24886 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24887 augmentation also for the files from top/.
24888 (func_import, func_create_testdir): Rewrite file names:
24889 top/filename -> filename.
24891 2008-03-23 Bruno Haible <bruno@clisp.org>
24893 Tweak "gnulib --version" output.
24894 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24896 2008-03-23 Bruno Haible <bruno@clisp.org>
24898 Tweak "gnulib --version" output.
24899 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24900 rather than contents of ChangeLog, when possible.
24902 2008-03-21 Eric Blake <ebb9@byu.net>
24904 More --version tweaks.
24905 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
24906 date of last ChangeLog entry.
24908 2008-03-21 Jim Meyering <meyering@redhat.com>
24910 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24912 2008-03-20 Eric Blake <ebb9@byu.net>
24915 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24917 2008-03-20 Simon Josefsson <simon@josefsson.org>
24919 * build-aux/GNUmakefile: Make git-version-gen optional. Add
24920 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
24922 2008-03-20 Eric Blake <ebb9@byu.net>
24924 Sync GNUmakefile with coreutils.
24925 * build-aux/GNUmakefile (have-Makefile): Rename...
24926 (_have-Makefile): ...to this, for namespace consideration.
24927 (GNUmakefile.cfg): Include, if present.
24928 (_autoreconf): Define a default.
24929 (_is-dist-target): New rule for rebuilds to pick up intra-release
24931 (maint-cfg.mk): Rename...
24932 (cfg.mk): ...to this.
24934 2008-03-18 Jim Meyering <meyering@redhat.com>
24936 New script and module: mktempd
24937 * MODULES.html.sh (maint+release support): Add mktempd.
24938 * build-aux/mktempd: New file.
24939 * modules/mktempd: New file.
24941 2008-03-15 Jim Meyering <meyering@redhat.com>
24944 * lib/sha1.c, lib/md5.c: 63 != ~63.
24945 Reported by Andreas Schwab.
24947 sha1.c, md5.c: Hoist a redundant expression.
24948 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24949 "ctx->buflen" only once, before calling *_process_block.
24950 * lib/md5.c (md5_process_bytes): Likewise.
24952 2008-03-14 Eric Blake <ebb9@byu.net>
24954 Bump copyright year in files generated by gnulib-tool.
24955 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24956 gnulib-tool, rather than hard-coding it.
24958 Fix 'gnulib-tool --version' output to work with git.
24959 * gnulib-tool (func_gnulib_dir): New function, extracted from...
24960 (startup): ...here.
24961 (func_version): Use it to invoke git-version-gen, rather than
24962 relying on CVS keyword expansion. Modernize wording.
24963 (cvsdatestamp, last_checkin_date, version): Kill unused
24966 2008-03-12 Jim Meyering <meyering@redhat.com>
24968 Recognize optional cast of the argument to free.
24969 * build-aux/useless-if-before-free: Update regexps.
24971 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24973 2008-03-11 Bruno Haible <bruno@clisp.org>
24975 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24976 by a single package.
24977 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24978 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24979 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24980 Reported by Sam Steingold <sds@gnu.org>.
24982 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
24984 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24987 2008-03-11 Bruno Haible <bruno@clisp.org>
24989 Avoid conflicts between local macro definitions.
24990 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24991 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24993 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
24994 Bruno Haible <bruno@clisp.org>
24996 Make va_copy work with some version of xlc on AIX 5.1.
24997 * lib/stdarg.in.h: New file.
24998 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24999 On AIX, use a <stdarg.h> file substitute.
25000 * modules/stdarg (Files): Add lib/stdarg.in.h.
25001 (Depends-on): Add include_next.
25002 (Makefile.am): Build a stdarg.h substitute if requested.
25003 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25005 2008-03-10 Bruno Haible <bruno@clisp.org>
25007 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25008 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25009 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25011 2008-03-10 Bruno Haible <bruno@clisp.org>
25013 * modules/stdlib (Depends-on): Add include_next, remove
25016 2008-03-09 Bruno Haible <bruno@clisp.org>
25018 * lib/freadahead.h (freadahead): Document more precisely.
25019 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25020 the sum of both buffer sizes.
25021 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25022 * NEWS: Document the change.
25024 2008-03-09 Bruno Haible <bruno@clisp.org>
25026 Extend freadptr to return also the buffer size.
25027 * lib/freadptr.h (freadptr): Add sizep argument.
25028 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25029 (freadptr): Add sizep argument. Determine buffer size like freadahead
25031 * tests/test-freadptr.c: Don't include freadahead.h.
25032 (main): Adapt for new calling convention of freadptr.
25033 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25034 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25035 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25036 tests/test-freadptr2.sh.
25037 (Depends): Remove freadahead.
25038 (TESTS): Add test-freadptr2.sh.
25039 (check_PROGRAMS): Add test-freadptr2.
25041 2008-03-09 Bruno Haible <bruno@clisp.org>
25043 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25044 Report and solution by Simon Josefsson.
25046 2008-03-06 Bruno Haible <bruno@clisp.org>
25048 Make fflush after ungetc work on BSD platforms.
25049 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25050 * tests/test-fflush2.c: New file.
25051 * tests/test-fflush2.sh: New file.
25052 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25053 tests/test-fflush2.c.
25054 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25055 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25057 2008-03-06 Eric Blake <ebb9@byu.net>
25059 Likewise for ftello.
25060 * modules/ftello (Dependencies): Add extensions.
25061 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25063 2008-03-06 Bruno Haible <bruno@clisp.org>
25065 * modules/fseeko (Dependencies): Add extensions.
25066 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25067 Needed on glibc systems.
25069 2008-03-06 Bruno Haible <bruno@clisp.org>
25071 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25073 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25075 2008-03-06 Bruno Haible <bruno@clisp.org>
25077 * users.txt: Add libgnupdf.
25079 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25081 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25082 (Header File Substitutes, Function Substitutes,
25083 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25084 (Build robot for gnulib): Fix typo.
25086 2008-03-06 Bruno Haible <bruno@clisp.org>
25088 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25089 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25091 2008-03-06 Bruno Haible <bruno@clisp.org>
25093 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25094 * doc/gnulib.texi: Include it.
25096 2008-03-06 Simon Josefsson <simon@josefsson.org>
25098 * modules/func (License): Change license to unlimited; there was
25099 no LGPL parts in the module anyway.
25101 2008-03-06 Simon Josefsson <simon@josefsson.org>
25103 * modules/__func__: Renamed to modules/func.
25104 * modules/__func__-tests: Renamed to modules/func-tests.
25105 * tests/test-__func__.c: Renamed to tests/test-func.c.
25106 * m4/__func__.m4: Renamed to m4/func.m4.
25107 * doc/gnulib.texi (__func__): Section renamed to func.
25108 Suggested by Eric Blake <ebb9@byu.net>.
25110 2008-03-06 Simon Josefsson <simon@josefsson.org>
25112 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25113 about __func__. Make example self-contained. Suggested by Eric
25114 Blake <ebb9@byu.net>.
25116 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25117 Suggested by Eric Blake <ebb9@byu.net>.
25119 2008-03-06 Simon Josefsson <simon@josefsson.org>
25121 * modules/__func__: New file.
25122 * modules/__func__-tests: New file.
25123 * tests/test-__func__.c: New file.
25124 * m4/__func__.m4: New file.
25125 * doc/gnulib.texi (__func__): Document __func__ module.
25127 2008-03-05 Simon Josefsson <simon@josefsson.org>
25129 * modules/byteswap (License): Re-license as LGPLv2+.
25131 2008-03-05 Simon Josefsson <simon@josefsson.org>
25133 * doc/Makefile: Add pdf target.
25135 2008-03-05 Simon Josefsson <simon@josefsson.org>
25137 * modules/inline (License): Use 'unlimited', since there are only
25138 *.m4 files in this module.
25140 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25141 Bruno Haible <bruno@clisp.org>
25143 Add support for HP C 7.1 on OpenVMS 8.3.
25144 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25146 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25148 Update VMS specifics.
25149 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25151 2008-03-02 Jim Meyering <meyering@redhat.com>
25153 Remove the last dependency on the "free" module.
25154 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25155 Reported by Bob Proulx.
25157 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25159 Remove useless "if" tests before free. Deprecate "free" module.
25160 * doc/posix-functions/free.texi: Mention that this
25161 module is no longer useful.
25162 * modules/free (Notice): Say this module is obsolete.
25163 * modules/readutmp (Depends-on): Remove free.
25164 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25165 * lib/putenv.c (putenv): Likewise.
25166 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25167 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25168 * tests/test-c-strcasestr.c (main): Likewise.
25169 * tests/test-c-strstr.c (main): Likewise.
25170 * tests/test-mbscasestr1.c (main): Likewise.
25171 * tests/test-mbscasestr2.c (main): Likewise.
25172 * tests/test-mbsstr1.c (main): Likewise.
25173 * tests/test-mbsstr2.c (main): Likewise.
25174 * tests/test-memmem.c (main): Likewise.
25175 * tests/test-strcasestr.c (main): Likewise.
25176 * tests/test-striconv.c (main): Likewise.
25177 * tests/test-striconveh.c (main): Likewise.
25178 * tests/test-striconveha.c (main): Likewise.
25179 * tests/test-strstr.c (main): Likewise.
25181 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25183 bootstrap: sync from coreutils again
25184 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25186 2008-03-01 Jim Meyering <meyering@redhat.com>
25188 bootstrap: sync from coreutils
25189 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25190 also when the target doesn't exist.
25192 2008-03-01 Eric Blake <ebb9@byu.net>
25194 Fix bugs in last patch.
25195 * lib/memchr2.c (memchr2): Fix typo.
25196 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25198 Reported by Bruce Korb.
25200 New module 'memchr2'.
25201 * modules/memchr2: New file.
25202 * modules/memchr2-tests: Likewise.
25203 * lib/memchr2.h: Likewise.
25204 * lib/memchr2.c: Likewise, based on memchr.c.
25205 * tests/test-memchr2.c: New test.
25206 * MODULES.html.sh (String handling): Add memchr2.
25208 2008-02-29 Bruno Haible <bruno@clisp.org>
25210 * modules/freadseek-tests: New file.
25211 * tests/test-freadseek.sh: New file.
25212 * tests/test-freadseek.c: New file.
25214 New module 'freadseek'.
25215 * modules/freadseek: New file.
25216 * lib/freadseek.h: New file.
25217 * lib/freadseek.c: New file.
25218 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25220 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25222 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25225 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25226 program_invocation_name and program_invocation_short_name are
25229 2008-02-28 Bruno Haible <bruno@clisp.org>
25231 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25232 * tests/test-freadptr.sh: Also test non-seekable stdin.
25234 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25236 * build-aux/bootstrap (source_base, m4_base)
25237 (doc_base, tests_base): New variables.
25238 (gnulib_tool_options): Do not hardcode base directories, use
25239 the above variables instead.
25241 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25243 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25245 2008-02-28 Bruno Haible <bruno@clisp.org>
25247 * modules/freadptr-tests: New file.
25248 * tests/test-freadptr.sh: New file.
25249 * tests/test-freadptr.c: New file.
25251 New module 'freadptr'.
25252 * modules/freadptr: New file.
25253 * lib/freadptr.h: New file.
25254 * lib/freadptr.c: New file.
25255 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25257 2008-02-26 Karl Berry <karl@freefriends.org>
25260 * libltdl/argz.c (argz_add, argz_count): New functions.
25261 * libltdl/argz.in.h: Declare them.
25262 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25264 2008-02-22 Bruno Haible <bruno@clisp.org>
25266 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25267 is a pointer type. Needed for HP-UX 10.
25268 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25269 * doc/posix-functions/gmtime_r.texi: Likewise.
25270 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25272 2008-02-24 Bruno Haible <bruno@clisp.org>
25274 * modules/environ-tests: New file.
25275 * tests/test-environ.c: New file.
25277 New module 'environ'.
25278 * modules/environ: New file.
25279 * lib/unistd.in.h (environ): New declaration.
25280 * m4/environ.m4: New file.
25281 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25283 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25285 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25287 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25288 wrong claim that 'environ' is missing on some systems.
25289 * modules/execute (Depends-on): Add environ.
25290 * lib/execute.c (environ): Remove fallback declaration.
25291 * modules/pipe (Depends-on): Add environ.
25292 * lib/pipe.c (environ): Remove fallback declaration.
25293 * modules/setenv (Depends-on): Add environ.
25294 * lib/setenv.c (environ): Remove fallback declaration.
25295 * modules/unsetenv (Depends-on): Add environ.
25296 * lib/unsetenv.c (environ): Remove fallback declaration.
25297 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25299 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25300 (gl_PREREQ_UNSETENV): Likewise.
25302 2008-02-24 Bruno Haible <bruno@clisp.org>
25304 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25306 2008-02-20 Bob Proulx <bob@proulx.com>
25308 Enable use of older two part flavor 'git describe'.
25309 * build-aux/git-version-gen: If using the older two part flavor of
25310 git version then recreate the third part now present in the
25311 newer three part flavor of git describe.
25313 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25315 * lib/fts.c (fts_build): Typo correction to comment.
25317 2008-02-17 Bruno Haible <bruno@clisp.org>
25319 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25320 generating no-op conflicts.
25322 2008-02-17 Bruno Haible <bruno@clisp.org>
25325 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25326 result_entries, rather than an index-based loop.
25328 2008-02-17 Bruno Haible <bruno@clisp.org>
25331 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25333 (entry_create): New function.
25334 (entry_hashcode): Use the cached hashcode if possible.
25335 (read_changelog_file, try_split_merged_entry): Use entry_create.
25337 2008-02-17 Bruno Haible <bruno@clisp.org>
25339 Speed up from O(n^2) to O(n) for long ChangeLog files.
25340 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25341 (read_changelog_file): Change implementation of entries_reversed list
25343 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25345 2008-02-17 Bruno Haible <bruno@clisp.org>
25347 New option --split-merged-entry.
25348 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25349 (find_paragraph_end, try_split_merged_entry): New functions.
25350 (long_options): Add option --split-merged-entry.
25351 (usage): Document option --split-merged-entry.
25352 (main): Implement option --split-merged-entry.
25353 Reported by Eric Blake.
25355 2008-02-17 Bruno Haible <bruno@clisp.org>
25357 * lib/git-merge-changelog.c: Include c-strstr.h.
25358 (main): Support the "git pull --rebase" situation.
25359 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25360 Reported by Eric Blake.
25362 2008-02-16 Eric Blake <ebb9@byu.net>
25364 Avoid doubling \ in common case of "c-maybe" quoting style.
25365 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25366 eliding outer quotes.
25367 * lib/quotearg.h: Document this.
25368 * tests/test-quotearg.c (result_strings, inputs, results_g)
25369 (flag_results, locale_results): Test it by adding a new string to
25371 (compare_strings): Test new string.
25373 2008-02-13 Eric Blake <ebb9@byu.net>
25375 Avoid trigraph quoting in default output.
25376 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25377 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25378 unless explicitly requested.
25379 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25381 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25383 Don't rely on signed integer overflowing to negative value.
25384 * lib/getugroups.c (getugroups): Include <limits.h>.
25385 Instead, compare against INT_MAX, and increment only if the test passes.
25387 2008-02-13 Jim Meyering <meyering@redhat.com>
25388 and Eric Blake <ebb9@byu.net>
25390 Avoid shadowing warning and compile errors on Linux.
25391 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25392 forwarding macros on Linux.
25393 (dcgettext): Define a stub, for Linux.
25394 (results_g, main): Avoid warnings.
25396 2008-02-12 Eric Blake <ebb9@byu.net>
25398 Silence warning in last patch.
25399 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25401 Quotearg part 4: add tests, fix c-maybe colon quoting.
25402 * lib/quotearg.h: Improve documentation.
25403 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25404 escapes when adding outer quotes. When quoting trigraphs, use
25405 valid C notation. When quoting NUL, omit extra characters if next
25406 character is not digit. Alter prototype.
25407 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25409 * modules/quotearg-tests: New module.
25410 * tests/test-quotearg.c: New test.
25412 2008-02-07 Eric Blake <ebb9@byu.net>
25414 Quotearg part 3: add flag to control outer quote elision.
25415 * lib/quotearg.h (c_maybe_quoting_style): New style.
25416 (enum quoting_flags): Better documentation of flags.
25417 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25419 (quotearg_buffer_restyled): Handle new flag to elide outer
25422 Quotearg part 2: add flag that can control NUL elision.
25423 * lib/quotearg.h (set_quoting_flags): New prototype.
25424 * lib/quotearg.c (struct quoting_options): Add flag field.
25425 (set_quoting_flags): New function.
25426 (quotearg_buffer_restyled): Add flags parameter.
25427 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25428 (quotearg_n_options): Set the flag, since length cannot be
25430 (quoting_options_from_style): Default flags correctly.
25432 Quotearg part 1: more wrappers, restore quotearg_char state.
25433 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25434 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25435 (quotearg_colon_mem): New wrappers.
25436 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25437 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25439 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25440 (quotearg_colon_mem): New functions.
25442 2008-02-11 Bruno Haible <bruno@clisp.org>
25444 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25445 library in the current directory: it does not work with parallel make.
25446 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25448 2008-02-11 Bruno Haible <bruno@clisp.org>
25450 * .gitattributes: New file.
25452 2008-02-11 Jim Meyering <meyering@redhat.com>
25454 useless-if-before-free: Fix reversed exit values.
25455 * build-aux/useless-if-before-free: Use correct values
25456 for EXIT_MATCH and EXIT_NO_MATCH.
25458 * build-aux/useless-if-before-free: Close stdout carefully.
25460 2008-02-10 Bruno Haible <bruno@clisp.org>
25462 New module 'git-merge-changelog'.
25463 * modules/git-merge-changelog: New file.
25464 * lib/git-merge-changelog.c: New file.
25466 2008-02-10 Jim Meyering <meyering@redhat.com>
25468 useless-if-before-free: New option: --list (-l).
25470 useless-if-before-free: Don't exit immediately upon open failure.
25471 * build-aux/useless-if-before-free: Exit 2 for errors.
25472 Upon failure to open a file, don't exit immediately.
25473 Rather, just warn and continue with any remaining files.
25475 2008-02-10 Bruno Haible <bruno@clisp.org>
25477 New abstract list operation 'node_set_value'.
25478 * lib/gl_list.h (gl_list_node_set_value): New function.
25479 (struct gl_list_implementation): New field node_set_value.
25480 * lib/gl_list.c (gl_list_node_set_value): New function.
25481 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25482 (gl_array_list_implementation): Update.
25483 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25484 (gl_carray_list_implementation): Update.
25485 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25486 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25487 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25488 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25489 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25490 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25491 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25493 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25494 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25495 (gl_sublist_list_implementation): Update.
25497 2008-02-10 Bruno Haible <bruno@clisp.org>
25499 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25500 Needed when ELEMENT is #defined to 'some_type *'.
25502 2008-02-10 Jim Meyering <meyering@redhat.com>
25504 New script and module: useless-if-before-free
25505 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25506 * build-aux/useless-if-before-free: New file.
25507 * modules/useless-if-before-free: New file.
25509 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25511 xstrtol_error: Fix typo.
25512 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25513 s/exit_failure/exit_status/.
25515 2008-02-09 Jim Meyering <meyering@redhat.com>
25517 New script and module: gitlog-to-changelog
25518 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25519 * modules/gitlog-to-changelog: New file.
25520 * build-aux/gitlog-to-changelog: New file.
25522 2008-02-08 Jim Meyering <meyering@redhat.com>
25524 Avoid two "parameter unused" warnings.
25525 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25528 Use "git COMMAND", not "git-COMMAND".
25529 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25530 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25531 * build-aux/git-version-gen: Use "git status", not "git-status".
25533 2008-02-07 Bruno Haible <bruno@clisp.org>
25535 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25536 Avoids a crash on Windows Vista.
25537 Reported by Adam Strzelecki <ono@java.pl> via
25538 Simon Josefsson <simon@josefsson.org>.
25540 2008-02-06 Bruno Haible <bruno@clisp.org>
25542 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25543 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25544 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25545 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25546 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25547 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25548 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25549 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25550 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25551 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25552 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25553 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25554 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25555 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25556 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25557 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25559 * tests/test-snprintf-posix.h (test_function): Likewise.
25560 * tests/test-sprintf-posix.h (test_function): Likewise.
25561 * tests/test-vasprintf-posix.c (test_function): Likewise.
25562 * doc/posix-functions/fprintf.texi: Update.
25563 * doc/posix-functions/printf.texi: Update.
25564 * doc/posix-functions/snprintf.texi: Update.
25565 * doc/posix-functions/sprintf.texi: Update.
25566 * doc/posix-functions/vfprintf.texi: Update.
25567 * doc/posix-functions/vprintf.texi: Update.
25568 * doc/posix-functions/vsnprintf.texi: Update.
25569 * doc/posix-functions/vsprintf.texi: Update.
25570 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25572 2008-02-06 Bruno Haible <bruno@clisp.org>
25574 Fix bug introduced on 2008-01-26.
25575 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25577 2008-02-06 Bruno Haible <bruno@clisp.org>
25579 Fix bug introduced on 2007-06-10.
25580 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25581 !NEED_PRINTF_FLAG_ZERO.
25583 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25585 getloadavg: use libperfstat on AIX5
25586 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25588 2008-02-03 Bruno Haible <bruno@clisp.org>
25590 * lib/diffseq.h: Add comments about required #includes.
25591 Reported by Michael Biggs <gnulib@doubleplum.net>.
25593 2008-02-01 Bruno Haible <bruno@clisp.org>
25595 * users.txt: Add gnuit.
25597 2008-01-31 Bruno Haible <bruno@clisp.org>
25599 * lib/md4.c (set_uint32): Mark as inline.
25600 * lib/md5.c (set_uint32): Likewise.
25601 * lib/sha1.c (set_uint32): Likewise.
25602 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25603 * m4/md5.m4 (gl_MD5): Likewise.
25604 * m4/sha1.m4 (gl_SHA1): Likewise.
25606 2008-01-31 Jim Meyering <meyering@redhat.com>
25608 Use "sizeof VAR", rather than a literal "4".
25609 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25610 * lib/md4.c (md4_read_ctx): Likewise.
25611 * lib/sha1.c (sha1_read_ctx): Likewise.
25613 2008-01-31 Simon Josefsson <simon@josefsson.org>
25615 * tests/test-sha1.c: New file, based on test-md5.c.
25617 * modules/crypto/sha1-tests: New file.
25619 2008-01-31 Simon Josefsson <simon@josefsson.org>
25621 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25623 2008-01-31 Jim Meyering <meyering@redhat.com>
25625 Prefer "sizeof v" over the equivalent "4".
25626 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25627 * lib/md5.c (set_uint32): Likewise.
25628 * lib/sha1.c (set_uint32): Likewise.
25630 2008-01-31 Simon Josefsson <simon@josefsson.org>
25632 * lib/sha1.c (set_uint32): Mark function as static.
25634 2008-01-31 Simon Josefsson <simon@josefsson.org>
25636 md2: clarify comments to say that alignment is not required.
25637 * lib/md2.h: Remove warning about alignment in comment.
25638 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25639 never been required.
25641 2008-01-31 Simon Josefsson <simon@josefsson.org>
25643 md4: adapt alignment constraint fix from sha1.
25644 * lib/md4.c (set_uint32): New function, from sha1.c
25645 (md4_read_ctx): Use it.
25646 (md4_finish_ctx): Doc fix.
25647 * lib/md4.h: Doc fix.
25649 2008-01-31 Simon Josefsson <simon@josefsson.org>
25651 md5: adapt alignment constraint fix from sha1.
25652 * lib/md5.c (set_uint32): New function, from sha1.c
25653 (md5_read_ctx): Use it.
25654 (md5_finish_ctx): Doc fix.
25655 * lib/md5.h: Doc fix.
25657 2008-01-30 Peter Palfrader <weasel@debian.org>
25659 sha1: remove the result buffer alignment constraint
25660 * lib/sha1.c (set_uint32): New function.
25661 (sha1_read_ctx): Rewrite to remove the result buffer alignment
25663 (sha1_finish_ctx): Remove comment warning about alignment constraint.
25664 * lib/sha1.h: Likewise.
25666 2008-01-30 Andreas Schwab <schwab@suse.de>
25667 Bruno Haible <bruno@clisp.org>
25669 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25670 correct definition of LDBL_MIN_EXP.
25672 2008-01-30 Karl Berry <karl@gnu.org>
25674 * config/srclist-update: try to preserve x bit on updates.
25675 * config/srclistvars.sh: update for karl.
25677 2008-01-29 Jim Meyering <meyering@redhat.com>
25679 vasnprintf.c: Avoid warning about unused label
25680 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25681 "overflow" label definition and associated code with the
25682 same cpp condition that guards the sole use of that label.
25684 2008-01-26 Bruno Haible <bruno@clisp.org>
25686 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25687 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25688 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25689 * lib/isnanl-nolibm.h (isnanl): Likewise.
25690 Reported by Paul Eggert <eggert@cs.ucla.edu>.
25692 2008-01-26 Bruno Haible <bruno@clisp.org>
25694 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25695 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25697 2008-01-26 Bruno Haible <bruno@clisp.org>
25699 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25700 GCC >= 4.0 built-in.
25701 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25703 2008-01-26 Bruno Haible <bruno@clisp.org>
25705 Rename isnan, applicable to 'double' only, to isnand.
25706 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25707 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25708 (configure.ac): Update.
25709 (Include): Replace "isnan.h" with "isnand.h".
25710 * m4/isnand.m4: Renamed from m4/isnan.m4.
25711 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25712 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25713 instead of isnan.c.
25714 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25715 instead of HAVE_ISNAN_IN_LIBC.
25716 (isnand): Renamed from isnan.
25717 * lib/isnand.c: New file.
25718 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25719 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25720 (Makefile.am): Update.
25721 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25722 Include isnand.h instead of isnan.h.
25723 (main): Test isnand instead of isnan.
25724 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25726 * modules/frexp (Depends-on): Likewise.
25727 * modules/frexp-tests (Depends-on): Likewise.
25728 * modules/frexp-nolibm (Depends-on): Likewise.
25729 * modules/frexp-nolibm-tests (Depends-on): Likewise.
25730 * modules/isfinite (Depends-on): Likewise.
25731 * modules/round-tests (Depends-on): Likewise.
25732 * modules/signbit (Depends-on): Likewise.
25733 * modules/signbit-tests (Depends-on): Likewise.
25734 * modules/snprintf-posix (Depends-on): Likewise.
25735 * modules/sprintf-posix (Depends-on): Likewise.
25736 * modules/trunc-tests (Depends-on): Likewise.
25737 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25738 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25739 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25740 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25741 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25742 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25743 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25744 * modules/vasnprintf-posix (Depends-on): Likewise.
25745 * modules/vasprintf-posix (Depends-on): Likewise.
25746 * modules/vfprintf-posix (Depends-on): Likewise.
25747 * modules/vsnprintf-posix (Depends-on): Likewise.
25748 * modules/vsprintf-posix (Depends-on): Likewise.
25749 * lib/frexp.c: Include isnand.h instead of isnan.h.
25750 (ISNAN): Set to isnand instead of isnan.
25751 * lib/isfinite.c: Include isnand.h instead of isnan.h.
25752 (gl_isfinited): Use isnand instead of isnan.
25753 * lib/signbitd.c: Include isnand.h instead of isnan.h.
25754 (gl_signbitd): Use isnand instead of isnan.
25755 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25756 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25757 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25758 (main): Use isnand instead of isnan.
25759 * tests/test-round1.c: Include isnand.h.
25760 (main): Use isnand instead of isnan.
25761 * tests/test-round2.c: Include isnand.h instead of isnan.h.
25762 (ISNAN): Set to isnand instead of isnan.
25763 * tests/test-trunc1.c: Include isnand.h.
25764 (main): Use isnand instead of isnan.
25765 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25766 (equal): Use isnand instead of isnan.
25767 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25769 * NEWS: Mention the change.
25771 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
25772 Bruno Haible <bruno@clisp.org>
25774 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25775 the GCC builtins for signbits are present and set
25776 REPLACE_SIGNBIT_USING_GCC if so.
25777 * lib/math.in.h (signbit): Define using GCC builtins if
25778 REPLACE_SIGNBIT_USING_GCC is set.
25779 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25780 REPLACE_SIGNBIT_USING_GCC.
25781 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25783 2008-01-25 Jim Meyering <meyering@redhat.com>
25785 Prefer <config.h> over "config.h". See autoconf doc for explanation.
25786 * lib/poll.c: Include <config.h>, not "config.h".
25787 * tests/test-getaddrinfo.c: Likewise.
25789 2008-01-25 Simon Josefsson <simon@josefsson.org>
25791 * modules/sockets-tests: New file.
25793 2008-01-24 Simon Josefsson <simon@josefsson.org>
25795 * modules/sockets: New module, can be used to call WSA_Startup and
25796 WSA_Cleanup when needed.
25798 * lib/sockets.h, lib/sockets.c: New files.
25800 * m4/sockets.m4: New file.
25802 * tests/test-sockets.c: New file.
25804 2008-01-19 Bruno Haible <bruno@clisp.org>
25806 * doc/posix-headers: Renamed from doc/headers.
25807 * doc/posix-functions: Renamed from doc/functions.
25808 * doc/gnulib.texi: Update.
25810 2008-01-19 Bruno Haible <bruno@clisp.org>
25812 * doc/glibc-functions/strcasestr.texi: Include contents of
25813 doc/functions/strcasestr.texi, fixing the list of platforms.
25814 * doc/functions/strcasestr.texi: Remove file.
25816 2008-01-19 Bruno Haible <bruno@clisp.org>
25818 * doc/glibc-functions/memmem.texi: Include contents of
25819 doc/functions/memmem.texi.
25820 * doc/functions/memmem.texi: Remove file.
25822 2008-01-18 Bruno Haible <bruno@clisp.org>
25824 * doc/glibc-functions/*.texi: New files.
25825 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25826 to use the new files.
25828 2008-01-17 Bruno Haible <bruno@clisp.org>
25830 * tests/test-gethostname.c (main): Fix printf statement.
25832 2008-01-17 Simon Josefsson <simon@josefsson.org>
25834 * modules/gethostname-tests: New file.
25836 * tests/test-gethostname.c: New file.
25838 2008-01-17 Simon Josefsson <simon@josefsson.org>
25840 * lib/gethostname.c: Include string.h unconditionally, strncpy is
25841 used by the UNAME case. Reported by Bruno Haible
25844 2008-01-17 Eric Blake <ebb9@byu.net>
25846 Convert c-strcasestr to be more efficient.
25847 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25848 (Depends-on): Add c-strcase, remove malloca, strnlen.
25849 * tests/test-c-strcasestr.c (main): Enhance test.
25850 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25852 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
25854 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25855 Use it in creating po/Makevars.
25857 2008-01-15 Simon Josefsson <simon@josefsson.org>
25859 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25860 Applications that requires it should initialize libgcrypt
25863 2008-01-16 Simon Josefsson <simon@josefsson.org>
25865 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25867 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
25869 Fix problem with getdate on mingw32 reported by Simon Josefsson
25870 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25871 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25872 tzname", when deciding whether to declare tzname.
25873 * lib/strftime.c (tzname): Likewise.
25875 2008-01-15 Bruno Haible <bruno@clisp.org>
25877 Work around a MacOS X 10.5 bug in frexpl().
25878 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25879 * doc/functions/frexpl.texi: Document the bug.
25880 Reported by Elias Pipping <pipping@gentoo.org>.
25882 2008-01-14 Eric Blake <ebb9@byu.net>
25884 Touch up previous patch.
25885 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25886 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25888 Convert strcasestr module to use Two-Way algorithm.
25889 * modules/strcasestr-simple: New module, based on the old
25890 strcasestr, but with Two-Way rather than KMP.
25891 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25892 * lib/string.in.h (rpl_strcasestr): Declare.
25893 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25895 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25896 * modules/string (Makefile.am): Support strcasestr.
25897 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25898 * modules/strcasestr-tests (Depends-on): Check for alarm.
25899 * tests/test-strcasestr.c: Augment test.
25900 * lib/str-two-way.h: Clean up stray macro.
25901 * NEWS: Document new module.
25902 * MODULES.html.sh (string handling): Likewise.
25903 * doc/functions/strcasestr.texi: New file.
25904 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
25905 here, since it is not a POSIX function.
25907 2008-01-14 Colin Watson <cjwatson@debian.org>
25908 Bruno Haible <bruno@clisp.org>
25910 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25911 works fine; if not, set REPLACE_STRSIGNAL.
25912 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25913 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25915 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25916 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25917 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25919 2008-01-14 Bruno Haible <bruno@clisp.org>
25921 * modules/strsignal (Include): Change to <string.h>.
25923 2008-01-14 Colin Watson <cjwatson@debian.org>
25925 * modules/argp (Notice): Add a notice recommending to change
25927 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25929 2008-01-13 Colin Watson <cjwatson@debian.org>
25931 * modules/strsignal-tests: New file.
25932 * tests/test-strsignal.c: New file.
25934 * lib/strsignal.c: New file, from glibc with modifications.
25935 * lib/siglist.h: New file, from glibc with modifications.
25936 * lib/string.in.h (strsignal): New declaration.
25937 * m4/strsignal.m4: New file.
25938 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25939 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25940 * modules/strsignal: New file.
25941 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25942 HAVE_DECL_STRSIGNAL.
25944 2008-01-13 Bruno Haible <bruno@clisp.org>
25946 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25947 locale encoding is not ASCII. Needed for OpenBSD 4.0.
25948 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25949 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25951 2008-01-13 Bruno Haible <bruno@clisp.org>
25953 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25954 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25955 * lib/argp.h (__attribute__): Likewise.
25956 * lib/c-stack.c (__attribute__): Likewise.
25957 * lib/error.h (__attribute__): Likewise.
25958 * lib/fts.c (__attribute__): Likewise.
25959 * lib/openat.h (__attribute__): Likewise.
25960 * lib/stdio.in.h (__attribute__): Likewise.
25961 * lib/string.in.h (__attribute__): Likewise.
25962 * lib/utimens.c (__attribute__): Likewise.
25963 * lib/vasnprintf.h (__attribute__): Likewise.
25964 * lib/xalloc.h (__attribute__): Likewise.
25965 * lib/xprintf.h (__attribute__): Likewise.
25966 * lib/xstrtol.h (__attribute__): Likewise.
25967 * lib/xvasprintf.h (__attribute__): Likewise.
25969 2008-01-12 Bruno Haible <bruno@clisp.org>
25971 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25972 * doc/glibc-headers/a.out.texi: New file.
25973 * doc/glibc-headers/aliases.texi: New file.
25974 * doc/glibc-headers/alloca.texi: New file.
25975 * doc/glibc-headers/ar.texi: New file.
25976 * doc/glibc-headers/argp.texi: New file.
25977 * doc/glibc-headers/argz.texi: New file.
25978 * doc/glibc-headers/byteswap.texi: New file.
25979 * doc/glibc-headers/crypt.texi: New file.
25980 * doc/glibc-headers/endian.texi: New file.
25981 * doc/glibc-headers/envz.texi: New file.
25982 * doc/glibc-headers/err.texi: New file.
25983 * doc/glibc-headers/error.texi: New file.
25984 * doc/glibc-headers/execinfo.texi: New file.
25985 * doc/glibc-headers/fpu_control.texi: New file.
25986 * doc/glibc-headers/fstab.texi: New file.
25987 * doc/glibc-headers/fts.texi: New file.
25988 * doc/glibc-headers/getopt.texi: New file.
25989 * doc/glibc-headers/ieee754.texi: New file.
25990 * doc/glibc-headers/ifaddrs.texi: New file.
25991 * doc/glibc-headers/libintl.texi: New file.
25992 * doc/glibc-headers/mcheck.texi: New file.
25993 * doc/glibc-headers/mntent.texi: New file.
25994 * doc/glibc-headers/obstack.texi: New file.
25995 * doc/glibc-headers/paths.texi: New file.
25996 * doc/glibc-headers/printf.texi: New file.
25997 * doc/glibc-headers/pty.texi: New file.
25998 * doc/glibc-headers/resolv.texi: New file.
25999 * doc/glibc-headers/shadow.texi: New file.
26000 * doc/glibc-headers/sysexits.texi: New file.
26001 * doc/glibc-headers/ttyent.texi: New file.
26003 2008-01-12 Jim Meyering <meyering@redhat.com>
26005 announce-gen: emit Gnulib's git-based version string.
26006 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26007 New option --gnulib-version=V, where V is expected to be
26008 the output of running git describe in the gnulib directory.
26009 (get_tool_versions): Request feedback on xdelta. I suspect it's
26010 not useful, and plan to stop publishing an xdelta file with each
26013 * build-aux/announce-gen: Also check for lzma-compressed files.
26015 2008-01-11 Bruno Haible <bruno@clisp.org>
26017 * tests/test-memmem.c (main): Increase maximum allowed time.
26018 * tests/test-strstr.c (main): Likewise.
26020 2008-01-11 Bruno Haible <bruno@clisp.org>
26022 * doc/functions/memmem.texi: Add more precisions about platforms.
26023 * doc/functions/strstr.texi: Likewise.
26025 2008-01-10 Eric Blake <ebb9@byu.net>
26027 * m4/strstr.m4: Delete cruft from copy-n-paste.
26028 Reported by Bruno Haible.
26030 2008-01-10 Bruno Haible <bruno@clisp.org>
26032 Make c-strstr rely on strstr.
26033 * lib/c-strstr.c: Don't include str-kmp.h.
26034 (c_strstr): Define in terms of strstr.
26035 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26036 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26038 2008-01-10 Bruno Haible <bruno@clisp.org>
26040 * doc/gnulib.texi (String Functions in C Locale): New section.
26041 * doc/c-ctype.texi: New file.
26042 * doc/c-strcase.texi: New file.
26043 * doc/c-strcaseeq.texi: New file.
26044 * doc/c-strcasestr.texi: New file.
26045 * doc/c-strstr.texi: New file.
26046 * doc/c-strtod.texi: New file.
26047 * doc/c-strtold.texi: New file.
26049 2008-01-10 Eric Blake <ebb9@byu.net>
26051 * lib/relocatable.h: Fix a comment.
26053 2008-01-10 Eric Blake <ebb9@byu.net>
26055 Share two-way algorithm.
26056 * lib/str-two-way.h: New file, merged from...
26057 * lib/memmem.c: ...here...
26058 * lib/strstr.c: ...and here.
26059 * modules/memmem (Files): Use it.
26060 * modules/strstr (Files): Likewise.
26062 Avoid quadratic strstr implementations.
26063 * lib/strstr.c: New file.
26064 * m4/strstr.m4: Likewise.
26065 * modules/strstr: Likewise.
26066 * modules/strstr-tests: Likewise.
26067 * tests/test-strstr.c: Likewise.
26068 * lib/string.in.h (rpl_strstr): Declare.
26069 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26070 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26071 * modules/string (Makefile.am): Likewise.
26072 * MODULES.html.sh (string handling): Mention new module.
26073 * doc/functions/strstr.texi (strstr): Document the bug.
26075 2008-01-10 Bruno Haible <bruno@clisp.org>
26077 * lib/relocatable.h (relocate): State whether result is freshly
26079 * lib/relocatable.c (relocate): Return a freshly allocated string
26080 instead of a pointer to a privately held string.
26081 Reported by Sylvain Beucler <beuc@gnu.org>.
26083 2008-01-10 Colin Watson <cjwatson@debian.org>
26085 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26086 s/S_ISNLK/S_ISLNK/.
26088 2008-01-09 Bruno Haible <bruno@clisp.org>
26090 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26092 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26093 if it's only a guess.
26094 * modules/memmem: Simplify by depending on memmem-simple.
26096 2008-01-09 Bruno Haible <bruno@clisp.org>
26098 Work around OpenBSD 4.0 tdelete() bug.
26099 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26100 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26101 macros and don't redefine the enum values.
26102 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26103 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26104 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26106 2008-01-09 Bruno Haible <bruno@clisp.org>
26108 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26109 (main): Don't perform the tests if setlocale did not install a UTF-8
26110 locale. Needed on OpenBSD 4.0.
26111 * modules/wcwidth-tests (Depends-on): Add localcharset.
26113 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26115 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26116 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26117 * NEWS: announce this.
26118 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26120 2008-01-09 Simon Josefsson <simon@josefsson.org>
26121 and Eric Blake <ebb9@byu.net>
26123 Add memmem-simple module.
26124 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26125 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26126 * modules/memmem-simple: New file.
26127 * modules/memmem (Description): Tweak.
26128 * MODULES.html.sh (string handling): Mention new module.
26129 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26130 addressed by memmem-simple.
26131 * NEWS: Document the difference.
26133 2008-01-09 Eric Blake <ebb9@byu.net>
26135 Give gcc some memmem optimization hints.
26136 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26137 (strcasestr): Declare as pure.
26138 * modules/memmem (Maintainer): Claim my implementation.
26140 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26142 Support AIX 6.1 and higher.
26143 * build-aux/config.libpath: Likewise.
26144 * build-aux/config.rpath: Likewise.
26146 2008-01-08 Jim Meyering <meyering@redhat.com>
26147 Bruno Haible <bruno@clisp.org>
26149 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26150 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26151 Reported by Peter Fales in
26152 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26154 2008-01-08 Bruno Haible <bruno@clisp.org>
26156 * modules/unictype/category-of (Depends-on): Add
26157 unictype/category-none.
26158 * modules/unictype/category-and-tests (Depends-on): Add
26159 unictype/category-{L,N,Lu,Nd}.
26160 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26161 * modules/unictype/category-or-tests (Depends-on): Add
26162 unictype/category-{L,N}.
26163 * modules/unictype/category-name-tests (Depends-on): Add
26164 unictype/category-{Z,Nl}.
26165 Reported by Simon Josefsson.
26167 2008-01-08 Bruno Haible <bruno@clisp.org>
26169 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26171 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26172 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26173 Reported by Peter Miller <millerp@canb.auug.org.au>.
26175 2008-01-08 Eric Blake <ebb9@byu.net>
26177 Rewrite memmem to guarantee linear complexity without malloc.
26178 * lib/memmem.c (memmem): Use Two-Way rather than
26179 Knuth-Morris-Pratt, to allow O(1) space usage.
26180 (critical_factorization, two_way_short_needle)
26181 (two_way_long_needle): New functions.
26182 (knuth_morris_pratt): Delete.
26183 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26185 * tests/test-memmem.c (main): Add tests for periodic needle and
26186 sublinear performance.
26187 * doc/functions/memmem.texi (memmem): Document other deficiencies
26188 in cygwin and older glibc.
26190 2008-01-08 Bruno Haible <bruno@clisp.org>
26192 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26195 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26197 Add a configure time option: --disable-acl.
26198 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26199 AC_ARG_ENABLE(acl).
26201 2008-01-06 Simon Josefsson <simon@josefsson.org>
26203 * tests/test-localename.c: Don't include obsolete "setenv.h".
26205 * modules/localename-tests (Depends-on): Need unsetenv.
26207 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26209 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26211 2008-01-06 Colin Watson <cjwatson@debian.org>
26213 * users.txt: Add man-db.
26215 2008-01-07 Bruno Haible <bruno@clisp.org>
26217 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26218 previous section name.
26220 2008-01-07 Bruno Haible <bruno@clisp.org>
26222 * lib/progname.c (set_program_name): Don't strip off a leading
26223 "lt-" prefix outside a .libs directory.
26224 Suggested by Paul Eggert.
26226 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26227 Bruno Haible <bruno@clisp.org>
26229 Improve memory cleanup in 'relocatable' module.
26230 * lib/relocatable.h (compute_curr_prefix): Change return type to
26232 * lib/relocatable.c (compute_curr_prefix): Change return type to
26233 'char *'. Free curr_installdir after use.
26234 (relocate): Free curr_prefix_better after use.
26235 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26237 2008-01-01 Bruno Haible <bruno@clisp.org>
26239 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26240 failure on older glibc systems.
26241 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26243 2008-01-05 Eric Blake <ebb9@byu.net>
26245 Avoid quadratic system memmem.
26246 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26247 Reported by Ralf Wildenhues.
26249 Fix memmem test for mingw.
26250 * modules/memmem-tests (configure.ac): Check for alarm.
26251 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26253 * doc/functions/memmem.texi: New file.
26254 * doc/gnulib.texi (Function Substitutes): Add memmem.
26255 Reported by Bruno Haible.
26257 2008-01-04 Bruno Haible <bruno@clisp.org>
26259 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26260 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26261 gl_HEADER_STRING_H_DEFAULTS.
26263 2008-01-04 Eric Blake <ebb9@byu.net>
26265 Shorten duration of memmem test.
26266 * tests/test-memmem.c (main): Use alarm to declare failure if test
26267 is taking too long.
26268 Reported by Ralf Wildenhues.
26270 2007-12-21 Simon Josefsson <simon@josefsson.org>
26272 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26273 string, needed by strerror.
26275 2008-01-03 Colin Watson <cjwatson@debian.org>
26276 Bruno Haible <bruno@clisp.org>
26278 * doc/gnulib-tool.texi (Localization): New section.
26280 2008-01-02 Bruno Haible <bruno@clisp.org>
26282 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26283 variables to 'unsigned char *' type.
26284 Reported by Paul Eggert.
26286 2008-01-02 Jim Meyering <jim@meyering.net>
26288 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26290 2007-12-31 Jim Meyering <jim@meyering.net>
26292 Avoid use of private FTS type name.
26293 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26295 2007-12-30 Karl Berry <karl@gnu.org>
26297 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26298 work around defect in Texinfo and/or the standalone Info browser.
26300 2007-12-30 Bruno Haible <bruno@clisp.org>
26302 Unify 5 copies of the KMP code.
26303 * lib/str-kmp.h: New file.
26304 * lib/c-strcasestr.c: Include str-kmp.h.
26305 (knuth_morris_pratt): Remove function.
26306 (c_strcasestr): Update.
26307 * lib/c-strstr.c: Include str-kmp.h.
26308 (knuth_morris_pratt): Remove function.
26309 (c_strcasestr): Update.
26310 * lib/mbscasestr.c: Include str-kmp.h.
26311 (knuth_morris_pratt_unibyte): Remove function.
26312 * lib/mbsstr.c: Include str-kmp.h.
26313 (knuth_morris_pratt_unibyte): Remove function.
26314 * lib/strcasestr.c: Include str-kmp.h.
26315 (knuth_morris_pratt): Remove function.
26316 (strcasestr): Update.
26317 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26318 * modules/c-strstr (Files): Likewise.
26319 * modules/mbscasestr (Files): Likewise.
26320 * modules/mbsstr (Files): Likewise.
26321 * modules/strcasestr (Files): Likewise.
26322 Suggested by Paul Eggert.
26324 2007-12-30 Bruno Haible <bruno@clisp.org>
26326 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26329 2007-12-30 Bruno Haible <bruno@clisp.org>
26331 * lib/xmalloca.h: Include xalloc.h.
26332 (xnmalloca): New macro.
26334 2007-12-30 Bruno Haible <bruno@clisp.org>
26336 * lib/malloca.h (nmalloca): New macro.
26337 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26338 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26339 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26340 knuth_morris_pratt_multibyte): Likewise.
26341 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26342 knuth_morris_pratt_multibyte): Likewise.
26343 * lib/memmem.c (knuth_morris_pratt): Likewise.
26344 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26346 2007-12-25 Bruno Haible <bruno@clisp.org>
26348 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26349 * lib/glob.c: Don't include openat.h.
26350 (link_exists2_p): Add back the code that deals with the
26351 !GLOB_ALTDIRFUNC case.
26352 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26353 let it do the filename concatenation.
26354 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26355 * modules/glob (Depends-on): Remove openat.
26357 2007-12-31 Bruno Haible <bruno@clisp.org>
26359 * modules/dirfd (License): Change to LGPLv2+.
26360 Approved by Jim Meyering.
26362 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26364 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26365 when multiplying M by sizeof (size_t).
26367 2007-12-10 Martin Lambers <marlam@marlam.de>
26369 Override getpagesize on mingw.
26370 * lib/getpagesize.c: New file.
26371 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26372 * modules/getpagesize (Files): Add lib/getpagesize.c.
26373 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26374 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26375 REPLACE_GETPAGESIZE.
26376 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26378 2007-12-25 Bruno Haible <bruno@clisp.org>
26380 * modules/localcharset (Notice): New field.
26381 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26382 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26384 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26385 Bruno Haible <bruno@clisp.org>
26387 Avoid using the syntax symbol() in formatted documentation.
26388 * MODULES.html.sh (func_module): When replacing symbol() with a
26389 hyperlink, remove the parentheses. Show an error if some remain.
26390 Recognize and render the '...' syntax.
26391 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26392 Rework. Add paragraph about GCC's inlining.
26393 * doc/alloca.texi: Likewise.
26394 * doc/error.texi: Remove parentheses from symbol reference.
26395 * doc/gnulib-intro.texi: Likewise.
26396 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26397 * modules/fnmatch (Description): Reword to say "the ... function".
26398 * modules/full-read (Description): Likewise.
26399 * modules/full-write (Description): Likewise.
26400 * modules/safe-read (Description): Likewise.
26401 * modules/safe-write (Description): Likewise.
26402 * modules/strchrnul (Description): Likewise.
26403 * modules/trim (Description): Likewise.
26404 * modules/error (Description): Remove parentheses from symbol
26406 * modules/verror (Description): Likewise.
26407 Reported by Karl Berry.
26409 2007-12-25 Bruno Haible <bruno@clisp.org>
26411 Fixup after 2007-10-16 commit.
26412 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26414 2007-12-24 Bruno Haible <bruno@clisp.org>
26416 Make --enable-relocatable work with DESTDIR.
26417 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26418 to compute installdir from destprog.
26419 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26420 also set the RELOC_DESTDIR variable.
26421 Reported by Левашев Иван <octagram@bluebottle.com>.
26423 2007-12-24 Bruno Haible <bruno@clisp.org>
26425 Fix link error due to xalloc_die().
26426 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26428 * lib/relocwrapper.c: Update comments.
26429 * build-aux/install-reloc: Remove xreadlink.c from file list.
26430 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26432 Reported by Левашев Иван <octagram@bluebottle.com>.
26434 2007-12-24 Bruno Haible <bruno@clisp.org>
26436 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26437 * lib/setenv.h: Remove file.
26438 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26440 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26441 (Depends-on): Add stdlib.
26442 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26444 (Include): Replace setenv.h with <stdlib.h>.
26445 * modules/unsetenv: New file.
26446 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26447 * lib/unsetenv.c: Include <stdlib.h> first.
26448 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26449 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26450 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26451 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26452 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26453 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26454 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26455 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26456 * doc/functions/unsetenv.texi: Update.
26457 * modules/xsetenv (Depends-on): Add unsetenv.
26458 * modules/getdate (Depends-on): Likewise.
26459 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26460 * lib/xsetenv.c: Don't include setenv.h.
26461 * lib/getdate.y: Likewise.
26462 * lib/relocwrapper.c: Likewise.
26463 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26464 (Depends-on): Add stdlib.
26465 * NEWS: Mention the changes.
26466 Reported by Левашев Иван <octagram@bluebottle.com>.
26468 2007-12-23 Bruno Haible <bruno@clisp.org>
26470 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26473 2007-12-23 Bruno Haible <bruno@clisp.org>
26475 * lib/c-strcasestr.c: Add more comments.
26476 * lib/c-strstr.c: Likewise.
26477 * lib/mbscasestr.c: Likewise.
26478 * lib/mbsstr.c: Likewise.
26479 * lib/strcasestr.c: Likewise.
26480 * lib/memmem.c: Likewise.
26482 2007-12-23 Bruno Haible <bruno@clisp.org>
26484 * tests/test-memmem.c: Include <string.h> first.
26486 2007-12-22 Bruno Haible <bruno@clisp.org>
26488 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26489 the contents of $testsbase.
26490 Reported by Ralf Wildenhues.
26492 2007-12-22 Bruno Haible <bruno@clisp.org>
26494 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26495 two variables local_ldadd_before, local_ldadd_last.
26497 2007-12-20 Eric Blake <ebb9@byu.net>
26499 Work around circular library issue when cross-compiling.
26500 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26501 that progname.o does not need to pull in rpl_memcmp.
26503 2007-12-19 Eric Blake <ebb9@byu.net>
26505 Fix memmem to avoid O(n^2) worst-case complexity.
26506 * lib/memmem.c (knuth_morris_pratt): New function.
26507 (memmem): Use it if first few naive iterations fail.
26508 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26509 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26510 * modules/memchr (License): Likewise.
26511 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26513 * tests/test-memmem.c: Rewrite, borrowing ideas from
26514 test-mbsstr1.c; the old version wouldn't even compile!
26515 * modules/memmem-tests: New file.
26516 * lib/string.in.h (rpl_memmem): Add declaration.
26517 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26518 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26521 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26523 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26524 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26525 before any system include files, and undef after them all. This
26526 should fix a problem on VMS reported by John E. Malmberg in
26527 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26529 2007-12-17 Eric Blake <ebb9@byu.net>
26531 Revert addition of verify, for BSD/OS.
26532 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26533 can't handle large files, for the sake of obsolete platforms.
26534 * modules/fseeko (Depends-on): Remove verify.
26535 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26536 * doc/functions/ftello.texi (ftello): Likewise.
26537 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26538 Reported by Larry Jones.
26540 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26542 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26543 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26545 2007-12-17 Jim Meyering <meyering@redhat.com>
26547 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26548 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26549 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26550 * modules/getcwd (Depends-on): Add openat.
26551 Reported by Petr Salinger.
26553 2007-12-17 Bruno Haible <bruno@clisp.org>
26555 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26556 avoid a segmentation fault of the configure test on x86_64 systems.
26558 2007-12-15 Jim Meyering <meyering@redhat.com>
26560 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26562 2007-12-13 Eric Blake <ebb9@byu.net>
26564 Another fseek test.
26565 * tests/test-fseek.c (main): Also test ungetc handling.
26566 * tests/test-fseeko.c (main): Likewise.
26567 * modules/fseeko (Depends-on): Add verify.
26568 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26570 Reported by Larry Jones.
26572 Fix fseeko on mingw.
26573 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26576 Beef up fseek tests.
26577 * tests/test-fseek.c (main): Also test eof handling.
26578 * tests/test-fseeko.c (main): Likewise.
26579 Reported by Larry Jones.
26581 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26583 Fix fseeko on BSD-based platforms.
26584 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26587 2007-12-12 Eric Blake <ebb9@byu.net>
26589 Allow circular dependency of separate libtests.a
26590 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26593 2007-12-11 Eric Blake <ebb9@byu.net>
26595 Fix bug with -0.0L in previous patch.
26596 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26597 * tests/test-isnan.c (main): Also test on zeroes.
26598 * tests/test-isnanf.c (main): Likewise.
26599 * tests/test-isnanl.h (main): Likewise.
26601 Detect pseudo-denormals on x86 even when cross-compiling.
26602 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26603 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26604 invalid bit patterns that happen to satisfy ==.
26606 Avoid link failures with separate libtests.a.
26607 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26608 last, to satisfy circular dependencies.
26610 2007-12-11 Eric Blake <ebb9@byu.net>
26611 and Bruno Haible <bruno@clisp.org>
26613 Fix OpenBSD 4.0 <float.h> handling of long double.
26614 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26615 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26616 * doc/headers/float.texi (float.h): Document OpenBSD bug.
26618 2007-12-11 Jim Meyering <meyering@redhat.com>
26620 * users.txt: Add libvirt.
26622 Support versions of autoconf prior to 2.59c.
26623 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26624 if it is not already defined.
26626 2007-12-09 Bruno Haible <bruno@clisp.org>
26628 Let 'gnulib-tool --import' collect sources needed for the tests in
26629 tests/ rather than in lib/.
26630 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26631 argument. If true, add rules to generate libtests.a, and put libtests.a
26632 into $(LDADD). Consider source files in subdirectories and set
26634 (func_emit_initmacro_start, func_emit_initmacro_end,
26635 func_emit_initmacro_done): Pass all arguments explicitly.
26636 (func_import): Determine two module lists main_modules,
26637 testsrelated_modules. Determine use_libtests. Determine two variables
26638 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26639 instead of just sed_transform_lib_file. Determine two variables
26640 main_files and testsrelated_files. Compute 'files' as the union of
26641 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26642 func_add_or_update. In the generated gnulib-comp.m4, collect the
26643 object files for tests/ in different variables than those for lib/.
26644 Substitute LIBTESTS_LIBDEPS.
26645 (func_create_testdir): Combine the uses_subdirs results from
26646 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26648 2007-12-09 Bruno Haible <bruno@clisp.org>
26650 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26651 the build-aux directory.
26653 2007-12-09 Bruno Haible <bruno@clisp.org>
26655 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26656 introduced on 2006-09-09.
26658 2007-12-07 Jim Meyering <meyering@redhat.com>
26660 Let these macros work also with autoconf-2.59.
26661 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
26662 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26663 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26665 2007-12-06 Jim Meyering <meyering@redhat.com>
26667 Avoid a configure-time syntax error in gl_FUNC_ACL.
26668 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26669 function in each branch, before testing the cache variable.
26671 2007-12-04 Eric Blake <ebb9@byu.net>
26673 Make scripts executable.
26674 * build-aux/config.guess: Add execute permissions.
26675 * build-aux/config.sub: Likewise.
26676 * build-aux/gendocs.sh: Likewise.
26678 Fix frexp on mingw.
26679 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26681 * doc/functions/frexp.texi (frexp): Document the bug.
26683 Make cygwin fseeko check more reliable.
26684 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26685 version numbers, rather than unrelated feature check.
26686 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26687 * doc/functions/ftello.texi (ftello): Likewise.
26688 Reported by Bruno Haible.
26690 * m4/strerror.m4: Bump version number.
26692 2007-12-03 Bruno Haible <bruno@clisp.org>
26694 * doc/functions/mprotect.texi: Mention the mingw problem.
26696 2007-12-03 Eric Blake <ebb9@byu.net>
26698 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26699 REPLACE_STRERROR is initialized before this macro.
26701 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
26703 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
26704 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26705 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
26706 put -lsec in even for programs other than 'ls'. This fixes a problem
26707 for gettext reported by Bruno Haible in
26708 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26709 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26710 Add support for Solaris 10. This isn't efficient, but should get the
26713 2007-12-03 James Youngman <jay@gnu.org>
26715 * doc/regexprops-generic.texi: change "an close-group" to "a
26716 close-group" and "illegal" to "not allowed".
26718 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26720 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26721 pr_byname.h. Needed for the rare case when the maintainer has done
26722 "make maintainer-clean" in the source directory and then attempts a
26723 build outside the source directory.
26724 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26727 2007-12-02 Martin Lambers <marlam@marlam.de>
26728 Bruno Haible <bruno@clisp.org>
26730 * lib/getpagesize.h: Remove file.
26731 * lib/unistd.in.h: Include declaration of getpagesize here.
26732 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26733 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26735 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26736 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26737 * modules/getpagesize (Files): Remove lib/getpagesize.h.
26738 (Depends-on): Add unistd.
26739 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26740 (Include): Use <unistd.h> instead of getpagesize.h.
26741 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26742 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26743 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26744 gl_GETPAGESIZE invocation, already handled by module dependency.
26745 * lib/pagealign_alloc.c: Don't include getpagesize.h.
26747 2007-12-02 Bruno Haible <bruno@clisp.org>
26749 * modules/strings-tests: New file.
26750 * tests/test-strings.c: New file.
26752 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26753 * lib/strings.in.h: New file.
26754 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26755 * m4/strings_h.m4: New file.
26756 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26757 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26758 * modules/strings: New file.
26759 * modules/string (Makefile.am): Update.
26760 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26761 Reported by Karl Berry.
26763 2007-12-01 Eric Blake <ebb9@byu.net>
26765 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26766 accomodate fix in cygwin 1.5.25.
26768 2007-12-01 Jim Meyering <meyering@redhat.com>
26770 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26771 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26772 that would inhibit utf8-optimization of a regexp containing line-
26773 or buffer-anchors, e.g., `^', `$'.
26775 2007-11-30 Bruno Haible <bruno@clisp.org>
26777 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26778 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26779 glthread_recursive_lock_init.
26780 * lib/lock.c (glthread_recursive_lock_init)
26781 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26782 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26784 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
26786 New function qset_acl, like set_acl but with syscall semantics.
26787 * lib/acl.h (qset_acl): New decl.
26788 * lib/acl.c (qset_acl): New function.
26789 (set_acl): Use new function. Use more-consistent diagnostics.
26791 2007-11-28 Jim Meyering <meyering@redhat.com>
26793 * modules/physmem (License): Change from GPL to LGPLv2+.
26795 2007-11-26 Bruno Haible <bruno@clisp.org>
26797 * lib/vasnprintf.c (decode_long_double): Don't abort if the
26798 'long double' type has excess precision.
26799 Reported by Jim Meyering in
26800 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26802 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26804 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26805 Sync from <http://gnu.org/licenses>.
26806 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26807 with license text from same location.
26808 * doc/maintain.texi, doc/standards.texi: Sync from
26809 <http://savannah.gnu.org/projects/gnustandards>.
26811 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
26812 and Jim Meyering <meyering@redhat.com>
26814 Adjust getdate' grammar to accept a slightly more regular language.
26815 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26816 Before, the former was rejected.
26817 * lib/getdate.y (digits_to_date_time): New function, factored
26819 (number): ...here. Just call digits_to_date_time.
26820 (hybrid): New non-terminal to handle an <unsigned number,
26821 signed relative offset> sequence consistently.
26823 2007-11-18 Jim Meyering <meyering@redhat.com>
26825 Pull my changes from coreutils:
26826 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26827 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26828 use of $gnulib_tool_option_extras, so that it's separated from the
26829 preceding argument.
26831 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26832 * build-aux/bootstrap (cp_mark_as_generated): Create any required
26833 parent destination directories before copying a file into place.
26835 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
26837 bootstrap: work also with 4-argument variant of AC_INIT
26838 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26840 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
26842 Port test-getaddrinfo to Solaris.
26843 Problem reported by Bruno Haible in
26844 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26845 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26846 explanation of setting 'hints'.
26847 Don't reject an implementation merely because it returns EAI_SERVICE.
26848 (EAI_SERVICE): Define to 0 if not defined.
26850 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
26852 The license of gnu-make and posix-shell is now "GPLed build tool".
26853 * modules/gnu-make (License): Likewise.
26854 * modules/posix-shell (License): Likewise.
26856 New module posix-shell, for determining a POSIX shell
26857 or perhaps something that is close enough to a POSIX shell.
26858 * m4/posix-shell.m4: New file.
26859 * modules/posix-shell: New file.
26861 * MODULES.html.sh: Mention new module.
26863 New module gnu-make, for determining whether we're using GNU Make.
26864 * m4/gnu-make.m4: New file.
26865 * modules/gnu-make: New file.
26866 * MODULES.html.sh: Mention new module.
26868 2007-11-14 Jim Meyering <meyering@redhat.com>
26870 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26871 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26872 use this macro to create a function _definition_.
26873 Remove useless "#undef ARGMATCH_DIE".
26875 2007-11-14 Bruno Haible <bruno@clisp.org>
26877 * lib/config.charset: Update for OpenBSD 4.1.
26878 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26880 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
26882 Document 64-bit #if problems in stdint.texi.
26883 * doc/headers/stdint.texi (stdint.h): Mention problems with
26884 64-bit-#if, and how to work around them.
26886 Don't insist on 'long long int' support in the preprocessor. It
26887 breaks too many things. For example, PRIdMAX still uses a 'long
26888 long int' format with the latest Sun compiler, even though
26889 HAVE_LONG_LONG_INT isn't defined due to that compiler's
26890 preprocessor problem. This causes the latest coreutils to dump
26891 core on Solaris 10 sparc with the Sun C compiler.
26892 Instead, fix the 2007-10-16 problem in a different way, by evaluating
26893 the troublesome expressions at configure-time, not at #if-time.
26894 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26896 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26897 compile-time C checks, done at 'configure'-time.
26898 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26899 * modules/inttypes (Makefile): Substitute the new symbols that
26900 gl_INTTYPES_H now generates.
26901 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26903 2007-11-12 Bruno Haible <bruno@clisp.org>
26905 Tests for Unicode character classification functions.
26907 * modules/unictype/bidicategory-byname-tests: New file.
26908 * modules/unictype/bidicategory-name-tests: New file.
26909 * modules/unictype/bidicategory-of-tests: New file.
26910 * modules/unictype/bidicategory-test-tests: New file.
26911 * modules/unictype/block-list-tests: New file.
26912 * modules/unictype/block-of-tests: New file.
26913 * modules/unictype/block-test-tests: New file.
26914 * modules/unictype/category-C-tests: New file.
26915 * modules/unictype/category-Cc-tests: New file.
26916 * modules/unictype/category-Cf-tests: New file.
26917 * modules/unictype/category-Cn-tests: New file.
26918 * modules/unictype/category-Co-tests: New file.
26919 * modules/unictype/category-Cs-tests: New file.
26920 * modules/unictype/category-L-tests: New file.
26921 * modules/unictype/category-Ll-tests: New file.
26922 * modules/unictype/category-Lm-tests: New file.
26923 * modules/unictype/category-Lo-tests: New file.
26924 * modules/unictype/category-Lt-tests: New file.
26925 * modules/unictype/category-Lu-tests: New file.
26926 * modules/unictype/category-M-tests: New file.
26927 * modules/unictype/category-Mc-tests: New file.
26928 * modules/unictype/category-Me-tests: New file.
26929 * modules/unictype/category-Mn-tests: New file.
26930 * modules/unictype/category-N-tests: New file.
26931 * modules/unictype/category-Nd-tests: New file.
26932 * modules/unictype/category-Nl-tests: New file.
26933 * modules/unictype/category-No-tests: New file.
26934 * modules/unictype/category-P-tests: New file.
26935 * modules/unictype/category-Pc-tests: New file.
26936 * modules/unictype/category-Pd-tests: New file.
26937 * modules/unictype/category-Pe-tests: New file.
26938 * modules/unictype/category-Pf-tests: New file.
26939 * modules/unictype/category-Pi-tests: New file.
26940 * modules/unictype/category-Po-tests: New file.
26941 * modules/unictype/category-Ps-tests: New file.
26942 * modules/unictype/category-S-tests: New file.
26943 * modules/unictype/category-Sc-tests: New file.
26944 * modules/unictype/category-Sk-tests: New file.
26945 * modules/unictype/category-Sm-tests: New file.
26946 * modules/unictype/category-So-tests: New file.
26947 * modules/unictype/category-Z-tests: New file.
26948 * modules/unictype/category-Zl-tests: New file.
26949 * modules/unictype/category-Zp-tests: New file.
26950 * modules/unictype/category-Zs-tests: New file.
26951 * modules/unictype/category-and-not-tests: New file.
26952 * modules/unictype/category-and-tests: New file.
26953 * modules/unictype/category-byname-tests: New file.
26954 * modules/unictype/category-name-tests: New file.
26955 * modules/unictype/category-none-tests: New file.
26956 * modules/unictype/category-of-tests: New file.
26957 * modules/unictype/category-or-tests: New file.
26958 * modules/unictype/category-test-withtable-tests: New file.
26959 * modules/unictype/combining-class-tests: New file.
26960 * modules/unictype/ctype-alnum-tests: New file.
26961 * modules/unictype/ctype-alpha-tests: New file.
26962 * modules/unictype/ctype-blank-tests: New file.
26963 * modules/unictype/ctype-cntrl-tests: New file.
26964 * modules/unictype/ctype-digit-tests: New file.
26965 * modules/unictype/ctype-graph-tests: New file.
26966 * modules/unictype/ctype-lower-tests: New file.
26967 * modules/unictype/ctype-print-tests: New file.
26968 * modules/unictype/ctype-punct-tests: New file.
26969 * modules/unictype/ctype-space-tests: New file.
26970 * modules/unictype/ctype-upper-tests: New file.
26971 * modules/unictype/ctype-xdigit-tests: New file.
26972 * modules/unictype/decimal-digit-tests: New file.
26973 * modules/unictype/digit-tests: New file.
26974 * modules/unictype/mirror-tests: New file.
26975 * modules/unictype/numeric-tests: New file.
26976 * modules/unictype/property-alphabetic-tests: New file.
26977 * modules/unictype/property-ascii-hex-digit-tests: New file.
26978 * modules/unictype/property-bidi-arabic-digit-tests: New file.
26979 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26980 * modules/unictype/property-bidi-block-separator-tests: New file.
26981 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26982 * modules/unictype/property-bidi-common-separator-tests: New file.
26983 * modules/unictype/property-bidi-control-tests: New file.
26984 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26985 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26986 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26987 * modules/unictype/property-bidi-european-digit-tests: New file.
26988 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26989 * modules/unictype/property-bidi-left-to-right-tests: New file.
26990 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26991 * modules/unictype/property-bidi-other-neutral-tests: New file.
26992 * modules/unictype/property-bidi-pdf-tests: New file.
26993 * modules/unictype/property-bidi-segment-separator-tests: New file.
26994 * modules/unictype/property-bidi-whitespace-tests: New file.
26995 * modules/unictype/property-byname-tests: New file.
26996 * modules/unictype/property-combining-tests: New file.
26997 * modules/unictype/property-composite-tests: New file.
26998 * modules/unictype/property-currency-symbol-tests: New file.
26999 * modules/unictype/property-dash-tests: New file.
27000 * modules/unictype/property-decimal-digit-tests: New file.
27001 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27002 * modules/unictype/property-deprecated-tests: New file.
27003 * modules/unictype/property-diacritic-tests: New file.
27004 * modules/unictype/property-extender-tests: New file.
27005 * modules/unictype/property-format-control-tests: New file.
27006 * modules/unictype/property-grapheme-base-tests: New file.
27007 * modules/unictype/property-grapheme-extend-tests: New file.
27008 * modules/unictype/property-grapheme-link-tests: New file.
27009 * modules/unictype/property-hex-digit-tests: New file.
27010 * modules/unictype/property-hyphen-tests: New file.
27011 * modules/unictype/property-id-continue-tests: New file.
27012 * modules/unictype/property-id-start-tests: New file.
27013 * modules/unictype/property-ideographic-tests: New file.
27014 * modules/unictype/property-ids-binary-operator-tests: New file.
27015 * modules/unictype/property-ids-trinary-operator-tests: New file.
27016 * modules/unictype/property-ignorable-control-tests: New file.
27017 * modules/unictype/property-iso-control-tests: New file.
27018 * modules/unictype/property-join-control-tests: New file.
27019 * modules/unictype/property-left-of-pair-tests: New file.
27020 * modules/unictype/property-line-separator-tests: New file.
27021 * modules/unictype/property-logical-order-exception-tests: New file.
27022 * modules/unictype/property-lowercase-tests: New file.
27023 * modules/unictype/property-math-tests: New file.
27024 * modules/unictype/property-non-break-tests: New file.
27025 * modules/unictype/property-not-a-character-tests: New file.
27026 * modules/unictype/property-numeric-tests: New file.
27027 * modules/unictype/property-other-alphabetic-tests: New file.
27028 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27029 * modules/unictype/property-other-grapheme-extend-tests: New file.
27030 * modules/unictype/property-other-id-continue-tests: New file.
27031 * modules/unictype/property-other-id-start-tests: New file.
27032 * modules/unictype/property-other-lowercase-tests: New file.
27033 * modules/unictype/property-other-math-tests: New file.
27034 * modules/unictype/property-other-uppercase-tests: New file.
27035 * modules/unictype/property-paired-punctuation-tests: New file.
27036 * modules/unictype/property-paragraph-separator-tests: New file.
27037 * modules/unictype/property-pattern-syntax-tests: New file.
27038 * modules/unictype/property-pattern-white-space-tests: New file.
27039 * modules/unictype/property-private-use-tests: New file.
27040 * modules/unictype/property-punctuation-tests: New file.
27041 * modules/unictype/property-quotation-mark-tests: New file.
27042 * modules/unictype/property-radical-tests: New file.
27043 * modules/unictype/property-sentence-terminal-tests: New file.
27044 * modules/unictype/property-soft-dotted-tests: New file.
27045 * modules/unictype/property-space-tests: New file.
27046 * modules/unictype/property-terminal-punctuation-tests: New file.
27047 * modules/unictype/property-test-tests: New file.
27048 * modules/unictype/property-titlecase-tests: New file.
27049 * modules/unictype/property-unassigned-code-value-tests: New file.
27050 * modules/unictype/property-unified-ideograph-tests: New file.
27051 * modules/unictype/property-uppercase-tests: New file.
27052 * modules/unictype/property-variation-selector-tests: New file.
27053 * modules/unictype/property-white-space-tests: New file.
27054 * modules/unictype/property-xid-continue-tests: New file.
27055 * modules/unictype/property-xid-start-tests: New file.
27056 * modules/unictype/property-zero-width-tests: New file.
27057 * modules/unictype/scripts-tests: New file.
27058 * modules/unictype/syntax-c-ident-tests: New file.
27059 * modules/unictype/syntax-c-whitespace-tests: New file.
27060 * modules/unictype/syntax-java-ident-tests: New file.
27061 * modules/unictype/syntax-java-whitespace-tests: New file.
27062 * tests/unictype/test-bidi_byname.c: New file.
27063 * tests/unictype/test-bidi_name.c: New file.
27064 * tests/unictype/test-bidi_of.c: New file.
27065 * tests/unictype/test-bidi_test.c: New file.
27066 * tests/unictype/test-block_list.c: New file.
27067 * tests/unictype/test-block_of.c: New file.
27068 * tests/unictype/test-block_test.c: New file.
27069 * tests/unictype/test-categ_and.c: New file.
27070 * tests/unictype/test-categ_and_not.c: New file.
27071 * tests/unictype/test-categ_byname.c: New file.
27072 * tests/unictype/test-categ_name.c: New file.
27073 * tests/unictype/test-categ_none.c: New file.
27074 * tests/unictype/test-categ_of.c: New file.
27075 * tests/unictype/test-categ_or.c: New file.
27076 * tests/unictype/test-categ_test_withtable.c: New file.
27077 * tests/unictype/test-combining.c: New file.
27078 * tests/unictype/test-decdigit.c: New file.
27079 * tests/unictype/test-digit.c: New file.
27080 * tests/unictype/test-mirror.c: New file.
27081 * tests/unictype/test-numeric.c: New file.
27082 * tests/unictype/test-pr_byname.c: New file.
27083 * tests/unictype/test-pr_test.c: New file.
27084 * tests/unictype/test-predicate-part1.h: New file.
27085 * tests/unictype/test-predicate-part2.h: New file.
27086 * tests/unictype/test-scripts.c: New file.
27087 * tests/unictype/test-sy_c_ident.c: New file.
27088 * tests/unictype/test-sy_java_ident.c: New file.
27090 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27092 * tests/unictype/test-categ_Cc.c: Likewise.
27093 * tests/unictype/test-categ_Cf.c: Likewise.
27094 * tests/unictype/test-categ_Cn.c: Likewise.
27095 * tests/unictype/test-categ_Co.c: Likewise.
27096 * tests/unictype/test-categ_Cs.c: Likewise.
27097 * tests/unictype/test-categ_L.c: Likewise.
27098 * tests/unictype/test-categ_Ll.c: Likewise.
27099 * tests/unictype/test-categ_Lm.c: Likewise.
27100 * tests/unictype/test-categ_Lo.c: Likewise.
27101 * tests/unictype/test-categ_Lt.c: Likewise.
27102 * tests/unictype/test-categ_Lu.c: Likewise.
27103 * tests/unictype/test-categ_M.c: Likewise.
27104 * tests/unictype/test-categ_Mc.c: Likewise.
27105 * tests/unictype/test-categ_Me.c: Likewise.
27106 * tests/unictype/test-categ_Mn.c: Likewise.
27107 * tests/unictype/test-categ_N.c: Likewise.
27108 * tests/unictype/test-categ_Nd.c: Likewise.
27109 * tests/unictype/test-categ_Nl.c: Likewise.
27110 * tests/unictype/test-categ_No.c: Likewise.
27111 * tests/unictype/test-categ_P.c: Likewise.
27112 * tests/unictype/test-categ_Pc.c: Likewise.
27113 * tests/unictype/test-categ_Pd.c: Likewise.
27114 * tests/unictype/test-categ_Pe.c: Likewise.
27115 * tests/unictype/test-categ_Pf.c: Likewise.
27116 * tests/unictype/test-categ_Pi.c: Likewise.
27117 * tests/unictype/test-categ_Po.c: Likewise.
27118 * tests/unictype/test-categ_Ps.c: Likewise.
27119 * tests/unictype/test-categ_S.c: Likewise.
27120 * tests/unictype/test-categ_Sc.c: Likewise.
27121 * tests/unictype/test-categ_Sk.c: Likewise.
27122 * tests/unictype/test-categ_Sm.c: Likewise.
27123 * tests/unictype/test-categ_So.c: Likewise.
27124 * tests/unictype/test-categ_Z.c: Likewise.
27125 * tests/unictype/test-categ_Zl.c: Likewise.
27126 * tests/unictype/test-categ_Zp.c: Likewise.
27127 * tests/unictype/test-categ_Zs.c: Likewise.
27128 * tests/unictype/test-ctype_alnum.c: Likewise.
27129 * tests/unictype/test-ctype_alpha.c: Likewise.
27130 * tests/unictype/test-ctype_blank.c: Likewise.
27131 * tests/unictype/test-ctype_cntrl.c: Likewise.
27132 * tests/unictype/test-ctype_digit.c: Likewise.
27133 * tests/unictype/test-ctype_graph.c: Likewise.
27134 * tests/unictype/test-ctype_lower.c: Likewise.
27135 * tests/unictype/test-ctype_print.c: Likewise.
27136 * tests/unictype/test-ctype_punct.c: Likewise.
27137 * tests/unictype/test-ctype_space.c: Likewise.
27138 * tests/unictype/test-ctype_upper.c: Likewise.
27139 * tests/unictype/test-ctype_xdigit.c: Likewise.
27140 * tests/unictype/test-decdigit.h: Likewise.
27141 * tests/unictype/test-digit.h: Likewise.
27142 * tests/unictype/test-numeric.h: Likewise.
27143 * tests/unictype/test-pr_alphabetic.c: Likewise.
27144 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27145 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27146 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27147 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27148 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27149 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27150 * tests/unictype/test-pr_bidi_control.c: Likewise.
27151 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27152 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27153 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27154 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27155 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27156 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27157 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27158 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27159 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27160 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27161 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27162 * tests/unictype/test-pr_combining.c: Likewise.
27163 * tests/unictype/test-pr_composite.c: Likewise.
27164 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27165 * tests/unictype/test-pr_dash.c: Likewise.
27166 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27167 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27168 * tests/unictype/test-pr_deprecated.c: Likewise.
27169 * tests/unictype/test-pr_diacritic.c: Likewise.
27170 * tests/unictype/test-pr_extender.c: Likewise.
27171 * tests/unictype/test-pr_format_control.c: Likewise.
27172 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27173 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27174 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27175 * tests/unictype/test-pr_hex_digit.c: Likewise.
27176 * tests/unictype/test-pr_hyphen.c: Likewise.
27177 * tests/unictype/test-pr_id_continue.c: Likewise.
27178 * tests/unictype/test-pr_id_start.c: Likewise.
27179 * tests/unictype/test-pr_ideographic.c: Likewise.
27180 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27181 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27182 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27183 * tests/unictype/test-pr_iso_control.c: Likewise.
27184 * tests/unictype/test-pr_join_control.c: Likewise.
27185 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27186 * tests/unictype/test-pr_line_separator.c: Likewise.
27187 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27188 * tests/unictype/test-pr_lowercase.c: Likewise.
27189 * tests/unictype/test-pr_math.c: Likewise.
27190 * tests/unictype/test-pr_non_break.c: Likewise.
27191 * tests/unictype/test-pr_not_a_character.c: Likewise.
27192 * tests/unictype/test-pr_numeric.c: Likewise.
27193 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27194 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27195 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27196 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27197 * tests/unictype/test-pr_other_id_start.c: Likewise.
27198 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27199 * tests/unictype/test-pr_other_math.c: Likewise.
27200 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27201 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27202 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27203 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27204 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27205 * tests/unictype/test-pr_private_use.c: Likewise.
27206 * tests/unictype/test-pr_punctuation.c: Likewise.
27207 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27208 * tests/unictype/test-pr_radical.c: Likewise.
27209 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27210 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27211 * tests/unictype/test-pr_space.c: Likewise.
27212 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27213 * tests/unictype/test-pr_titlecase.c: Likewise.
27214 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27215 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27216 * tests/unictype/test-pr_uppercase.c: Likewise.
27217 * tests/unictype/test-pr_variation_selector.c: Likewise.
27218 * tests/unictype/test-pr_white_space.c: Likewise.
27219 * tests/unictype/test-pr_xid_continue.c: Likewise.
27220 * tests/unictype/test-pr_xid_start.c: Likewise.
27221 * tests/unictype/test-pr_zero_width.c: Likewise.
27222 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27223 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27225 2007-11-12 Bruno Haible <bruno@clisp.org>
27227 Unicode character classification functions.
27228 * lib/unictype.h: New file.
27229 * modules/unictype/base: New file.
27230 * modules/unictype/category-L: New file.
27231 * modules/unictype/category-Lu: New file.
27232 * modules/unictype/category-Ll: New file.
27233 * modules/unictype/category-Lt: New file.
27234 * modules/unictype/category-Lm: New file.
27235 * modules/unictype/category-Lo: New file.
27236 * modules/unictype/category-M: New file.
27237 * modules/unictype/category-Mn: New file.
27238 * modules/unictype/category-Mc: New file.
27239 * modules/unictype/category-Me: New file.
27240 * modules/unictype/category-N: New file.
27241 * modules/unictype/category-Nd: New file.
27242 * modules/unictype/category-Nl: New file.
27243 * modules/unictype/category-No: New file.
27244 * modules/unictype/category-P: New file.
27245 * modules/unictype/category-Pc: New file.
27246 * modules/unictype/category-Pd: New file.
27247 * modules/unictype/category-Ps: New file.
27248 * modules/unictype/category-Pe: New file.
27249 * modules/unictype/category-Pi: New file.
27250 * modules/unictype/category-Pf: New file.
27251 * modules/unictype/category-Po: New file.
27252 * modules/unictype/category-S: New file.
27253 * modules/unictype/category-Sm: New file.
27254 * modules/unictype/category-Sc: New file.
27255 * modules/unictype/category-Sk: New file.
27256 * modules/unictype/category-So: New file.
27257 * modules/unictype/category-Z: New file.
27258 * modules/unictype/category-Zs: New file.
27259 * modules/unictype/category-Zl: New file.
27260 * modules/unictype/category-Zp: New file.
27261 * modules/unictype/category-C: New file.
27262 * modules/unictype/category-Cc: New file.
27263 * modules/unictype/category-Cf: New file.
27264 * modules/unictype/category-Cs: New file.
27265 * modules/unictype/category-Co: New file.
27266 * modules/unictype/category-Cn: New file.
27267 * modules/unictype/category-or: New file.
27268 * modules/unictype/category-of: New file.
27269 * modules/unictype/category-test: New file.
27270 * modules/unictype/category-test-withtable: New file.
27271 * modules/unictype/category-byname: New file.
27272 * modules/unictype/category-none: New file.
27273 * modules/unictype/category-and: New file.
27274 * modules/unictype/category-and-not: New file.
27275 * modules/unictype/category-name: New file.
27276 * modules/unictype/combining-class: New file.
27277 * modules/unictype/category-all: New file.
27278 * modules/unictype/bidicategory-all: New file.
27279 * modules/unictype/bidicategory-byname: New file.
27280 * modules/unictype/bidicategory-name: New file.
27281 * modules/unictype/bidicategory-of: New file.
27282 * modules/unictype/bidicategory-test: New file.
27283 * modules/unictype/decimal-digit: New file.
27284 * modules/unictype/digit: New file.
27285 * modules/unictype/numeric: New file.
27286 * modules/unictype/mirror: New file.
27287 * modules/unictype/property-white-space: New file.
27288 * modules/unictype/property-alphabetic: New file.
27289 * modules/unictype/property-other-alphabetic: New file.
27290 * modules/unictype/property-not-a-character: New file.
27291 * modules/unictype/property-default-ignorable-code-point: New file.
27292 * modules/unictype/property-other-default-ignorable-code-point: New
27294 * modules/unictype/property-deprecated: New file.
27295 * modules/unictype/property-logical-order-exception: New file.
27296 * modules/unictype/property-variation-selector: New file.
27297 * modules/unictype/property-private-use: New file.
27298 * modules/unictype/property-unassigned-code-value: New file.
27299 * modules/unictype/property-uppercase: New file.
27300 * modules/unictype/property-other-uppercase: New file.
27301 * modules/unictype/property-lowercase: New file.
27302 * modules/unictype/property-other-lowercase: New file.
27303 * modules/unictype/property-titlecase: New file.
27304 * modules/unictype/property-soft-dotted: New file.
27305 * modules/unictype/property-id-start: New file.
27306 * modules/unictype/property-other-id-start: New file.
27307 * modules/unictype/property-id-continue: New file.
27308 * modules/unictype/property-other-id-continue: New file.
27309 * modules/unictype/property-xid-start: New file.
27310 * modules/unictype/property-xid-continue: New file.
27311 * modules/unictype/property-pattern-white-space: New file.
27312 * modules/unictype/property-pattern-syntax: New file.
27313 * modules/unictype/property-join-control: New file.
27314 * modules/unictype/property-grapheme-base: New file.
27315 * modules/unictype/property-grapheme-extend: New file.
27316 * modules/unictype/property-other-grapheme-extend: New file.
27317 * modules/unictype/property-grapheme-link: New file.
27318 * modules/unictype/property-bidi-control: New file.
27319 * modules/unictype/property-bidi-left-to-right: New file.
27320 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27321 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27322 * modules/unictype/property-bidi-european-digit: New file.
27323 * modules/unictype/property-bidi-eur-num-separator: New file.
27324 * modules/unictype/property-bidi-eur-num-terminator: New file.
27325 * modules/unictype/property-bidi-arabic-digit: New file.
27326 * modules/unictype/property-bidi-common-separator: New file.
27327 * modules/unictype/property-bidi-block-separator: New file.
27328 * modules/unictype/property-bidi-segment-separator: New file.
27329 * modules/unictype/property-bidi-whitespace: New file.
27330 * modules/unictype/property-bidi-non-spacing-mark: New file.
27331 * modules/unictype/property-bidi-boundary-neutral: New file.
27332 * modules/unictype/property-bidi-pdf: New file.
27333 * modules/unictype/property-bidi-embedding-or-override: New file.
27334 * modules/unictype/property-bidi-other-neutral: New file.
27335 * modules/unictype/property-hex-digit: New file.
27336 * modules/unictype/property-ascii-hex-digit: New file.
27337 * modules/unictype/property-ideographic: New file.
27338 * modules/unictype/property-unified-ideograph: New file.
27339 * modules/unictype/property-radical: New file.
27340 * modules/unictype/property-ids-binary-operator: New file.
27341 * modules/unictype/property-ids-trinary-operator: New file.
27342 * modules/unictype/property-zero-width: New file.
27343 * modules/unictype/property-space: New file.
27344 * modules/unictype/property-non-break: New file.
27345 * modules/unictype/property-iso-control: New file.
27346 * modules/unictype/property-format-control: New file.
27347 * modules/unictype/property-dash: New file.
27348 * modules/unictype/property-hyphen: New file.
27349 * modules/unictype/property-punctuation: New file.
27350 * modules/unictype/property-line-separator: New file.
27351 * modules/unictype/property-paragraph-separator: New file.
27352 * modules/unictype/property-quotation-mark: New file.
27353 * modules/unictype/property-sentence-terminal: New file.
27354 * modules/unictype/property-terminal-punctuation: New file.
27355 * modules/unictype/property-currency-symbol: New file.
27356 * modules/unictype/property-math: New file.
27357 * modules/unictype/property-other-math: New file.
27358 * modules/unictype/property-paired-punctuation: New file.
27359 * modules/unictype/property-left-of-pair: New file.
27360 * modules/unictype/property-combining: New file.
27361 * modules/unictype/property-composite: New file.
27362 * modules/unictype/property-decimal-digit: New file.
27363 * modules/unictype/property-numeric: New file.
27364 * modules/unictype/property-diacritic: New file.
27365 * modules/unictype/property-extender: New file.
27366 * modules/unictype/property-ignorable-control: New file.
27367 * modules/unictype/property-test: New file.
27368 * modules/unictype/property-byname: New file.
27369 * modules/unictype/property-all: New file.
27370 * modules/unictype/scripts: New file.
27371 * modules/unictype/scripts-all: New file.
27372 * modules/unictype/block-of: New file.
27373 * modules/unictype/block-test: New file.
27374 * modules/unictype/block-list: New file.
27375 * modules/unictype/block-all: New file.
27376 * modules/unictype/syntax-c-whitespace: New file.
27377 * modules/unictype/syntax-java-whitespace: New file.
27378 * modules/unictype/syntax-c-ident: New file.
27379 * modules/unictype/syntax-java-ident: New file.
27380 * modules/unictype/ctype-alnum: New file.
27381 * modules/unictype/ctype-alpha: New file.
27382 * modules/unictype/ctype-cntrl: New file.
27383 * modules/unictype/ctype-digit: New file.
27384 * modules/unictype/ctype-graph: New file.
27385 * modules/unictype/ctype-lower: New file.
27386 * modules/unictype/ctype-print: New file.
27387 * modules/unictype/ctype-punct: New file.
27388 * modules/unictype/ctype-space: New file.
27389 * modules/unictype/ctype-upper: New file.
27390 * modules/unictype/ctype-xdigit: New file.
27391 * modules/unictype/ctype-blank: New file.
27392 * lib/unictype/bidi_byname.c: New file.
27393 * lib/unictype/bidi_name.c: New file.
27394 * lib/unictype/bidi_of.c: New file.
27395 * lib/unictype/bidi_test.c: New file.
27396 * lib/unictype/bitmap.h: New file.
27397 * lib/unictype/block_test.c: New file.
27398 * lib/unictype/blocks.c: New file.
27399 * lib/unictype/categ_C.c: New file.
27400 * lib/unictype/categ_Cc.c: New file.
27401 * lib/unictype/categ_Cf.c: New file.
27402 * lib/unictype/categ_Cn.c: New file.
27403 * lib/unictype/categ_Co.c: New file.
27404 * lib/unictype/categ_Cs.c: New file.
27405 * lib/unictype/categ_L.c: New file.
27406 * lib/unictype/categ_Ll.c: New file.
27407 * lib/unictype/categ_Lm.c: New file.
27408 * lib/unictype/categ_Lo.c: New file.
27409 * lib/unictype/categ_Lt.c: New file.
27410 * lib/unictype/categ_Lu.c: New file.
27411 * lib/unictype/categ_M.c: New file.
27412 * lib/unictype/categ_Mc.c: New file.
27413 * lib/unictype/categ_Me.c: New file.
27414 * lib/unictype/categ_Mn.c: New file.
27415 * lib/unictype/categ_N.c: New file.
27416 * lib/unictype/categ_Nd.c: New file.
27417 * lib/unictype/categ_Nl.c: New file.
27418 * lib/unictype/categ_No.c: New file.
27419 * lib/unictype/categ_P.c: New file.
27420 * lib/unictype/categ_Pc.c: New file.
27421 * lib/unictype/categ_Pd.c: New file.
27422 * lib/unictype/categ_Pe.c: New file.
27423 * lib/unictype/categ_Pf.c: New file.
27424 * lib/unictype/categ_Pi.c: New file.
27425 * lib/unictype/categ_Po.c: New file.
27426 * lib/unictype/categ_Ps.c: New file.
27427 * lib/unictype/categ_S.c: New file.
27428 * lib/unictype/categ_Sc.c: New file.
27429 * lib/unictype/categ_Sk.c: New file.
27430 * lib/unictype/categ_Sm.c: New file.
27431 * lib/unictype/categ_So.c: New file.
27432 * lib/unictype/categ_Z.c: New file.
27433 * lib/unictype/categ_Zl.c: New file.
27434 * lib/unictype/categ_Zp.c: New file.
27435 * lib/unictype/categ_Zs.c: New file.
27436 * lib/unictype/categ_and.c: New file.
27437 * lib/unictype/categ_and_not.c: New file.
27438 * lib/unictype/categ_byname.c: New file.
27439 * lib/unictype/categ_name.c: New file.
27440 * lib/unictype/categ_none.c: New file.
27441 * lib/unictype/categ_of.c: New file.
27442 * lib/unictype/categ_or.c: New file.
27443 * lib/unictype/categ_test.c: New file.
27444 * lib/unictype/combining.c: New file.
27445 * lib/unictype/ctype_alnum.c: New file.
27446 * lib/unictype/ctype_alpha.c: New file.
27447 * lib/unictype/ctype_blank.c: New file.
27448 * lib/unictype/ctype_cntrl.c: New file.
27449 * lib/unictype/ctype_digit.c: New file.
27450 * lib/unictype/ctype_graph.c: New file.
27451 * lib/unictype/ctype_lower.c: New file.
27452 * lib/unictype/ctype_print.c: New file.
27453 * lib/unictype/ctype_punct.c: New file.
27454 * lib/unictype/ctype_space.c: New file.
27455 * lib/unictype/ctype_upper.c: New file.
27456 * lib/unictype/ctype_xdigit.c: New file.
27457 * lib/unictype/decdigit.c: New file.
27458 * lib/unictype/digit.c: New file.
27459 * lib/unictype/identsyntaxmap.h: New file.
27460 * lib/unictype/mirror.c: New file.
27461 * lib/unictype/numeric.c: New file.
27462 * lib/unictype/pr_alphabetic.c: New file.
27463 * lib/unictype/pr_ascii_hex_digit.c: New file.
27464 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27465 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27466 * lib/unictype/pr_bidi_block_separator.c: New file.
27467 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27468 * lib/unictype/pr_bidi_common_separator.c: New file.
27469 * lib/unictype/pr_bidi_control.c: New file.
27470 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27471 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27472 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27473 * lib/unictype/pr_bidi_european_digit.c: New file.
27474 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27475 * lib/unictype/pr_bidi_left_to_right.c: New file.
27476 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27477 * lib/unictype/pr_bidi_other_neutral.c: New file.
27478 * lib/unictype/pr_bidi_pdf.c: New file.
27479 * lib/unictype/pr_bidi_segment_separator.c: New file.
27480 * lib/unictype/pr_bidi_whitespace.c: New file.
27481 * lib/unictype/pr_byname.c: New file.
27482 * lib/unictype/pr_byname.gperf: New file.
27483 * lib/unictype/pr_combining.c: New file.
27484 * lib/unictype/pr_composite.c: New file.
27485 * lib/unictype/pr_currency_symbol.c: New file.
27486 * lib/unictype/pr_dash.c: New file.
27487 * lib/unictype/pr_decimal_digit.c: New file.
27488 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27489 * lib/unictype/pr_deprecated.c: New file.
27490 * lib/unictype/pr_diacritic.c: New file.
27491 * lib/unictype/pr_extender.c: New file.
27492 * lib/unictype/pr_format_control.c: New file.
27493 * lib/unictype/pr_grapheme_base.c: New file.
27494 * lib/unictype/pr_grapheme_extend.c: New file.
27495 * lib/unictype/pr_grapheme_link.c: New file.
27496 * lib/unictype/pr_hex_digit.c: New file.
27497 * lib/unictype/pr_hyphen.c: New file.
27498 * lib/unictype/pr_id_continue.c: New file.
27499 * lib/unictype/pr_id_start.c: New file.
27500 * lib/unictype/pr_ideographic.c: New file.
27501 * lib/unictype/pr_ids_binary_operator.c: New file.
27502 * lib/unictype/pr_ids_trinary_operator.c: New file.
27503 * lib/unictype/pr_ignorable_control.c: New file.
27504 * lib/unictype/pr_iso_control.c: New file.
27505 * lib/unictype/pr_join_control.c: New file.
27506 * lib/unictype/pr_left_of_pair.c: New file.
27507 * lib/unictype/pr_line_separator.c: New file.
27508 * lib/unictype/pr_logical_order_exception.c: New file.
27509 * lib/unictype/pr_lowercase.c: New file.
27510 * lib/unictype/pr_math.c: New file.
27511 * lib/unictype/pr_non_break.c: New file.
27512 * lib/unictype/pr_not_a_character.c: New file.
27513 * lib/unictype/pr_numeric.c: New file.
27514 * lib/unictype/pr_other_alphabetic.c: New file.
27515 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27516 * lib/unictype/pr_other_grapheme_extend.c: New file.
27517 * lib/unictype/pr_other_id_continue.c: New file.
27518 * lib/unictype/pr_other_id_start.c: New file.
27519 * lib/unictype/pr_other_lowercase.c: New file.
27520 * lib/unictype/pr_other_math.c: New file.
27521 * lib/unictype/pr_other_uppercase.c: New file.
27522 * lib/unictype/pr_paired_punctuation.c: New file.
27523 * lib/unictype/pr_paragraph_separator.c: New file.
27524 * lib/unictype/pr_pattern_syntax.c: New file.
27525 * lib/unictype/pr_pattern_white_space.c: New file.
27526 * lib/unictype/pr_private_use.c: New file.
27527 * lib/unictype/pr_punctuation.c: New file.
27528 * lib/unictype/pr_quotation_mark.c: New file.
27529 * lib/unictype/pr_radical.c: New file.
27530 * lib/unictype/pr_sentence_terminal.c: New file.
27531 * lib/unictype/pr_soft_dotted.c: New file.
27532 * lib/unictype/pr_space.c: New file.
27533 * lib/unictype/pr_terminal_punctuation.c: New file.
27534 * lib/unictype/pr_test.c: New file.
27535 * lib/unictype/pr_titlecase.c: New file.
27536 * lib/unictype/pr_unassigned_code_value.c: New file.
27537 * lib/unictype/pr_unified_ideograph.c: New file.
27538 * lib/unictype/pr_uppercase.c: New file.
27539 * lib/unictype/pr_variation_selector.c: New file.
27540 * lib/unictype/pr_white_space.c: New file.
27541 * lib/unictype/pr_xid_continue.c: New file.
27542 * lib/unictype/pr_xid_start.c: New file.
27543 * lib/unictype/pr_zero_width.c: New file.
27544 * lib/unictype/scripts.c: New file.
27545 * lib/unictype/sy_c_ident.c: New file.
27546 * lib/unictype/sy_c_whitespace.c: New file.
27547 * lib/unictype/sy_java_ident.c: New file.
27548 * lib/unictype/sy_java_whitespace.c: New file.
27550 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27552 * lib/unictype/blocks.h: Likewise.
27553 * lib/unictype/categ_C.h: Likewise.
27554 * lib/unictype/categ_Cc.h: Likewise.
27555 * lib/unictype/categ_Cf.h: Likewise.
27556 * lib/unictype/categ_Cn.h: Likewise.
27557 * lib/unictype/categ_Co.h: Likewise.
27558 * lib/unictype/categ_Cs.h: Likewise.
27559 * lib/unictype/categ_L.h: Likewise.
27560 * lib/unictype/categ_Ll.h: Likewise.
27561 * lib/unictype/categ_Lm.h: Likewise.
27562 * lib/unictype/categ_Lo.h: Likewise.
27563 * lib/unictype/categ_Lt.h: Likewise.
27564 * lib/unictype/categ_Lu.h: Likewise.
27565 * lib/unictype/categ_M.h: Likewise.
27566 * lib/unictype/categ_Mc.h: Likewise.
27567 * lib/unictype/categ_Me.h: Likewise.
27568 * lib/unictype/categ_Mn.h: Likewise.
27569 * lib/unictype/categ_N.h: Likewise.
27570 * lib/unictype/categ_Nd.h: Likewise.
27571 * lib/unictype/categ_Nl.h: Likewise.
27572 * lib/unictype/categ_No.h: Likewise.
27573 * lib/unictype/categ_P.h: Likewise.
27574 * lib/unictype/categ_Pc.h: Likewise.
27575 * lib/unictype/categ_Pd.h: Likewise.
27576 * lib/unictype/categ_Pe.h: Likewise.
27577 * lib/unictype/categ_Pf.h: Likewise.
27578 * lib/unictype/categ_Pi.h: Likewise.
27579 * lib/unictype/categ_Po.h: Likewise.
27580 * lib/unictype/categ_Ps.h: Likewise.
27581 * lib/unictype/categ_S.h: Likewise.
27582 * lib/unictype/categ_Sc.h: Likewise.
27583 * lib/unictype/categ_Sk.h: Likewise.
27584 * lib/unictype/categ_Sm.h: Likewise.
27585 * lib/unictype/categ_So.h: Likewise.
27586 * lib/unictype/categ_Z.h: Likewise.
27587 * lib/unictype/categ_Zl.h: Likewise.
27588 * lib/unictype/categ_Zp.h: Likewise.
27589 * lib/unictype/categ_Zs.h: Likewise.
27590 * lib/unictype/categ_of.h: Likewise.
27591 * lib/unictype/combining.h: Likewise.
27592 * lib/unictype/ctype_alnum.h: Likewise.
27593 * lib/unictype/ctype_alpha.h: Likewise.
27594 * lib/unictype/ctype_blank.h: Likewise.
27595 * lib/unictype/ctype_cntrl.h: Likewise.
27596 * lib/unictype/ctype_digit.h: Likewise.
27597 * lib/unictype/ctype_graph.h: Likewise.
27598 * lib/unictype/ctype_lower.h: Likewise.
27599 * lib/unictype/ctype_print.h: Likewise.
27600 * lib/unictype/ctype_punct.h: Likewise.
27601 * lib/unictype/ctype_space.h: Likewise.
27602 * lib/unictype/ctype_upper.h: Likewise.
27603 * lib/unictype/ctype_xdigit.h: Likewise.
27604 * lib/unictype/decdigit.h: Likewise.
27605 * lib/unictype/digit.h: Likewise.
27606 * lib/unictype/mirror.h: Likewise.
27607 * lib/unictype/numeric.h: Likewise.
27608 * lib/unictype/pr_alphabetic.h: Likewise.
27609 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27610 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27611 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27612 * lib/unictype/pr_bidi_block_separator.h: Likewise.
27613 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27614 * lib/unictype/pr_bidi_common_separator.h: Likewise.
27615 * lib/unictype/pr_bidi_control.h: Likewise.
27616 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27617 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27618 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27619 * lib/unictype/pr_bidi_european_digit.h: Likewise.
27620 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27621 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27622 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27623 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27624 * lib/unictype/pr_bidi_pdf.h: Likewise.
27625 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27626 * lib/unictype/pr_bidi_whitespace.h: Likewise.
27627 * lib/unictype/pr_combining.h: Likewise.
27628 * lib/unictype/pr_composite.h: Likewise.
27629 * lib/unictype/pr_currency_symbol.h: Likewise.
27630 * lib/unictype/pr_dash.h: Likewise.
27631 * lib/unictype/pr_decimal_digit.h: Likewise.
27632 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27633 * lib/unictype/pr_deprecated.h: Likewise.
27634 * lib/unictype/pr_diacritic.h: Likewise.
27635 * lib/unictype/pr_extender.h: Likewise.
27636 * lib/unictype/pr_format_control.h: Likewise.
27637 * lib/unictype/pr_grapheme_base.h: Likewise.
27638 * lib/unictype/pr_grapheme_extend.h: Likewise.
27639 * lib/unictype/pr_grapheme_link.h: Likewise.
27640 * lib/unictype/pr_hex_digit.h: Likewise.
27641 * lib/unictype/pr_hyphen.h: Likewise.
27642 * lib/unictype/pr_id_continue.h: Likewise.
27643 * lib/unictype/pr_id_start.h: Likewise.
27644 * lib/unictype/pr_ideographic.h: Likewise.
27645 * lib/unictype/pr_ids_binary_operator.h: Likewise.
27646 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27647 * lib/unictype/pr_ignorable_control.h: Likewise.
27648 * lib/unictype/pr_iso_control.h: Likewise.
27649 * lib/unictype/pr_join_control.h: Likewise.
27650 * lib/unictype/pr_left_of_pair.h: Likewise.
27651 * lib/unictype/pr_line_separator.h: Likewise.
27652 * lib/unictype/pr_logical_order_exception.h: Likewise.
27653 * lib/unictype/pr_lowercase.h: Likewise.
27654 * lib/unictype/pr_math.h: Likewise.
27655 * lib/unictype/pr_non_break.h: Likewise.
27656 * lib/unictype/pr_not_a_character.h: Likewise.
27657 * lib/unictype/pr_numeric.h: Likewise.
27658 * lib/unictype/pr_other_alphabetic.h: Likewise.
27659 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27660 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27661 * lib/unictype/pr_other_id_continue.h: Likewise.
27662 * lib/unictype/pr_other_id_start.h: Likewise.
27663 * lib/unictype/pr_other_lowercase.h: Likewise.
27664 * lib/unictype/pr_other_math.h: Likewise.
27665 * lib/unictype/pr_other_uppercase.h: Likewise.
27666 * lib/unictype/pr_paired_punctuation.h: Likewise.
27667 * lib/unictype/pr_paragraph_separator.h: Likewise.
27668 * lib/unictype/pr_pattern_syntax.h: Likewise.
27669 * lib/unictype/pr_pattern_white_space.h: Likewise.
27670 * lib/unictype/pr_private_use.h: Likewise.
27671 * lib/unictype/pr_punctuation.h: Likewise.
27672 * lib/unictype/pr_quotation_mark.h: Likewise.
27673 * lib/unictype/pr_radical.h: Likewise.
27674 * lib/unictype/pr_sentence_terminal.h: Likewise.
27675 * lib/unictype/pr_soft_dotted.h: Likewise.
27676 * lib/unictype/pr_space.h: Likewise.
27677 * lib/unictype/pr_terminal_punctuation.h: Likewise.
27678 * lib/unictype/pr_titlecase.h: Likewise.
27679 * lib/unictype/pr_unassigned_code_value.h: Likewise.
27680 * lib/unictype/pr_unified_ideograph.h: Likewise.
27681 * lib/unictype/pr_uppercase.h: Likewise.
27682 * lib/unictype/pr_variation_selector.h: Likewise.
27683 * lib/unictype/pr_white_space.h: Likewise.
27684 * lib/unictype/pr_xid_continue.h: Likewise.
27685 * lib/unictype/pr_xid_start.h: Likewise.
27686 * lib/unictype/pr_zero_width.h: Likewise.
27687 * lib/unictype/scripts.h: Likewise.
27688 * lib/unictype/scripts_byname.gperf: Likewise.
27689 * lib/unictype/sy_c_ident.h: Likewise.
27690 * lib/unictype/sy_c_whitespace.h: Likewise.
27691 * lib/unictype/sy_java_ident.h: Likewise.
27692 * lib/unictype/sy_java_whitespace.h: Likewise.
27694 * lib/unictype/Makefile: New file.
27695 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27697 * lib/unictype/3level.h: New file, copied from glibc.
27698 * lib/unictype/3levelbit.h: New file.
27700 2007-11-11 Bruno Haible <bruno@clisp.org>
27702 * modules/gperf: New file.
27703 * modules/iconv_open (Depends-on): Add it.
27704 (Makefile.am): Remove the GPERF definition.
27706 2007-11-11 Bruno Haible <bruno@clisp.org>
27708 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27709 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27711 2007-11-11 Bruno Haible <bruno@clisp.org>
27713 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27714 (usage): Remove function.
27716 2007-11-11 Bruno Haible <bruno@clisp.org>
27718 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27719 gl_FUNC_CEILF_LIBS.
27720 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27722 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27723 gl_FUNC_CEILL_LIBS.
27724 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27725 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27726 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27728 2007-11-11 Bruno Haible <bruno@clisp.org>
27730 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27731 roundf were declared but do not exist on functions.
27732 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27733 roundl were declared but do not exist on functions.
27734 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27735 HAVE_FLOORL_AND_CEILL, respectively.
27736 Needed for Sun C on Solaris 10.
27738 2007-11-11 Bruno Haible <bruno@clisp.org>
27740 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27741 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27742 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27743 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27744 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27745 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27746 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27748 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27749 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27750 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27751 of HAVE_DECL_ROUND*.
27752 * modules/math (Makefile.am): Update.
27754 2007-11-10 Bruno Haible <bruno@clisp.org>
27756 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27757 ptrdiff_t as m4/intl.m4.
27759 2007-11-10 Jim Meyering <meyering@redhat.com>
27761 Avoid link failure for the argmatch test.
27762 * tests/test-argmatch.c (usage): Define function to avoid a link
27763 failure: argmatch_die requires a usage function.
27765 2007-11-09 Bruno Haible <bruno@clisp.org>
27767 * doc/functions/snprintf.texi: Mention BeOS deficiency.
27768 * doc/functions/vsnprintf.texi: Likewise.
27769 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27770 with a size argument < 2.
27772 2007-11-09 Bruno Haible <bruno@clisp.org>
27774 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27775 buffer. Fixes an inefficiency introduced on 2007-11-03.
27777 2007-11-09 Bruno Haible <bruno@clisp.org>
27779 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27780 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27782 2007-11-08 Jim Meyering <meyering@redhat.com>
27784 Change cache variable name prefix "jm_" to "gl_" everywhere.
27785 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27786 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27787 * m4/uptime.m4: s/gl_/jm_/
27789 2007-11-07 Bruno Haible <bruno@clisp.org>
27791 Update to GNU gettext 0.17.
27792 * m4/intl.m4: Update to GNU gettext 0.17.
27793 * m4/po.m4: Likewise.
27794 * modules/gettext (Files): Remove m4/ulonglong.m4.
27795 (configure.ac): Require gettext infrastructure from version 0.17.
27797 2007-11-06 Bruno Haible <bruno@clisp.org>
27799 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27800 symbolic values are not defined in a public header.
27801 * lib/freadable.c (freadable) [QNX]: Likewise.
27802 * lib/freadahead.c (freadahead) [QNX]: Likewise.
27803 * lib/freading.c (freading) [QNX]: Likewise.
27804 * lib/fseterr.c (fseterr) [QNX]: Likewise.
27805 * lib/fwritable.c (fwritable) [QNX]: Likewise.
27806 * lib/fwriting.c (fwriting) [QNX]: Likewise.
27807 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27808 Reported by Alain Magloire.
27810 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27812 2007-11-05 Bruno Haible <bruno@clisp.org>
27814 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27815 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27816 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27817 Reported by Eric Blake.
27819 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27820 Bruno Haible <bruno@clisp.org>
27822 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27823 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27824 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27825 (malloc): Undefine also before including <stdlib.h>.
27826 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27827 Needed on OSF/1 4.0.
27829 2007-11-05 Jim Meyering <meyering@redhat.com>
27831 git-version-gen: sync from coreutils.
27832 * build-aux/git-version-gen: Add comments.
27833 Change the first '-' to '.' in the snapshot version string,
27834 e.g., 6.9-377-08144 -> 6.9.377-08144
27835 Remove first parameter.
27836 Don't declare a version "-dirty" merely because a time
27839 2007-11-04 Bruno Haible <bruno@clisp.org>
27841 * lib/lock.h: Protect all macro definitions containing an 'if'
27842 statement through a "do { ... } while (0)".
27843 * lib/tls.h: Likewise.
27845 2007-11-04 Bruno Haible <bruno@clisp.org>
27847 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27849 2007-11-04 Bruno Haible <bruno@clisp.org>
27851 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27852 * modules/fprintf-posix (Depends-on): Add nocrash.
27853 * modules/snprintf-posix (Depends-on): Likewise.
27854 * modules/sprintf-posix (Depends-on): Likewise.
27855 * modules/vasnprintf-posix (Depends-on): Likewise.
27856 * modules/vasprintf-posix (Depends-on): Likewise.
27857 * modules/vfprintf-posix (Depends-on): Likewise.
27858 * modules/vsnprintf-posix (Depends-on): Likewise.
27859 * modules/vsprintf-posix (Depends-on): Likewise.
27860 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27861 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27862 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27863 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27864 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27865 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27866 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27868 2007-11-04 Bruno Haible <bruno@clisp.org>
27870 * modules/nocrash: New file.
27871 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27872 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27874 2007-11-04 Bruno Haible <bruno@clisp.org>
27876 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27877 precision handling.
27878 * tests/test-vasprintf-posix.c (test_function): Likewise.
27879 * tests/test-snprintf-posix.h (test_function): Likewise.
27880 * tests/test-sprintf-posix.h (test_function): Likewise.
27882 Fix *printf behaviour for large precisions on mingw and BeOS.
27883 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27884 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27885 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27886 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27887 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27888 gl_PRINTF_PRECISION and test its result. Invoke
27889 gl_PREREQ_VASNPRINTF_PRECISION.
27890 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27891 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27892 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27893 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27894 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27895 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27896 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27897 * doc/functions/fprintf.texi: Update.
27898 * doc/functions/printf.texi: Update.
27899 * doc/functions/snprintf.texi: Update.
27900 * doc/functions/sprintf.texi: Update.
27901 * doc/functions/vfprintf.texi: Update.
27902 * doc/functions/vprintf.texi: Update.
27903 * doc/functions/vsnprintf.texi: Update.
27904 * doc/functions/vsprintf.texi: Update.
27906 2007-11-04 Bruno Haible <bruno@clisp.org>
27908 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27910 2007-11-04 Bruno Haible <bruno@clisp.org>
27912 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27913 Reported by Sylvain Beucler <beuc@gnu.org>.
27915 2007-11-03 Bruno Haible <bruno@clisp.org>
27917 * tests/test-fprintf-posix2.sh: New file.
27918 * tests/test-fprintf-posix2.c: New file.
27919 * modules/fprintf-posix-tests (Files): Add them.
27920 (TESTS): Add test-fprintf-posix2.sh.
27921 (configure.ac): Check for getrlimit and setrlimit.
27922 (check_PROGRAMS): Add test-fprintf-posix2.
27924 * tests/test-printf-posix2.sh: New file.
27925 * tests/test-printf-posix2.c: New file.
27926 * modules/printf-posix-tests (Files): Add them.
27927 (TESTS): Add test-printf-posix2.sh.
27928 (configure.ac): Check for getrlimit and setrlimit.
27929 (check_PROGRAMS): Add test-printf-posix2.
27931 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27932 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27933 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27934 (decode_double): New function, copied from decode_long_double.
27935 (scale10_round_decimal_decoded): New function, extracted from
27936 scale10_round_decimal_long_double.
27937 (scale10_round_decimal_long_double): Use it.
27938 (scale10_round_decimal_double): New function.
27939 (floorlog10): New function.
27940 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27941 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27942 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27943 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27944 gl_PRINTF_ENOMEM and test its result. Invoke
27945 gl_PREREQ_VASNPRINTF_ENOMEM.
27946 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27947 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27948 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27949 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27950 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27951 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27952 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27953 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27954 * modules/snprintf-posix (Depends-on): Likewise.
27955 * modules/sprintf-posix (Depends-on): Likewise.
27956 * modules/vasnprintf-posix (Depends-on): Likewise.
27957 * modules/vasprintf-posix (Depends-on): Likewise.
27958 * modules/vfprintf-posix (Depends-on): Likewise.
27959 * modules/vsnprintf-posix (Depends-on): Likewise.
27960 * modules/vsprintf-posix (Depends-on): Likewise.
27961 * doc/functions/fprintf.texi: Update.
27962 * doc/functions/printf.texi: Update.
27963 * doc/functions/snprintf.texi: Update.
27964 * doc/functions/sprintf.texi: Update.
27965 * doc/functions/vfprintf.texi: Update.
27966 * doc/functions/vprintf.texi: Update.
27967 * doc/functions/vsnprintf.texi: Update.
27968 * doc/functions/vsprintf.texi: Update.
27970 2007-11-03 Bruno Haible <bruno@clisp.org>
27972 * modules/frexp-nolibm-tests: New file.
27974 * modules/frexp-nolibm: New file.
27975 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27977 2007-11-03 Bruno Haible <bruno@clisp.org>
27979 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27980 value is C99 compliant.
27981 Needed for OSF/1 5.1.
27983 2007-11-03 Bruno Haible <bruno@clisp.org>
27985 Fix out-of-memory handling of vasnprintf.
27986 * lib/printf-parse.c: Include <errno.h>.
27987 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27988 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27991 2007-11-02 Eric Blake <ebb9@byu.net>
27993 Fix tests on cygwin.
27994 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27996 2007-11-01 Bruno Haible <bruno@clisp.org>
27998 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28000 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28001 needed for POSIX compatibility.
28003 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28005 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28006 for compatibility with GNU.
28008 2007-11-01 Bruno Haible <bruno@clisp.org>
28010 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28011 (putenv): Renamed from rpl_putenv. Change argument type from
28012 'const char *' to 'char *'.
28013 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28014 of defining putenv in config.h, just set REPLACE_PUTENV.
28015 * modules/putenv (Depends-on): Add stdlib.
28016 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28017 (Include): Use <stdlib.h>.
28018 * lib/stdlib.in.h (putenv): New declaration.
28019 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28021 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28023 Needed for MacOS X 10.5.0.
28024 Reported by Peter O'Gorman <peter@pogma.com>.
28026 2007-11-01 Jim Meyering <meyering@redhat.com>
28028 Treat an empty date string exactly like "0".
28029 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28030 if the remaining date string (to be parsed) is empty, use "0".
28031 Reported by Mischa Molhoek and discussed in this thread:
28032 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28034 2007-10-31 Bruno Haible <bruno@clisp.org>
28036 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28037 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28038 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28039 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28040 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28041 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28043 2007-10-31 Bruno Haible <bruno@clisp.org>
28045 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28046 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28047 (AC_TYPE_LONG_LONG_INT): Use it.
28048 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28050 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28052 * modules/stdint (Files): Remove m4/ulonglong.m4.
28053 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28055 * modules/strtoumax (Files): Likewise.
28057 2007-10-30 Bruno Haible <bruno@clisp.org>
28059 * modules/xvasprintf-posix: New file.
28060 Suggested by Eric Blake.
28062 2007-10-30 Bruno Haible <bruno@clisp.org>
28064 * modules/xprintf-posix-tests: New file.
28065 * tests/test-xprintf-posix.sh: New file.
28066 * tests/test-xprintf-posix.c: New file.
28067 * tests/test-xfprintf-posix.c: New file.
28069 * modules/xprintf-posix: New file.
28071 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28073 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28074 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28075 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28077 2007-10-29 Bruno Haible <bruno@clisp.org>
28079 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28080 contain the special marker '_cv_'.
28081 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28082 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28083 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28084 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28085 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28086 Reported by Ralf Wildenhues.
28088 2007-10-29 Bruno Haible <bruno@clisp.org>
28090 * gnulib-tool (func_import): When --lgpl is not specified, set
28091 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28093 Reported by Simon Josefsson.
28095 2007-10-28 Bruno Haible <bruno@clisp.org>
28097 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28098 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28099 HAVE_DECL_ISFINITE.
28100 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28101 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28102 HAVE_DECL_ISFINITE.
28104 2007-10-28 Bruno Haible <bruno@clisp.org>
28106 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28107 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28109 2007-10-28 Bruno Haible <bruno@clisp.org>
28111 Fix link errors with Sun C 5.0 on Solaris 10.
28112 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28113 function is declared but not present in the compiler's libm.
28114 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28115 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28116 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28117 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28118 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28119 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28120 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28121 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28122 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28123 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28124 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28127 2007-10-28 Bruno Haible <bruno@clisp.org>
28129 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28130 gl_FUNC_FLOORL. Cache the result.
28131 (gl_FUNC_FLOORL): Use it.
28132 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28133 gl_FUNC_CEILL. Cache the result.
28134 (gl_FUNC_CEILL): Use it.
28136 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28137 gl_FUNC_FLOOR. Cache the result.
28138 (gl_FUNC_FLOOR): Use it.
28139 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28140 gl_FUNC_CEIL. Cache the result.
28141 (gl_FUNC_CEIL): Use it.
28143 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28144 gl_FUNC_FLOORF. Cache the result.
28145 (gl_FUNC_FLOORF): Use it.
28146 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28147 gl_FUNC_CEILF. Cache the result.
28148 (gl_FUNC_CEILF): Use it.
28150 2007-10-28 Bruno Haible <bruno@clisp.org>
28152 * gnulib-tool: Allow specifying the LGPL version number through
28153 --lgpl=2 or --lgpl=3.
28154 (func_usage): Document --lgpl with argument.
28155 Handle --lgpl=... arguments.
28156 (func_import): Recognize also gl_LGPL calls with an argument. When
28157 --lgpl=2 is used and the module's license is just LGPL, report an
28158 error. Set sed_transform_lib_file according to the lgpl variable. In
28159 the generated files, use --lgpl or gl_LGPL invocations with argument,
28161 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28163 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28166 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28167 Bruno Haible <bruno@clisp.org>
28169 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28170 (u16_uctomb_aux): Likewise.
28171 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28173 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28175 2007-10-28 Bruno Haible <bruno@clisp.org>
28177 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28178 Invoke AM_GETTEXT_OPTION if it exists.
28179 * modules/vasprintf: Likewise.
28180 * modules/verror: Likewise.
28181 * modules/xprintf: Likewise.
28182 * modules/xvasprintf: Likewise.
28184 2007-10-27 Ben Pfaff <blp@gnu.org>
28186 * lib/math.in.h: Define isfinite macro and prototypes for
28187 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28189 * m4/math_h.m4: New substitutions for isfinite module.
28190 * lib/isfinite.c: New file.
28191 * m4/isfinite.m4: New file.
28192 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28193 * modules/isfinite: New file.
28194 * modules/isfinite-tests: New file.
28195 * tests/tests-isfinite.c: New file.
28196 * doc/functions/isfinite.texi: Mention isfinite module.
28197 * MODULES.html.sh: Mention new module.
28199 2007-10-27 Ben Pfaff <blp@gnu.org>
28201 Ralf Wildenhues reported that Tru64 4.0D declares the round
28202 functions but does not have definitions.
28203 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28204 cannot be found in any library, set the output variable to
28205 "missing" instead of "".
28206 * m4/round.m4: Also use our substitute if we cannot find round in
28207 any library, even if it is declared.
28208 * m4/roundf.m4: Likewise for roundf.
28209 * m4/roundl.m4: Likewise for roundl.
28210 * lib/math.in.h: Undefine roundf, round, roundl before defining
28211 their replacements, to allow for hypothetical systems where these
28212 may be defined as macros but not available in libraries.
28214 2007-10-27 Bruno Haible <bruno@clisp.org>
28216 * doc/gnulib.texi: Invoke @firstparagraphindent.
28217 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28219 (Source changes): New section.
28221 2007-10-26 Bruno Haible <bruno@clisp.org>
28223 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28224 borrowed from autoconf.
28226 2007-10-26 Bruno Haible <bruno@clisp.org>
28228 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28229 strerror returned the empty string. Needed on HP-UX 11.00.
28231 2007-10-24 Micah Cowan <micah@cowan.name>
28233 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28234 * build-aux/bootstrap: Remove support for now-unnecessary option,
28235 --cvs-user, and envvars CVS_USER, CVS_RSH.
28237 2007-10-24 Jim Meyering <meyering@redhat.com>
28239 Avoid diagnostics from sha1sum when there is no cached checksum.
28240 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28241 if the po.s1 file hasn't been created yet.
28243 * build-aux/bootstrap: Sync from coreutils:
28244 2007-10-24 Jim Meyering <meyering@redhat.com>
28245 Get gnulib from the git repository, not from an obsolete cvs one.
28246 * build-aux/bootstrap: Suggestion from Micah Cowan.
28247 2007-10-04 Jim Meyering <jim@meyering.net>
28248 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28249 (update_po_files): Work also when there are no .po files in po/.
28251 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28253 * README: Append ".git" to git and cg examples.
28254 Problem reported by Benoit Sigoure.
28256 2007-10-23 Micah Cowan <micah@cowan.name>
28258 * users.txt: Add wget.
28260 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28262 Fix linking of some unistdio tests on FreeBSD.
28263 * modules/unistdio/u16-vsnprintf-tests
28264 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28265 * modules/unistdio/u16-vsprintf-tests
28266 (test_u16_vsnprintf1_LDADD): Likewise.
28267 * modules/unistdio/u32-vsnprintf-tests
28268 (test_u32_vsnprintf1_LDADD): Likewise.
28269 * modules/unistdio/u32-vsprintf-tests
28270 (test_u32_vsprintf1_LDADD): Likewise.
28271 * modules/unistdio/u8-vsnprintf-tests
28272 (test_u8_vsnprintf1_LDADD): Likewise.
28273 * modules/unistdio/u8-vsprintf-tests
28274 (test_u8_vsprintf1_LDADD): Likewise.
28275 * modules/unistdio/ulc-vsnprintf-tests
28276 (test_ulc_vsnprintf1_LDADD): Likewise.
28277 * modules/unistdio/ulc-vsprintf-tests
28278 (test_ulc_vsprintf1_LDADD): Likewise.
28280 Fix linking of some uniconv tests on FreeBSD.
28281 * modules/uniconv/u16-conv-from-enc-tests
28282 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28283 * modules/uniconv/u16-conv-to-enc-tests
28284 (test_u16_conv_to_enc_LDADD): Likewise.
28285 * modules/uniconv/u16-strconv-from-enc-tests
28286 (test_u16_strconv_from_enc_LDADD): Likewise.
28287 * modules/uniconv/u16-strconv-to-enc-tests
28288 (test_u16_strconv_to_enc_LDADD): Likewise.
28289 * modules/uniconv/u32-conv-from-enc-tests
28290 (test_u32_conv_from_enc_LDADD): Likewise.
28291 * modules/uniconv/u32-conv-to-enc-tests
28292 (test_u32_conv_to_enc_LDADD): Likewise.
28293 * modules/uniconv/u32-strconv-from-enc-tests
28294 (test_u32_strconv_from_enc_LDADD): Likewise.
28295 * modules/uniconv/u32-strconv-to-enc-tests
28296 (test_u32_strconv_to_enc_LDADD): Likewise.
28297 * modules/uniconv/u8-conv-from-enc-tests
28298 (test_u8_conv_from_enc_LDADD): Likewise.
28299 * modules/uniconv/u8-conv-to-enc-tests
28300 (test_u8_conv_to_enc_LDADD): Likewise.
28301 * modules/uniconv/u8-strconv-from-enc-tests
28302 (test_u8_strconv_from_enc_LDADD): Likewise.
28303 * modules/uniconv/u8-strconv-to-enc-tests
28304 (test_u8_strconv_to_enc_LDADD): Likewise.
28306 2007-10-22 Bruno Haible <bruno@clisp.org>
28308 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28311 2007-10-22 Eric Blake <ebb9@byu.net>
28313 Tweak x*printf documentation.
28314 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28315 variable name and comments.
28316 Suggested by Bruno Haible.
28318 2007-10-22 Bruno Haible <bruno@clisp.org>
28320 * lib/acl.c (copy_acl): Fix file name in comment.
28322 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28324 Fix Tru64 problem with stdbool.h.
28325 * lib/stdbool.in.h (false, true):
28326 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28327 Don't declare as an enum in this situation; it runs afoul of Tru64.
28328 Problem reported by Steven M. Schweda in
28329 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28331 2007-10-22 Eric Blake <ebb9@byu.net>
28333 Also wrap vf?printf.
28334 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28335 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28336 (xvprintf, xvfprintf): New functions.
28338 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28340 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28341 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28343 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28344 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28346 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28348 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28351 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28354 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28355 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28357 * tests/test-i-ring.c: Work for C89.
28359 2007-10-22 Bruno Haible <bruno@clisp.org>
28361 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28362 -1u, in preprocessor expression, so that we don't test for the bug
28363 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28364 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28366 2007-10-22 Eric Blake <ebb9@byu.net>
28368 * tests/test-yesno.sh: Silence stderr during test.
28370 2007-10-22 Simon Josefsson <simon@josefsson.org>
28372 * modules/crypto/gc-camellia: New file.
28374 * m4/gc-camellia.m4: New file.
28376 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28378 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28380 2007-10-22 Simon Josefsson <simon@josefsson.org>
28382 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28383 --help to stdout. Reported by sms@antinode.org (Steven
28386 2007-10-22 Simon Josefsson <simon@josefsson.org>
28388 * users.txt: Fix link to libksba.
28390 2007-10-21 Ben Pfaff <blp@gnu.org>
28392 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28393 round.c roundf implementation that depends on floorf and ceilf to
28394 be tested unconditionally.
28396 2007-10-21 Ben Pfaff <blp@gnu.org>
28398 * m4/check-libm-func.m4: Removed.
28399 * m4/check-math-lib.m4: New file.
28400 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28401 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28402 definition and lack of AC_LIBOBJ([roundf]).
28403 * m4/roundl.m4: Ditto, and similarly for roundl.
28404 * modules/round: Reference new m4 file.
28405 * modules/roundf: Ditto.
28406 * modules/roundl: Ditto.
28407 * tests/test-round2.c (main): Use ROUND instead of round.
28408 Bug report from Bruno Haible.
28410 2007-10-21 Bruno Haible <bruno@clisp.org>
28412 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28415 2007-10-21 Bruno Haible <bruno@clisp.org>
28417 * tests/test-wcwidth.c (main): Allow negative result for some control
28420 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28421 Needed on OSF/1 5.1.
28423 2007-10-21 Bruno Haible <bruno@clisp.org>
28425 * tests/test-floorf1.c: Include isnanf.h.
28426 (main): Use isnanf() instead of isnan().
28427 * tests/test-ceilf1.c: Include isnanf.h.
28428 (main): Use isnanf() instead of isnan().
28429 * tests/test-truncf1.c: Include isnanf.h.
28430 (main): Use isnanf() instead of isnan().
28431 * tests/test-roundf1.c: Include isnanf.h.
28432 (main): Use isnanf() instead of isnan().
28434 2007-10-21 Eric Blake <ebb9@byu.net>
28436 * users.txt: Update URL for m4.
28438 2007-10-21 Bruno Haible <bruno@clisp.org>
28440 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28442 2007-10-21 Bruno Haible <bruno@clisp.org>
28444 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28445 Git's management files if the CVS files are not present.
28447 2007-10-20 Bruno Haible <bruno@clisp.org>
28449 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28452 2007-10-20 Ben Pfaff <blp@gnu.org>
28454 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28456 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28457 * lib/round.c: New file.
28458 * lib/roundf.c: New file.
28459 * lib/roundl.c: New file.
28460 * m4/round.m4: New file.
28461 * m4/roundf.m4: New file.
28462 * m4/roundl.m4: New file.
28463 * m4/check-libm-func-m4: New file.
28464 * modules/math: Replace round, roundf, roundl related @VARS@ in
28466 * modules/round: New file.
28467 * modules/round-tests: New file.
28468 * modules/roundf: New file.
28469 * modules/roundf-tests: New file.
28470 * modules/roundl: New file.
28471 * modules/roundl-tests: New file.
28472 * tests/test-round1.c: New file.
28473 * tests/test-round2.c: New file.
28474 * tests/test-roundf1.c: New file.
28475 * tests/test-roundf2.c: New file.
28476 * tests/test-roundl.c: New file.
28477 * doc/functions/round.texi: Mention round module.
28478 * doc/functions/roundf.texi: Mention roundf module.
28479 * doc/functions/roundl.texi: Mention roundl module.
28480 * MODULES.html.sh: Mention new modules.
28481 Thanks to Bruno Haible for suggestions.
28483 2007-10-20 Jim Meyering <meyering@redhat.com>
28485 * lib/xprintf.c: Include <config.h> unconditionally.
28487 Change xprintf's license to GPL.
28488 * modules/xprintf (License): s/LGPL/GPL/, since this module
28489 depends on modules (exit and exitfail) which are GPL.
28490 Suggestion from Bruno Haible.
28493 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28494 Use a clearer diagnostic.
28495 Patch from Bruno Haible.
28497 2007-10-20 Bruno Haible <bruno@clisp.org>
28499 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28500 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28501 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28503 2007-10-20 Bruno Haible <bruno@clisp.org>
28505 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28506 precision in the comparison result > x - 1 or similar.
28507 * tests/test-ceilf2.c (correct_result_p): Likewise.
28508 * tests/test-truncf2.c (correct_result_p): Likewise.
28509 * tests/test-trunc2.c (correct_result_p): Likewise.
28510 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28512 2007-10-20 Bruno Haible <bruno@clisp.org>
28514 * modules/ceil: New file.
28515 * m4/ceil.m4: New file.
28516 * doc/functions/ceil.texi: Mention the 'ceil' module.
28518 2007-10-20 Bruno Haible <bruno@clisp.org>
28520 * modules/floor: New file.
28521 * m4/floor.m4: New file.
28522 * doc/functions/floor.texi: Mention the 'floor' module.
28524 2007-10-20 Bruno Haible <bruno@clisp.org>
28526 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28528 * modules/floorf-tests (Depends-on): Likewise.
28529 * modules/truncf-tests (Depends-on): Likewise.
28530 * modules/trunc-tests (Depends-on): Likewise.
28531 Reported by Ben Pfaff.
28533 2007-10-19 Jim Meyering <meyering@redhat.com>
28535 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28536 Don't bother testing specific errno values. Just test ferror.
28538 New module: xprintf
28539 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28541 2007-10-19 Bruno Haible <bruno@clisp.org>
28543 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28545 * modules/javaexec (Makefile.am): Likewise.
28546 * modules/relocatable-prog (Makefile.am): Likewise.
28547 Suggested by Jim Meyering.
28549 2007-10-18 Bruno Haible <bruno@clisp.org>
28551 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28552 Reported by Jim Meyering.
28554 2007-10-18 Eric Blake <ebb9@byu.net>
28556 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28558 2007-10-18 Bruno Haible <bruno@clisp.org>
28560 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28561 the format string into writable memory. Needed in Fortify conditions.
28563 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28564 Bruno Haible <bruno@clisp.org>
28566 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28567 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28568 * modules/trim (Depends-on): Add mbchar.
28569 (configure.ac): Add gl_FUNC_MBRTOWC.
28570 (Makefile.am): Augment lib_SOURCES.
28572 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28574 Modify glob.c to use fstatat and dirfd, to simplify it.
28575 Suggested by Eric Blake.
28576 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28577 Don't include <stdbool.h>; not used.
28578 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28579 (link_exists_p): Simplify implementation, since we can now assume
28581 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28583 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28585 * gnulib-tool (func_get_dependencies): Fix sed script to
28588 2007-10-17 Bruno Haible <bruno@clisp.org>
28590 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28591 allow locale names without encoding suffix.
28592 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28593 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28595 2007-10-16 Bruno Haible <bruno@clisp.org>
28597 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28598 * lib/getgroups.c (getgroups): Likewise.
28599 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28601 2007-10-16 Bruno Haible <bruno@clisp.org>
28603 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28604 * modules/malloc-posix (License): Likewise.
28605 * modules/realloc-posix (License): Likewise.
28606 * modules/calloc-posix (License): Likewise.
28607 * modules/intprops (License): Change from GPL to LGPL, with
28608 Paul Eggert's approval.
28610 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28612 Merge glibc changes into lib/glob.c.
28614 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28615 2007-10-15 04:59:03 UTC. Here are the changes:
28617 2007-10-14 Ulrich Drepper <drepper@redhat.com>
28619 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28621 * lib/glob.c: Add some branch prediction throughout.
28623 2007-10-07 Ulrich Drepper <drepper@redhat.com>
28626 * lib/glob.c (glob): Recognize patterns starting \/.
28628 2007-02-14 Jakub Jelinek <jakub@redhat.com>
28631 * lib/glob.c (attribute_hidden): Define if not defined.
28632 (glob): Unescape dirname, filename or username when needed and not
28633 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
28634 is NULL. Handle unescaped [ in pattern without closing ].
28635 Don't pass GLOB_CHECK down to recursive glob for directories.
28636 (__glob_pattern_type): New function.
28637 (__glob_pattern_p): Implement using __glob_pattern_type.
28638 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28639 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28640 Remove unreachable code.
28642 2006-09-30 Ulrich Drepper <drepper@redhat.com>
28644 * lib/glob.c (glob_in_dir): Add some comments and asserts to
28645 explain why there are no leaks.
28647 2006-09-25 Jakub Jelinek <jakub@redhat.com>
28650 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28651 time, rather allocate increasingly bigger arrays of pointers, if
28652 possible with alloca, if too large with malloc.
28654 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28656 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28657 Problem reported by H.Merijn Brand in
28658 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28659 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28660 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28662 2007-10-15 Bruno Haible <bruno@clisp.org>
28664 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28665 with explicit rpl_ prefix.
28666 * lib/fopen.c (fopen): Likewise.
28667 * lib/freopen.c (freopen): Likewise.
28668 * lib/iconv.c (iconv): Likewise.
28669 * lib/iconv_close.c (iconv_close): Likewise.
28671 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28673 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28675 2007-10-15 Bruno Haible <bruno@clisp.org>
28677 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28678 <stddef.h> instead of <stdlib.h> since we only need NULL.
28679 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28681 2007-10-15 Bruno Haible <bruno@clisp.org>
28683 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28684 Replace paragraph talking about LIBOBJS.
28685 Reported by Colin Watson <cjwatson@debian.org>.
28687 2007-10-15 Bruno Haible <bruno@clisp.org>
28689 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28690 <stdlib.h> before using NULL.
28692 2007-10-15 Simon Josefsson <simon@josefsson.org>
28694 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28695 Reported by Albert Chin <china@thewrittenword.com>.
28697 2007-10-14 Bruno Haible <bruno@clisp.org>
28699 * modules/iconv_open-utf-tests: New file.
28700 * tests/test-iconv-utf.c: New file.
28702 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28703 * modules/iconv_open-utf: New file.
28704 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28705 (iconv, iconv_close): New declarations.
28706 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28708 (iconv_open): Add special handling of conversion between UTF-8 and
28709 UTF-{16,32}{BE,LE}.
28710 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28711 * lib/iconv_close.c: New file.
28712 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28713 gl_FUNC_ICONV_OPEN.
28714 (gl_FUNC_ICONV_OPEN): Use it.
28715 (gl_FUNC_ICONV_OPEN_UTF): New macro.
28716 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28717 and REPLACE_ICONV_UTF.
28718 * modules/iconv_open (Depends-on): Add c-strcase.
28719 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28721 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28723 2007-10-13 Albert Chin <china@thewrittenword.com>
28724 Bruno Haible <bruno@clisp.org>
28726 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28727 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28729 2007-10-13 Bruno Haible <bruno@clisp.org>
28731 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28732 defined, use the ISO C99 inline semantics.
28733 * lib/argp.h (ARGP_EI): Likewise.
28735 2007-10-13 Bruno Haible <bruno@clisp.org>
28737 Handle 'inline' change in gcc 4.3.0.
28738 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28739 argp_fmtstream_write, argp_fmtstream_set_lmargin,
28740 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28741 argp_fmtstream_point): Disable 'extern' declaration if the function
28742 definition is going to be provided inline.
28743 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28744 semantics, not the ISO C99 inline semantics.
28745 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28746 'extern' declaration if the function definition is going to be provided
28748 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28749 the GNU C inline semantics, not the ISO C99 inline semantics. With
28750 GCC 4.2, avoid a warning.
28752 2007-10-13 Bruno Haible <bruno@clisp.org>
28754 * lib/freading.h (freading): Enable the use of __freading for
28756 * lib/freading.c (freading): Likewise.
28758 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
28760 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28761 "warning: C99 inline functions are not supported; using GNU89".
28763 2007-10-12 Bruno Haible <bruno@clisp.org>
28765 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28767 * tests/test-ceilf2.c: New file.
28768 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28770 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28771 * modules/ceilf-tests: Update.
28773 2007-10-12 Bruno Haible <bruno@clisp.org>
28775 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28777 * tests/test-floorf2.c: New file.
28778 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28780 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28781 * modules/floorf-tests: Update.
28783 2007-10-12 Bruno Haible <bruno@clisp.org>
28785 * tests/test-trunc2.c: New file.
28786 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28788 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28789 * modules/trunc-tests: Update.
28791 2007-10-12 Bruno Haible <bruno@clisp.org>
28793 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28795 * tests/test-truncf2.c: New file.
28796 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28798 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28799 * modules/truncf-tests: Update.
28801 2007-10-11 Eric Blake <ebb9@byu.net>
28803 Don't claim strerror is broken on Interix.
28804 * doc/functions/strerror.texi (strerror): Known broken systems are
28805 now Solaris 8, and not Interix.
28806 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28807 Interix on cross-compile.
28808 Reported by Martin Koeppe in
28809 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28811 2007-10-11 Bruno Haible <bruno@clisp.org>
28813 * modules/i-ring-tests: New file.
28814 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28817 2007-10-11 Bruno Haible <bruno@clisp.org>
28819 * modules/filenamecat-tests: New file.
28820 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28821 * lib/filenamecat.c: Remove test code.
28823 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
28825 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28827 * lib/strerror.c: Include <string.h> always, to test interface,
28828 and to remove the need for the dummy.
28829 Include intprops.h to compute width instead of doing it ourselves
28830 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28831 (strerror): Define it to return NULL if there's no system strerror.
28832 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28833 Omit !HAVE_STRERROR code. We don't need to worry about supporting
28834 ancient pre-strerror Unix systems well any more. Saying "unknown
28835 system error" is enough.
28836 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28837 simpler strerror.c implementation.
28838 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28839 Simplify the tests to reflect the simpler strerror implementation.
28840 * modules/strerror (Depends-on): Add intprops.
28842 2007-10-09 Eric Blake <ebb9@byu.net>
28844 Silence test-fpending.
28845 * modules/fpending-tests (Files): Add wrapper script.
28846 * tests/test-fpending.sh: New file.
28848 2007-10-09 Bruno Haible <bruno@clisp.org>
28850 * MODULES.html.sh (func_module): Don't create a hyperlink for
28851 function names like 'printf_frexp'.
28852 (Misc): Add crc, memxor.
28853 (Characteristics of floating types): New section.
28854 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28855 isnanf-nolibm, signbit, trunc, truncf, truncl.
28856 (Enhancements for ISO C 99 functions): New subsection Input/output.
28857 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28858 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28859 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28860 (Compatibility checks for POSIX:2001 functions): Add clock-time.
28861 (Enhancements for POSIX:2001 functions): Add chdir-long.
28862 (File system functions): Add areadlink, chdir-safer, read-file.
28863 Remove cycle-check.
28864 (File system as inode set): New section.
28865 (Date and time): Add gethrxtime.
28866 (Multithreading): Add openmp.
28867 (Internationalization functions): Add localename.
28868 (Unicode string functions): Add unistr/u*-mbsnlen.
28869 (Support for maintaining and releasing projects): Add git-version-gen.
28870 (Lone files): Remove directories.
28872 2007-10-08 Ben Pfaff <blp@gnu.org>
28874 * lib/xmalloca.h: Fix typo in comment.
28876 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
28878 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28879 when avoiding problems with integer overflow. Use a portable test
28882 2007-10-08 Simon Josefsson <simon@josefsson.org>
28884 * modules/dummy (License): Change to LGPLv2+.
28885 * modules/float (License): Likewise
28886 * modules/realloc (License): Likewise
28887 * modules/stdlib (License): Likewise
28889 2007-10-07 Bruno Haible <bruno@clisp.org>
28891 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28892 * floor.c (TWO_MANT_DIG): Likewise.
28893 * ceil.c (TWO_MANT_DIG): Likewise.
28894 Reported by Ben Pfaff.
28896 2007-10-07 Bruno Haible <bruno@clisp.org>
28898 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28899 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28900 * lib/frexp.c (FUNC): Likewise.
28901 * lib/printf-frexp.h (printf_frexp): Likewise.
28902 * lib/printf-frexpl.h (printf_frexpl): Likewise.
28903 * lib/printf-frexp.c (FUNC): Likewise.
28904 Suggested by Jim Meyering.
28906 2007-10-07 Jim Meyering <meyering@redhat.com>
28908 Make xnanosleep's integer overflow test more robust.
28909 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28910 so that gcc-4.3.0 doesn't optimize away this test for overflow.
28912 2007-10-07 Bruno Haible <bruno@clisp.org>
28914 * NEWS: Mention the license change.
28916 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28917 abbreviations in the modules files.
28919 Change copyright notice from GPLv2+ to GPLv3+.
28920 * README: Change copyright notice.
28921 * MODULES.html.sh: Likewise.
28922 * build-aux/bootstrap.conf: Likewise.
28923 * build-aux/config.libpath: Likewise.
28924 * build-aux/csharpcomp.sh.in: Likewise.
28925 * build-aux/csharpexec.sh.in: Likewise.
28926 * build-aux/install-reloc: Likewise.
28927 * build-aux/javacomp.sh.in: Likewise.
28928 * build-aux/javaexec.sh.in: Likewise.
28929 * build-aux/ldd.sh.in: Likewise.
28930 * build-aux/reloc-ldflags: Likewise.
28931 * build-aux/relocatable.sh.in: Likewise.
28932 * build-aux/x-to-1.in: Likewise.
28933 * check-module: Likewise.
28934 * config/srclistvars.sh: Likewise.
28935 * gnulib-tool: Likewise.
28936 * lib/acl-internal.h: Likewise.
28937 * lib/acl.c: Likewise.
28938 * lib/acl.h: Likewise.
28939 * lib/acl_entries.c: Likewise.
28940 * lib/areadlink-with-size.c: Likewise.
28941 * lib/areadlink.c: Likewise.
28942 * lib/areadlink.h: Likewise.
28943 * lib/argmatch.c: Likewise.
28944 * lib/argmatch.h: Likewise.
28945 * lib/argp-ba.c: Likewise.
28946 * lib/argp-eexst.c: Likewise.
28947 * lib/argp-fmtstream.c: Likewise.
28948 * lib/argp-fmtstream.h: Likewise.
28949 * lib/argp-fs-xinl.c: Likewise.
28950 * lib/argp-help.c: Likewise.
28951 * lib/argp-namefrob.h: Likewise.
28952 * lib/argp-parse.c: Likewise.
28953 * lib/argp-pin.c: Likewise.
28954 * lib/argp-pv.c: Likewise.
28955 * lib/argp-pvh.c: Likewise.
28956 * lib/argp-xinl.c: Likewise.
28957 * lib/argp.h: Likewise.
28958 * lib/at-func.c: Likewise.
28959 * lib/atanl.c: Likewise.
28960 * lib/backupfile.c: Likewise.
28961 * lib/backupfile.h: Likewise.
28962 * lib/basename.c: Likewise.
28963 * lib/binary-io.h: Likewise.
28964 * lib/byteswap.in.h: Likewise.
28965 * lib/c-stack.c: Likewise.
28966 * lib/c-stack.h: Likewise.
28967 * lib/c-strcasestr.c: Likewise.
28968 * lib/c-strcasestr.h: Likewise.
28969 * lib/c-strstr.c: Likewise.
28970 * lib/c-strstr.h: Likewise.
28971 * lib/c-strtod.c: Likewise.
28972 * lib/calloc.c: Likewise.
28973 * lib/canon-host.c: Likewise.
28974 * lib/canon-host.h: Likewise.
28975 * lib/canonicalize-lgpl.c: Likewise.
28976 * lib/canonicalize.c: Likewise.
28977 * lib/canonicalize.h: Likewise.
28978 * lib/ceil.c: Likewise.
28979 * lib/ceilf.c: Likewise.
28980 * lib/ceill.c: Likewise.
28981 * lib/chdir-long.c: Likewise.
28982 * lib/chdir-long.h: Likewise.
28983 * lib/chdir-safer.c: Likewise.
28984 * lib/chdir-safer.h: Likewise.
28985 * lib/chown.c: Likewise.
28986 * lib/classpath.c: Likewise.
28987 * lib/classpath.h: Likewise.
28988 * lib/clean-temp.c: Likewise.
28989 * lib/clean-temp.h: Likewise.
28990 * lib/cloexec.c: Likewise.
28991 * lib/close-stream.c: Likewise.
28992 * lib/closein.c: Likewise.
28993 * lib/closein.h: Likewise.
28994 * lib/closeout.c: Likewise.
28995 * lib/closeout.h: Likewise.
28996 * lib/concat-filename.c: Likewise.
28997 * lib/copy-file.c: Likewise.
28998 * lib/copy-file.h: Likewise.
28999 * lib/count-one-bits.h: Likewise.
29000 * lib/crc.c: Likewise.
29001 * lib/crc.h: Likewise.
29002 * lib/creat-safer.c: Likewise.
29003 * lib/csharpcomp.c: Likewise.
29004 * lib/csharpcomp.h: Likewise.
29005 * lib/csharpexec.c: Likewise.
29006 * lib/csharpexec.h: Likewise.
29007 * lib/cycle-check.c: Likewise.
29008 * lib/cycle-check.h: Likewise.
29009 * lib/diacrit.c: Likewise.
29010 * lib/diacrit.h: Likewise.
29011 * lib/diffseq.h: Likewise.
29012 * lib/dirchownmod.c: Likewise.
29013 * lib/dirent.in.h: Likewise.
29014 * lib/dirfd.c: Likewise.
29015 * lib/dirfd.h: Likewise.
29016 * lib/dirname.c: Likewise.
29017 * lib/dirname.h: Likewise.
29018 * lib/dummy.c: Likewise.
29019 * lib/dup-safer.c: Likewise.
29020 * lib/dup2.c: Likewise.
29021 * lib/eealloc.h: Likewise.
29022 * lib/error.c: Likewise.
29023 * lib/error.h: Likewise.
29024 * lib/euidaccess.c: Likewise.
29025 * lib/exclude.c: Likewise.
29026 * lib/exclude.h: Likewise.
29027 * lib/execute.c: Likewise.
29028 * lib/execute.h: Likewise.
29029 * lib/exitfail.c: Likewise.
29030 * lib/exitfail.h: Likewise.
29031 * lib/expl.c: Likewise.
29032 * lib/fatal-signal.c: Likewise.
29033 * lib/fatal-signal.h: Likewise.
29034 * lib/fbufmode.c: Likewise.
29035 * lib/fbufmode.h: Likewise.
29036 * lib/fchdir.c: Likewise.
29037 * lib/fchmodat.c: Likewise.
29038 * lib/fchownat.c: Likewise.
29039 * lib/fcntl--.h: Likewise.
29040 * lib/fcntl-safer.h: Likewise.
29041 * lib/fcntl.in.h: Likewise.
29042 * lib/fd-safer.c: Likewise.
29043 * lib/fflush.c: Likewise.
29044 * lib/file-has-acl.c: Likewise.
29045 * lib/file-set.c: Likewise.
29046 * lib/file-type.c: Likewise.
29047 * lib/file-type.h: Likewise.
29048 * lib/fileblocks.c: Likewise.
29049 * lib/filemode.c: Likewise.
29050 * lib/filemode.h: Likewise.
29051 * lib/filename.h: Likewise.
29052 * lib/filenamecat.c: Likewise.
29053 * lib/filenamecat.h: Likewise.
29054 * lib/findprog.c: Likewise.
29055 * lib/findprog.h: Likewise.
29056 * lib/float.in.h: Likewise.
29057 * lib/floor.c: Likewise.
29058 * lib/floorf.c: Likewise.
29059 * lib/floorl.c: Likewise.
29060 * lib/fopen-safer.c: Likewise.
29061 * lib/fopen.c: Likewise.
29062 * lib/fpending.c: Likewise.
29063 * lib/fpending.h: Likewise.
29064 * lib/fprintf.c: Likewise.
29065 * lib/fprintftime.h: Likewise.
29066 * lib/fpucw.h: Likewise.
29067 * lib/fpurge.c: Likewise.
29068 * lib/fpurge.h: Likewise.
29069 * lib/freadable.c: Likewise.
29070 * lib/freadable.h: Likewise.
29071 * lib/freadahead.c: Likewise.
29072 * lib/freadahead.h: Likewise.
29073 * lib/freading.c: Likewise.
29074 * lib/freading.h: Likewise.
29075 * lib/free.c: Likewise.
29076 * lib/freopen.c: Likewise.
29077 * lib/frexp.c: Likewise.
29078 * lib/frexpl.c: Likewise.
29079 * lib/fseek.c: Likewise.
29080 * lib/fseterr.c: Likewise.
29081 * lib/fseterr.h: Likewise.
29082 * lib/fstatat.c: Likewise.
29083 * lib/fstrcmp.c: Likewise.
29084 * lib/fstrcmp.h: Likewise.
29085 * lib/fsusage.c: Likewise.
29086 * lib/fsusage.h: Likewise.
29087 * lib/ftell.c: Likewise.
29088 * lib/ftello.c: Likewise.
29089 * lib/fts-cycle.c: Likewise.
29090 * lib/fts.c: Likewise.
29091 * lib/fts_.h: Likewise.
29092 * lib/full-read.c: Likewise.
29093 * lib/full-read.h: Likewise.
29094 * lib/full-write.c: Likewise.
29095 * lib/full-write.h: Likewise.
29096 * lib/fwritable.c: Likewise.
29097 * lib/fwritable.h: Likewise.
29098 * lib/fwriteerror.c: Likewise.
29099 * lib/fwriteerror.h: Likewise.
29100 * lib/fwriting.c: Likewise.
29101 * lib/fwriting.h: Likewise.
29102 * lib/gcd.c: Likewise.
29103 * lib/gcd.h: Likewise.
29104 * lib/getcwd.c: Likewise.
29105 * lib/getdate.h: Likewise.
29106 * lib/getdate.y: Likewise.
29107 * lib/getdomainname.c: Likewise.
29108 * lib/getdomainname.h: Likewise.
29109 * lib/getgroups.c: Likewise.
29110 * lib/gethostname.c: Likewise.
29111 * lib/gethrxtime.c: Likewise.
29112 * lib/gethrxtime.h: Likewise.
29113 * lib/getloadavg.c: Likewise.
29114 * lib/getndelim2.c: Likewise.
29115 * lib/getndelim2.h: Likewise.
29116 * lib/getnline.c: Likewise.
29117 * lib/getnline.h: Likewise.
29118 * lib/getopt.c: Likewise.
29119 * lib/getopt.in.h: Likewise.
29120 * lib/getopt1.c: Likewise.
29121 * lib/getopt_int.h: Likewise.
29122 * lib/getpagesize.h: Likewise.
29123 * lib/getsubopt.c: Likewise.
29124 * lib/gettime.c: Likewise.
29125 * lib/getugroups.c: Likewise.
29126 * lib/getugroups.h: Likewise.
29127 * lib/getusershell.c: Likewise.
29128 * lib/gl_anyavltree_list1.h: Likewise.
29129 * lib/gl_anyavltree_list2.h: Likewise.
29130 * lib/gl_anyhash_list1.h: Likewise.
29131 * lib/gl_anyhash_list2.h: Likewise.
29132 * lib/gl_anylinked_list1.h: Likewise.
29133 * lib/gl_anylinked_list2.h: Likewise.
29134 * lib/gl_anyrbtree_list1.h: Likewise.
29135 * lib/gl_anyrbtree_list2.h: Likewise.
29136 * lib/gl_anytree_list1.h: Likewise.
29137 * lib/gl_anytree_list2.h: Likewise.
29138 * lib/gl_anytree_oset.h: Likewise.
29139 * lib/gl_anytreehash_list1.h: Likewise.
29140 * lib/gl_anytreehash_list2.h: Likewise.
29141 * lib/gl_array_list.c: Likewise.
29142 * lib/gl_array_list.h: Likewise.
29143 * lib/gl_array_oset.c: Likewise.
29144 * lib/gl_array_oset.h: Likewise.
29145 * lib/gl_avltree_list.c: Likewise.
29146 * lib/gl_avltree_list.h: Likewise.
29147 * lib/gl_avltree_oset.c: Likewise.
29148 * lib/gl_avltree_oset.h: Likewise.
29149 * lib/gl_avltreehash_list.c: Likewise.
29150 * lib/gl_avltreehash_list.h: Likewise.
29151 * lib/gl_carray_list.c: Likewise.
29152 * lib/gl_carray_list.h: Likewise.
29153 * lib/gl_linked_list.c: Likewise.
29154 * lib/gl_linked_list.h: Likewise.
29155 * lib/gl_linkedhash_list.c: Likewise.
29156 * lib/gl_linkedhash_list.h: Likewise.
29157 * lib/gl_list.c: Likewise.
29158 * lib/gl_list.h: Likewise.
29159 * lib/gl_oset.c: Likewise.
29160 * lib/gl_oset.h: Likewise.
29161 * lib/gl_rbtree_list.c: Likewise.
29162 * lib/gl_rbtree_list.h: Likewise.
29163 * lib/gl_rbtree_oset.c: Likewise.
29164 * lib/gl_rbtree_oset.h: Likewise.
29165 * lib/gl_rbtreehash_list.c: Likewise.
29166 * lib/gl_rbtreehash_list.h: Likewise.
29167 * lib/gl_sublist.c: Likewise.
29168 * lib/gl_sublist.h: Likewise.
29169 * lib/group-member.c: Likewise.
29170 * lib/group-member.h: Likewise.
29171 * lib/hard-locale.c: Likewise.
29172 * lib/hard-locale.h: Likewise.
29173 * lib/hash-pjw.c: Likewise.
29174 * lib/hash-pjw.h: Likewise.
29175 * lib/hash-triple.c: Likewise.
29176 * lib/hash.c: Likewise.
29177 * lib/hash.h: Likewise.
29178 * lib/human.c: Likewise.
29179 * lib/human.h: Likewise.
29180 * lib/i-ring.c: Likewise.
29181 * lib/i-ring.h: Likewise.
29182 * lib/idcache.c: Likewise.
29183 * lib/imaxabs.c: Likewise.
29184 * lib/imaxdiv.c: Likewise.
29185 * lib/inet_pton.c: Likewise.
29186 * lib/inet_pton.h: Likewise.
29187 * lib/intprops.h: Likewise.
29188 * lib/inttostr.c: Likewise.
29189 * lib/inttostr.h: Likewise.
29190 * lib/inttypes.in.h: Likewise.
29191 * lib/isapipe.c: Likewise.
29192 * lib/isdir.c: Likewise.
29193 * lib/isnan.c: Likewise.
29194 * lib/isnan.h: Likewise.
29195 * lib/isnanf.c: Likewise.
29196 * lib/isnanf.h: Likewise.
29197 * lib/isnanl-nolibm.h: Likewise.
29198 * lib/isnanl.c: Likewise.
29199 * lib/isnanl.h: Likewise.
29200 * lib/javacomp.c: Likewise.
29201 * lib/javacomp.h: Likewise.
29202 * lib/javaexec.c: Likewise.
29203 * lib/javaexec.h: Likewise.
29204 * lib/javaversion.c: Likewise.
29205 * lib/javaversion.h: Likewise.
29206 * lib/javaversion.java: Likewise.
29207 * lib/lbrkprop.h: Likewise.
29208 * lib/lchmod.h: Likewise.
29209 * lib/lchown.c: Likewise.
29210 * lib/ldexpl.c: Likewise.
29211 * lib/linebreak.c: Likewise.
29212 * lib/linebreak.h: Likewise.
29213 * lib/linebuffer.c: Likewise.
29214 * lib/linebuffer.h: Likewise.
29215 * lib/locale.in.h: Likewise.
29216 * lib/logl.c: Likewise.
29217 * lib/long-options.c: Likewise.
29218 * lib/long-options.h: Likewise.
29219 * lib/lstat.c: Likewise.
29220 * lib/lstat.h: Likewise.
29221 * lib/math.in.h: Likewise.
29222 * lib/mbchar.c: Likewise.
29223 * lib/mbchar.h: Likewise.
29224 * lib/mbfile.h: Likewise.
29225 * lib/mbiter.h: Likewise.
29226 * lib/mbscasecmp.c: Likewise.
29227 * lib/mbscasestr.c: Likewise.
29228 * lib/mbschr.c: Likewise.
29229 * lib/mbscspn.c: Likewise.
29230 * lib/mbslen.c: Likewise.
29231 * lib/mbsncasecmp.c: Likewise.
29232 * lib/mbsnlen.c: Likewise.
29233 * lib/mbspbrk.c: Likewise.
29234 * lib/mbspcasecmp.c: Likewise.
29235 * lib/mbsrchr.c: Likewise.
29236 * lib/mbssep.c: Likewise.
29237 * lib/mbsspn.c: Likewise.
29238 * lib/mbsstr.c: Likewise.
29239 * lib/mbstok_r.c: Likewise.
29240 * lib/mbswidth.c: Likewise.
29241 * lib/mbswidth.h: Likewise.
29242 * lib/mbuiter.h: Likewise.
29243 * lib/memcasecmp.c: Likewise.
29244 * lib/memcasecmp.h: Likewise.
29245 * lib/memchr.c: Likewise.
29246 * lib/memcmp.c: Likewise.
29247 * lib/memcoll.c: Likewise.
29248 * lib/memcoll.h: Likewise.
29249 * lib/memcpy.c: Likewise.
29250 * lib/memrchr.c: Likewise.
29251 * lib/mkancesdirs.c: Likewise.
29252 * lib/mkdir-p.c: Likewise.
29253 * lib/mkdir-p.h: Likewise.
29254 * lib/mkdir.c: Likewise.
29255 * lib/mkdirat.c: Likewise.
29256 * lib/mkdtemp.c: Likewise.
29257 * lib/mkstemp-safer.c: Likewise.
29258 * lib/mkstemp.c: Likewise.
29259 * lib/modechange.c: Likewise.
29260 * lib/modechange.h: Likewise.
29261 * lib/mountlist.c: Likewise.
29262 * lib/mountlist.h: Likewise.
29263 * lib/mpsort.c: Likewise.
29264 * lib/nanosleep.c: Likewise.
29265 * lib/obstack.c: Likewise.
29266 * lib/obstack.h: Likewise.
29267 * lib/open-safer.c: Likewise.
29268 * lib/open.c: Likewise.
29269 * lib/openat-die.c: Likewise.
29270 * lib/openat-priv.h: Likewise.
29271 * lib/openat-proc.c: Likewise.
29272 * lib/openat.c: Likewise.
29273 * lib/openat.h: Likewise.
29274 * lib/pagealign_alloc.c: Likewise.
29275 * lib/pagealign_alloc.h: Likewise.
29276 * lib/physmem.c: Likewise.
29277 * lib/physmem.h: Likewise.
29278 * lib/pipe-safer.c: Likewise.
29279 * lib/pipe.c: Likewise.
29280 * lib/pipe.h: Likewise.
29281 * lib/posixtm.c: Likewise.
29282 * lib/posixtm.h: Likewise.
29283 * lib/posixver.c: Likewise.
29284 * lib/printf-frexp.c: Likewise.
29285 * lib/printf-frexp.h: Likewise.
29286 * lib/printf-frexpl.c: Likewise.
29287 * lib/printf-frexpl.h: Likewise.
29288 * lib/printf.c: Likewise.
29289 * lib/progname.c: Likewise.
29290 * lib/progname.h: Likewise.
29291 * lib/progreloc.c: Likewise.
29292 * lib/putenv.c: Likewise.
29293 * lib/quote.c: Likewise.
29294 * lib/quote.h: Likewise.
29295 * lib/quotearg.c: Likewise.
29296 * lib/quotearg.h: Likewise.
29297 * lib/raise.c: Likewise.
29298 * lib/readline.c: Likewise.
29299 * lib/readline.h: Likewise.
29300 * lib/readlink.c: Likewise.
29301 * lib/readtokens.c: Likewise.
29302 * lib/readtokens.h: Likewise.
29303 * lib/readtokens0.c: Likewise.
29304 * lib/readtokens0.h: Likewise.
29305 * lib/readutmp.c: Likewise.
29306 * lib/readutmp.h: Likewise.
29307 * lib/realloc.c: Likewise.
29308 * lib/relocwrapper.c: Likewise.
29309 * lib/rename-dest-slash.c: Likewise.
29310 * lib/rename.c: Likewise.
29311 * lib/rmdir.c: Likewise.
29312 * lib/rpmatch.c: Likewise.
29313 * lib/safe-read.c: Likewise.
29314 * lib/safe-read.h: Likewise.
29315 * lib/safe-write.c: Likewise.
29316 * lib/safe-write.h: Likewise.
29317 * lib/same-inode.h: Likewise.
29318 * lib/same.c: Likewise.
29319 * lib/same.h: Likewise.
29320 * lib/save-cwd.c: Likewise.
29321 * lib/save-cwd.h: Likewise.
29322 * lib/savedir.c: Likewise.
29323 * lib/savedir.h: Likewise.
29324 * lib/savewd.c: Likewise.
29325 * lib/savewd.h: Likewise.
29326 * lib/search.in.h: Likewise.
29327 * lib/setenv.c: Likewise.
29328 * lib/setenv.h: Likewise.
29329 * lib/settime.c: Likewise.
29330 * lib/sh-quote.c: Likewise.
29331 * lib/sh-quote.h: Likewise.
29332 * lib/sig2str.c: Likewise.
29333 * lib/sig2str.h: Likewise.
29334 * lib/signal.in.h: Likewise.
29335 * lib/signbitd.c: Likewise.
29336 * lib/signbitf.c: Likewise.
29337 * lib/signbitl.c: Likewise.
29338 * lib/sigprocmask.c: Likewise.
29339 * lib/sincosl.c: Likewise.
29340 * lib/sleep.c: Likewise.
29341 * lib/sprintf.c: Likewise.
29342 * lib/sqrtl.c: Likewise.
29343 * lib/stat-time.h: Likewise.
29344 * lib/stdio--.h: Likewise.
29345 * lib/stdio-safer.h: Likewise.
29346 * lib/stdlib--.h: Likewise.
29347 * lib/stdlib-safer.h: Likewise.
29348 * lib/stdlib.in.h: Likewise.
29349 * lib/stpcpy.c: Likewise.
29350 * lib/stpncpy.c: Likewise.
29351 * lib/strchrnul.c: Likewise.
29352 * lib/strcspn.c: Likewise.
29353 * lib/strerror.c: Likewise.
29354 * lib/strftime.c: Likewise.
29355 * lib/strftime.h: Likewise.
29356 * lib/striconveh.c: Likewise.
29357 * lib/striconveh.h: Likewise.
29358 * lib/striconveha.c: Likewise.
29359 * lib/striconveha.h: Likewise.
29360 * lib/stripslash.c: Likewise.
29361 * lib/strnlen1.c: Likewise.
29362 * lib/strnlen1.h: Likewise.
29363 * lib/strtod.c: Likewise.
29364 * lib/strtoimax.c: Likewise.
29365 * lib/strtok_r.c: Likewise.
29366 * lib/strtol.c: Likewise.
29367 * lib/strtoll.c: Likewise.
29368 * lib/strtoul.c: Likewise.
29369 * lib/strtoull.c: Likewise.
29370 * lib/sysexits.in.h: Likewise.
29371 * lib/tempname.c: Likewise.
29372 * lib/tempname.h: Likewise.
29373 * lib/timespec.h: Likewise.
29374 * lib/tls.c: Likewise.
29375 * lib/tls.h: Likewise.
29376 * lib/tmpdir.c: Likewise.
29377 * lib/tmpdir.h: Likewise.
29378 * lib/tmpfile-safer.c: Likewise.
29379 * lib/tmpfile.c: Likewise.
29380 * lib/trigl.c: Likewise.
29381 * lib/trigl.h: Likewise.
29382 * lib/trim.c: Likewise.
29383 * lib/trim.h: Likewise.
29384 * lib/trunc.c: Likewise.
29385 * lib/truncf.c: Likewise.
29386 * lib/truncl.c: Likewise.
29387 * lib/tsearch.c: Likewise.
29388 * lib/unicodeio.c: Likewise.
29389 * lib/unicodeio.h: Likewise.
29390 * lib/unistd--.h: Likewise.
29391 * lib/unistd-safer.h: Likewise.
29392 * lib/unistdio/ulc-fprintf.c: Likewise.
29393 * lib/unistdio/ulc-vfprintf.c: Likewise.
29394 * lib/unlinkdir.c: Likewise.
29395 * lib/unlinkdir.h: Likewise.
29396 * lib/unlocked-io.h: Likewise.
29397 * lib/unsetenv.c: Likewise.
29398 * lib/userspec.c: Likewise.
29399 * lib/utime.c: Likewise.
29400 * lib/utimecmp.c: Likewise.
29401 * lib/utimecmp.h: Likewise.
29402 * lib/utimens.c: Likewise.
29403 * lib/verify.h: Likewise.
29404 * lib/verror.c: Likewise.
29405 * lib/verror.h: Likewise.
29406 * lib/version-etc-fsf.c: Likewise.
29407 * lib/version-etc.c: Likewise.
29408 * lib/version-etc.h: Likewise.
29409 * lib/vfprintf.c: Likewise.
29410 * lib/vprintf.c: Likewise.
29411 * lib/vsprintf.c: Likewise.
29412 * lib/w32spawn.h: Likewise.
29413 * lib/wait-process.c: Likewise.
29414 * lib/wait-process.h: Likewise.
29415 * lib/wcwidth.c: Likewise.
29416 * lib/write-any-file.c: Likewise.
29417 * lib/xalloc-die.c: Likewise.
29418 * lib/xalloc.h: Likewise.
29419 * lib/xasprintf.c: Likewise.
29420 * lib/xgetcwd.c: Likewise.
29421 * lib/xgetcwd.h: Likewise.
29422 * lib/xgetdomainname.c: Likewise.
29423 * lib/xgetdomainname.h: Likewise.
29424 * lib/xgethostname.c: Likewise.
29425 * lib/xmalloc.c: Likewise.
29426 * lib/xmalloca.c: Likewise.
29427 * lib/xmalloca.h: Likewise.
29428 * lib/xmemcoll.c: Likewise.
29429 * lib/xnanosleep.c: Likewise.
29430 * lib/xreadlink.c: Likewise.
29431 * lib/xreadlink.h: Likewise.
29432 * lib/xsetenv.c: Likewise.
29433 * lib/xsetenv.h: Likewise.
29434 * lib/xstriconv.c: Likewise.
29435 * lib/xstriconv.h: Likewise.
29436 * lib/xstrndup.c: Likewise.
29437 * lib/xstrndup.h: Likewise.
29438 * lib/xstrtod.c: Likewise.
29439 * lib/xstrtod.h: Likewise.
29440 * lib/xstrtol-error.c: Likewise.
29441 * lib/xstrtol.c: Likewise.
29442 * lib/xstrtol.h: Likewise.
29443 * lib/xtime.h: Likewise.
29444 * lib/xvasprintf.c: Likewise.
29445 * lib/xvasprintf.h: Likewise.
29446 * lib/yesno.c: Likewise.
29447 * lib/yesno.h: Likewise.
29448 * posix-modules: Likewise.
29449 * tests/test-alloca-opt.c: Likewise.
29450 * tests/test-arcfour.c: Likewise.
29451 * tests/test-arctwo.c: Likewise.
29452 * tests/test-argmatch.c: Likewise.
29453 * tests/test-argp-2.sh: Likewise.
29454 * tests/test-argp.c: Likewise.
29455 * tests/test-arpa_inet.c: Likewise.
29456 * tests/test-array_list.c: Likewise.
29457 * tests/test-array_oset.c: Likewise.
29458 * tests/test-atexit.c: Likewise.
29459 * tests/test-avltree_list.c: Likewise.
29460 * tests/test-avltree_oset.c: Likewise.
29461 * tests/test-avltreehash_list.c: Likewise.
29462 * tests/test-base64.c: Likewise.
29463 * tests/test-binary-io.c: Likewise.
29464 * tests/test-byteswap.c: Likewise.
29465 * tests/test-c-ctype.c: Likewise.
29466 * tests/test-c-strcasecmp.c: Likewise.
29467 * tests/test-c-strcasestr.c: Likewise.
29468 * tests/test-c-strncasecmp.c: Likewise.
29469 * tests/test-c-strstr.c: Likewise.
29470 * tests/test-canonicalize-lgpl.c: Likewise.
29471 * tests/test-canonicalize.c: Likewise.
29472 * tests/test-carray_list.c: Likewise.
29473 * tests/test-ceilf.c: Likewise.
29474 * tests/test-ceill.c: Likewise.
29475 * tests/test-count-one-bits.c: Likewise.
29476 * tests/test-crc.c: Likewise.
29477 * tests/test-dirname.c: Likewise.
29478 * tests/test-fbufmode.c: Likewise.
29479 * tests/test-fcntl.c: Likewise.
29480 * tests/test-fflush.c: Likewise.
29481 * tests/test-floorf.c: Likewise.
29482 * tests/test-floorl.c: Likewise.
29483 * tests/test-fopen.c: Likewise.
29484 * tests/test-fprintf-posix.c: Likewise.
29485 * tests/test-fprintf-posix.h: Likewise.
29486 * tests/test-fpurge.c: Likewise.
29487 * tests/test-freadable.c: Likewise.
29488 * tests/test-freadahead.c: Likewise.
29489 * tests/test-freading.c: Likewise.
29490 * tests/test-freopen.c: Likewise.
29491 * tests/test-frexp.c: Likewise.
29492 * tests/test-frexpl.c: Likewise.
29493 * tests/test-fseek.c: Likewise.
29494 * tests/test-fseeko.c: Likewise.
29495 * tests/test-fseterr.c: Likewise.
29496 * tests/test-fstrcmp.c: Likewise.
29497 * tests/test-ftell.c: Likewise.
29498 * tests/test-ftello.c: Likewise.
29499 * tests/test-fwritable.c: Likewise.
29500 * tests/test-fwriting.c: Likewise.
29501 * tests/test-getaddrinfo.c: Likewise.
29502 * tests/test-getpass.c: Likewise.
29503 * tests/test-gettimeofday.c: Likewise.
29504 * tests/test-hmac-md5.c: Likewise.
29505 * tests/test-hmac-sha1.c: Likewise.
29506 * tests/test-iconv.c: Likewise.
29507 * tests/test-iconvme.c: Likewise.
29508 * tests/test-inttypes.c: Likewise.
29509 * tests/test-isnan.c: Likewise.
29510 * tests/test-isnanf.c: Likewise.
29511 * tests/test-isnanl-nolibm.c: Likewise.
29512 * tests/test-isnanl.c: Likewise.
29513 * tests/test-isnanl.h: Likewise.
29514 * tests/test-ldexpl.c: Likewise.
29515 * tests/test-linked_list.c: Likewise.
29516 * tests/test-linkedhash_list.c: Likewise.
29517 * tests/test-locale.c: Likewise.
29518 * tests/test-localename.c: Likewise.
29519 * tests/test-lock.c: Likewise.
29520 * tests/test-lseek.c: Likewise.
29521 * tests/test-malloca.c: Likewise.
29522 * tests/test-math.c: Likewise.
29523 * tests/test-mbscasecmp.c: Likewise.
29524 * tests/test-mbscasestr1.c: Likewise.
29525 * tests/test-mbscasestr2.c: Likewise.
29526 * tests/test-mbscasestr3.c: Likewise.
29527 * tests/test-mbscasestr4.c: Likewise.
29528 * tests/test-mbschr.c: Likewise.
29529 * tests/test-mbscspn.c: Likewise.
29530 * tests/test-mbsncasecmp.c: Likewise.
29531 * tests/test-mbspbrk.c: Likewise.
29532 * tests/test-mbspcasecmp.c: Likewise.
29533 * tests/test-mbsrchr.c: Likewise.
29534 * tests/test-mbsspn.c: Likewise.
29535 * tests/test-mbsstr1.c: Likewise.
29536 * tests/test-mbsstr2.c: Likewise.
29537 * tests/test-mbsstr3.c: Likewise.
29538 * tests/test-md5.c: Likewise.
29539 * tests/test-memmem.c: Likewise.
29540 * tests/test-netinet_in.c: Likewise.
29541 * tests/test-open.c: Likewise.
29542 * tests/test-printf-frexp.c: Likewise.
29543 * tests/test-printf-frexpl.c: Likewise.
29544 * tests/test-printf-posix.c: Likewise.
29545 * tests/test-printf-posix.h: Likewise.
29546 * tests/test-rbtree_list.c: Likewise.
29547 * tests/test-rbtree_oset.c: Likewise.
29548 * tests/test-rbtreehash_list.c: Likewise.
29549 * tests/test-read-file.c: Likewise.
29550 * tests/test-rijndael.c: Likewise.
29551 * tests/test-search.c: Likewise.
29552 * tests/test-signbit.c: Likewise.
29553 * tests/test-sleep.c: Likewise.
29554 * tests/test-snprintf-posix.c: Likewise.
29555 * tests/test-snprintf-posix.h: Likewise.
29556 * tests/test-snprintf.c: Likewise.
29557 * tests/test-sprintf-posix.c: Likewise.
29558 * tests/test-sprintf-posix.h: Likewise.
29559 * tests/test-stat-time.c: Likewise.
29560 * tests/test-stdbool.c: Likewise.
29561 * tests/test-stdint.c: Likewise.
29562 * tests/test-stdio.c: Likewise.
29563 * tests/test-stdlib.c: Likewise.
29564 * tests/test-stpncpy.c: Likewise.
29565 * tests/test-strcasestr.c: Likewise.
29566 * tests/test-striconv.c: Likewise.
29567 * tests/test-striconveh.c: Likewise.
29568 * tests/test-striconveha.c: Likewise.
29569 * tests/test-string.c: Likewise.
29570 * tests/test-sys_select.c: Likewise.
29571 * tests/test-sys_socket.c: Likewise.
29572 * tests/test-sys_stat.c: Likewise.
29573 * tests/test-sys_time.c: Likewise.
29574 * tests/test-sysexits.c: Likewise.
29575 * tests/test-time.c: Likewise.
29576 * tests/test-tls.c: Likewise.
29577 * tests/test-trunc.c: Likewise.
29578 * tests/test-truncf.c: Likewise.
29579 * tests/test-truncl.c: Likewise.
29580 * tests/test-unistd.c: Likewise.
29581 * tests/test-vasnprintf-posix.c: Likewise.
29582 * tests/test-vasnprintf-posix2.c: Likewise.
29583 * tests/test-vasnprintf.c: Likewise.
29584 * tests/test-vasprintf-posix.c: Likewise.
29585 * tests/test-vasprintf.c: Likewise.
29586 * tests/test-verify.c: Likewise.
29587 * tests/test-vfprintf-posix.c: Likewise.
29588 * tests/test-vprintf-posix.c: Likewise.
29589 * tests/test-vsnprintf-posix.c: Likewise.
29590 * tests/test-vsnprintf.c: Likewise.
29591 * tests/test-vsprintf-posix.c: Likewise.
29592 * tests/test-wchar.c: Likewise.
29593 * tests/test-wctype.c: Likewise.
29594 * tests/test-wcwidth.c: Likewise.
29595 * tests/test-xstrtol.c: Likewise.
29596 * tests/test-xvasprintf.c: Likewise.
29597 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29598 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29599 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29600 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29601 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29602 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29603 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29604 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29605 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29606 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29607 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29608 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29609 * tests/uniname/test-uninames.c: Likewise.
29610 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29611 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29612 * tests/unistdio/test-u16-printf1.h: Likewise.
29613 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29614 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29615 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29616 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29617 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29618 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29619 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29620 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29621 * tests/unistdio/test-u32-printf1.h: Likewise.
29622 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29623 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29624 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29625 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29626 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29627 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29628 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29629 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29630 * tests/unistdio/test-u8-printf1.h: Likewise.
29631 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29632 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29633 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29634 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29635 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29636 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29637 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29638 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29639 * tests/unistdio/test-ulc-printf1.h: Likewise.
29640 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29641 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29642 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29643 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29644 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29645 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29646 * tests/uniwidth/test-u16-strwidth.c: Likewise.
29647 * tests/uniwidth/test-u16-width.c: Likewise.
29648 * tests/uniwidth/test-u32-strwidth.c: Likewise.
29649 * tests/uniwidth/test-u32-width.c: Likewise.
29650 * tests/uniwidth/test-u8-strwidth.c: Likewise.
29651 * tests/uniwidth/test-u8-width.c: Likewise.
29652 * tests/uniwidth/test-uc_width.c: Likewise.
29653 * config/srclist-update: Likewise.
29654 (fixlicense): Update to GPLv3+.
29656 Change copyright notice from LGPLv2.1+ to LGPLv3+.
29657 * tests/test-tsearch.c: Change copyright notice.
29659 Change copyright notice from LGPLv2.0+ to LGPLv3+.
29660 * lib/c-strcaseeq.h: Change copyright notice.
29661 * lib/streq.h: Likewise.
29662 * lib/uniconv.h: Likewise.
29663 * lib/uniconv/u-conv-from-enc.h: Likewise.
29664 * lib/uniconv/u-conv-to-enc.h: Likewise.
29665 * lib/uniconv/u-strconv-from-enc.h: Likewise.
29666 * lib/uniconv/u-strconv-to-enc.h: Likewise.
29667 * lib/uniconv/u16-conv-from-enc.c: Likewise.
29668 * lib/uniconv/u16-conv-to-enc.c: Likewise.
29669 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29670 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29671 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29672 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29673 * lib/uniconv/u32-conv-from-enc.c: Likewise.
29674 * lib/uniconv/u32-conv-to-enc.c: Likewise.
29675 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29676 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29677 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29678 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29679 * lib/uniconv/u8-conv-from-enc.c: Likewise.
29680 * lib/uniconv/u8-conv-to-enc.c: Likewise.
29681 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29682 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29683 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29684 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29685 * lib/uniname.h: Likewise.
29686 * lib/uniname/uniname.c: Likewise.
29687 * lib/unistdio.h: Likewise.
29688 * lib/unistdio/u-asnprintf.h: Likewise.
29689 * lib/unistdio/u-asprintf.h: Likewise.
29690 * lib/unistdio/u-printf-args.c: Likewise.
29691 * lib/unistdio/u-printf-args.h: Likewise.
29692 * lib/unistdio/u-printf-parse.h: Likewise.
29693 * lib/unistdio/u-snprintf.h: Likewise.
29694 * lib/unistdio/u-sprintf.h: Likewise.
29695 * lib/unistdio/u-vasprintf.h: Likewise.
29696 * lib/unistdio/u-vsnprintf.h: Likewise.
29697 * lib/unistdio/u-vsprintf.h: Likewise.
29698 * lib/unistdio/u16-asnprintf.c: Likewise.
29699 * lib/unistdio/u16-asprintf.c: Likewise.
29700 * lib/unistdio/u16-printf-parse.c: Likewise.
29701 * lib/unistdio/u16-snprintf.c: Likewise.
29702 * lib/unistdio/u16-sprintf.c: Likewise.
29703 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29704 * lib/unistdio/u16-u16-asprintf.c: Likewise.
29705 * lib/unistdio/u16-u16-snprintf.c: Likewise.
29706 * lib/unistdio/u16-u16-sprintf.c: Likewise.
29707 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29708 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29709 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29710 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29711 * lib/unistdio/u16-vasnprintf.c: Likewise.
29712 * lib/unistdio/u16-vasprintf.c: Likewise.
29713 * lib/unistdio/u16-vsnprintf.c: Likewise.
29714 * lib/unistdio/u16-vsprintf.c: Likewise.
29715 * lib/unistdio/u32-asnprintf.c: Likewise.
29716 * lib/unistdio/u32-asprintf.c: Likewise.
29717 * lib/unistdio/u32-printf-parse.c: Likewise.
29718 * lib/unistdio/u32-snprintf.c: Likewise.
29719 * lib/unistdio/u32-sprintf.c: Likewise.
29720 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29721 * lib/unistdio/u32-u32-asprintf.c: Likewise.
29722 * lib/unistdio/u32-u32-snprintf.c: Likewise.
29723 * lib/unistdio/u32-u32-sprintf.c: Likewise.
29724 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29725 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29726 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29727 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29728 * lib/unistdio/u32-vasnprintf.c: Likewise.
29729 * lib/unistdio/u32-vasprintf.c: Likewise.
29730 * lib/unistdio/u32-vsnprintf.c: Likewise.
29731 * lib/unistdio/u32-vsprintf.c: Likewise.
29732 * lib/unistdio/u8-asnprintf.c: Likewise.
29733 * lib/unistdio/u8-asprintf.c: Likewise.
29734 * lib/unistdio/u8-printf-parse.c: Likewise.
29735 * lib/unistdio/u8-snprintf.c: Likewise.
29736 * lib/unistdio/u8-sprintf.c: Likewise.
29737 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29738 * lib/unistdio/u8-u8-asprintf.c: Likewise.
29739 * lib/unistdio/u8-u8-snprintf.c: Likewise.
29740 * lib/unistdio/u8-u8-sprintf.c: Likewise.
29741 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29742 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29743 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29744 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29745 * lib/unistdio/u8-vasnprintf.c: Likewise.
29746 * lib/unistdio/u8-vasprintf.c: Likewise.
29747 * lib/unistdio/u8-vsnprintf.c: Likewise.
29748 * lib/unistdio/u8-vsprintf.c: Likewise.
29749 * lib/unistdio/ulc-asnprintf.c: Likewise.
29750 * lib/unistdio/ulc-asprintf.c: Likewise.
29751 * lib/unistdio/ulc-printf-parse.c: Likewise.
29752 * lib/unistdio/ulc-snprintf.c: Likewise.
29753 * lib/unistdio/ulc-sprintf.c: Likewise.
29754 * lib/unistdio/ulc-vasnprintf.c: Likewise.
29755 * lib/unistdio/ulc-vasprintf.c: Likewise.
29756 * lib/unistdio/ulc-vsnprintf.c: Likewise.
29757 * lib/unistdio/ulc-vsprintf.c: Likewise.
29758 * lib/unistr.h: Likewise.
29759 * lib/unistr/u-cpy-alloc.h: Likewise.
29760 * lib/unistr/u-cpy.h: Likewise.
29761 * lib/unistr/u-endswith.h: Likewise.
29762 * lib/unistr/u-move.h: Likewise.
29763 * lib/unistr/u-set.h: Likewise.
29764 * lib/unistr/u-startswith.h: Likewise.
29765 * lib/unistr/u-stpcpy.h: Likewise.
29766 * lib/unistr/u-stpncpy.h: Likewise.
29767 * lib/unistr/u-strcat.h: Likewise.
29768 * lib/unistr/u-strcpy.h: Likewise.
29769 * lib/unistr/u-strcspn.h: Likewise.
29770 * lib/unistr/u-strdup.h: Likewise.
29771 * lib/unistr/u-strlen.h: Likewise.
29772 * lib/unistr/u-strncat.h: Likewise.
29773 * lib/unistr/u-strncpy.h: Likewise.
29774 * lib/unistr/u-strnlen.h: Likewise.
29775 * lib/unistr/u-strpbrk.h: Likewise.
29776 * lib/unistr/u-strspn.h: Likewise.
29777 * lib/unistr/u-strstr.h: Likewise.
29778 * lib/unistr/u-strtok.h: Likewise.
29779 * lib/unistr/u16-check.c: Likewise.
29780 * lib/unistr/u16-chr.c: Likewise.
29781 * lib/unistr/u16-cmp.c: Likewise.
29782 * lib/unistr/u16-cpy-alloc.c: Likewise.
29783 * lib/unistr/u16-cpy.c: Likewise.
29784 * lib/unistr/u16-endswith.c: Likewise.
29785 * lib/unistr/u16-mblen.c: Likewise.
29786 * lib/unistr/u16-mbsnlen.c: Likewise.
29787 * lib/unistr/u16-mbtouc-aux.c: Likewise.
29788 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29789 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29790 * lib/unistr/u16-mbtouc.c: Likewise.
29791 * lib/unistr/u16-mbtoucr.c: Likewise.
29792 * lib/unistr/u16-move.c: Likewise.
29793 * lib/unistr/u16-next.c: Likewise.
29794 * lib/unistr/u16-prev.c: Likewise.
29795 * lib/unistr/u16-set.c: Likewise.
29796 * lib/unistr/u16-startswith.c: Likewise.
29797 * lib/unistr/u16-stpcpy.c: Likewise.
29798 * lib/unistr/u16-stpncpy.c: Likewise.
29799 * lib/unistr/u16-strcat.c: Likewise.
29800 * lib/unistr/u16-strchr.c: Likewise.
29801 * lib/unistr/u16-strcmp.c: Likewise.
29802 * lib/unistr/u16-strcpy.c: Likewise.
29803 * lib/unistr/u16-strcspn.c: Likewise.
29804 * lib/unistr/u16-strdup.c: Likewise.
29805 * lib/unistr/u16-strlen.c: Likewise.
29806 * lib/unistr/u16-strmblen.c: Likewise.
29807 * lib/unistr/u16-strmbtouc.c: Likewise.
29808 * lib/unistr/u16-strncat.c: Likewise.
29809 * lib/unistr/u16-strncmp.c: Likewise.
29810 * lib/unistr/u16-strncpy.c: Likewise.
29811 * lib/unistr/u16-strnlen.c: Likewise.
29812 * lib/unistr/u16-strpbrk.c: Likewise.
29813 * lib/unistr/u16-strrchr.c: Likewise.
29814 * lib/unistr/u16-strspn.c: Likewise.
29815 * lib/unistr/u16-strstr.c: Likewise.
29816 * lib/unistr/u16-strtok.c: Likewise.
29817 * lib/unistr/u16-to-u32.c: Likewise.
29818 * lib/unistr/u16-to-u8.c: Likewise.
29819 * lib/unistr/u16-uctomb-aux.c: Likewise.
29820 * lib/unistr/u16-uctomb.c: Likewise.
29821 * lib/unistr/u32-check.c: Likewise.
29822 * lib/unistr/u32-chr.c: Likewise.
29823 * lib/unistr/u32-cmp.c: Likewise.
29824 * lib/unistr/u32-cpy-alloc.c: Likewise.
29825 * lib/unistr/u32-cpy.c: Likewise.
29826 * lib/unistr/u32-endswith.c: Likewise.
29827 * lib/unistr/u32-mblen.c: Likewise.
29828 * lib/unistr/u32-mbsnlen.c: Likewise.
29829 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29830 * lib/unistr/u32-mbtouc.c: Likewise.
29831 * lib/unistr/u32-mbtoucr.c: Likewise.
29832 * lib/unistr/u32-move.c: Likewise.
29833 * lib/unistr/u32-next.c: Likewise.
29834 * lib/unistr/u32-prev.c: Likewise.
29835 * lib/unistr/u32-set.c: Likewise.
29836 * lib/unistr/u32-startswith.c: Likewise.
29837 * lib/unistr/u32-stpcpy.c: Likewise.
29838 * lib/unistr/u32-stpncpy.c: Likewise.
29839 * lib/unistr/u32-strcat.c: Likewise.
29840 * lib/unistr/u32-strchr.c: Likewise.
29841 * lib/unistr/u32-strcmp.c: Likewise.
29842 * lib/unistr/u32-strcpy.c: Likewise.
29843 * lib/unistr/u32-strcspn.c: Likewise.
29844 * lib/unistr/u32-strdup.c: Likewise.
29845 * lib/unistr/u32-strlen.c: Likewise.
29846 * lib/unistr/u32-strmblen.c: Likewise.
29847 * lib/unistr/u32-strmbtouc.c: Likewise.
29848 * lib/unistr/u32-strncat.c: Likewise.
29849 * lib/unistr/u32-strncmp.c: Likewise.
29850 * lib/unistr/u32-strncpy.c: Likewise.
29851 * lib/unistr/u32-strnlen.c: Likewise.
29852 * lib/unistr/u32-strpbrk.c: Likewise.
29853 * lib/unistr/u32-strrchr.c: Likewise.
29854 * lib/unistr/u32-strspn.c: Likewise.
29855 * lib/unistr/u32-strstr.c: Likewise.
29856 * lib/unistr/u32-strtok.c: Likewise.
29857 * lib/unistr/u32-to-u16.c: Likewise.
29858 * lib/unistr/u32-to-u8.c: Likewise.
29859 * lib/unistr/u32-uctomb.c: Likewise.
29860 * lib/unistr/u8-check.c: Likewise.
29861 * lib/unistr/u8-chr.c: Likewise.
29862 * lib/unistr/u8-cmp.c: Likewise.
29863 * lib/unistr/u8-cpy-alloc.c: Likewise.
29864 * lib/unistr/u8-cpy.c: Likewise.
29865 * lib/unistr/u8-endswith.c: Likewise.
29866 * lib/unistr/u8-mblen.c: Likewise.
29867 * lib/unistr/u8-mbsnlen.c: Likewise.
29868 * lib/unistr/u8-mbtouc-aux.c: Likewise.
29869 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29870 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29871 * lib/unistr/u8-mbtouc.c: Likewise.
29872 * lib/unistr/u8-mbtoucr.c: Likewise.
29873 * lib/unistr/u8-move.c: Likewise.
29874 * lib/unistr/u8-next.c: Likewise.
29875 * lib/unistr/u8-prev.c: Likewise.
29876 * lib/unistr/u8-set.c: Likewise.
29877 * lib/unistr/u8-startswith.c: Likewise.
29878 * lib/unistr/u8-stpcpy.c: Likewise.
29879 * lib/unistr/u8-stpncpy.c: Likewise.
29880 * lib/unistr/u8-strcat.c: Likewise.
29881 * lib/unistr/u8-strchr.c: Likewise.
29882 * lib/unistr/u8-strcmp.c: Likewise.
29883 * lib/unistr/u8-strcpy.c: Likewise.
29884 * lib/unistr/u8-strcspn.c: Likewise.
29885 * lib/unistr/u8-strdup.c: Likewise.
29886 * lib/unistr/u8-strlen.c: Likewise.
29887 * lib/unistr/u8-strmblen.c: Likewise.
29888 * lib/unistr/u8-strmbtouc.c: Likewise.
29889 * lib/unistr/u8-strncat.c: Likewise.
29890 * lib/unistr/u8-strncmp.c: Likewise.
29891 * lib/unistr/u8-strncpy.c: Likewise.
29892 * lib/unistr/u8-strnlen.c: Likewise.
29893 * lib/unistr/u8-strpbrk.c: Likewise.
29894 * lib/unistr/u8-strrchr.c: Likewise.
29895 * lib/unistr/u8-strspn.c: Likewise.
29896 * lib/unistr/u8-strstr.c: Likewise.
29897 * lib/unistr/u8-strtok.c: Likewise.
29898 * lib/unistr/u8-to-u16.c: Likewise.
29899 * lib/unistr/u8-to-u32.c: Likewise.
29900 * lib/unistr/u8-uctomb-aux.c: Likewise.
29901 * lib/unistr/u8-uctomb.c: Likewise.
29902 * lib/unitypes.h: Likewise.
29903 * lib/uniwidth.h: Likewise.
29904 * lib/uniwidth/cjk.h: Likewise.
29905 * lib/uniwidth/u16-strwidth.c: Likewise.
29906 * lib/uniwidth/u16-width.c: Likewise.
29907 * lib/uniwidth/u32-strwidth.c: Likewise.
29908 * lib/uniwidth/u32-width.c: Likewise.
29909 * lib/uniwidth/u8-strwidth.c: Likewise.
29910 * lib/uniwidth/u8-width.c: Likewise.
29911 * lib/uniwidth/width.c: Likewise.
29913 2007-10-07 Bruno Haible <bruno@clisp.org>
29915 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29916 The file is still under LGPL (see modules/inttypes).
29918 2007-10-06 Bruno Haible <bruno@clisp.org>
29920 * modules/trunc (Dependencies): Add 'extensions'.
29921 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29922 Reported by Ben Pfaff <blp@gnu.org>.
29924 2007-10-06 Bruno Haible <bruno@clisp.org>
29926 * modules/freopen-tests: New file.
29927 * tests/test-freopen.c: New file.
29929 * modules/fopen-tests: New file.
29930 * tests/test-fopen.c: New file.
29932 * modules/fopen: New file.
29933 * lib/fopen.c: New file.
29934 * m4/fopen.m4: New file.
29935 * modules/freopen: New file.
29936 * lib/freopen.c: New file.
29937 * m4/freopen.m4: New file.
29938 * lib/stdio.in.h (fopen, freopen): New declarations.
29939 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29940 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29941 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29942 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29943 * doc/functions/fopen.texi: Mention the 'fopen' module.
29944 * doc/functions/freopen.texi: Mention the 'freopen' module.
29946 2007-10-06 Bruno Haible <bruno@clisp.org>
29948 * modules/open-tests: New file.
29949 * tests/test-open.c: New file.
29951 * modules/open: New file.
29952 * lib/open.c: New file.
29953 * m4/open.m4: New file.
29954 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29956 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29957 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29959 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29960 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29962 * doc/functions/open.texi: Mention the 'open' module.
29964 2007-10-04 Bruno Haible <bruno@clisp.org>
29966 * modules/ceill-tests: New file.
29967 * tests/test-ceill.c: New file.
29969 * modules/ceill: New file.
29970 * lib/ceill.c: Replace entire file.
29971 * m4/ceill.m4: New file.
29972 * lib/math.in.h (ceill): Replace declaration.
29973 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29974 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29975 * doc/functions/ceill.texi: Mention the 'ceill' module.
29976 * modules/mathl (Files): Remove lib/ceill.c.
29977 (Depends-on): Add ceill.
29979 2007-10-04 Bruno Haible <bruno@clisp.org>
29981 * modules/ceilf-tests: New file.
29982 * tests/test-ceilf.c: New file.
29984 * modules/ceilf: New file.
29985 * lib/ceil.c: New file.
29986 * lib/ceilf.c: New file.
29987 * m4/ceilf.m4: New file.
29988 * lib/math.in.h (ceilf): New declaration.
29989 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29991 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29993 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29995 2007-10-04 Bruno Haible <bruno@clisp.org>
29997 * modules/floorl-tests: New file.
29998 * tests/test-floorl.c: New file.
30000 * modules/floorl: New file.
30001 * lib/floorl.c: Replace entire file.
30002 * m4/floorl.m4: New file.
30003 * lib/math.in.h (floorl): Replace declaration.
30004 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30005 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30006 * doc/functions/floorl.texi: Mention the 'floorl' module.
30007 * modules/mathl (Files): Remove lib/floorl.c.
30008 (Depends-on): Add floorl.
30010 2007-10-04 Bruno Haible <bruno@clisp.org>
30012 * modules/floorf-tests: New file.
30013 * tests/test-floorf.c: New file.
30015 * modules/floorf: New file.
30016 * lib/floor.c: New file.
30017 * lib/floorf.c: New file.
30018 * m4/floorf.m4: New file.
30019 * lib/math.in.h (floorf): New declaration.
30020 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30022 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30024 * doc/functions/floorf.texi: Mention the 'floorf' module.
30026 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30027 Bruno Haible <bruno@clisp.org>
30029 Advertise for the Git server instead of the CVS server.
30030 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30031 repository instead of the CVS one.
30032 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30033 about all VCS systems generically.
30034 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30036 2007-10-04 Bruno Haible <bruno@clisp.org>
30038 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30040 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30042 2007-10-04 Bruno Haible <bruno@clisp.org>
30044 * modules/truncl-tests: New file.
30045 * tests/test-truncl.c: New file.
30047 * modules/truncl: New file.
30048 * lib/truncl.c: New file.
30049 * m4/truncl.m4: New file.
30050 * lib/math.in.h (truncl): New declaration.
30051 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30053 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30055 * doc/functions/truncl.texi: Mention the 'truncl' module.
30057 2007-10-04 Bruno Haible <bruno@clisp.org>
30059 * modules/truncf-tests: New file.
30060 * tests/test-truncf.c: New file.
30062 * modules/truncf: New file.
30063 * lib/trunc.c: Make paramerizable through USE_* macros.
30064 * lib/truncf.c: New file.
30065 * m4/truncf.m4: New file.
30066 * lib/math.in.h (truncf): New declaration.
30067 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30069 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30071 * doc/functions/truncf.texi: Mention the 'truncf' module.
30073 2007-10-03 Bruno Haible <bruno@clisp.org>
30075 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30076 augmentation also for tests modules.
30077 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30078 * modules/atexit-tests (Makefile.am): Likewise.
30079 * modules/binary-io-tests (Makefile.am): Likewise.
30080 * modules/c-strcase-tests (Makefile.am): Likewise.
30081 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30082 * modules/canonicalize-tests (Makefile.am): Likewise.
30083 * modules/closein-tests (Makefile.am): Likewise.
30084 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30085 * modules/freadahead-tests (Makefile.am): Likewise.
30086 * modules/fseek-tests (Makefile.am): Likewise.
30087 * modules/fseeko-tests (Makefile.am): Likewise.
30088 * modules/ftell-tests (Makefile.am): Likewise.
30089 * modules/ftello-tests (Makefile.am): Likewise.
30090 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30091 * modules/isnanl-tests (Makefile.am): Likewise.
30092 * modules/lseek-tests (Makefile.am): Likewise.
30093 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30094 * modules/mbscasestr-tests (Makefile.am): Likewise.
30095 * modules/mbschr-tests (Makefile.am): Likewise.
30096 * modules/mbscspn-tests (Makefile.am): Likewise.
30097 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30098 * modules/mbspbrk-tests (Makefile.am): Likewise.
30099 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30100 * modules/mbsrchr-tests (Makefile.am): Likewise.
30101 * modules/mbsspn-tests (Makefile.am): Likewise.
30102 * modules/mbsstr-tests (Makefile.am): Likewise.
30103 * modules/printf-posix-tests (Makefile.am): Likewise.
30104 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30105 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30106 * modules/tsearch-tests (Makefile.am): Likewise.
30107 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30108 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30109 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30110 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30111 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30112 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30113 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30114 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30115 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30116 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30117 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30118 * modules/xstrtol-tests (Makefile.am): Likewise.
30119 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30120 * modules/yesno-tests (Makefile.am): Likewise.
30122 2007-10-03 Bruno Haible <bruno@clisp.org>
30124 * modules/trunc-tests: New file.
30125 * tests/test-trunc.c: New file.
30127 * modules/trunc: New file.
30128 * lib/trunc.c: New file.
30129 * m4/trunc.m4: New file.
30130 * lib/math.in.h (trunc): New declaration.
30131 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30133 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30135 * doc/functions/trunc.texi: Mention the 'trunc' module.
30137 2007-10-03 Bruno Haible <bruno@clisp.org>
30139 * tests/test-fpending.c: New file, mostly copied
30140 from coreutils/lib/t-fpending.c.
30141 * modules/fpending-tests: New file.
30143 2007-10-03 Bruno Haible <bruno@clisp.org>
30145 Port the stdio extensions to QNX (untested).
30146 * lib/fseterr.c (fseterr): Add support for QNX.
30147 * lib/fbufmode.c (fbufmode): Likewise.
30148 * lib/freadable.c (freadable): Likewise.
30149 * lib/fwritable.c (fwritable): Likewise.
30150 * lib/freading.c (freading): Likewise.
30151 * lib/fwriting.c (fwriting): Likewise.
30152 * lib/freadahead.c (freadahed): Likewise.
30153 * lib/fpurge.c (fpurge): Likewise.
30154 * lib/fseeko.c (rpl_fseeko): Likewise.
30156 2007-10-03 Bruno Haible <bruno@clisp.org>
30157 Jim Meyering <jim@meyering.net>
30158 Eric Blake <ebb9@byu.net>
30160 * doc/relocatable.texi: Use @command instead of @program.
30162 2007-10-02 Jim Meyering <jim@meyering.net>
30164 Perform one more "_.h" -> ".in.h" substitution.
30165 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30166 instead of unistd_.h here, too.
30168 2007-10-01 Bruno Haible <bruno@clisp.org>
30170 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30171 Needed for the alloca-opt module.
30173 2007-09-30 Bruno Haible <bruno@clisp.org>
30175 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30176 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30178 * lib/argz.in.h: Renamed from lib/argz_.h.
30179 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30180 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30181 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30183 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30184 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30186 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30187 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30189 * lib/float.in.h: Renamed from lib/float_.h.
30190 * modules/float (Files, Makefile.am): Use float.in.h instead of
30192 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30193 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30195 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30196 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30198 * lib/glob.in.h: Renamed from lib/glob_.h.
30199 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30200 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30201 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30203 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30204 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30206 * lib/locale.in.h: Renamed from lib/locale_.h.
30207 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30209 * lib/math.in.h: Renamed from lib/math_.h.
30210 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30211 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30212 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30213 of netinet_in_.h. Add dependency.
30214 * lib/poll.in.h: Renamed from lib/poll_.h.
30215 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30216 * lib/search.in.h: Renamed from lib/search_.h.
30217 * modules/search (Files, Makefile.am): Use search.in.h instead of
30219 * lib/signal.in.h: Renamed from lib/signal_.h.
30220 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30222 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30223 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30225 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30226 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30228 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30229 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30231 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30232 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30234 * lib/string.in.h: Renamed from lib/string_.h.
30235 * modules/string (Files, Makefile.am): Use string.in.h instead of
30237 * doc/gnulib-tool.texi (Initial import): Update.
30238 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30239 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30240 of sys_select_.h. Add dependency.
30241 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30242 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30244 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30245 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30247 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30248 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30250 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30251 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30253 * lib/time.in.h: Renamed from lib/time_.h.
30254 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30255 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30256 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30258 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30259 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30261 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30262 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30264 * build-aux/bootstrap (slurp): Update.
30265 * lib/.cppi-disable: Update.
30267 2007-09-30 Bruno Haible <bruno@clisp.org>
30269 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30272 2007-09-30 Bruno Haible <bruno@clisp.org>
30274 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30276 2007-09-29 Bruno Haible <bruno@clisp.org>
30278 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30280 2007-09-29 Bruno Haible <bruno@clisp.org>
30282 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30283 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30284 * build-aux/install-reloc: Compile also areadlink.c.
30285 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30287 2007-09-29 Bruno Haible <bruno@clisp.org>
30289 * gnulib-tool (func_emit_initmacro_done): Indentation.
30291 2007-09-29 Bruno Haible <bruno@clisp.org>
30293 * README: Add CVS checkout update instructions.
30294 Info from Bob Proulx <bob@proulx.com>.
30296 2007-09-28 Eric Blake <ebb9@byu.net>
30298 Provide move-if-change.
30299 * build-aux/move-if-change: New file, based on best practice
30300 rather than any canonical upstream location.
30302 2007-09-28 Jim Meyering <jim@meyering.net>
30304 Fix canonicalize loop-detection corner case.
30305 Do not attempt to stat the symlink values stored via seen_triple.
30306 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30307 on linux-2.6.18, (but not 2.6.22).
30308 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30309 triple_compare. The former compares dev,ino,filename, while the latter
30310 would actually stat dirname(filename) when dev and ino were equal.
30311 * lib/hash-triple.c: Install <string.h>.
30313 (triple_compare_ino_str): New function.
30314 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30316 2007-09-28 Eric Blake <ebb9@byu.net>
30318 Enforce that AC_REPLACE_FUNCS files exist.
30319 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30320 override check for typos.
30322 Fix test-closein on Solaris 10.
30323 * tests/test-closein.c (main): Don't assume stdin can be inherited
30324 closed on all systems.
30325 * tests/test-closein.sh: Likewise.
30326 Reported by Piotr Tarnowski.
30328 2007-09-28 Jim Meyering <jim@meyering.net>
30330 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30332 2007-09-27 Jim Meyering <jim@meyering.net>
30334 canonicalize: Avoid a false-positive cycle failure.
30335 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30336 Sort. Remove cycle-check.
30337 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30339 (seen_triple): New function.
30340 (canonicalize_filename_mode): Use it instead of cycle-check.
30341 * tests/test-canonicalize.c: Add a test for this bug.
30342 * tests/test-canonicalize.sh: Set up and run the test.
30344 New module, file-set, from coreutils.
30345 * modules/file-set: Define it.
30346 * lib/file-set.c, lib/file-set.h: Implement.
30348 New module, hash-triple, from coreutils.
30349 * modules/hash-triple: Define it.
30350 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30352 2007-09-25 Eric Blake <ebb9@byu.net>
30354 Fix strerror on Interix.
30355 * lib/string_.h (strerror): Declare replacement.
30356 * doc/functions/strerror.texi (strerror): Document the Interix
30358 * modules/string (Makefile.am): Support new hooks.
30359 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30360 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30361 gl_FUNC_STRERROR_SEPARATE.
30362 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30363 * lib/strerror.c (rpl_strerror): Provide replacement.
30364 * modules/strerror (Depends-on): Add string.
30365 (configure.ac): Detect use of module.
30366 * tests/test-strerror.c: New file.
30367 * modules/strerror-tests: New test module.
30368 * modules/argp (Depends-on): Add strerror.
30369 * modules/error (Depends-on): Likewise.
30370 Reported by Martin Koeppe.
30372 2007-09-24 Bruno Haible <bruno@clisp.org>
30374 * README: Update git instructions.
30376 2007-09-24 Eric Blake <ebb9@byu.net>
30378 Revert fpending breakage from 2007-09-08.
30379 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30382 2007-09-24 Jim Meyering <jim@meyering.net>
30384 filenamecat.c: Add a test.
30385 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30386 showing how the function works when DIR is the empty string.
30388 2007-09-21 Simon Josefsson <simon@josefsson.org>
30390 * tests/test-canonicalize.sh: Turn on executable bit.
30392 2007-09-19 Eric Blake <ebb9@byu.net>
30394 * README: Update CVS instructions.
30396 2007-09-18 Bruno Haible <bruno@clisp.org>
30398 * modules/areadlink: New file.
30399 * lib/areadlink.h (areadlink): New declaration.
30400 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30402 2007-09-17 Jim Meyering <jim@meyering.net>
30404 * lib/savewd.c (ESTALE) [!defined]: Define.
30405 Reported to be required on Interix by Martin Koeppe.
30407 2007-09-17 Bruno Haible <bruno@clisp.org>
30409 * gnulib-tool (func_version): Use $version.
30411 2007-09-16 Bruno Haible <bruno@clisp.org>
30413 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30414 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30415 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30416 Reported by Greg Schafer <gschafer@zip.com.au>.
30418 2007-09-15 Bruno Haible <bruno@clisp.org>
30420 * gnulib-tool (sed): Try a little harder to make bash understand the
30422 Reported by Bruce Korb <bruce.korb@gmail.com>.
30424 2007-09-13 Eric Blake <ebb9@byu.net>
30426 * ChangeLog: Remove conflict markers.
30428 2007-09-13 Simon Josefsson <simon@josefsson.org>
30430 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30431 Reported by Bruno Haible <bruno@clisp.org>.
30433 2007-09-12 Bruno Haible <bruno@clisp.org>
30435 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30436 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30439 2007-09-12 Eric Blake <ebb9@byu.net>
30441 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30442 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30443 Autoconf definition.
30444 * modules/euidaccess (Depends-on): Add extensions, for
30445 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30446 * modules/fnmatch (Depends-on): Likewise.
30447 * modules/getaddrinfo (Depends-on): Likewise.
30448 * modules/getdelim (Depends-on): Likewise.
30449 * modules/getline (Depends-on): Likewise.
30450 * modules/getsubopt (Depends-on): Likewise.
30451 * modules/gettext (Depends-on): Likewise.
30452 * modules/group-member (Depends-on): Likewise.
30453 * modules/mbchar (Depends-on): Likewise.
30454 * modules/memmem (Depends-on): Likewise.
30455 * modules/mempcpy (Depends-on): Likewise.
30456 * modules/memrchr (Depends-on): Likewise.
30457 * modules/pagealign_alloc (Depends-on): Likewise.
30458 * modules/readutmp (Depends-on): Likewise.
30459 * modules/stpcpy (Depends-on): Likewise.
30460 * modules/stpncpy (Depends-on): Likewise.
30461 * modules/strchrnul (Depends-on): Likewise.
30462 * modules/strndup (Depends-on): Likewise.
30463 * modules/strsep (Depends-on): Likewise.
30464 * modules/strverscmp (Depends-on): Likewise.
30465 * modules/vasprintf (Depends-on): Likewise.
30466 * modules/wcwidth (Depends-on): Likewise.
30467 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30468 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30469 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30470 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30471 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30472 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30473 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30474 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30475 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30476 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30477 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30478 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30479 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30480 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30481 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30482 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30483 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30484 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30485 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30486 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30487 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30488 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30489 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30490 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30491 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30492 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30493 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30494 so that lock.m4 can be used in gettext without extensions module.
30496 2007-09-11 Bruno Haible <bruno@clisp.org>
30498 * m4/isc-posix.m4: Remove file.
30499 Suggested by Eric Blake.
30501 2007-09-11 Eric Blake <ebb9@byu.net>
30503 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30505 2007-09-10 Bruno Haible <bruno@clisp.org>
30507 * posix-modules: Fix typo in error message.
30508 Reported by Matt <mkraai@beckman.com>.
30510 2007-09-09 Bruno Haible <bruno@clisp.org>
30512 * doc/functions/getdelim.texi: Update list of platforms lacking the
30514 * doc/functions/getline.texi: Likewise.
30516 2007-09-09 Jim Meyering <jim@meyering.net>
30518 * lib/hash.c (hash_initialize): Detect calloc failure.
30519 Reported by Bruno Haible.
30521 2007-09-09 Bruno Haible <bruno@clisp.org>
30523 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30524 malloc or realloc fails.
30526 2007-09-09 Bruno Haible <bruno@clisp.org>
30528 * modules/getcwd (Depends-on): Add malloc-posix.
30529 * modules/glob (Depends-on): Likewise.
30530 * modules/putenv (Depends-on): Likewise.
30531 * modules/strdup (Depends-on): Likewise.
30532 * modules/getdelim (Depends-on): Add realloc-posix.
30533 * modules/read-file (Depends-on): Likewise.
30535 2007-09-09 Bruno Haible <bruno@clisp.org>
30537 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30538 (gl_FUNC_MALLOC_POSIX): Require it.
30539 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30540 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30541 * modules/realloc (Files): Add m4/malloc.m4.
30542 * modules/calloc (Files): Likewise.
30544 2007-09-09 Bruno Haible <bruno@clisp.org>
30546 * modules/malloc-posix: New file.
30547 * modules/malloc (Depends-on): Add malloc-posix.
30548 * lib/malloc.c: Include errno.h.
30549 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30550 and a POSIX-compatible malloc into a single function. Set ENOMEM
30551 when returning NULL.
30552 * m4/malloc.m4: New file.
30553 * doc/functions/malloc.texi: Mention the malloc-posix module.
30554 * lib/stdlib_.h (malloc): New declaration.
30555 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30556 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30557 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30558 and HAVE_MALLOC_POSIX.
30560 2007-09-09 Bruno Haible <bruno@clisp.org>
30562 * modules/realloc-posix: New file.
30563 * modules/realloc (Depends-on): Add realloc-posix.
30564 * lib/realloc.c: Include errno.h.
30565 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30566 and a POSIX-compatible realloc into a single function. Set ENOMEM
30567 when returning NULL.
30568 * m4/realloc.m4: New file.
30569 * doc/functions/realloc.texi: Mention the realloc-posix module.
30570 * lib/stdlib_.h (realloc): New declaration.
30571 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30572 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30573 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30574 and HAVE_REALLOC_POSIX.
30576 2007-09-09 Bruno Haible <bruno@clisp.org>
30578 * modules/calloc-posix: New file.
30579 * modules/calloc (Depends-on): Add calloc-posix.
30580 * lib/calloc.c: Include errno.h.
30581 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30582 and a POSIX-compatible calloc into a single function. Set ENOMEM
30583 when returning NULL.
30584 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30585 * doc/functions/calloc.texi: Mention the calloc-posix module.
30586 * lib/stdlib_.h (calloc): New declaration.
30587 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30588 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30589 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30590 and HAVE_CALLOC_POSIX.
30592 2007-09-09 Bruno Haible <bruno@clisp.org>
30594 Allow for modules to show an arbitrary notice.
30595 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30596 * gnulib-tool: New option --extract-notice.
30597 (func_usage): Document it.
30598 (sed_extract_prog): Update.
30599 (func_get_notice): New function.
30600 (func_modules_notice): New function.
30601 (func_import, func_create_testdir): Invoke it.
30602 Suggested by Jim Meyering.
30604 2007-09-09 Bruno Haible <bruno@clisp.org>
30606 * gnulib-tool: New options --verbose, --quiet.
30607 (func_usage): Document them.
30608 (verbose): New variable.
30609 (func_execute_command): New function.
30610 (func_import): Don't show the module list and the file list if
30612 (func_create_testdir): Likewise. Use func_execute_command.
30613 (func_create_megatestdir): Use func_execute_command.
30615 2007-09-08 Bruno Haible <bruno@clisp.org>
30617 * gnulib-tool (func_import): Prefer rsync over wget when available,
30618 for fetching the PO files.
30620 2007-09-08 Bruno Haible <bruno@clisp.org>
30622 * posix-modules: New file. Portions copied from gnulib-tool.
30623 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30625 2007-09-08 Jim Meyering <jim@meyering.net>
30627 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30628 * lib/fpending.h: Rename from __fpending.h.
30629 * lib/fpending.c: Rename from __fpending.c.
30630 Include "fpending.h", not "__fpending.h".
30631 * lib/__fpending.h, lib/__fpending.c: Remove files.
30632 * modules/fpending (Files): Reflect new file names.
30633 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30635 2007-09-08 Bruno Haible <bruno@clisp.org>
30637 * m4/inttypes-h.m4: Remove stub file.
30639 2007-09-07 Simon Josefsson <simon@josefsson.org>
30641 * doc/headers/stdint.texi: Discuss #include_next issue.
30643 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
30645 * build-aux/bootstrap: Remove obsolete comment about wget --help.
30647 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30649 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30652 2007-09-03 Jim Meyering <jim@meyering.net>
30654 New module: git-version-gen.
30655 * modules/git-version-gen: New file.
30657 Import changes from coreutils for bootstrap script.
30659 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30661 bootstrap: uses rsync to download the .po files
30662 * build-aux/bootstrap (po_download_command_format): New global.
30663 (download_po_files): Use rsync.
30664 (update_po_files): Don't remove .po files after download,
30665 so future rsync runs can take advantage of the copies.
30667 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30669 Solve the unnecessary-.po-file-regeneration problem once and for all.
30670 * build-aux/bootstrap (download_po_files): New function, renamed from
30671 get_translations. Now, downloads, but doesn't update LINGUAS.
30672 (update_po_files): New function.
30674 bootstrap: Ignore more.
30675 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30676 uniwidth to e.g., lib/.gitignore.
30677 (slurp): Handle the sys_stat_.h -> sys mapping, too.
30679 * build-aux/bootstrap: New setting: vc_ignore.
30680 (insert_sorted_if_absent): Create $file if absent.
30681 Adapt to new, possibly empty, list: $vc_ignore.
30683 bootstrap: generate more ignorable names
30684 * build-aux/bootstrap (slurp): When generating ignorable names,
30685 also map .sin to .sed, .gperf to .c, and .y to .c.
30687 2007-09-03 Jim Meyering <jim@meyering.net>
30689 * build-aux/git-version-gen: New file, from coreutils. For details, see
30690 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30692 2007-09-02 Bruno Haible <bruno@clisp.org>
30694 Fix mis-recognition of 'mcs' on QNX 6.
30695 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30696 output contains the string "Mono".
30697 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30698 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30700 2007-09-01 Bruno Haible <bruno@clisp.org>
30702 Fix collision between uniwidth/* and linebreak modules.
30703 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30704 u32_width): Remove declarations.
30705 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30706 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30707 streq3, streq2, streq1, streq0): Remove functions.
30708 (STREQ): Remove macro.
30709 (is_cjk_encoding): Remove function.
30710 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30711 (uc_width, u8_width, u16_width, u32_width): Remove functions.
30712 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30713 * NEWS: Document the change.
30715 2007-09-01 Bruno Haible <bruno@clisp.org>
30717 * lib/streq.h: Add double-inclusion guard.
30719 2007-09-01 Karl Berry <karl@gnu.org>
30721 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30723 2007-08-28 Jim Meyering <jim@meyering.net>
30725 Rename mreadlink_with_size to areadlink_with_size.
30726 * NEWS: Document the change.
30727 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30728 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30729 * lib/mreadlink.h: Rename this to...
30730 * lib/areadlink.h: ...this.
30731 * modules/mreadlink-with-size: Rename this to...
30732 * modules/areadlink-with-size: ...this.
30733 * lib/canonicalize.c: Reflect the renaming.
30734 * modules/canonicalize: Likewise.
30736 2007-08-26 Bruno Haible <bruno@clisp.org>
30738 * gnulib-tool (func_import): When deciding which files to remove,
30739 consider also dangling symbolic links.
30740 Reported by Eric Blake.
30742 2007-08-26 Bruno Haible <bruno@clisp.org>
30744 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30746 2007-08-23 Simon Josefsson <simon@josefsson.org>
30748 * lib/readline.c: Don't include getline.h, the prototype is now
30751 2007-08-23 Jim Meyering <jim@meyering.net>
30754 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30755 around the funlockfile call, since funlockfile never sets errno.
30756 Don't set errno upon failed realloc.
30758 2007-08-22 Eric Blake <ebb9@byu.net>
30761 * lib/getdelim.c (getdelim): Revert regression that required *n to
30762 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
30763 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30764 getdelim, rather than whether implementation is missing.
30765 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30766 * lib/stdio_.h (getline): Also declare if replacement is
30768 * doc/functions/getdelim.texi: New file.
30769 * doc/functions/getline.texi: Likewise.
30770 * doc/gnulib.texi (Function Substitutes): Add new files.
30771 Reported by Bruno Haible.
30773 2007-08-22 Ludovic Courtès <ludo@gnu.org>
30775 * users.txt: Add Guile.
30777 2007-08-22 Eric Blake <ebb9@byu.net>
30779 * tests/test-getdelim.c (main): Use remove, not unlink.
30780 * tests/test-getline.c (main): Likewise.
30782 Move getline and getdelim into stdio.h, per POSIX 200x.
30783 * modules/getline (Files): Remove getline.h.
30784 (Depends-on): Add stdio.
30785 (configure.ac): Add module indicator.
30786 * modules/getdelim (Files): Remove getdelim.h.
30787 (Depends-on): Add stdio.
30788 (configure.ac): Add module indicator.
30789 * modules/stdio (Makefile.am): Work with new indicators.
30790 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30791 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30792 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30793 * lib/getdelim.h: Delete.
30794 * lib/getline.h: Delete.
30795 * lib/stdio_.h (getdelim, getline): Declare.
30796 * modules/getdelim-tests: New module.
30797 * modules/getline-tests: Likewise.
30798 * tests/test-getdelim.c: New file.
30799 * tests/test-getline.c: Likewise.
30800 * NEWS: Document the change.
30801 * lib/getline.c: Update choice of header.
30802 * lib/csharpcomp.c: Likewise.
30803 * lib/getpass.c: Likewise.
30804 * lib/javacomp.c: Likewise.
30805 * lib/javaversion.c: Likewise.
30806 * lib/yesno.c: Likewise.
30807 * lib/getdelim.c: Likewise.
30808 (getdelim): Set errno on failure, and avoid memory leak.
30810 2007-08-19 Bruno Haible <bruno@clisp.org>
30812 * modules/closein (Depends-on): Add freadahead.
30813 * lib/closein.c: Include freadahead.h.
30814 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30817 2007-08-19 Bruno Haible <bruno@clisp.org>
30819 * modules/freadahead-tests: New file.
30820 * tests/test-freadahead.sh: New file.
30821 * tests/test-freadahead.c: New file.
30823 * modules/freadahead: New file.
30824 * lib/freadahead.h: New file.
30825 * lib/freadahead.c: New file.
30826 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30827 fbufmode, fpurge, freadable, fwritable.
30829 2007-08-19 Eric Blake <ebb9@byu.net>
30831 Test yesno in combination with closein.
30832 * lib/yesno.c (yesno): Document use of stdin.
30833 * modules/yesno-tests (Files): New module.
30834 * tests/test-yesno.c (main): New file.
30835 * tests/test-yesno.sh: Likewise.
30837 2007-08-19 Bruno Haible <bruno@clisp.org>
30839 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30840 * lib/fseeko.c (rpl_fseeko): Likewise.
30841 * lib/fseterr.c (fseterr): Likewise.
30843 2007-08-19 Bruno Haible <bruno@clisp.org>
30845 * tests/test-lseek.c (main): Disable a test for BeOS.
30846 * doc/functions/lseek.texi: Document the BeOS bug.
30848 2007-08-19 Bruno Haible <bruno@clisp.org>
30849 Eric Blake <ebb9@byu.net>
30851 * lib/lseek.c: Include <sys/stat.h>.
30852 (rpl_lseek): Add workaround code also for Unix platforms.
30854 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30855 * doc/functions/lseek.texi: Document BeOS definiency.
30857 2007-08-18 Bruno Haible <bruno@clisp.org>
30859 * modules/fstrcmp-tests: New file.
30860 * tests/test-fstrcmp.c: New file.
30862 2007-08-18 Bruno Haible <bruno@clisp.org>
30864 * modules/fstrcmp: New file, from GNU gettext with modifications.
30865 * lib/fstrcmp.h: New file, from GNU gettext.
30866 * lib/fstrcmp.c: New file, from GNU gettext.
30867 * MODULES.html.sh (String handling): Add fstrcmp.
30869 2007-08-18 Bruno Haible <bruno@clisp.org>
30871 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30873 (diag, compareseq): Remove const from the ctxt argument.
30874 (USE_HEURISTIC): Undefine at the end.
30876 2007-08-18 Jim Meyering <jim@meyering.net>
30878 New file: lib/idcache.h
30879 * NEWS: Mention the addition.
30880 * modules/idcache (Files): Add lib/idcache.h
30881 * lib/idcache.c: Include "idcache.h".
30882 Don't include <sys/types.h>.
30883 Add a FIXME comment.
30884 Move file-scoped "static" declarations to the top.
30885 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
30887 2007-08-17 Bruno Haible <bruno@clisp.org>
30888 and Paul Eggert <eggert@cs.ucla.edu>
30890 * MODULES.html.sh: Add diffseq.
30891 * modules/diffseq: New file.
30892 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30893 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30895 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
30897 Import changes from coreutils for bootstrap script.
30899 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
30901 * build-aux/bootstrap (slurp): Work even in environments where
30902 "ls" defaults to "ls -A". Put in a FIXME, though, since the
30903 current code does not slurp files whose names start with ".", and
30904 this looks like it might be a troublesome area.
30906 2007-07-11 Jim Meyering <jim@meyering.net>
30908 If there's a GPL vN copyright comment, require that N == 3.
30910 2007-07-08 Jim Meyering <jim@meyering.net>
30912 Run the coreutils-specific code only if tests/Makefile.am.in exists.
30913 * build-aux/bootstrap (mam_template): Move definition out of loop.
30915 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30917 * build-aux/bootstrap (symlink_to_dir): Rename function from
30918 symlink_to_gnulib. Add a directory parameter. Update all
30920 (cp_mark_as_generated): Also check for -- and link to -- files in
30923 2007-07-08 Jim Meyering <jim@meyering.net>
30925 Adapt to deeper hierarchy in gnulib.
30926 * build-aux/bootstrap (symlink_to_dir): If the destination
30927 directory doesn't exist, create it. This is required at least for
30928 "lib/uniwidth/cjk.h".
30930 2007-05-15 Jim Meyering <jim@meyering.net>
30932 * build-aux/bootstrap: Now that generated Makefile.am files
30933 are no longer under version control, they must be created at
30936 2007-08-14 Ben Pfaff <blp@gnu.org>
30938 * lib/count-one-bits.h: Add comments. From Bruno Haible.
30940 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
30942 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30943 given the changes below.
30944 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
30945 even on hosts that have padding bits beyond the supported 64.
30947 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
30949 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30950 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30951 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
30953 (xstrtol_error): Remove.
30954 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30955 but with a different signature.
30956 (ATTRIBUTE_NORETURN, __attribute__): New macros.
30957 * lib/xstrtol-error.c: Include exitfail.h.
30958 (xstrtol_fatal): New function, with a different signature from the
30959 old xstrtol_error, so that the caller need not worry about passing
30960 in an exit status, or about storage management of the option argument.
30961 (xstrtol_error): Now a static function. Redo signature to
30962 implement xstrtol_fatal. Output the correct number of hyphens in
30963 front of the option so that the caller need not worry about
30964 storage management.
30966 (_): Remove; not used now.
30967 * modules/xstrtol: Depend on getopt.
30968 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30969 of old STRTOL_FATAL_ERROR macro.
30970 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30972 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30973 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30975 2007-08-08 Eric Blake <ebb9@byu.net>
30977 * lib/xstrtol-error.c: Add missing include.
30979 Move xstrtol messages into gnulib domain, when --pobase is used.
30980 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30981 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30982 * modules/xstrtol (Files): Distribute new file.
30983 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30984 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30985 * tests/test-xstrtol.c: ...into new file.
30986 * tests/test-xstrtoul.c: Also test xstrtoul.
30987 * tests/test-xstrtoimax.c: Also test xstrtoimax.
30988 * tests/test-xstrtoumax.c: Also test xstrtoumax.
30989 * tests/test-xstrtol.sh: Drive the tests.
30990 * tests/test-xstrtoimax.sh: Likewise.
30991 * tests/test-xstrtoumax.sh: Likewise.
30992 * modules/xstrtol-tests: New module.
30993 * modules/xstrtoimax-tests: Likewise.
30994 * modules/xstrtoumax-tests: Likewise.
30996 2007-08-08 Jim Meyering <jim@meyering.net>
30998 New function: mfile_name_concat.
30999 * lib/filenamecat.c (mfile_name_concat): New function, just like
31000 file_name_concat, but return NULL upon failure rather than exiting
31002 * lib/filenamecat.h: Declare it.
31004 2007-08-07 Bruno Haible <bruno@clisp.org>
31006 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31007 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31009 Reported by Eric Blake.
31011 2007-08-07 Simon Josefsson <simon@josefsson.org>
31013 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31014 * modules/crypto/arcfour (License): Likewise.
31015 * modules/crypto/des-tests (License): Likewise.
31016 * modules/crypto/gc-arctwo-tests (License): Likewise.
31017 * modules/crypto/gc-des-tests (License): Likewise.
31018 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31019 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31020 * modules/crypto/gc-md2-tests (License): Likewise.
31021 * modules/crypto/gc-md4-tests (License): Likewise.
31022 * modules/crypto/gc-md5-tests (License): Likewise.
31023 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31024 * modules/crypto/gc-rijndael-tests (License): Likewise.
31025 * modules/crypto/gc-sha1-tests (License): Likewise.
31026 * modules/crypto/gc-tests (License): Likewise.
31027 * modules/crypto/hmac-md5 (License): Likewise.
31028 * modules/crypto/hmac-sha1 (License): Likewise.
31029 * modules/crypto/md2-tests (License): Likewise.
31030 * modules/crypto/md4-tests (License): Likewise.
31031 * modules/crypto/md5 (License): Likewise.
31032 * modules/crypto/rijndael (License): Likewise.
31033 * modules/crypto/sha1 (License): Likewise.
31034 * modules/memxor (License): Likewise.
31036 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31037 and Bruno Haible <bruno@clisp.org>
31039 * NEWS: Describe interface changes to human, xstrtol.
31040 * lib/human.h: Include <xstrtol.h>.
31041 (human_options): Return enum strtol_error, not int. Remove
31042 bool arg; take int * instead.
31043 * lib/human.c: Don't include "gettext.h".
31044 (_): Remove; no longer used.
31045 Don't include <xstrtol.h>, since human.h does it.
31046 (human_options): Adjust to abovementioned interface changes.
31047 Do not report error to stderr; that's now the caller's
31049 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31051 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31052 Str, Argument_type_string. All uses changed. Put " argument"
31053 in diagnostics to make them clearer. Change wording of suffix
31054 message for clarity.
31055 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31056 Argument_type_string.
31057 (STRTOL_FATAL_WARN): Remove; no longer used.
31058 * modules/human (Depends-on): Remove gettext-h.
31060 2007-08-06 Simon Josefsson <simon@josefsson.org>
31062 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31064 2007-07-31 Bruno Haible <bruno@clisp.org>
31066 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31067 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31068 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31070 2007-07-31 Bruno Haible <bruno@clisp.org>
31072 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31073 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31075 2007-07-30 Bruno Haible <bruno@clisp.org>
31077 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31078 * modules/c-ctype (License): Likewise.
31079 * modules/c-strcase (License): Likewise.
31080 * modules/check-version (License): Likewise.
31081 * modules/iconv (License): Likewise.
31082 * modules/iconv_open (License): Likewise.
31083 * modules/read-file (License): Likewise.
31084 * modules/striconv (License): Likewise.
31085 * modules/strverscmp (License): Likewise.
31086 * modules/vasprintf (License): Likewise.
31087 * modules/crypto/des (License): Likewise.
31088 * modules/crypto/gc (License): Likewise.
31089 * modules/crypto/gc-arcfour (License): Likewise.
31090 * modules/crypto/gc-arctwo (License): Likewise.
31091 * modules/crypto/gc-des (License): Likewise.
31092 * modules/crypto/gc-hmac-md5 (License): Likewise.
31093 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31094 * modules/crypto/gc-md2 (License): Likewise.
31095 * modules/crypto/gc-md4 (License): Likewise.
31096 * modules/crypto/gc-md5 (License): Likewise.
31097 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31098 * modules/crypto/gc-random (License): Likewise.
31099 * modules/crypto/gc-rijndael (License): Likewise.
31100 * modules/crypto/gc-sha1 (License): Likewise.
31101 * modules/crypto/md2 (License): Likewise.
31102 * modules/crypto/md4 (License): Likewise.
31104 2007-07-30 Jim Meyering <jim@meyering.net>
31106 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31107 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31108 it has valid stat data. This bug would cause du not to count the
31109 sizes of inaccessible directories.
31110 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31111 in <http://bugzilla.redhat.com/250077>.
31113 2007-07-25 Peter O'Gorman <peter@pogma.com>
31114 Bruno Haible <bruno@clisp.org>
31116 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31117 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31118 #include_next, gives a diagnostic about it, but reports no error in
31120 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31122 2007-07-24 Ben Pfaff <blp@gnu.org>
31124 Improve name: "count-one-bits" is better than "popcount".
31125 * MODULES.html.sh: Update name.
31126 * lib/popcount.h: Renamed lib/count-one-bits.h.
31127 (popcount): Renamed count_one_bits.
31128 (popcountl): Renamed count_one_bits_l.
31129 (popcountll): Renamed count_one_bits_ll.
31130 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31131 * modules/popcount: Renamed module/count-one-bits.
31132 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31133 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31135 2007-07-23 Ben Pfaff <blp@gnu.org>
31137 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31138 better code generation, and add U to large constants to avoid
31139 warnings, in non-GCC case.
31140 Suggested by Bruno Haible.
31142 2007-07-23 Ben Pfaff <blp@gnu.org>
31144 * lib/popcount.h: Use verify_true instead of if...abort.
31145 * modules/popcount: Depend on verify module.
31146 Suggested by Jim Meyering.
31148 2007-07-23 Bruno Haible <bruno@clisp.org>
31150 * gnulib-tool (func_import): Create a .cvsignore file also when the
31151 directory is not yet in CVS but the toplevel directory is. When
31152 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31153 Reported by Karl Berry.
31155 2007-07-22 Ben Pfaff <blp@gnu.org>
31157 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31159 Suggested by Eric Blake.
31161 2007-07-22 Ben Pfaff <blp@gnu.org>
31163 New module: popcount.
31164 * MODULES.html.sh: Add popcount.
31165 * modules/popcount: New file.
31166 * modules/popcount-tests: New file.
31167 * tests/test-popcount.c: New file.
31168 * lib/popcount.h: New file.
31169 * m4/popcount.m4: New file.
31171 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31173 * build-aux/announce-gen: Update to GPLv3.
31175 * build-aux/config.guess: Update from config.
31177 2007-07-21 Bruno Haible <bruno@clisp.org>
31179 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31180 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31182 2007-07-20 Jim Meyering <jim@meyering.net>
31184 * check-module: Diagnose a self-dependency.
31186 2007-07-19 Bruno Haible <bruno@clisp.org>
31188 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31190 Reported by Eric Blake.
31192 2007-07-18 Bruno Haible <bruno@clisp.org>
31194 * gnulib-tool: New options --po-base, --po-domain.
31195 (func_usage): Document them.
31196 (pobase, po_domain): New variables.
31197 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31198 DEFAULT_TEXT_DOMAIN.
31199 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31200 (func_import): Consider pobase and po_domain. Create a po/ directory.
31201 (func_create_testdir): Set pobase and po_domain to empty.
31202 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31203 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31205 2007-07-18 Bruno Haible <bruno@clisp.org>
31207 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31208 EXTRA_DIST augmentation for files in build-aux/.
31210 2007-07-16 Bruno Haible <bruno@clisp.org>
31212 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31213 * modules/getdelim (License): Likewise.
31215 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31217 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31218 * modules/d-type (License): Likewise.
31219 * modules/extensions (License): Likewise.
31220 * modules/fnmatch (License): Likewise.
31221 * modules/fseeko (License): Likewise.
31222 * modules/getaddrinfo (License): Likewise.
31223 * modules/getline (License): Likewise.
31224 * modules/getlogin_r (License): Likewise.
31225 * modules/getpass (License): Likewise.
31226 * modules/gettimeofday (License): Likewise.
31227 * modules/glob (License): Likewise.
31228 * modules/inet_ntop (License): Likewise.
31229 * modules/malloc (License): Likewise.
31230 * modules/malloca (License): Likewise.
31231 * modules/memmem (License): Likewise.
31232 * modules/mempcpy (License): Likewise.
31233 * modules/memset (License): Likewise.
31234 * modules/minmax (License): Likewise.
31235 * modules/mktime (License): Likewise.
31236 * modules/netinet_in (License): Likewise.
31237 * modules/pathmax (License): Likewise.
31238 * modules/poll (License): Likewise.
31239 * modules/regex (License): Likewise.
31240 * modules/snprintf (License): Likewise.
31241 * modules/stdbool (License): Likewise.
31242 * modules/stdint (License): Likewise.
31243 * modules/stdio (License): Likewise.
31244 * modules/strcase (License): Likewise.
31245 * modules/strcasestr (License): Likewise.
31246 * modules/strdup (License): Likewise.
31247 * modules/string (License): Likewise.
31248 * modules/strndup (License): Likewise.
31249 * modules/strnlen (License): Likewise.
31250 * modules/strpbrk (License): Likewise.
31251 * modules/strptime (License): Likewise.
31252 * modules/strsep (License): Likewise.
31253 * modules/sys_select (License): Likewise.
31254 * modules/sys_socket (License): Likewise.
31255 * modules/sys_stat (License): Likewise.
31256 * modules/sys_time (License): Likewise.
31257 * modules/time (License): Likewise.
31258 * modules/time_r (License): Likewise.
31259 * modules/timegm (License): Likewise.
31260 * modules/unistd (License): Likewise.
31261 * modules/vsnprintf (License): Likewise.
31262 * modules/wctype (License): Likewise.
31264 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31266 * modules/argz (License): LGPLv2+.
31268 2007-07-15 Karl Berry <karl@gnu.org>
31270 * doc/gnulib.texi: revise node structure per new fdl.texi.
31272 2007-07-14 Bruno Haible <bruno@clisp.org>
31274 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31276 * lib/uniname/uninames.h: Regenerated.
31278 2007-07-14 Karl Berry <karl@gnu.org>
31280 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31281 omitting sectioning and index commands.
31283 2007-07-13 Bruno Haible <bruno@clisp.org>
31285 New gnulib-tool option --more-symlinks.
31286 * gnulib-tool (func_usage): Document --more-symlinks.
31287 (do_copyrights): New variable.
31288 Recognize option --more-symlinks.
31289 (func_import): Don't add a copyright notice transform to
31290 sed_transform_lib_file if do_copyrights is empty.
31292 2007-07-13 Bruno Haible <bruno@clisp.org>
31294 * lib/vasnprintf.c (decimal_point_char): Define also if
31295 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31296 && !NEED_PRINTF_DIRECTIVE_A.
31297 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31298 Gary V. Vaughan <gary@gnu.org>.
31300 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31302 * lib/inttypes_.h: Undo previous change, since it was fixed
31303 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31305 2007-07-13 Bruno Haible <bruno@clisp.org>
31307 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31308 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31310 2007-07-13 Jim Meyering <jim@meyering.net>
31312 df: Don't fail for Tru64's "file-on-file mount".
31313 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31314 so we fall through and use statfs instead. Details here:
31315 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31316 Reported by Albert Chin.
31318 2007-07-13 Bruno Haible <bruno@clisp.org>
31320 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31321 * modules/configmake (License): Likewise.
31322 * modules/gettext (License): Likewise.
31323 * modules/gettext-h (License): Likewise.
31324 * modules/include_next (License): Likewise.
31325 * modules/link-warning (License): Likewise.
31326 * modules/localcharset (License): Likewise.
31327 * modules/localename (License): Likewise.
31328 * modules/lock (License): Likewise.
31329 * modules/relocatable-lib-lgpl (License): Likewise.
31330 * modules/size_max (License): Likewise.
31331 * modules/vasnprintf (License): Likewise.
31332 * modules/wchar (License): Likewise.
31333 * modules/xsize (License): Likewise.
31335 2007-07-13 Bruno Haible <bruno@clisp.org>
31337 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31338 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31340 2007-07-12 Bruno Haible <bruno@clisp.org>
31342 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31343 in the modules files.
31345 2007-07-11 Karl Berry <karl@gnu.org>
31347 * MODULES.html.sh (func_module): use
31348 sed -e '\|^'"${includefile}"'$|d'
31349 instead of /.../d, to avoid errors on $includefile's containing /.
31351 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31353 * gnulib-tool (func_import): Avoid duplication of --avoid
31355 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31356 names to `_' in variable names.
31358 2007-07-10 Eric Blake <ebb9@byu.net>
31360 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31361 * NEWS: Document this change.
31363 2007-07-08 Bruno Haible <bruno@clisp.org>
31365 Update to Unicode 5.0.
31366 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31367 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31368 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31369 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31370 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31371 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31372 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31373 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31374 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31375 U+10A3F, U+1D242..U+1D244.
31376 (nonspacing_table_ind): Update.
31377 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31378 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31380 2007-07-08 Bruno Haible <bruno@clisp.org>
31382 Update to Unicode 5.0.
31383 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31384 code transform. Extend the name index field of unicode_name_to_code and
31385 unicode_code_to_name from 16 to 24 bits.
31386 * lib/uniname/uniname.c (unicode_character_name,
31387 unicode_name_character): Add the range 0x12xxx to the code transform.
31388 * lib/uniname/uninames.h: Regenerated.
31389 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31391 2007-07-07 Bruno Haible <bruno@clisp.org>
31393 * modules/wcwidth-tests: New file.
31394 * tests/test-wcwidth.c: New file.
31396 Work around MacOS X wcwidth() bug.
31397 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31398 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31399 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31400 original wcwidth in non-UTF-8 locales.
31401 * modules/wcwidth (Depends-on): Add localcharset, streq,
31403 * doc/functions/wcwidth.texi: Update.
31405 2007-07-07 Bruno Haible <bruno@clisp.org>
31407 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31408 (wcwidth): New declaration.
31409 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31411 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31412 here. Prepare for creating <wchar.h> unconditionally.
31413 * modules/wchar (Depends-on): Add link-warning.
31414 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31415 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31416 * lib/wcwidth.h: Remove file.
31417 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31418 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31419 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31420 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31421 (Include): Replace wcwidth.h with <wchar.h>.
31422 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31423 * lib/mbchar.h: Don't include wcwidth.h.
31424 * lib/mbswidth.c: Likewise.
31425 * NEWS: Mention the change.
31427 2007-07-07 Bruno Haible <bruno@clisp.org>
31429 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31430 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31431 definition with an external declaration.
31432 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31433 defined as a function. Remove AC_C_INLINE requirement.
31434 * modules/wcwidth (Files): Add lib/wcwidth.c.
31435 (Makefile.am): Remove redundant statement.
31437 2007-07-07 Bruno Haible <bruno@clisp.org>
31439 * MODULES.html.sh (Unicode string functions): Add the new modules.
31441 * tests/uniwidth/test-u32-strwidth.c: New file.
31442 * modules/uniwidth/u32-strwidth-tests: New file.
31444 * lib/uniwidth/u32-strwidth.c: New file.
31445 * modules/uniwidth/u32-strwidth: New file.
31447 * tests/uniwidth/test-u16-strwidth.c: New file.
31448 * modules/uniwidth/u16-strwidth-tests: New file.
31450 * lib/uniwidth/u16-strwidth.c: New file.
31451 * modules/uniwidth/u16-strwidth: New file.
31453 * tests/uniwidth/test-u8-strwidth.c: New file.
31454 * modules/uniwidth/u8-strwidth-tests: New file.
31456 * lib/uniwidth/u8-strwidth.c: New file.
31457 * modules/uniwidth/u8-strwidth: New file.
31459 * tests/uniwidth/test-u32-width.c: New file.
31460 * modules/uniwidth/u32-width-tests: New file.
31462 * lib/uniwidth/u32-width.c: New file.
31463 * modules/uniwidth/u32-width: New file.
31465 * tests/uniwidth/test-u16-width.c: New file.
31466 * modules/uniwidth/u16-width-tests: New file.
31468 * lib/uniwidth/u16-width.c: New file.
31469 * modules/uniwidth/u16-width: New file.
31471 * tests/uniwidth/test-u8-width.c: New file.
31472 * modules/uniwidth/u8-width-tests: New file.
31474 * lib/uniwidth/u8-width.c: New file.
31475 * modules/uniwidth/u8-width: New file.
31477 * tests/uniwidth/test-uc_width.c: New file.
31478 * modules/uniwidth/width-tests: New file.
31480 * lib/uniwidth/width.c: New file, from GNU libiconv.
31481 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31482 * modules/uniwidth/width: New file.
31484 * lib/uniwidth.h: New file, from GNU libiconv.
31485 * modules/uniwidth/base: New file.
31487 2007-07-07 Bruno Haible <bruno@clisp.org>
31489 * lib/uniname.h: New file, from GNU gettext.
31490 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31491 * lib/uniname/uninames.h: New file, from GNU gettext.
31492 * lib/uniname/uniname.c: New file, from GNU gettext.
31493 * tests/uniname/test-uninames.sh: New file.
31494 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31495 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31496 * modules/uniname/base: New file.
31497 * modules/uniname/uniname: New file.
31498 * modules/uniname/uniname-tests: New file.
31499 * MODULES.html.sh (Unicode string functions): Add the new modules.
31501 2007-07-06 Bruno Haible <bruno@clisp.org>
31503 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31505 2007-07-06 Bruno Haible <bruno@clisp.org>
31507 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31508 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31509 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31510 include <sys/time.h>.
31511 Reported by Eric Blake.
31513 2007-07-06 Eric Blake <ebb9@byu.net>
31515 Fix testing canonicalize on cygwin.
31516 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31517 Revert patch from 2007-06-19.
31518 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31519 canonicalize module is also in use.
31520 * tests/test-canonicalize.c: New file.
31521 * tests/test-canonicalize.sh: Likewise.
31522 * modules/canonicalize-tests: Likewise.
31524 2007-07-06 Jim Meyering <jim@meyering.net>
31526 * lib/getugroups.c (getugroups): Detect getgrent failure.
31527 Adjust comment to reflect reality: this function may return -1.
31529 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31531 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31532 the new TP address.
31534 (gnulib_mk): New variable.
31536 2007-07-05 Jim Meyering <jim@meyering.net>
31538 Don't let endgrent clobber errno, no matter how improbable.
31539 * lib/getugroups.c (getugroups): Save and restore errno around
31542 Close the group DB even when failing with 2^31 or more members.
31543 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31545 2007-07-04 Jim Meyering <jim@meyering.net>
31547 * lib/getugroups.h: New file.
31548 * lib/getugroups.c: Include "getugroups.h".
31549 Remove uses of "register" keyword.
31550 Move local variable, "cp", down into scope where used.
31551 Give "username" parameter the "const" attribute.
31552 * modules/getugroups (Files): Add lib/getugroups.h
31554 2007-07-04 Karl Berry <karl@gnu.org>
31556 * MODULES.html.sh (func_all_modules): Complete rename of
31557 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31559 2007-07-02 Bruno Haible <bruno@clisp.org>
31561 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31562 mode, when inttypes.h comes from gnulib.
31563 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31565 2007-07-02 Simon Josefsson <simon@josefsson.org>
31567 * NEWS: Mention lgpl module name change.
31569 * modules/lgpl-2.1: Renamed from lgpl.
31571 * NEWS: Mention gpl module name change.
31573 * modules/gpl-3.0: New file, based on gpl-2.0.
31575 * modules/gpl-2.0: Renamed from gpl.
31577 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31580 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31582 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31583 #define __STDC_LIMIT_MACROS temporarily while including
31584 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31585 Problem reported by Joel E. Denny in
31586 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31588 2007-07-01 Bruno Haible <bruno@clisp.org>
31590 * lib/unistdio.h: New file.
31591 * lib/unistdio/u-asnprintf.h: New file.
31592 * lib/unistdio/u-asprintf.h: New file.
31593 * lib/unistdio/u-printf-args.c: New file.
31594 * lib/unistdio/u-printf-args.h: New file.
31595 * lib/unistdio/u-printf-parse.h: New file.
31596 * lib/unistdio/u-snprintf.h: New file.
31597 * lib/unistdio/u-sprintf.h: New file.
31598 * lib/unistdio/u-vasprintf.h: New file.
31599 * lib/unistdio/u-vsnprintf.h: New file.
31600 * lib/unistdio/u-vsprintf.h: New file.
31601 * lib/unistdio/ulc-asnprintf.c: New file.
31602 * lib/unistdio/ulc-asprintf.c: New file.
31603 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31604 * lib/unistdio/ulc-printf-parse.c: New file.
31605 * lib/unistdio/ulc-snprintf.c: New file.
31606 * lib/unistdio/ulc-sprintf.c: New file.
31607 * lib/unistdio/ulc-vasnprintf.c: New file.
31608 * lib/unistdio/ulc-vasprintf.c: New file.
31609 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31610 * lib/unistdio/ulc-vsnprintf.c: New file.
31611 * lib/unistdio/ulc-vsprintf.c: New file.
31612 * lib/unistdio/u8-asnprintf.c: New file.
31613 * lib/unistdio/u8-asprintf.c: New file.
31614 * lib/unistdio/u8-printf-parse.c: New file.
31615 * lib/unistdio/u8-snprintf.c: New file.
31616 * lib/unistdio/u8-sprintf.c: New file.
31617 * lib/unistdio/u8-vasnprintf.c: New file.
31618 * lib/unistdio/u8-vasprintf.c: New file.
31619 * lib/unistdio/u8-vsnprintf.c: New file.
31620 * lib/unistdio/u8-vsprintf.c: New file.
31621 * lib/unistdio/u8-u8-asnprintf.c: New file.
31622 * lib/unistdio/u8-u8-asprintf.c: New file.
31623 * lib/unistdio/u8-u8-snprintf.c: New file.
31624 * lib/unistdio/u8-u8-sprintf.c: New file.
31625 * lib/unistdio/u8-u8-vasnprintf.c: New file.
31626 * lib/unistdio/u8-u8-vasprintf.c: New file.
31627 * lib/unistdio/u8-u8-vsnprintf.c: New file.
31628 * lib/unistdio/u8-u8-vsprintf.c: New file.
31629 * lib/unistdio/u16-asnprintf.c: New file.
31630 * lib/unistdio/u16-asprintf.c: New file.
31631 * lib/unistdio/u16-printf-parse.c: New file.
31632 * lib/unistdio/u16-snprintf.c: New file.
31633 * lib/unistdio/u16-sprintf.c: New file.
31634 * lib/unistdio/u16-vasnprintf.c: New file.
31635 * lib/unistdio/u16-vasprintf.c: New file.
31636 * lib/unistdio/u16-vsnprintf.c: New file.
31637 * lib/unistdio/u16-vsprintf.c: New file.
31638 * lib/unistdio/u16-u16-asnprintf.c: New file.
31639 * lib/unistdio/u16-u16-asprintf.c: New file.
31640 * lib/unistdio/u16-u16-snprintf.c: New file.
31641 * lib/unistdio/u16-u16-sprintf.c: New file.
31642 * lib/unistdio/u16-u16-vasnprintf.c: New file.
31643 * lib/unistdio/u16-u16-vasprintf.c: New file.
31644 * lib/unistdio/u16-u16-vsnprintf.c: New file.
31645 * lib/unistdio/u16-u16-vsprintf.c: New file.
31646 * lib/unistdio/u32-asnprintf.c: New file.
31647 * lib/unistdio/u32-asprintf.c: New file.
31648 * lib/unistdio/u32-printf-parse.c: New file.
31649 * lib/unistdio/u32-snprintf.c: New file.
31650 * lib/unistdio/u32-sprintf.c: New file.
31651 * lib/unistdio/u32-vasnprintf.c: New file.
31652 * lib/unistdio/u32-vasprintf.c: New file.
31653 * lib/unistdio/u32-vsnprintf.c: New file.
31654 * lib/unistdio/u32-vsprintf.c: New file.
31655 * lib/unistdio/u32-u32-asnprintf.c: New file.
31656 * lib/unistdio/u32-u32-asprintf.c: New file.
31657 * lib/unistdio/u32-u32-snprintf.c: New file.
31658 * lib/unistdio/u32-u32-sprintf.c: New file.
31659 * lib/unistdio/u32-u32-vasnprintf.c: New file.
31660 * lib/unistdio/u32-u32-vasprintf.c: New file.
31661 * lib/unistdio/u32-u32-vsnprintf.c: New file.
31662 * lib/unistdio/u32-u32-vsprintf.c: New file.
31663 * tests/unistdio/test-ulc-asnprintf1.c: New file.
31664 * tests/unistdio/test-ulc-asnprintf1.h: New file.
31665 * tests/unistdio/test-ulc-printf1.h: New file.
31666 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31667 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31668 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31669 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31670 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31671 * tests/unistdio/test-ulc-vasprintf1.c: New file.
31672 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31673 * tests/unistdio/test-ulc-vsprintf1.c: New file.
31674 * tests/unistdio/test-u8-asnprintf1.c: New file.
31675 * tests/unistdio/test-u8-asnprintf1.h: New file.
31676 * tests/unistdio/test-u8-printf1.h: New file.
31677 * tests/unistdio/test-u8-vasnprintf1.c: New file.
31678 * tests/unistdio/test-u8-vasnprintf2.c: New file.
31679 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31680 * tests/unistdio/test-u8-vasnprintf3.c: New file.
31681 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31682 * tests/unistdio/test-u8-vasprintf1.c: New file.
31683 * tests/unistdio/test-u8-vsnprintf1.c: New file.
31684 * tests/unistdio/test-u8-vsprintf1.c: New file.
31685 * tests/unistdio/test-u16-asnprintf1.c: New file.
31686 * tests/unistdio/test-u16-asnprintf1.h: New file.
31687 * tests/unistdio/test-u16-printf1.h: New file.
31688 * tests/unistdio/test-u16-vasnprintf1.c: New file.
31689 * tests/unistdio/test-u16-vasnprintf2.c: New file.
31690 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31691 * tests/unistdio/test-u16-vasnprintf3.c: New file.
31692 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31693 * tests/unistdio/test-u16-vasprintf1.c: New file.
31694 * tests/unistdio/test-u16-vsnprintf1.c: New file.
31695 * tests/unistdio/test-u16-vsprintf1.c: New file.
31696 * tests/unistdio/test-u32-asnprintf1.c: New file.
31697 * tests/unistdio/test-u32-asnprintf1.h: New file.
31698 * tests/unistdio/test-u32-printf1.h: New file.
31699 * tests/unistdio/test-u32-vasnprintf1.c: New file.
31700 * tests/unistdio/test-u32-vasnprintf2.c: New file.
31701 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31702 * tests/unistdio/test-u32-vasnprintf3.c: New file.
31703 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31704 * tests/unistdio/test-u32-vasprintf1.c: New file.
31705 * tests/unistdio/test-u32-vsnprintf1.c: New file.
31706 * tests/unistdio/test-u32-vsprintf1.c: New file.
31707 * modules/unistdio/base: New file.
31708 * modules/unistdio/u-printf-args: New file.
31709 * modules/unistdio/ulc-asnprintf: New file.
31710 * modules/unistdio/ulc-asprintf: New file.
31711 * modules/unistdio/ulc-fprintf: New file.
31712 * modules/unistdio/ulc-printf-parse: New file.
31713 * modules/unistdio/ulc-snprintf: New file.
31714 * modules/unistdio/ulc-sprintf: New file.
31715 * modules/unistdio/ulc-vasnprintf: New file.
31716 * modules/unistdio/ulc-vasprintf: New file.
31717 * modules/unistdio/ulc-vfprintf: New file.
31718 * modules/unistdio/ulc-vsnprintf: New file.
31719 * modules/unistdio/ulc-vsprintf: New file.
31720 * modules/unistdio/u8-asnprintf: New file.
31721 * modules/unistdio/u8-asprintf: New file.
31722 * modules/unistdio/u8-printf-parse: New file.
31723 * modules/unistdio/u8-snprintf: New file.
31724 * modules/unistdio/u8-sprintf: New file.
31725 * modules/unistdio/u8-vasnprintf: New file.
31726 * modules/unistdio/u8-vasprintf: New file.
31727 * modules/unistdio/u8-vsnprintf: New file.
31728 * modules/unistdio/u8-vsprintf: New file.
31729 * modules/unistdio/u8-u8-asnprintf: New file.
31730 * modules/unistdio/u8-u8-asprintf: New file.
31731 * modules/unistdio/u8-u8-snprintf: New file.
31732 * modules/unistdio/u8-u8-sprintf: New file.
31733 * modules/unistdio/u8-u8-vasnprintf: New file.
31734 * modules/unistdio/u8-u8-vasprintf: New file.
31735 * modules/unistdio/u8-u8-vsnprintf: New file.
31736 * modules/unistdio/u8-u8-vsprintf: New file.
31737 * modules/unistdio/u16-asnprintf: New file.
31738 * modules/unistdio/u16-asprintf: New file.
31739 * modules/unistdio/u16-printf-parse: New file.
31740 * modules/unistdio/u16-snprintf: New file.
31741 * modules/unistdio/u16-sprintf: New file.
31742 * modules/unistdio/u16-vasnprintf: New file.
31743 * modules/unistdio/u16-vasprintf: New file.
31744 * modules/unistdio/u16-vsnprintf: New file.
31745 * modules/unistdio/u16-vsprintf: New file.
31746 * modules/unistdio/u16-u16-asnprintf: New file.
31747 * modules/unistdio/u16-u16-asprintf: New file.
31748 * modules/unistdio/u16-u16-snprintf: New file.
31749 * modules/unistdio/u16-u16-sprintf: New file.
31750 * modules/unistdio/u16-u16-vasnprintf: New file.
31751 * modules/unistdio/u16-u16-vasprintf: New file.
31752 * modules/unistdio/u16-u16-vsnprintf: New file.
31753 * modules/unistdio/u16-u16-vsprintf: New file.
31754 * modules/unistdio/u32-asnprintf: New file.
31755 * modules/unistdio/u32-asprintf: New file.
31756 * modules/unistdio/u32-printf-parse: New file.
31757 * modules/unistdio/u32-snprintf: New file.
31758 * modules/unistdio/u32-sprintf: New file.
31759 * modules/unistdio/u32-vasnprintf: New file.
31760 * modules/unistdio/u32-vasprintf: New file.
31761 * modules/unistdio/u32-vsnprintf: New file.
31762 * modules/unistdio/u32-vsprintf: New file.
31763 * modules/unistdio/u32-u32-asnprintf: New file.
31764 * modules/unistdio/u32-u32-asprintf: New file.
31765 * modules/unistdio/u32-u32-snprintf: New file.
31766 * modules/unistdio/u32-u32-sprintf: New file.
31767 * modules/unistdio/u32-u32-vasnprintf: New file.
31768 * modules/unistdio/u32-u32-vasprintf: New file.
31769 * modules/unistdio/u32-u32-vsnprintf: New file.
31770 * modules/unistdio/u32-u32-vsprintf: New file.
31771 * modules/unistdio/ulc-asnprintf-tests: New file.
31772 * modules/unistdio/ulc-vasnprintf-tests: New file.
31773 * modules/unistdio/ulc-vasprintf-tests: New file.
31774 * modules/unistdio/ulc-vsnprintf-tests: New file.
31775 * modules/unistdio/ulc-vsprintf-tests: New file.
31776 * modules/unistdio/u8-asnprintf-tests: New file.
31777 * modules/unistdio/u8-vasnprintf-tests: New file.
31778 * modules/unistdio/u8-vasprintf-tests: New file.
31779 * modules/unistdio/u8-vsnprintf-tests: New file.
31780 * modules/unistdio/u8-vsprintf-tests: New file.
31781 * modules/unistdio/u16-asnprintf-tests: New file.
31782 * modules/unistdio/u16-vasnprintf-tests: New file.
31783 * modules/unistdio/u16-vasprintf-tests: New file.
31784 * modules/unistdio/u16-vsnprintf-tests: New file.
31785 * modules/unistdio/u16-vsprintf-tests: New file.
31786 * modules/unistdio/u32-asnprintf-tests: New file.
31787 * modules/unistdio/u32-vasnprintf-tests: New file.
31788 * modules/unistdio/u32-vasprintf-tests: New file.
31789 * modules/unistdio/u32-vsnprintf-tests: New file.
31790 * modules/unistdio/u32-vsprintf-tests: New file.
31791 * MODULES.html.sh (Unicode string functions): Add the new modules.
31793 2007-07-01 Bruno Haible <bruno@clisp.org>
31795 * lib/sprintf.c (sprintf): Limit the available length estimation,
31796 to avoid address wraparound.
31797 * lib/vsprintf.c (vsprintf): Likewise.
31798 * modules/sprintf-posix (Dependencies): Add stdint.
31799 * modules/vsprintf-posix (Dependencies): Likewise.
31801 2007-07-01 Bruno Haible <bruno@clisp.org>
31803 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31804 Windows PATH as well. Conservative double-quoting. Comments.
31806 2007-07-01 Bruno Haible <bruno@clisp.org>
31807 Eric Blake <ebb9@byu.net>
31808 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31810 * gnulib-tool (self_abspathname): Fix algorithm to cope with
31811 empty components in $PATH, denoting '.'.
31813 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31815 * gnulib-tool: Fix indentation.
31816 (func_create_megatestdir): Likewise.
31817 Report by Bruno Haible.
31819 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31821 Sync from Automake.
31822 * build-aux/gnupload: Fix shell portability issues with for loops.
31823 Report by Karl Berry.
31825 2007-06-29 Simon Josefsson <simon@josefsson.org>
31827 * build-aux/maint.mk (POURL): Use translationproject.org.
31829 2007-06-27 Simon Josefsson <simon@josefsson.org>
31830 Bruno Haible <bruno@clisp.org>
31832 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31833 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31834 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31835 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31836 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31838 2007-06-27 Bruno Haible <bruno@clisp.org>
31840 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31841 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31843 2007-06-26 Karl Berry <karl@gnu.org>
31845 * MODULES.html.sh: remove xreadlink-with-size.
31847 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
31849 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31850 method that I hope also handles the double-include problem noted
31852 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31854 2007-06-23 Bruno Haible <bruno@clisp.org>
31856 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31857 Don't let the 'mostlyclean' target fail if the last subdirectory could
31859 Reported by Karl Berry.
31861 2007-06-23 Bruno Haible <bruno@clisp.org>
31863 * gnulib-tool (echo): Add a speedier workaround for ksh.
31864 * tests/test-echo.sh: Likewise.
31866 2007-06-23 Bruno Haible <bruno@clisp.org>
31868 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31869 * tests/test-echo.sh: Likewise.
31871 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31873 * gnulib-tool (IFS): Initialize early, so we don't set it to
31875 (self_abspathname): Rewrite algorithm to set it, reindent.
31876 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31877 (func_create_megatestdir): Merge some sed scripts.
31879 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
31881 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31882 exposed by Sun Studio 11 cc on Solaris 8.
31884 2007-06-22 Bruno Haible <bruno@clisp.org>
31886 * gnulib-tool (echo): Ensure the echo primitive does not interpret
31888 * tests/test-echo.sh: New file.
31890 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31892 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31893 simplify `sed_replace_build_aux' scripts, they are portable but
31894 echoing them with `echo' is not.
31895 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31897 2007-06-21 Karl Berry <karl@gnu.org>
31899 * config/srclist.txt: guess we can't handle the licenses via
31900 srclist at the moment.
31902 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
31904 * MODULES.html.sh: Add include_next.
31905 * modules/include_next: New file.
31907 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
31909 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31911 (gl_CHECK_NEXT_HEADERS): New macro.
31912 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31913 the obsolescent gl_ABSOLUTE_HEADER.
31914 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31915 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31916 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31917 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31918 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31919 * m4/math_h.m4 (gl_MATH_H): Likewise.
31920 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31921 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31922 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31923 * m4/stdint.m4 (gl_STDINT_H): Likewise.
31924 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31925 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31926 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31927 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31928 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31929 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31930 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31931 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31932 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31933 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31934 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31935 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31936 * m4/inttypes.m4 (gl_INTTYPES_H): Define
31937 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31938 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31939 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31940 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31941 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31942 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31943 * lib/float_.h: Likewise.
31944 * lib/inttypes_.h: Likewise.
31945 * lib/math_.h: Likewise.
31946 * lib/search_.h: Likewise.
31947 * lib/signal_.h: Likewise.
31948 * lib/stdint_.h: Likewise.
31949 * lib/stdio_.h: Likewise.
31950 * lib/stdlib_.h: Likewise.
31951 * lib/string_.h: Likewise.
31952 * lib/sys_stat_.h: Likewise.
31953 * lib/sys_time_.h: Likewise.
31954 * lib/time_.h: Likewise.
31955 * lib/unistd_.h: Likewise.
31956 * lib/wchar_.h: Likewise.
31957 * lib/wctype_.h: Likewise.
31958 * lib/dirent_.h: Likewise.
31959 * lib/iconv_.h: Likewise.
31960 * lib/locale_.h: Likewise.
31961 * lib/netinet_in_.h: Likewise.
31962 * lib/sys_select_.h: Likewise.
31963 * lib/sys_socket_.h: Likewise.
31964 * lib/sysexits_.h: Likewise.
31965 * modules/fcntl (Depends-on): Depend on include_next, not
31967 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31968 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31969 * modules/fchdir: Likewise.
31970 * modules/float: Likewise.
31971 * modules/iconv_open: Likewise.
31972 * modules/inttypes: Likewise.
31973 * modules/locale: Likewise.
31974 * modules/math: Likewise.
31975 * modules/netinet_in: Likewise.
31976 * modules/search: Likewise.
31977 * modules/signal: Likewise.
31978 * modules/stdint: Likewise.
31979 * modules/stdio: Likewise.
31980 * modules/stdlib: Likewise.
31981 * modules/string: Likewise.
31982 * modules/sys_select: Likewise.
31983 * modules/sys_socket: Likewise.
31984 * modules/sys_stat: Likewise.
31985 * modules/sys_time: Likewise.
31986 * modules/sysexits: Likewise.
31987 * modules/time: Likewise.
31988 * modules/unistd: Likewise.
31989 * modules/wchar: Likewise.
31990 * modules/wctype: Likewise.
31991 * modules/sys_stat: Change maintainer to "all".
31992 * modules/unistd: Likewise.
31994 2007-06-20 Karl Berry <karl@gnu.org>
31996 * config/srclist.txt: track www changes in license files.
31998 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32000 * build-aux/bootstrap: Remove stray dot.
32001 Make sure build_aux settings are honored when linking
32002 gnulib_extra_files.
32004 2007-06-19 Eric Blake <ebb9@byu.net>
32006 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32007 Allow compilation on cygwin.
32009 2007-06-19 Jim Meyering <jim@meyering.net>
32011 xreadlink-with-size: Remove module. No longer used.
32012 Ex-callers now use xreadlink or mreadlink-with-size.
32013 * modules/xreadlink-with-size: Remove module.
32014 * lib/xreadlink-with-size.c: Remove file.
32015 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32016 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32017 just before the function definition *is* accurate.
32019 Eliminate one way canonicalize_filename_mode could exit.
32020 * lib/canonicalize.c (canonicalize_filename_mode):
32021 Use mreadlink_with_size, not xreadlink_with_size.
32023 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32025 Detect porting problems to FreeBSD/arm, which has time_t wider than
32026 long int. Original problem reported for GNU diff by Xin Li in
32027 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32028 * modules/getdate (Depends-on): Add intprops, verify.
32029 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32030 is an integer type no wider than long int.
32032 2007-06-18 Jim Meyering <jim@meyering.net>
32034 New module: mreadlink-with-size.
32035 * MODULES.html.sh: Add mreadlink-with-size.
32036 * modules/mreadlink-with-size: New module
32037 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32038 not xreadlink-with-size.
32039 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32041 2007-06-16 Bruno Haible <bruno@clisp.org>
32043 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32044 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32045 Reported by Gary V. Vaughan <gary@gnu.org>.
32047 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32049 Revamp lchown so that it lives in unistd.h where it belongs.
32050 * lib/lchown.h: Remove.
32051 * lib/dirchownmod.c: Don't include lib/lchown.h.
32052 * lib/fchownat.c: Likewise.
32053 * lib/openat.c: Likewise.
32054 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32055 does not follow symlinks.
32056 (EOPNOTSUPP): Define if not defined.
32057 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32059 (lchown): New decl.
32060 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32061 Do not check for lchown decl.
32062 Set REPLACE_LCHOWN.
32063 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32065 * modules/chown: Make it clear it follows symlinks.
32066 * modules/lchown: Make it clear it doesn't follow symlinks.
32067 (Files): Remove lib/lchown.h
32068 (Depends-on): Add unistd.
32069 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32070 (Include): Include <unistd.h>, not "lchown.h".
32071 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32074 2007-06-15 Jim Meyering <jim@meyering.net>
32076 Change license (GPL to LGPL) of fsusage and dependents.
32077 * modules/fsusage (License): Change to LGPL.
32078 * modules/full-read (License): Likewise.
32079 * modules/full-write (License): Likewise.
32080 * modules/safe-read (License): Likewise.
32081 * modules/safe-write (License): Likewise.
32083 2007-06-14 Ben Pfaff <blp@gnu.org>
32085 Missing part of allocsa -> malloca transition.
32086 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32089 2007-06-12 Bruno Haible <bruno@clisp.org>
32091 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32092 to ia64, x86_64, i386.
32093 Reported by Eric Blake.
32095 2007-06-12 Bruno Haible <bruno@clisp.org>
32097 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32098 cross-compiling to x86_64.
32100 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32102 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32103 glitch reported by Ralf Wildenhues in
32104 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32106 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32109 2007-06-11 Bruno Haible <bruno@clisp.org>
32111 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32112 replacement string.
32113 Reported by Eric Blake.
32115 2007-06-10 Bruno Haible <bruno@clisp.org>
32117 Prepare vasnprintf code for use with Unicode strings.
32118 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32119 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32121 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32122 a_u32_string variants.
32123 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32124 * lib/printf-args.c: Don't include config.h and the specification
32125 header if PRINTF_FETCHARGS is already defined.
32126 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32127 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32128 TYPE_U16_STRING, TYPE_U32_STRING.
32129 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32130 u16_directive, u16_directives, u32_directive, u32_directives): New
32132 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32134 * lib/printf-parse.c: Don't include config.h and the specification
32135 header if PRINTF_PARSE is already defined. Eliminate the set of
32136 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32137 them now. Include c-ctype.h.
32138 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32139 directive and CHAR_T_ONLY_ASCII.
32140 * lib/vasnprintf.c: Don't include config.h and the specification header
32141 if VASNPRINTF is already defined.
32142 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32143 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32144 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32145 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32146 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32147 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32149 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32150 pad_ourselves also in this case, with the 'c' and 's' directives, and
32151 with a different notion of "width".
32152 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32154 2007-06-10 Bruno Haible <bruno@clisp.org>
32156 * modules/unistr/u32-mbsnlen: New file.
32157 * lib/unistr/u32-mbsnlen.c: New file.
32159 * modules/unistr/u16-mbsnlen: New file.
32160 * lib/unistr/u16-mbsnlen.c: New file.
32162 * modules/unistr/u8-mbsnlen: New file.
32163 * lib/unistr/u8-mbsnlen.c: New file.
32165 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32168 2007-06-10 Bruno Haible <bruno@clisp.org>
32170 * lib/string_.h (mbsnlen): New declaration.
32171 * lib/mbsnlen.c: New file.
32172 * m4/mbsnlen.m4: New file.
32173 * modules/mbsnlen: New file.
32174 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32175 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32176 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32178 2007-06-10 Bruno Haible <bruno@clisp.org>
32180 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32182 2007-06-10 Bruno Haible <bruno@clisp.org>
32184 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32185 * lib/mbuiter.h: Likewise.
32187 2007-06-10 Bruno Haible <bruno@clisp.org>
32189 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32192 2007-06-10 Karl Berry <karl@gnu.org>
32194 * config/srclist.txt: remove gettext entries, Bruno prefers
32195 to update individually.
32197 2007-06-10 Bruno Haible <bruno@clisp.org>
32199 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32200 'maxlen'. Ensure only length + width bytes are allocated, not
32201 length + 1 + width.
32203 2007-06-09 Bruno Haible <bruno@clisp.org>
32205 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32206 (CHAR_T): Remove macro.
32207 (VASNPRINTF): Update.
32209 2007-06-09 Bruno Haible <bruno@clisp.org>
32211 * MODULES.html.sh (Unicode string functions): Add the new modules.
32213 * modules/uniconv/u32-conv-to-enc: New file.
32214 * lib/uniconv/u32-conv-to-enc.c: New file.
32215 * modules/uniconv/u32-conv-to-enc-tests: New file.
32216 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32218 * modules/uniconv/u16-conv-to-enc: New file.
32219 * lib/uniconv/u16-conv-to-enc.c: New file.
32220 * lib/uniconv/u-conv-to-enc.h: New file.
32221 * modules/uniconv/u16-conv-to-enc-tests: New file.
32222 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32224 * modules/uniconv/u8-conv-to-enc: New file.
32225 * lib/uniconv/u8-conv-to-enc.c: New file.
32226 * modules/uniconv/u8-conv-to-enc-tests: New file.
32227 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32229 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32230 u32_conv_to_encoding): New declarations.
32232 2007-06-09 Bruno Haible <bruno@clisp.org>
32234 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32236 2007-06-09 Bruno Haible <bruno@clisp.org>
32238 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32239 * modules/malloca: Renamed from modules/allocsa, updated.
32240 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32241 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32242 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32243 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32244 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32245 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32246 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32247 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32248 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32249 * modules/c-strcasestr (Depends-on): Update.
32250 * lib/c-strcasestr.c: Update.
32251 * modules/c-strstr (Depends-on): Update.
32252 * lib/c-strstr.c: Update.
32253 * modules/canonicalize-lgpl (Depends-on): Update.
32254 * lib/canonicalize-lgpl.c: Update.
32255 * modules/clean-temp (Depends-on): Update.
32256 * lib/clean-temp.c: Update.
32257 * modules/csharpcomp (Depends-on): Update.
32258 * lib/csharpcomp.c: Update.
32259 * modules/csharpexec (Depends-on): Update.
32260 * lib/csharpexec.c: Update.
32261 * modules/javacomp (Depends-on): Update.
32262 * lib/javacomp.c: Update.
32263 * modules/javaexec (Depends-on): Update.
32264 * lib/javaexec.c: Update.
32265 * modules/mbscasestr (Depends-on): Update.
32266 * lib/mbscasestr.c: Update.
32267 * modules/mbsstr (Depends-on): Update.
32268 * lib/mbsstr.c: Update.
32269 * modules/setenv (Depends-on): Update.
32270 * lib/setenv.c: Update.
32271 * modules/strcasestr (Depends-on): Update.
32272 * lib/strcasestr.c: Update.
32273 * modules/striconveha (Depends-on): Update.
32274 * lib/striconveha.c: Update.
32275 * modules/relocatable-prog-wrapper (Files): Update.
32276 * lib/relocwrapper.c: Update.
32277 * build-aux/install-reloc: Update.
32278 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32280 2007-06-08 Bruno Haible <bruno@clisp.org>
32283 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32284 * lib/fpurge.c (fpurge): Likewise.
32285 * lib/freading.c (freading): Likewise.
32286 * lib/fseeko.c (rpl_fseeko): Likewise.
32287 * lib/fseterr.c (fseterr): Likewise.
32288 * lib/fwriting.c (fwriting): Likewise.
32289 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32291 2007-06-08 Bruno Haible <bruno@clisp.org>
32293 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32294 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32295 * modules/gettext (Files): Add m4/intlmacosx.m4.
32297 2007-06-07 Bruno Haible <bruno@clisp.org>
32299 * modules/localename-tests: New file.
32300 * tests/test-localename.c: New file.
32302 New module 'localename'.
32303 * lib/localename.h: New file.
32304 * lib/localename.c: New file, from GNU gettext.
32305 * m4/localename.m4: New file.
32306 * modules/localename: New file.
32308 2007-06-07 Bruno Haible <bruno@clisp.org>
32310 Work around the lack of <wchar.h> on some builds of uClibc.
32311 * doc/headers/wchar.texi: Update.
32312 * lib/wchar_.h: Include <wchar.h> only if it exists.
32313 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32314 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32315 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32317 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32318 * modules/mbfile (Depends-on): Add wchar.
32319 * modules/mbiter (Depends-on): Likewise.
32320 * modules/mbuiter (Depends-on): Likewise.
32321 Reported by Simon Josefsson.
32323 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32325 Work around problem reported by Steven M. Schweda in
32326 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32327 Tru64 5.1B with the Compaq compiler environment installed declares
32328 an 'isblank' function but does not define it in the C library.
32329 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32330 * lib/regex_internal.h (isblank): Likewise.
32331 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32332 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32334 2007-06-05 Bruno Haible <bruno@clisp.org>
32336 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32338 * modules/printf-safe: New file.
32339 * modules/fprintf-posix (Depends-on): Add printf-safe.
32340 * modules/printf-posix (Depends-on): Likewise.
32341 * modules/snprintf-posix (Depends-on): Likewise.
32342 * modules/sprintf-posix (Depends-on): Likewise.
32343 * modules/vasnprintf-posix (Depends-on): Likewise.
32344 * modules/vasprintf-posix (Depends-on): Likewise.
32345 * modules/vfprintf-posix (Depends-on): Likewise.
32346 * modules/vprintf-posix (Depends-on): Likewise.
32347 * modules/vsnprintf-posix (Depends-on): Likewise.
32348 * modules/vsprintf-posix (Depends-on): Likewise.
32349 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32350 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32351 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32352 "no" on i386, x86_64, ia64.
32353 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32354 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32355 on i386, x86_64, ia64.
32356 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32357 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32358 on i386, x86_64, ia64.
32359 * tests/test-vasnprintf-posix.c: Include float.h.
32360 (LDBL80_WORDS): New macro.
32361 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32362 on i386, x86_64, ia64.
32363 * tests/test-vasprintf-posix.c: Include float.h.
32364 (LDBL80_WORDS): New macro.
32365 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32366 on i386, x86_64, ia64.
32367 * tests/test-snprintf-posix.c: Include float.h.
32368 * tests/test-sprintf-posix.c: Likewise.
32369 * tests/test-vsnprintf-posix.c: Likewise.
32370 * tests/test-vsprintf-posix.c: Likewise.
32372 2007-06-05 Bruno Haible <bruno@clisp.org>
32374 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32375 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32376 non-IEEE numbers on i386, x86_64, ia64.
32377 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32378 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32379 * tests/test-isnanl.h: Include float.h.
32380 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32382 2007-06-05 Bruno Haible <bruno@clisp.org>
32384 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32385 also the %a / %A. Handle the %a / %A code before this extra handling.
32387 2007-06-05 Bruno Haible <bruno@clisp.org>
32389 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32390 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32392 2007-06-05 Bruno Haible <bruno@clisp.org>
32394 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32395 typo in variable name.
32397 2007-06-05 Eric Blake <ebb9@byu.net>
32399 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32400 Reported by Simon Josefsson.
32402 2007-06-04 Bruno Haible <bruno@clisp.org>
32404 Avoid test failures on some PowerPC platforms.
32405 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32406 Define differently for PowerPC.
32407 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32408 Reported by Gary V. Vaughan <gary@gnu.org>.
32410 2007-06-02 Bruno Haible <bruno@clisp.org>
32412 Fix test-stdint failure on FreeBSD/ia64.
32413 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32414 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32415 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32416 * doc/headers/stdint.texi: Update.
32418 2007-06-01 Bruno Haible <bruno@clisp.org>
32420 * tests/test-binary-io.c (main): Pass a third argument to open().
32421 Reported by Gary V. Vaughan <gary@gnu.org>.
32423 2007-06-01 Bruno Haible <bruno@clisp.org>
32425 * doc/functions/frexpl.texi: Update for mingw.
32427 2007-06-01 Bruno Haible <bruno@clisp.org>
32429 * tests/test-lseek.c (main): Disable test of errno for invalid third
32431 * doc/functions/lseek.texi: Update.
32432 Reported by Gary V. Vaughan <gary@gnu.org>.
32434 2007-05-28 Bruno Haible <bruno@clisp.org>
32436 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32438 2007-05-31 Eric Blake <ebb9@byu.net>
32440 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32443 2007-05-30 Eric Blake <ebb9@byu.net>
32444 and Bruno Haible <bruno@clisp.org>
32446 Work around mingw test failures exposed by m4-1.4.9b.
32447 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32448 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32451 2007-05-30 Bruno Haible <bruno@clisp.org>
32453 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32454 assuming that they are closed. Needed on HP-UX 11.
32456 2007-05-29 Bruno Haible <bruno@clisp.org>
32458 Fix a problem with #include_next.
32459 * lib/dirent_.h: Split the double-inclusion guard.
32460 * lib/fcntl_.h: Likewise.
32461 * lib/float_.h: Likewise.
32462 * lib/iconv_.h: Likewise.
32463 * lib/inttypes_.h: Likewise.
32464 * lib/locale_.h: Likewise.
32465 * lib/math_.h: Likewise.
32466 * lib/netinet_in_.h: Likewise.
32467 * lib/search_.h: Likewise.
32468 * lib/signal_.h: Likewise.
32469 * lib/stdint_.h: Likewise.
32470 * lib/stdio_.h: Likewise.
32471 * lib/stdlib_.h: Likewise.
32472 * lib/string_.h: Likewise.
32473 * lib/sys_select_.h: Likewise.
32474 * lib/sys_socket_.h: Likewise.
32475 * lib/sys_stat_.h: Likewise.
32476 * lib/sys_time_.h: Likewise.
32477 * lib/sysexits_.h: Likewise.
32478 * lib/time_.h: Likewise.
32479 * lib/unistd_.h: Likewise.
32480 * lib/wchar_.h: Likewise.
32481 * lib/wctype_.h: Likewise.
32483 2007-05-29 Bruno Haible <bruno@clisp.org>
32485 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32488 2007-05-29 Bruno Haible <bruno@clisp.org>
32490 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32492 Reported by Eric Blake.
32494 2007-05-29 Bruno Haible <bruno@clisp.org>
32496 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32499 2007-05-29 Eric Blake <ebb9@byu.net>
32500 Bruno Haible <bruno@clisp.org>
32502 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32505 2007-05-28 Eric Blake <ebb9@byu.net>
32507 * modules/closein-tests (test_closein_LDADD): Support test on
32508 cygwin with libtool.
32510 2007-05-28 Bruno Haible <bruno@clisp.org>
32512 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32513 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32514 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32515 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32516 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32517 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32518 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32519 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32520 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32522 2007-05-28 Eric Blake <ebb9@byu.net>
32524 Unconditionally include <config.h> in unit tests.
32525 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32526 * tests/test-allocsa.c, tests/test-arcfour.c,
32527 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32528 tests/test-array_list.c, tests/test-array_oset.c,
32529 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32530 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32531 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32532 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32533 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32534 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32535 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32536 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32537 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32538 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32539 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32540 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32541 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32542 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32543 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32544 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32545 test-md5.c, test-memmem.c, test-printf-posix.c,
32546 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32547 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32548 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32549 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32550 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32551 test-vasnprintf-posix2.c, test-vasnprintf.c,
32552 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32553 test-vfprintf-posix.c, test-vprintf-posix.c,
32554 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32555 test-xvasprintf.c: Likewise.
32557 2007-05-28 Bruno Haible <bruno@clisp.org>
32559 * gnulib-tool (func_import): Remember the --with-tests command-line
32560 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32561 Reported by Eric Blake.
32563 2007-05-28 Bruno Haible <bruno@clisp.org>
32565 * modules/ftell-tests: New file.
32566 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32567 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32569 * lib/ftell.c: New file.
32570 * modules/ftell: New file.
32571 * m4/ftell.m4: New file.
32572 * doc/functions/ftell.texi: Update.
32573 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32575 * lib/stdio_.h (rpl_ftell): New declaration.
32576 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32579 2007-05-28 Eric Blake <ebb9@byu.net>
32581 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32583 2007-05-28 Bruno Haible <bruno@clisp.org>
32585 * modules/fseek-tests: New file.
32586 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32587 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32589 * lib/fseek.c: New file.
32590 * modules/fseek: New file.
32591 * m4/fseek.m4: New file.
32592 * doc/functions/fseek.texi: Update.
32593 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32595 * lib/stdio_.h (rpl_fseek): New declaration.
32596 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32599 2007-05-28 Bruno Haible <bruno@clisp.org>
32601 * lib/stdio_.h (fflush): More comments.
32603 2007-05-28 Bruno Haible <bruno@clisp.org>
32605 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32608 2007-05-28 Eric Blake <ebb9@byu.net>
32610 Improve lseek module.
32611 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32612 * lib/unistd_.h (lseek): Scale back link warning message.
32613 * tests/test-lseek.c: Beef up test.
32614 * tests/test-lseek.sh: Exercise more facets of lseek.
32615 Reported by Bruno Haible.
32617 2007-05-28 Bruno Haible <bruno@clisp.org>
32619 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32622 2007-05-27 Bruno Haible <bruno@clisp.org>
32624 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32626 2007-05-27 Bruno Haible <bruno@clisp.org>
32628 * modules/openmp: New file.
32629 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32632 2007-05-26 Bruno Haible <bruno@clisp.org>
32634 * modules/chdir-long (Depends-on): Add fchdir.
32635 * modules/chdir-safer (Depends-on): Likewise.
32636 * modules/fts (Depends-on): Likewise.
32637 * modules/fts-lgpl (Depends-on): Likewise.
32638 * modules/openat (Depends-on): Likewise.
32639 * modules/savewd (Depends-on): Likewise.
32641 2007-05-24 Eric Blake <ebb9@byu.net>
32643 Fix lseek on mingw.
32644 * modules/lseek: New module.
32645 * m4/lseek.m4: New file.
32646 * lib/lseek.c: New file.
32647 * modules/lseek-tests: New file.
32648 * tests/test-lseek.c: New file.
32649 * tests/test-lseek.sh: New file.
32650 * MODULES.html.sh: Document lseek module.
32651 * modules/fflush (Depends-on): Add lseek, fseeko.
32652 * modules/fseeko (Depends-on): Likewise.
32653 * modules/ftello (Depends-on): Likewise.
32654 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32656 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32658 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32659 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32660 * lib/ftello.c (rpl_ftello): Likewise.
32661 * tests/test-fseeko.c (main): Test this.
32662 * tests/test-fseeko.sh: Likewise.
32663 * tests/test-ftello.c (main): Likewise.
32664 * tests/test-ftello.sh: Likewise.
32665 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32666 implies replacing fseek.
32667 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32669 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32670 * modules/unistd (Makefile.am): Likewise.
32671 * lib/unistd_.h (lseek): Declare a replacement.
32672 * doc/functions/lseek.texi (lseek): Document this fix.
32673 * doc/functions/fseek.texi (fseek): Likewise.
32674 * doc/functions/ftell.texi (ftell): Likewise.
32676 2007-05-24 Bruno Haible <bruno@clisp.org>
32678 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32679 in the printed representation of a NaN.
32680 * tests/test-vasprintf-posix.c (test_function): Likewise.
32681 * tests/test-snprintf-posix.h (test_function): Likewise.
32682 * tests/test-sprintf-posix.h (test_function): Likewise.
32683 Reported by Eric Blake.
32685 2007-05-23 Eric Blake <ebb9@byu.net>
32687 Fix fseeko/ftello on cygwin 1.5.24.
32688 * doc/functions/fseeko.texi (fseeko): Document the fix.
32689 * doc/functions/ftello.texi (ftello): Document the fix.
32690 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32691 * doc/functions/stdout.text (stdout): New file.
32692 * doc/functions/stderr.text (stderr): New file.
32693 * doc/gnulib.texi (Function Substitutes): Use new files.
32694 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32696 * tests/test-ftello.c (main): Likewise for ftello.
32697 * tests/test-fseeko.sh: New file.
32698 * tests/test-ftello.sh: New file.
32699 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32700 with seekable stdin.
32701 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32702 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32703 (gl_REPLACE_FSEEKO): New macro.
32704 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32705 * modules/fseeko (Files): Distribute fseeko.c.
32706 * modules/ftello (Files): Distribute ftello.c.
32707 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32709 * lib/ftello.c (rpl_ftello): New file.
32710 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32712 (gl_STDIN_LARGE_OFFSET): New macro.
32713 * modules/stdio (Makefile.am): Perform the replacement.
32714 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32716 2007-05-23 Bruno Haible <bruno@clisp.org>
32718 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32719 GNULIB_POSIXCHECK is defined.
32721 2007-05-21 Bruno Haible <bruno@clisp.org>
32723 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32724 Check also the output for NaN arguments. When cross-compiling, guess
32726 * lib/vasnprintf.c: Update comments.
32727 * tests/test-vasnprintf-posix.c (strisnan): New function.
32728 (test_function): Use it.
32729 * tests/test-vasprintf-posix.c (strisnan): New function.
32730 (test_function): Use it.
32731 * tests/test-snprintf-posix.h (strisnan): New function.
32732 (test_function): Use it.
32733 * tests/test-sprintf-posix.h (strisnan): New function.
32734 (test_function): Use it.
32735 Reported by Eric Blake.
32737 2007-05-20 Bruno Haible <bruno@clisp.org>
32739 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32740 numbers that fails on BeOS.
32741 * doc/functions/frexpl.texi: Update.
32743 2007-05-20 Jim Meyering <jim@meyering.net>
32745 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32746 forced upon us by glibc-2.6.
32748 2007-05-20 Bruno Haible <bruno@clisp.org>
32750 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32751 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32752 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32753 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32754 NEED_PRINTF_INFINITE.
32755 (is_infinitel): New function.
32756 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32757 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32758 gl_PREREQ_VASNPRINTF_INFINITE.
32759 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32760 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32761 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32762 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32763 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32764 gl_PREREQ_VASNPRINTF_INFINITE.
32765 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32766 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32767 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32768 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32769 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32770 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32771 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32772 * doc/functions/fprintf.texi: Update.
32773 * doc/functions/printf.texi: Update.
32774 * doc/functions/snprintf.texi: Update.
32775 * doc/functions/sprintf.texi: Update.
32776 * doc/functions/vfprintf.texi: Update.
32777 * doc/functions/vprintf.texi: Update.
32778 * doc/functions/vsnprintf.texi: Update.
32779 * doc/functions/vsprintf.texi: Update.
32781 2007-05-20 Bruno Haible <bruno@clisp.org>
32783 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32784 was not found in libc.
32785 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32787 2007-05-20 Bruno Haible <bruno@clisp.org>
32789 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32790 printed as "-nan" instead of "nan".
32791 * tests/test-vasprintf-posix.c (test_function): Likewise.
32792 * tests/test-snprintf-posix.h (test_function): Likewise.
32793 * tests/test-sprintf-posix.h (test_function): Likewise.
32794 Needed for HP-UX 11.
32796 2007-05-20 Jim Meyering <jim@meyering.net>
32798 Fix buggy test for the fchownat-deref bug.
32799 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32800 symlink required for the run-test. Without it, this test would
32801 always declare that fchownat doesn't work, and client code would
32802 unnecessarily use the replacement function with fixed libc.
32803 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32804 Reported by Greg Schafer.
32806 2007-05-19 Bruno Haible <bruno@clisp.org>
32808 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32809 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32810 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32811 Needed for IRIX 6.5 and Solaris 2.5.1.
32813 2007-05-19 Bruno Haible <bruno@clisp.org>
32815 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32816 (test_function): Skip tests involving -0.0 on platforms where
32818 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32819 (test_function): Skip tests involving -0.0 on platforms where
32821 * tests/test-snprintf-posix.h (have_minus_zero): New function.
32822 (test_function): Skip tests involving -0.0 on platforms where
32824 * tests/test-sprintf-posix.h (have_minus_zero): New function.
32825 (test_function): Skip tests involving -0.0 on platforms where
32827 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32829 * tests/test-printf-posix.h (test_function): Likewise.
32830 * tests/test-printf-posix.output: Remove all -0.0 related results.
32831 Needed for IRIX 6.5.
32833 2007-05-19 Bruno Haible <bruno@clisp.org>
32835 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32836 printed as "nan0x7fffffff" instead of "nan".
32837 * tests/test-vasprintf-posix.c (test_function): Likewise.
32838 * tests/test-snprintf-posix.h (test_function): Likewise.
32839 * tests/test-sprintf-posix.h (test_function): Likewise.
32840 * tests/test-fprintf-posix.h (NaN): Remove macro.
32841 (test_function): Remove all NaN related tests.
32842 * tests/test-printf-posix.h (NaN): Remove macro.
32843 (test_function): Remove all NaN related tests.
32844 * tests/test-printf-posix.output: Remove all NaN related results.
32845 Needed for IRIX 6.5.
32847 2007-05-19 Bruno Haible <bruno@clisp.org>
32849 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32850 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32852 2007-05-19 Bruno Haible <bruno@clisp.org>
32854 * lib/float_.h: New file.
32855 * m4/float_h.m4: New file.
32856 * modules/float: New file.
32857 * modules/isnanl (Dependencies): Add float.
32858 * modules/isnanl-nolibm (Dependencies): Likewise.
32859 * modules/mathl (Dependencies): Likewise.
32860 * modules/printf-frexpl (Dependencies): Likewise.
32861 * modules/signbit (Dependencies): Likewise.
32862 * modules/vasnprintf (Dependencies): Likewise.
32863 * doc/headers/float.texi: Update.
32865 2007-05-19 Jim Meyering <jim@meyering.net>
32867 * lib/utimens.c (gl_futimens): Rename from futimens,
32868 now that glibc-2.6 declares futimens.
32869 * lib/utimens.h: Likewise.
32871 2007-05-19 Bruno Haible <bruno@clisp.org>
32873 Avoid test failures on mingw.
32874 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32875 * tests/test-printf-posix.sh: Likewise.
32876 * tests/test-vfprintf-posix.sh: Likewise.
32877 * tests/test-vprintf-posix.sh: Likewise.
32879 2007-05-19 Bruno Haible <bruno@clisp.org>
32881 Fix *printf result for NaN, Inf, -0.0 on mingw.
32882 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32883 * lib/vasnprintf.c: Include math.h and isnan.h.
32884 (is_infinite_or_zero): New function.
32885 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32886 values in the %f, %F, %e, %E, %g, %G directives.
32887 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32888 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32889 gl_PRINTF_INFINITE and test its result. Invoke
32890 gl_PREREQ_VASNPRINTF_INFINITE.
32891 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32892 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32893 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32894 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32895 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32896 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32897 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32898 * doc/functions/fprintf.texi: Update.
32899 * doc/functions/printf.texi: Update.
32900 * doc/functions/snprintf.texi: Update.
32901 * doc/functions/sprintf.texi: Update.
32902 * doc/functions/vfprintf.texi: Update.
32903 * doc/functions/vprintf.texi: Update.
32904 * doc/functions/vsnprintf.texi: Update.
32905 * doc/functions/vsprintf.texi: Update.
32907 2007-05-19 Bruno Haible <bruno@clisp.org>
32909 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32910 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32911 Instead of multiplying with 10^k, set extra_zeroes to k.
32912 (scale10_round_long_double): Remove function.
32914 2007-05-18 Bruno Haible <bruno@clisp.org>
32916 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32917 introduced on 2007-05-06.
32919 2007-05-18 Bruno Haible <bruno@clisp.org>
32921 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32923 * tests/test-vasprintf-posix.c (test_function): Likewise.
32924 * tests/test-snprintf-posix.h (test_function): Likewise.
32925 * tests/test-sprintf-posix.h (test_function): Likewise.
32927 2007-05-18 Bruno Haible <bruno@clisp.org>
32929 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32930 (strmatch): New function.
32931 (test_function): Test the %f directive on numbers of various exponents.
32932 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32933 (strmatch): New function.
32934 (test_function): Test the %f directive on numbers of various exponents.
32935 * tests/test-snprintf-posix.h (strmatch): New function.
32936 (test_function): Test the %f directive on numbers of various exponents.
32937 * tests/test-sprintf-posix.h (strmatch): New function.
32938 (test_function): Test the %f directive on numbers of various exponents.
32939 * tests/test-snprintf-posix.c (SIZEOF): New macro.
32940 * tests/test-sprintf-posix.c (SIZEOF): New macro.
32941 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32942 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32944 2007-05-18 Bruno Haible <bruno@clisp.org>
32946 Add support for 'long double' number output.
32947 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32948 * lib/vasnprintf.c: Include math.h and float+.h.
32949 (mp_limb_t): New type.
32950 (GMP_LIMB_BITS): New macro.
32951 (mp_twolimb_t): New type.
32952 (GMP_TWOLIMB_BITS): New macro.
32954 (multiply, divide, convert_to_decimal, decode_long_double,
32955 scale10_round_long_double, scale10_round_decimal_long_double,
32956 floorlog10l): New functions.
32957 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32958 for the %f, %F, %e, %E, %g, %G directives.
32959 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32960 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32961 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32962 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32963 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32964 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32965 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32966 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32967 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32968 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32969 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32970 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32971 * modules/snprintf-posix (Depends-on): Likewise.
32972 * modules/sprintf-posix (Depends-on): Likewise.
32973 * modules/vasnprintf-posix (Depends-on): Likewise.
32974 * modules/vasprintf-posix (Depends-on): Likewise.
32975 * modules/vfprintf-posix (Depends-on): Likewise.
32976 * modules/vsnprintf-posix (Depends-on): Likewise.
32977 * modules/vsprintf-posix (Depends-on): Likewise.
32978 * modules/vasnprintf (Files): Add lib/float+.h.
32979 * doc/functions/fprintf.texi: Update.
32980 * doc/functions/printf.texi: Update.
32981 * doc/functions/snprintf.texi: Update.
32982 * doc/functions/sprintf.texi: Update.
32983 * doc/functions/vfprintf.texi: Update.
32984 * doc/functions/vprintf.texi: Update.
32985 * doc/functions/vsnprintf.texi: Update.
32986 * doc/functions/vsprintf.texi: Update.
32988 2007-05-18 Bruno Haible <bruno@clisp.org>
32990 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32992 2007-05-18 Bruno Haible <bruno@clisp.org>
32994 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32995 for printing 64-bit integers. Needed for mingw.
32997 2007-05-18 Bruno Haible <bruno@clisp.org>
32999 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33000 gl_FUNC_FREXPL_WORKS.
33001 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33003 2007-05-18 Bruno Haible <bruno@clisp.org>
33005 * modules/frexpl-nolibm-tests: New file.
33007 * modules/frexpl-nolibm: New file.
33008 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33010 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33012 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33013 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33014 GCC 4.2, which otherwise issues a lot of warnings.
33015 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33016 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33018 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33019 * modules/iconv_open (iconv.h): Likewise.
33020 * modules/locale (locale.h): Likewise.
33021 * modules/netinet_in (netinet/in.h): Likewise.
33022 * modules/sys_select (sys_select.h): Likewise.
33023 * modules/sys_socket (sys/socket.h): Likewise.
33024 * modules/sys_stat (sys/stat.h): Likewise.
33025 * modules/sysexits (sysexits.h): Likewise.
33026 * modules/unistd (unistd.h): Likewise.
33028 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33030 * modules/closein-tests (Makefile.am): Distribute
33033 2007-05-17 Bruno Haible <bruno@clisp.org>
33035 * tests/test-printf-posix.output: Renamed from
33036 tests/test-fprintf-posix.out.
33037 * modules/fprintf-posix-tests: Update.
33038 * modules/printf-posix-tests: Update.
33039 * modules/vfprintf-posix-tests: Update.
33040 * modules/vprintf-posix-tests: Update.
33041 * tests/test-fprintf-posix.sh: Update.
33042 * tests/test-printf-posix.sh: Update.
33043 * tests/test-vfprintf-posix.sh: Update.
33044 * tests/test-vprintf-posix.sh: Update.
33045 Reported by Ralf Wildenhues.
33047 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33049 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33050 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33051 GCC 4.2, which otherwise issues a lot of warnings.
33052 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33053 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33054 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33055 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33056 it should no longer be needed.
33057 * lib/string_.h: Likewise.
33058 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33059 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33060 * modules/inttypes (inttypes.h): Likewise.
33061 * modules/math (math.h): Likewise.
33062 * modules/search (search.h): Likewise.
33063 * modules/signal (signal.h): Likewise.
33064 * modules/stdint (stdint.h): Likewise.
33065 * modules/stdio (stdio.h): Likewise.
33066 * modules/stdlib (stdlib.h): Likewise.
33067 * modules/string (string.h): Likewise.
33068 * modules/sys_time (sys/time.h): Likewise.
33069 * modules/time (time.h): Likewise.
33070 * modules/wchar (wchar.h): Likewise.
33071 * modules/wctype (wtype.h): Likewise.
33073 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33075 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33077 2007-05-13 Bruno Haible <bruno@clisp.org>
33079 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33080 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33081 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33082 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33083 (gl_PREREQ_STRTOK_R): Don't require it here.
33085 2007-05-13 Bruno Haible <bruno@clisp.org>
33087 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33088 when used in C++ mode.
33090 2007-05-12 Bruno Haible <bruno@clisp.org>
33092 * lib/linebuffer.h: Tweak doc.
33093 * lib/linebuffer.c: Likewise.
33095 2007-05-12 James Youngman <jay@gnu.org>
33097 * lib/linebuffer.c (readlinebuffer_delim): New function,
33098 like readlinebuffer, but use a caller-specified delimiter.
33099 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33101 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33103 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33105 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33106 * modules/openat (Files): Remove openat-die.c.
33107 (Depends-on): Add openat-die.
33108 * modules/openat-die: New module.
33110 2007-05-06 Bruno Haible <bruno@clisp.org>
33112 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33113 Update with info about Cygwin.
33114 * doc/functions/fprintf.texi: Update.
33115 * doc/functions/printf.texi: Update.
33116 * doc/functions/snprintf.texi: Update.
33117 * doc/functions/sprintf.texi: Update.
33118 * doc/functions/vfprintf.texi: Update.
33119 * doc/functions/vprintf.texi: Update.
33120 * doc/functions/vsnprintf.texi: Update.
33121 * doc/functions/vsprintf.texi: Update.
33122 Reported by Eric Blake.
33124 2007-05-06 Bruno Haible <bruno@clisp.org>
33126 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33127 padding ourselves for the floating-point directives.
33128 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33129 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33130 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33131 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33132 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33133 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33134 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33135 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33136 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33137 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33138 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33139 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33140 * tests/test-snprintf-posix.h (test_function): Also check the width
33141 and some flags in the %f directive.
33142 * tests/test-sprintf-posix.h (test_function): Likewise.
33143 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33144 * tests/test-vasprintf-posix.c (test_function): Likewise.
33145 * doc/functions/fprintf.texi: Update.
33146 * doc/functions/printf.texi: Update.
33147 * doc/functions/snprintf.texi: Update.
33148 * doc/functions/sprintf.texi: Update.
33149 * doc/functions/vfprintf.texi: Update.
33150 * doc/functions/vprintf.texi: Update.
33151 * doc/functions/vsnprintf.texi: Update.
33152 * doc/functions/vsprintf.texi: Update.
33154 2007-05-06 Bruno Haible <bruno@clisp.org>
33156 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33157 pass the ' flag character to sprintf or snprintf.
33158 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33159 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33160 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33161 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33162 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33163 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33164 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33165 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33166 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33167 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33168 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33169 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33170 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33172 * tests/test-sprintf-posix.h (test_function): Likewise.
33173 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33174 * tests/test-vasprintf-posix.c (test_function): Likewise.
33175 * doc/functions/fprintf.texi: Update.
33176 * doc/functions/printf.texi: Update.
33177 * doc/functions/snprintf.texi: Update.
33178 * doc/functions/sprintf.texi: Update.
33179 * doc/functions/vfprintf.texi: Update.
33180 * doc/functions/vprintf.texi: Update.
33181 * doc/functions/vsnprintf.texi: Update.
33182 * doc/functions/vsprintf.texi: Update.
33184 2007-05-01 Bruno Haible <bruno@clisp.org>
33186 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33188 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33190 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33191 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33193 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33195 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33196 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33197 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33199 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33201 * lib/argp-help.c (struct hol_entry): New member `ord'.
33202 (HOL_ENTRY_PTRCMP): Use ord for comparison
33203 (hol_sort): Initialize ord.
33205 2007-05-01 Bruno Haible <bruno@clisp.org>
33207 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33208 Reported by Eric Blake.
33209 * doc/gnulib.texi (Function Substitutes): Update.
33211 2007-05-01 Bruno Haible <bruno@clisp.org>
33213 * doc/functions.texi: Remove file, now redundant through
33214 doc/functions/*.texi.
33216 2007-05-01 Bruno Haible <bruno@clisp.org>
33218 * modules/argp (Depends-on): Add sleep.
33220 2007-05-01 Bruno Haible <bruno@clisp.org>
33222 * modules/sleep-tests: New file.
33223 * tests/test-sleep.c: New file.
33225 * modules/sleep: New file.
33226 * lib/sleep.c: New file.
33227 * m4/sleep.m4: New file.
33228 * lib/unistd_.h (sleep): New declaration.
33229 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33231 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33232 * doc/functions/sleep.texi: Document the sleep module.
33234 2007-05-01 Bruno Haible <bruno@clisp.org>
33236 * lib/sigprocmask.h: Remove file.
33237 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33238 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33239 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33240 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33241 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33242 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33243 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33244 HAVE_SIGSET_T as a shell variable.
33245 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33246 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33247 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33248 (Depends-on): Add signal. Remove verify.
33249 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33250 (Include): Mention <signal.h> instead of sigprocmask.h.
33251 * NEWS: Mention the change.
33252 * lib/fatal-signal.c: Don't include sigprocmask.h.
33254 2007-05-01 Bruno Haible <bruno@clisp.org>
33256 * modules/signal: New file.
33257 * lib/signal_.h: New file.
33258 * m4/signal_h.m4: New file.
33260 2007-05-01 Bruno Haible <bruno@clisp.org>
33262 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33263 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33264 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33265 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33267 2007-05-01 Bruno Haible <bruno@clisp.org>
33269 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33271 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33272 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33273 * modules/sys_stat (Makefile.am): Substitute their values into
33276 2007-05-01 Bruno Haible <bruno@clisp.org>
33278 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33279 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33280 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33282 2007-05-01 Bruno Haible <bruno@clisp.org>
33284 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33285 'assert' module here.
33287 2007-05-01 Bruno Haible <bruno@clisp.org>
33289 * doc/functions/*.texi: New files.
33290 * doc/functions/google-ranking.txt: New file.
33291 * doc/gnulib.texi (Function Substitutes): New chapter.
33292 (ctime, inet_ntoa): Remove sections.
33293 * doc/ctime.texi: Remove file.
33294 * doc/inet_ntoa.texi: Remove file.
33295 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33297 (%.info): New rule, specifying a --reference-limit.
33299 2007-05-01 Bruno Haible <bruno@clisp.org>
33301 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33303 2007-05-01 Bruno Haible <bruno@clisp.org>
33305 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33306 the portability of 'mkdir' to mingw systems.
33308 2007-05-01 Bruno Haible <bruno@clisp.org>
33310 * doc/headers/google-ranking.txt: New file.
33312 2007-04-30 Eric Blake <ebb9@byu.net>
33314 Prefer fseeko to fseek.
33315 * modules/getpass (Depends-on): Add fseeko.
33316 * lib/getpass.c (getpass): Use fseeko, not fseek.
33318 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33320 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33321 assumes the sorting is stable, while most qsort implementations
33322 are not. Use argument addresses to ensure they never compare as
33325 * tests/test-argp-2.sh (usage-indent test): Fix output
33326 (func_compare): Restore diff options
33327 * tests/test-argp.c: Restore #include "progname.h"
33329 2007-04-29 Bruno Haible <bruno@clisp.org>
33331 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33332 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33333 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33334 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33335 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33336 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33337 (TESTS, check_PROGRAMS): Add test-snprintf.
33338 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33339 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33340 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33341 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33342 assertions that fail on HP-UX, OSF/1, or IRIX.
33343 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33345 2007-04-29 Bruno Haible <bruno@clisp.org>
33347 * MODULES.html.sh (posix_functions): Remove 'contents'.
33349 2007-04-29 Karl Berry <karl@gnu.org>
33351 * config/srclist.txt (gendocs_template_min): new entry.
33353 2007-04-29 Bruno Haible <bruno@clisp.org>
33355 Work around fpurge bug on BSD systems.
33356 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33357 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33358 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33359 fpurge to rpl_fpurge if the system already has this function.
33360 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33361 the case where the system already has this function. Correct invariants
33363 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33366 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33368 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33369 proposed by Sven Verdoolaege.
33371 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33373 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33374 (usage and help tests): Update
33376 2007-04-29 Bruno Haible <bruno@clisp.org>
33378 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33379 Print more information in case of failure. Disable a test on BeOS.
33381 2007-04-29 Bruno Haible <bruno@clisp.org>
33383 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33384 This helps debugging on systems on which no gdb is available.
33386 2007-04-29 Bruno Haible <bruno@clisp.org>
33388 * lib/freading.h: Improve comments.
33389 * lib/fwriting.h: Likewise.
33390 * tests/test-freading.c (main): Don't check freading immediately after
33391 repositioning. Needed for glibc.
33393 2007-04-29 Bruno Haible <bruno@clisp.org>
33395 * lib/freading.c (freading): Trivial simplification.
33397 2007-04-28 Bruno Haible <bruno@clisp.org>
33399 * tests/test-fwriting.c (main): Also test the interaction between
33400 fflush and fwriting.
33401 * modules/fwriting-tests (Depends-on): Add fflush.
33403 * tests/test-freading.c (main): Also test the interaction between
33404 fflush and freading.
33405 * modules/freading-tests (Depends-on): Add fflush.
33407 2007-04-28 Bruno Haible <bruno@clisp.org>
33409 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33411 Suggested by Eric Blake.
33413 2007-04-28 Jim Meyering <jim@meyering.net>
33415 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33416 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33417 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33419 2007-04-27 Eric Blake <ebb9@byu.net>
33421 * doc/headers/assert.texi (assert.h): Document assert module use.
33423 2007-04-27 Bruno Haible <bruno@clisp.org>
33425 * doc/headers/*.texi: New files.
33426 * doc/gnulib.texi (Header File Substitutes): New chapter.
33427 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33429 (standards.info ,standards.html, standards.dvi): Update dependencies.
33430 (mostlyclean, clean): New targets.
33432 2007-04-27 Bruno Haible <bruno@clisp.org>
33434 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33435 * modules/sysexits (Files, Makefile.am): Update.
33437 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33438 * modules/sys_socket (Files, Makefile.am): Update.
33440 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33441 * modules/sys_stat (Files, Makefile.am): Update.
33443 2007-04-27 Eric Blake <ebb9@byu.net>
33445 * lib/freading.h: Improve comments.
33446 * lib/fwriting.h: Likewise.
33447 * lib/fflush.c: Likewise.
33449 Fix closein for mingw.
33450 * modules/closein-tests: Add tests for closein.
33451 * tests/test-closein.c: New file.
33452 * tests/test-closein.sh: Likewise.
33453 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33454 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33456 2007-04-27 Bruno Haible <bruno@clisp.org>
33458 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33460 * lib/math_.h [__DECC]: Likewise.
33461 * lib/stdio_.h [__DECC]: Likewise.
33462 * lib/stdlib_.h [__DECC]: Likewise.
33463 * lib/string_.h [__DECC]: Likewise.
33464 * lib/time_.h [__DECC]: Likewise.
33465 * lib/wchar_.h [__DECC]: Likewise.
33466 * lib/wctype_.h [__DECC]: Likewise.
33468 2007-04-27 Bruno Haible <bruno@clisp.org>
33470 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33472 2007-04-27 Bruno Haible <bruno@clisp.org>
33474 * lib/fflush.c: Add comments.
33475 * modules/fpurge-tests (Depends-on): Add fflush.
33476 * modules/freadable-tests (Depends-on): Likewise.
33477 * modules/fwritable-tests (Depends-on): Likewise.
33479 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33481 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33482 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33483 Report by Bruno Haible <bruno@clisp.org>.
33485 2007-04-26 Eric Blake <ebb9@byu.net>
33487 Fix fflush on mingw.
33488 * modules/fflush (Depends-on): Add freading.
33489 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33492 2007-04-26 Eric Blake <ebb9@byu.net>
33493 and Bruno Haible <bruno@clisp.org>
33495 Implement freading and fwriting.
33496 * lib/freading.c: New file.
33497 * lib/freading.h: Likewise.
33498 * m4/freading.m4: Likewise.
33499 * modules/freading: Likewise.
33500 * modules/freading-tests: Likewise.
33501 * tests/test-freading.c: Likewise.
33502 * lib/fwriting.c: New file.
33503 * lib/fwriting.h: Likewise.
33504 * m4/fwriting.m4: Likewise.
33505 * modules/fwriting: Likewise.
33506 * modules/fwriting-tests: Likewise.
33507 * tests/test-fwriting.c: Likewise.
33508 * MODULES.html.sh (File stream based Input/Output): Mention them.
33510 2007-04-26 Bruno Haible <bruno@clisp.org>
33512 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33513 'long' when we assume it.
33514 Suggested by Eric Blake.
33516 2007-04-26 Bruno Haible <bruno@clisp.org>
33518 Ensure fseeko, ftello are declared on glibc systems.
33519 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33520 * modules/fseeko (configure.ac-early): Likewise.
33521 * modules/ftello (configure.ac-early): Likewise.
33522 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33523 AC_FUNC_FSEEKO for this.
33524 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33525 (gl_CHECK_FSEEKO): Remove macro.
33527 2007-04-26 Bruno Haible <bruno@clisp.org>
33529 * tests/test-fflush.c (main): Also check the ftell result after
33530 fflush and fseek/fseeko.
33531 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33532 file descriptor position cache in the stream.
33533 * lib/fseeko.c (rpl_fseeko): Likewise.
33535 2007-04-26 Bruno Haible <bruno@clisp.org>
33537 * modules/fflush-tests (Depends-on): Add fseeko.
33539 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33540 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33542 * lib/argz_.h: ensure error_t definition is obtained in same
33543 mechanism system argz.h would have.
33544 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33545 argz facilities are known bad. Err on the side of caution if
33548 2007-04-25 Eric Blake <ebb9@byu.net>
33550 * lib/fpurge.c (includes): Use stdlib.h for free.
33551 * tests/test-fflush.c (main): Also test fflush-fseeko.
33553 2007-04-25 Bruno Haible <bruno@clisp.org>
33555 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33556 * lib/fseeko.c: New file.
33557 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33558 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33559 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33561 (gl_FUNC_FSEEKO): Invoke it.
33562 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33563 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33564 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33566 2007-04-25 Bruno Haible <bruno@clisp.org>
33568 * modules/fflush (Depends-on): Add ftello.
33570 2007-04-25 Bruno Haible <bruno@clisp.org>
33572 * modules/ftello-tests: New file.
33573 * tests/test-ftello.c: New file.
33575 * modules/ftello: New file.
33576 * m4/ftello.m4: New file.
33577 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33579 * lib/stdio_.h (ftello): New declaration.
33580 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33583 2007-04-25 Bruno Haible <bruno@clisp.org>
33585 * modules/fseeko-tests: New file.
33586 * tests/test-fseeko.c: New file.
33588 * modules/fseeko: New file.
33589 * m4/fseeko.m4: New file.
33590 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33592 * lib/stdio_.h (fseeko): New declaration.
33593 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33596 2007-04-25 Bruno Haible <bruno@clisp.org>
33598 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33600 2007-04-25 Bruno Haible <bruno@clisp.org>
33602 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33603 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33604 * tests/test-unistd.c: Likewise.
33605 * tests/test-fcntl.c: Likewise.
33607 2007-04-23 Eric Blake <ebb9@byu.net>
33609 * lib/fflush.c: Fix missing include.
33610 Reported by Bruno Haible.
33612 2007-04-23 Bruno Haible <bruno@clisp.org>
33614 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33615 Reported by Eric Blake.
33617 2007-04-23 Bruno Haible <bruno@clisp.org>
33619 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33621 2007-04-23 Bruno Haible <bruno@clisp.org>
33623 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33625 2007-04-23 Bruno Haible <bruno@clisp.org>
33627 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33628 Needed on HP-UX 11.
33630 2007-04-16 Eric Blake <ebb9@byu.net>
33632 Make fflush rely on fpurge.
33633 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33634 open coding all variants.
33635 * modules/fflush (Depends-on): Add fpurge and unistd.
33636 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33637 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33639 Fix --with-tests compilation on cygwin.
33640 * modules/argmatch-tests (Makefile.am): List gnulib library first
33642 * modules/argp-tests (Makefile.am): Likewise.
33643 * modules/array-list-tests (Makefile.am): Likewise.
33644 * modules/array-oset-tests (Makefile.am): Likewise.
33645 * modules/avltree-list-tests (Makefile.am): Likewise.
33646 * modules/avltree-oset-tests (Makefile.am): Likewise.
33647 * modules/avltreehash-list-tests (Makefile.am): Likewise.
33648 * modules/carray-list-tests (Makefile.am): Likewise.
33649 * modules/dirname-tests (Makefile.am): Likewise.
33650 * modules/frexp-tests (Makefile.am): Likewise.
33651 * modules/isnanl-tests (Makefile.am): Likewise.
33652 * modules/linked-list-tests (Makefile.am): Likewise.
33653 * modules/linkedhash-list-tests (Makefile.am): Likewise.
33654 * modules/lock-tests (Makefile.am): Likewise.
33655 * modules/rbtree-list-tests (Makefile.am): Likewise.
33656 * modules/rbtree-oset-tests (Makefile.am): Likewise.
33657 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33658 * modules/tls-tests (Makefile.am): Likewise.
33659 * modules/tsearch-tests (Makefile.am): Likewise.
33660 * modules/xvasprintf-tests (Makefile.am): Likewise.
33662 Fix fpurge for cygwin.
33663 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33665 * modules/fpurge-tests (Depends-on): Clean up trash.
33667 2007-04-16 Simon Josefsson <simon@josefsson.org>
33669 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33671 * m4/autobuild.m4: Re-indent.
33673 2007-04-13 Bruno Haible <bruno@clisp.org>
33675 * modules/fpurge-tests: New file.
33676 * tests/test-fpurge.c: New file.
33678 * modules/fpurge: New file.
33679 * lib/fpurge.h: New file.
33680 * lib/fpurge.c: New file.
33681 * m4/fpurge.m4: New file.
33683 2007-04-13 Bruno Haible <bruno@clisp.org>
33685 * modules/fbufmode-tests: New file.
33686 * tests/test-fbufmode.c: New file.
33688 * modules/fbufmode: New file.
33689 * lib/fbufmode.h: New file.
33690 * lib/fbufmode.c: New file.
33691 * m4/fbufmode.m4: New file.
33693 2007-04-13 Bruno Haible <bruno@clisp.org>
33695 * modules/fwritable-tests: New file.
33696 * tests/test-fwritable.c: New file.
33698 * modules/fwritable: New file.
33699 * lib/fwritable.h: New file.
33700 * lib/fwritable.c: New file.
33701 * m4/fwritable.m4: New file.
33703 2007-04-13 Bruno Haible <bruno@clisp.org>
33705 * modules/freadable-tests: New file.
33706 * tests/test-freadable.c: New file.
33708 * modules/freadable: New file.
33709 * lib/freadable.h: New file.
33710 * lib/freadable.c: New file.
33711 * m4/freadable.m4: New file.
33713 2007-04-13 Bruno Haible <bruno@clisp.org>
33715 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33718 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
33720 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33721 gzip bootstrap.conf to avoid dragging in i18n machinery.
33722 (gnulib_tool_option): Use it.
33724 2007-04-13 Bruno Haible <bruno@clisp.org>
33726 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33728 * tests/test-vasprintf-posix.c (test_function): Likewise.
33729 * tests/test-snprintf-posix.h (test_function): Likewise.
33730 * tests/test-sprintf-posix.h (test_function): Likewise.
33731 * tests/test-fprintf-posix.h (test_function): Likewise.
33732 * tests/test-printf-posix.h (test_function): Likewise.
33733 * tests/test-fprintf-posix.out: Likewise.
33735 2007-04-13 Bruno Haible <bruno@clisp.org>
33737 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33738 * modules/tls-tests (configure.ac): Likewise.
33739 Reported by Arto C. Nirkko <anirkko@insel.ch>.
33741 2007-04-13 Bruno Haible <bruno@clisp.org>
33743 * lib/tls.c (glthread_tls_get): Fix return type.
33744 Patch by Arto C. Nirkko <anirkko@insel.ch>.
33746 2007-04-12 Eric Blake <ebb9@byu.net>
33748 * modules/gettime (Depends-on): Remove gettime.
33749 Reported by Dmitry V. Levin.
33751 2007-04-12 Bruno Haible <bruno@clisp.org>
33753 * modules/fflush (Include): Mention <stdio.h>.
33754 * modules/strtoimax (Include): Mention <inttypes.h>.
33755 * modules/strtoumax (Include): Likewise.
33757 2007-04-12 Eric Blake <ebb9@byu.net>
33759 * .cvsignore: New file.
33760 * .gitignore: Likewise.
33762 2007-04-12 Bruno Haible <bruno@clisp.org>
33764 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33765 not before, since $(LDADD) often contains libgnu.a.
33766 * modules/striconv-tests (test_striconv_LDADD): Likewise.
33767 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33768 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33771 2007-04-12 Eric Blake <ebb9@byu.net>
33773 Work around glibc's failure to flush stdin on fclose.
33774 * lib/closein.c (close_stdin): Flush stdin before closing.
33776 Work around glibc's failure to reset seekable stdin on exit.
33777 * modules/closein: New module.
33778 * lib/closein.c: New file.
33779 * lib/closein.h: Likewise.
33780 * m4/closein.m4: Likewise.
33781 * MODULES.html.sh (File stream based Input/Output): Document it.
33783 2007-04-12 Simon Josefsson <simon@josefsson.org>
33785 * gnulib-tool: Rename generated 'autobuild' script to
33786 'do-autobuild' in --create-megatestdir output.
33788 * doc/gnulib.texi (Build robot for gnulib): Fix.
33790 2007-04-12 Simon Josefsson <simon@josefsson.org>
33792 * modules/sysexits (Depends-on): Add absolute-header.
33794 2007-04-12 Eric Blake <ebb9@byu.net>
33796 No need to preserve errno on success.
33797 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33798 Reported by Bruno Haible.
33800 2007-04-12 Simon Josefsson <simon@josefsson.org>
33802 * MODULES.html.sh (Support for maintaining and releasing
33803 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
33805 2007-04-12 Simon Josefsson <simon@josefsson.org>
33807 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33809 2007-04-12 Simon Josefsson <simon@josefsson.org>
33811 * modules/autobuild: New module.
33813 * m4/autobuild.m4: New file.
33815 2007-04-11 Bruno Haible <bruno@clisp.org>
33817 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33818 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33819 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33820 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33821 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33822 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33823 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33824 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33825 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33826 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33827 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33828 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33829 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33830 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33831 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33832 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33833 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33834 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33835 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33836 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33837 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33838 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33839 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33840 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33841 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33842 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33843 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33844 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33845 Reported by Eric Blake.
33847 2007-04-11 Bruno Haible <bruno@clisp.org>
33849 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33851 2007-04-10 Bruno Haible <bruno@clisp.org>
33853 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33854 for NaN and Infinity. Needed on FreeBSD 6.1.
33855 * tests/test-vasnprintf-posix.c (test_function): Undo last change
33856 regarding results for "%010a" of Infinity and NaN.
33857 * tests/test-vasprintf-posix.c (test_function): Likewise.
33858 * tests/test-snprintf-posix.h (test_function): Likewise.
33859 * tests/test-sprintf-posix.h (test_function): Likewise.
33860 * tests/test-fprintf-posix.h (test_function): Likewise.
33861 * tests/test-printf-posix.h (test_function): Likewise.
33862 * tests/test-fprintf-posix.out: Likewise.
33864 2007-04-10 Bruno Haible <bruno@clisp.org>
33866 * modules/locale-tests: New file.
33867 * tests/test-locale.c: New file.
33869 * modules/locale: New file.
33870 * lib/locale_.h: New file.
33871 * m4/locale_h.m4: New file.
33873 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
33874 Bruno Haible <bruno@clisp.org>
33876 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33877 be determined, test for availability of the copysignf, copysign,
33878 copysignl functions.
33879 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33880 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33881 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33883 2007-04-09 Eric Blake <ebb9@byu.net>
33885 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33886 * modules/stdio (Makefile.am): Support fflush.
33887 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33888 * modules/fflush: New file.
33889 * lib/fflush.c: Likewise.
33890 * m4/fflush.m4: Likewise.
33891 * modules/fflush-tests: New test.
33892 * tests/test-fflush.c: Likewise.
33893 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33895 2007-04-06 Bruno Haible <bruno@clisp.org>
33897 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33898 (VASNPRINTF): Use signbit for faster determination whether to print a
33900 * modules/vasnprintf (Files): Remove lib/float+.h.
33901 * modules/fprintf-posix (Depends-on): Add signbit.
33902 * modules/snprintf-posix (Depends-on): Likewise.
33903 * modules/sprintf-posix (Depends-on): Likewise.
33904 * modules/vasnprintf-posix (Depends-on): Likewise.
33905 * modules/vasprintf-posix (Depends-on): Likewise.
33906 * modules/vfprintf-posix (Depends-on): Likewise.
33907 * modules/vsnprintf-posix (Depends-on): Likewise.
33908 * modules/vsprintf-posix (Depends-on): Likewise.
33910 2007-04-06 Bruno Haible <bruno@clisp.org>
33912 * tests/test-frexp.c (main): Test also the sign bit of zero results.
33913 * tests/test-frexpl.c (main): Likewise.
33914 * tests/test-ldexpl.c (main): Likewise.
33915 * modules/frexp-tests (Depends-on): Add signbit.
33916 * modules/frexpl-tests (Depdends-on): Likewise.
33917 * modules/ldexpl-tests (Depdends-on): Likewise.
33919 2007-04-06 Bruno Haible <bruno@clisp.org>
33921 * modules/signbit-tests: New file.
33922 * tests/test-signbit.c: New file.
33924 * modules/signbit: New file.
33925 * lib/signbitf.c: New file.
33926 * lib/signbitd.c: New file.
33927 * lib/signbitl.c: New file.
33928 * m4/signbit.m4: New file.
33929 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33930 (signbit): New macro.
33931 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33933 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33934 REPLACE_FREXPL into math.h.
33936 2007-04-06 Bruno Haible <bruno@clisp.org>
33938 * modules/isnanf-nolibm-tests: New file.
33939 * tests/test-isnanf.c: New file.
33941 * modules/isnanf-nolibm: New file.
33942 * lib/isnanf.h: New file.
33943 * lib/isnanf.c: New file.
33944 * lib/isnan.c: Consider the USE_FLOAT macro.
33945 * m4/isnanf.m4: New file.
33947 2007-04-06 Bruno Haible <bruno@clisp.org>
33949 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33950 (Link): New section.
33952 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33954 2007-04-06 Bruno Haible <bruno@clisp.org>
33956 Assume the 'long double' type.
33957 * m4/longdouble.m4: Remove file.
33958 * config/srclist.txt: Don't mention longdouble.m4.
33959 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33960 * lib/float+.h: Likewise.
33961 * lib/frexp.c: Likewise.
33962 * lib/printf-args.h: Likewise.
33963 * lib/printf-args.c: Likewise.
33964 * lib/printf-frexp.c: Likewise.
33965 * lib/printf-parse.c: Likewise.
33966 * lib/vasnprintf.c: Likewise.
33967 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33968 * m4/intl.m4: Likewise.
33969 * m4/isnanl.m4: Likewise.
33970 * m4/printf.m4: Likewise.
33971 * m4/printf-frexpl.m4: Likewise.
33972 * m4/vasnprintf.m4: Likewise.
33973 * modules/allocsa (Files): Remove m4/longdouble.m4.
33974 * modules/gettext (Files): Likewise.
33975 * modules/relocatable-prog-wrapper (Files): Likewise.
33976 * modules/vasnprintf (Files): Likewise.
33977 * modules/isnanl (Files): Likewise.
33978 (Include): Simplify.
33979 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33980 (Include): Simplify.
33981 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33982 (Include): Simplify.
33983 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33984 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33985 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33986 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33987 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33988 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33989 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33990 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33991 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33992 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33993 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33994 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33995 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33996 * tests/test-isnanl.c: Likewise.
33997 * tests/test-snprintf-posix.h: Likewise.
33998 * tests/test-sprintf-posix.h: Likewise.
33999 * tests/test-vasnprintf-posix.c: Likewise.
34000 * tests/test-vasnprintf-posix2.c: Likewise.
34001 * tests/test-vasprintf-posix.c: Likewise.
34003 2007-04-06 Bruno Haible <bruno@clisp.org>
34005 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34006 * lib/math_.h [__DECC]: Include the overridden include file through
34007 #include_next, outside the double-inclusion guard.
34008 * lib/stdio_.h [__DECC]: Likewise.
34009 * lib/stdlib_.h [__DECC]: Likewise.
34010 * lib/string_.h [__DECC]: Likewise.
34011 * lib/time_.h [__DECC]: Likewise.
34012 * lib/wchar_.h [__DECC]: Likewise.
34013 * lib/wctype_.h [__DECC]: Likewise.
34014 * lib/inttypes_.h [__DECC]: Likewise.
34015 Reported by Albert Chin <china@thewrittenword.com> in
34016 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34018 2007-04-04 Eric Blake <ebb9@byu.net>
34020 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34023 2007-04-04 Bruno Haible <bruno@clisp.org>
34025 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34026 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34028 2007-04-04 Bruno Haible <bruno@clisp.org>
34030 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34031 results for "%010a" of Infinity and NaN.
34032 * tests/test-vasprintf-posix.c (test_function): Likewise.
34033 * tests/test-snprintf-posix.h (test_function): Likewise.
34034 * tests/test-sprintf-posix.h (test_function): Likewise.
34035 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34036 * tests/test-printf-posix.h (test_function): Likewise.
34037 * tests/test-fprintf-posix.out: Update.
34038 Needed for FreeBSD 6.1.
34040 2007-04-04 Bruno Haible <bruno@clisp.org>
34042 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34043 directly used by the gnulib modules nor by gnulib-tool.
34045 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34047 * DEPENDENCIES: Give overall description of version dependency
34048 desirability. Use more-typical names for apps.
34049 Add shell, coreutils, diffutils, grep, tar, gzip.
34051 2007-04-04 Simon Josefsson <simon@josefsson.org>
34053 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34055 2007-04-04 Karl Berry <karl@gnu.org>
34057 * MODULES.html.sh (func_module): missing '.
34059 2007-04-03 Bruno Haible <bruno@clisp.org>
34061 * modules/argmatch-tests (Makefile.am): New variable
34062 test_argmatch_LDADD.
34063 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34064 * modules/array-list-tests (Makefile.am): New variable
34065 test_array_list_LDADD.
34066 * modules/array-oset-tests (Makefile.am): New variable
34067 test_array_oset_LDADD.
34068 * modules/avltree-list-tests (Makefile.am): New variable
34069 test_avltree_list_LDADD.
34070 * modules/avltree-oset-tests (Makefile.am): New variable
34071 test_avltree_oset_LDADD.
34072 * modules/avltreehash-list-tests (Makefile.am): New variable
34073 test_avltreehash_list_LDADD.
34074 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34075 test_canonicalize_lgpl_LDADD.
34076 * modules/carray-list-tests (Makefile.am): New variable
34077 test_carray_list_LDADD.
34078 * modules/dirname-tests (Makefile.am): New variable
34079 test_dirname_LDADD.
34080 * modules/linked-list-tests (Makefile.am): New variable
34081 test_linked_list_LDADD.
34082 * modules/linkedhash-list-tests (Makefile.am): New variable
34083 test_linkedhash_list_LDADD.
34084 * modules/rbtree-list-tests (Makefile.am): New variable
34085 test_rbtree_list_LDADD.
34086 * modules/rbtree-oset-tests (Makefile.am): New variable
34087 test_rbtree_oset_LDADD.
34088 * modules/rbtreehash-list-tests (Makefile.am): New variable
34089 test_rbtreehash_list_LDADD.
34090 * modules/xvasprintf-tests (Makefile.am): New variable
34091 test_xvasprintf_LDADD.
34092 Reported by Eric Blake.
34094 2007-04-03 Eric Blake <ebb9@byu.net>
34096 * DEPENDENCIES: Weaken m4 requirements.
34098 2007-04-03 Bruno Haible <bruno@clisp.org>
34100 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34101 * modules/isnanl-tests (configure.ac): Likewise.
34103 2007-04-03 Ben Pfaff <blp@gnu.org>
34105 * modules/iconv_open: Add $(srcdir)/ to source directory
34106 references in Makefile fragments that call gperf, to fix VPATH
34109 2007-04-03 Bruno Haible <bruno@clisp.org>
34111 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34112 * lib/ldexpl.c: Undo last change.
34114 2007-04-03 Bruno Haible <bruno@clisp.org>
34116 * modules/printf-frexpl (Depends-on): Undo last change.
34117 (Files): Add m4/ldexpl.m4.
34119 2007-04-03 Bruno Haible <bruno@clisp.org>
34121 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34122 * modules/isnanl (Link): New section.
34124 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34125 * modules/frexp (Link): New section.
34127 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34128 * modules/frexpl (Link): New section.
34130 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34131 * modules/ldexpl (Link): New section.
34133 2007-04-03 Bruno Haible <bruno@clisp.org>
34135 * modules/TEMPLATE-EXTENDED: New file.
34136 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34138 2007-04-03 Bruno Haible <bruno@clisp.org>
34140 * DEPENDENCIES: New file.
34141 Suggested by Simon Josefsson.
34143 2007-04-03 Bruno Haible <bruno@clisp.org>
34145 * doc/gnulib.texi: Escape @.
34147 2007-04-03 James Youngman <jay@gnu.org>
34148 and Paul Eggert <eggert@cs.ucla.edu>
34150 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34151 birthtime on all systems that have birthtime, not just those which
34152 use st_birthtimensec rather than st_birthtim. Putting zero in
34153 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34154 that the birth time is not available for files on an NFS mount.
34156 2007-04-03 Simon Josefsson <simon@josefsson.org>
34158 * modules/memxor: Move back from crypto/, suggested by Bruno.
34159 * modules/crypto/hmac-sha1: Fix memxor dependency.
34161 * modules/crypto/gc: Moved from ../.
34163 2007-04-02 Eric Blake <ebb9@byu.net>
34165 * lib/ldexpl.c (includes): Avoid libm.
34167 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34169 2007-04-02 Bruno Haible <bruno@clisp.org>
34171 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34174 2007-04-02 Bruno Haible <bruno@clisp.org>
34176 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34177 x86 or x86_64 platforms running MacOS X.
34178 Reported by Ryan Schmidt <@ryandesign.com>.
34180 2007-04-02 Bruno Haible <bruno@clisp.org>
34182 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34185 2007-04-01 Simon Josefsson <simon@josefsson.org>
34187 * modules/crypto/arcfour: Moved from ../.
34188 * modules/crypto/arcfour-tests: Moved from ../.
34189 * modules/crypto/arctwo: Moved from ../.
34190 * modules/crypto/arctwo-tests: Moved from ../.
34191 * modules/crypto/des: Moved from ../.
34192 * modules/crypto/des-tests: Moved from ../.
34193 * modules/crypto/gc-arcfour: Moved from ../.
34194 * modules/crypto/gc-arcfour-tests: Moved from ../.
34195 * modules/crypto/gc-arctwo: Moved from ../.
34196 * modules/crypto/gc-arctwo-tests: Moved from ../.
34197 * modules/crypto/gc-des: Moved from ../.
34198 * modules/crypto/gc-des-tests: Moved from ../.
34199 * modules/crypto/gc-hmac-md5: Moved from ../.
34200 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34201 * modules/crypto/gc-hmac-sha1: Moved from ../.
34202 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34203 * modules/crypto/gc-md2: Moved from ../.
34204 * modules/crypto/gc-md2-tests: Moved from ../.
34205 * modules/crypto/gc-md4: Moved from ../.
34206 * modules/crypto/gc-md4-tests: Moved from ../.
34207 * modules/crypto/gc-md5: Moved from ../.
34208 * modules/crypto/gc-md5-tests: Moved from ../.
34209 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34210 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34211 * modules/crypto/gc-random: Moved from ../.
34212 * modules/crypto/gc-rijndael: Moved from ../.
34213 * modules/crypto/gc-rijndael-tests: Moved from ../.
34214 * modules/crypto/gc-sha1: Moved from ../.
34215 * modules/crypto/gc-sha1-tests: Moved from ../.
34216 * modules/crypto/gc-tests: Moved from ../.
34217 * modules/crypto/hmac-md5: Moved from ../.
34218 * modules/crypto/hmac-md5-tests: Moved from ../.
34219 * modules/crypto/hmac-sha1: Moved from ../.
34220 * modules/crypto/hmac-sha1-tests: Moved from ../.
34221 * modules/crypto/md2: Moved from ../.
34222 * modules/crypto/md2-tests: Moved from ../.
34223 * modules/crypto/md4: Moved from ../.
34224 * modules/crypto/md4-tests: Moved from ../.
34225 * modules/crypto/md5: Moved from ../.
34226 * modules/crypto/md5-tests: Moved from ../.
34227 * modules/crypto/memxor: Moved from ../.
34228 * modules/crypto/rijndael: Moved from ../.
34229 * modules/crypto/rijndael-tests: Moved from ../.
34230 * modules/crypto/sha1: Moved from ../.
34232 2007-03-30 James Youngman <jay@gnu.org>
34234 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34235 rename() to change the ctime of a file (because ctime is unaffected
34236 by rename on jfs2 on AIX 5.1).
34237 (main): Start by doing cleanup, in case a previous run failed leaving
34240 2007-03-31 Bruno Haible <bruno@clisp.org>
34242 Support old proprietary implementations of iconv.
34243 * modules/iconv_open: New file.
34244 * lib/iconv_.h: New file.
34245 * m4/iconv_h.m4: New file.
34246 * lib/iconv_open.c: New file.
34247 * lib/iconv_open-aix.gperf: New file.
34248 * lib/iconv_open-hpux.gperf: New file.
34249 * lib/iconv_open-irix.gperf: New file.
34250 * lib/iconv_open-osf.gperf: New file.
34251 * m4/iconv_open.m4: New file.
34252 * modules/linebreak (Depends-on): Add iconv_open.
34253 * modules/striconv (Depends-on): Likewise.
34254 * modules/striconveh (Depends-on): Likewise.
34255 * modules/unicodeio (Depends-on): Likewise.
34256 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34258 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34259 conversion if cd is (iconv_t)(-1).
34260 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34263 2007-03-31 Bruno Haible <bruno@clisp.org>
34265 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34266 work on Solaris either. Protect also second use of "autodetect_jp".
34268 2007-03-31 Bruno Haible <bruno@clisp.org>
34270 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34271 the function is not present.
34273 2007-03-31 Bruno Haible <bruno@clisp.org>
34275 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34276 the function is not present.
34278 2007-03-31 Bruno Haible <bruno@clisp.org>
34280 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34281 a bug in HP-UX iconv_open().
34283 2007-03-31 Bruno Haible <bruno@clisp.org>
34285 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34286 (Mathematics <math.h>): New section, add fpieee.
34287 (Input/output <stdio.h>): Add fseterr.
34288 (Mathematics <math.h>): New section, add printf-frexp.
34289 (Container data structures): Add sublist.
34290 (Core language properties): Add fpucw, inline.
34291 (Functions for greatest-width integer types <inttypes.h>): Add
34292 imaxabs, imaxdiv, inttypes.
34293 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34294 isnanl-nolibm, ldexp.
34295 (Mathematics <math.h>): New section, add printf-frexpl.
34296 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34297 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34298 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34299 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34300 (Unicode string functions): Add unistr/u*-mbtoucr.
34301 (Java): Add javacomp-script, javaexec-script.
34302 (C#): Add csharpcomp-script, csharpexec-script.
34303 (Support for building libraries and executables): Add havelib,
34305 (Support for maintaining and releasing projects): Renamed from
34306 'Support for maintaining and release projects'. Add announce-gen.
34308 2007-03-31 Bruno Haible <bruno@clisp.org>
34310 * README: Talk primarily about git.
34311 (git and CVS): Renamed from CVS.
34312 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34313 gnulib is available through git.
34314 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34316 2007-03-30 Bruno Haible <bruno@clisp.org>
34318 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34319 * lib/poll_.h: Likewise.
34320 * lib/stat_.h: Likewise.
34321 * lib/sys_time_.h: Likewise.
34322 * lib/sysexit_.h: Likewise.
34323 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34324 * lib/stdbool_.h: Likewise.
34325 * lib/byteswap_.h: Add double-inclusion guard.
34327 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34329 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34331 2007-03-30 Karl Berry <karl@gnu.org>
34333 * config/srclist-update: double space after USA in the license
34334 substitution, since that's how it's usually (?) written.
34336 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34338 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34339 reported by Bruno Haible.
34341 2007-03-29 Bruno Haible <bruno@clisp.org>
34343 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34344 a bug in AIX iconv().
34346 2007-03-29 Bruno Haible <bruno@clisp.org>
34348 * modules/ldexpl-tests: New file.
34349 * tests/test-ldexpl.c: New file.
34351 2007-03-29 Bruno Haible <bruno@clisp.org>
34353 * lib/ldexpl.c: Include fpucw.h.
34354 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34356 * modules/ldexpl (Depends-on): Add fpucw.
34358 2007-03-29 Bruno Haible <bruno@clisp.org>
34360 * modules/ldexpl: New file.
34361 * m4/ldexpl.m4: New file.
34362 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34364 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34366 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34368 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34369 gl_FUNC_LDEXPL_WORKS.
34370 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34371 * modules/mathl (Files): Remove lib/ldexpl.c.
34372 (Depends-on): Add ldexpl.
34374 2007-03-29 Bruno Haible <bruno@clisp.org>
34376 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34378 2007-03-29 Bruno Haible <bruno@clisp.org>
34380 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34381 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34382 and possibly also HP-UX.
34383 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34384 work on AIX, IRIX, HP-UX, OSF/1.
34385 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34386 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34387 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34388 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34389 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34390 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34392 2007-03-29 Bruno Haible <bruno@clisp.org>
34394 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34396 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34398 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34399 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34401 2007-03-29 Eric Blake <ebb9@byu.net>
34403 * lib/acl-internal.h: Remove redundant include.
34404 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34405 Cygwin when a file is locked.
34407 2007-03-29 Bruno Haible <bruno@clisp.org>
34409 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34411 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34413 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34415 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34416 try to remove a parent directory if the child couldn't be removed
34417 (except for the first rmdir, which could fail because the child
34418 doesn't exist). Problem reported by Jeff Blaine in
34419 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34421 2007-03-28 Bruno Haible <bruno@clisp.org>
34423 * lib/striconveh.c (utf8conv_carefully): New function.
34424 (mem_cd_iconveh_internal): Invoke it.
34426 2007-03-28 Bruno Haible <bruno@clisp.org>
34428 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34429 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34431 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34432 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34435 2007-03-28 Bruno Haible <bruno@clisp.org>
34437 * modules/unistr/u8-mbtoucr: New file.
34438 * lib/unistr/u8-mbtoucr.c: New file.
34439 * modules/unistr/u16-mbtoucr: New file.
34440 * lib/unistr/u16-mbtoucr.c: New file.
34441 * modules/unistr/u16-mbtoucr: New file.
34442 * lib/unistr/u16-mbtoucr.c: New file.
34443 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34445 2007-03-27 Simon Josefsson <simon@josefsson.org>
34446 Bruno Haible <bruno@clisp.org>
34448 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34449 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34450 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34452 * m4/stdio_h.m4: Add stubs for vasprintf too.
34454 * modules/stdio: Support vasprintf in sed command.
34456 * modules/vasprintf: Depend on stdio for prototypes. Remove
34457 vasprintf.h. Add stdio module indicator.
34459 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34462 * lib/vasprintf.h: File removed.
34464 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34465 * lib/vasprintf.c: Ditto.
34466 * lib/xvasprintf.c: Ditto.
34467 * tests/test-vasprintf-posix.c: Ditto.
34468 * tests/test-vasprintf.c: Ditto.
34470 2007-03-27 Bruno Haible <bruno@clisp.org>
34472 Make vasnprintf multithread-safe.
34473 * lib/vasnprintf.c (decimal_point_char): New function.
34474 (VASNPRINTF): Use it.
34475 Suggested by Simon Josefsson.
34477 2007-03-27 Eric Blake <ebb9@byu.net>
34479 Support sub-second birthtime on cygwin.
34480 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34481 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34482 (get_stat_birthtime): Also work with st_birthtim.
34484 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34486 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34487 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34488 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34489 (get_stat_birthtime_ns): Simplify compile-time tests.
34490 (get_stat_birthtime): Change the API to look like
34491 get_stat_mtime etc., except return a negative tv_nsec on error.
34492 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34493 Don't check for "spare" fields.
34494 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34495 or for struct stat.st_birthtime, as these tests aren't used.
34496 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34498 2007-03-27 Bruno Haible <bruno@clisp.org>
34500 * lib/stat-time.h: Include <sys/stat.h>.
34502 2007-03-27 James Youngman <jay@gnu.org>
34504 * lib/stat-time.h (get_stat_birthtime): New function for
34505 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34506 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34508 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34509 * modules/stat-time-test: New file.
34510 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34512 2007-03-26 Bruno Haible <bruno@clisp.org>
34514 Better support of signalling NaNs.
34515 * lib/atanl.c: Include isnanl.h.
34516 (atanl): Perform test for NaN at the beginning of the function and
34517 through a call to isnanl.
34518 * lib/cosl.c: Include isnanl.h.
34519 (cosl): Perform test for NaN at the beginning of the function and
34520 through a call to isnanl.
34521 * lib/ldexpl.c: Include isnanl.h.
34522 (ldexpl): Perform test for NaN through a call to isnanl.
34523 * lib/logl.c: Include isnanl.h.
34524 (logl): Perform test for NaN at the beginning of the function and
34525 through a call to isnanl.
34526 * lib/sinl.c: Include isnanl.h.
34527 (sinl): Perform test for NaN at the beginning of the function and
34528 through a call to isnanl.
34529 * lib/sqrtl.c: Include isnanl.h.
34530 (sqrtl): Perform test for NaN at the beginning of the function and
34531 through a call to isnanl.
34532 * lib/tanl.c: Include isnanl.h.
34533 (tanl): Perform test for NaN at the beginning of the function and
34534 through a call to isnanl.
34535 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34536 * modules/mathl (Depends-on): Add isnanl.
34538 2007-03-26 Eric Blake <ebb9@byu.net>
34540 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34541 regression in logic sense of previous patch.
34543 2007-03-26 Bruno Haible <bruno@clisp.org>
34545 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34546 unportable shell command "if ! ...".
34547 Reported by Ralf Wildenhues.
34549 2007-03-25 Bruno Haible <bruno@clisp.org>
34551 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34552 <sysexits.h> file, and only add EX_CONFIG.
34553 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34554 absolute file name and whether it is sufficient. Substitute also
34555 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34556 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34557 ABSOLUTE_SYSEXITS_H into sysexits.h.
34559 2007-03-25 Bruno Haible <bruno@clisp.org>
34561 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34564 2007-03-25 Bruno Haible <bruno@clisp.org>
34566 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34567 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34569 2007-03-25 Bruno Haible <bruno@clisp.org>
34571 * lib/vasnprintf.c: Include langinfo.h.
34572 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34574 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34575 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34576 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34577 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34578 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34579 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34580 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34581 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34582 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34583 Reported by Simon Josefsson.
34585 2007-03-25 Bruno Haible <bruno@clisp.org>
34587 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34588 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34589 * modules/vasnprintf (Depends-on): Add stdint.
34591 2007-03-25 Bruno Haible <bruno@clisp.org>
34593 * modules/fpieee: New file.
34594 * m4/fpieee.m4: New file.
34595 * modules/isnan-nolibm (Depends-on): Add fpieee.
34596 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34597 * modules/isnanl (Depends-on): Add fpieee.
34599 2007-03-25 Bruno Haible <bruno@clisp.org>
34601 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34603 2007-03-25 Bruno Haible <bruno@clisp.org>
34605 Avoid test failures on IRIX 6.5.
34606 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34608 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34612 2007-03-25 Bruno Haible <bruno@clisp.org>
34614 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34615 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34616 exists but doesn't work.
34617 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34618 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34619 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34620 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34622 2007-03-25 Bruno Haible <bruno@clisp.org>
34624 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34625 returns inf. Needed on IRIX 6.5.
34627 2007-03-25 Bruno Haible <bruno@clisp.org>
34629 * tests/test-frexpl.c: Include isnanl-nolibm.h.
34630 (main): Use isnanl instead of x != x idiom.
34631 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34633 * tests/test-frexp.c: Include isnan.h.
34634 (main): Use isnan instead of x != x idiom.
34635 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34637 2007-03-25 Bruno Haible <bruno@clisp.org>
34639 * tests/test-frexp.c (NaN): New function/macro.
34640 (main): Use it instead of 0.0 / 0.0.
34641 * tests/test-isnan.c (NaN): New function/macro.
34642 (main): Use it instead of 0.0 / 0.0.
34643 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34644 (test_function): Use it instead of 0.0 / 0.0.
34645 * tests/test-vasprintf-posix.c (NaN): New function/macro.
34646 (test_function): Use it instead of 0.0 / 0.0.
34647 * tests/test-snprintf-posix.h (NaN): New function/macro.
34648 (test_function): Use it instead of 0.0 / 0.0.
34649 * tests/test-sprintf-posix.h (NaN): New function/macro.
34650 (test_function): Use it instead of 0.0 / 0.0.
34651 * tests/test-fprintf-posix.h (NaN): New function/macro.
34652 (test_function): Use it instead of 0.0 / 0.0.
34653 * tests/test-printf-posix.h (NaN): New function/macro.
34654 (test_function): Use it instead of 0.0 / 0.0.
34656 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34658 2007-03-25 Bruno Haible <bruno@clisp.org>
34660 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34662 2007-03-25 Bruno Haible <bruno@clisp.org>
34664 * lib/regexec.c (merge_state_with_log): Make static.
34666 2007-03-25 Bruno Haible <bruno@clisp.org>
34668 * lib/trigl.c (kernel_rem_pio2): Make static.
34670 2007-03-25 Bruno Haible <bruno@clisp.org>
34672 * lib/sincosl.c (sincosl_table): Make static.
34674 2007-03-25 Bruno Haible <bruno@clisp.org>
34676 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34677 if the compiler does not support C99.
34679 2007-03-25 Bruno Haible <bruno@clisp.org>
34681 * modules/time (Makefile.am): Ensure all rule action lines start with a
34684 2007-03-24 Bruno Haible <bruno@clisp.org>
34686 * modules/tsearch-tests: New file.
34687 * tests/test-tsearch.sh: New file.
34688 * tests/test-tsearch.c: New file, mostly copied from glibc.
34690 * modules/search-tests: New file.
34691 * tests/test-search.c: New file.
34693 * modules/search: New file.
34694 * lib/search_.h: New file, incorporating lib/tsearch.h.
34695 * m4/search_h.m4: New file.
34696 * lib/tsearch.h: Remove file.
34697 * lib/tsearch.c: Include search.h instead of tsearch.h.
34698 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34700 * modules/tsearch (Files): Remove lib/tsearch.h.
34701 (Depends-on): Add search.
34702 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34703 (Include): Change tsearch.h into search.h.
34705 2007-03-24 Bruno Haible <bruno@clisp.org>
34707 * modules/fpucw: New file.
34708 * lib/fpucw.h: New file.
34709 * lib/frexp.c: Include fpucw.h.
34710 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34712 * lib/printf-frexp.c: Include fpucw.h.
34713 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34715 * lib/vasnprintf.c: Include fpucw.h.
34716 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34717 'long double' calculations.
34718 * tests/test-frexpl.c: Include fpucw.h.
34719 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34720 * tests/test-printf-frexpl.c: Include fpucw.h.
34721 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34722 * modules/frexpl (Depends-on): Add fpucw.
34723 * modules/printf-frexpl (Depends-on): Likewise.
34724 * modules/fprintf-posix (Depends-on): Likewise.
34725 * modules/snprintf-posix (Depends-on): Likewise.
34726 * modules/sprintf-posix (Depends-on): Likewise.
34727 * modules/vasnprintf-posix (Depends-on): Likewise.
34728 * modules/vasprintf-posix (Depends-on): Likewise.
34729 * modules/vfprintf-posix (Depends-on): Likewise.
34730 * modules/vsnprintf-posix (Depends-on): Likewise.
34731 * modules/vsprintf-posix (Depends-on): Likewise.
34732 * modules/frexpl-tests (Depends-on): Likewise.
34733 * modules/printf-frexpl-tests (Depends-on): Likewise.
34735 2007-03-24 Bruno Haible <bruno@clisp.org>
34737 * lib/float+.h: New file.
34738 * lib/isnan.c: Include float+.h.
34740 (FUNC): Compare only SIZE bytes of the value.
34741 * lib/vasnprintf.c: Include float+.h.
34742 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34743 SIZEOF_LDBL or SIZEOF_DBL bytes.
34744 * modules/isnan-nolibm (Files): Add lib/float+.h.
34745 * modules/isnanl-nolibm (Files): Add lib/float+.h.
34746 * modules/isnanl (Files): Add lib/float+.h.
34747 * modules/vasnprintf (Files): Add lib/float+.h.
34749 2007-03-24 Bruno Haible <bruno@clisp.org>
34751 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34752 include isnanl-nolibm.h.
34754 2007-03-24 Bruno Haible <bruno@clisp.org>
34756 * tests/test-read-file.c (main): Don't produce spurious output for
34757 expected situations. Make the test fail if it encountered unexpected
34760 2007-03-24 Bruno Haible <bruno@clisp.org>
34762 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34763 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34765 2007-03-24 Bruno Haible <bruno@clisp.org>
34767 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34769 2007-03-24 Bruno Haible <bruno@clisp.org>
34771 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34772 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34774 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34775 * modules/utf8-ucs4: Turn into a symbolic link to module
34778 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34780 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34781 unistr/u8-mbtouc-unsafe.
34783 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34784 * modules/utf16-ucs4: Turn into a symbolic link to module
34787 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34789 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34790 unistr/u16-mbtouc-unsafe.
34792 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34793 * modules/ucs4-utf8: Turn into a symbolic link to module
34796 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34797 * modules/ucs4-utf16: Turn into a symbolic link to module
34800 2007-03-24 Bruno Haible <bruno@clisp.org>
34802 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34803 Enable the function only if HAVE_INLINE.
34804 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34805 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34806 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34807 Enable the function only if HAVE_INLINE.
34808 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34809 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34810 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34811 Enable the function only if HAVE_INLINE.
34812 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34813 Enable the function only if HAVE_INLINE.
34814 * modules/utf8-ucs4: Update.
34815 * modules/utf8-ucs4-unsafe: Update.
34816 * modules/utf16-ucs4: Update.
34817 * modules/utf16-ucs4-unsafe: Update.
34818 * modules/ucs4-utf8: Update.
34819 * modules/ucs4-utf16: Update.
34821 2007-03-24 Bruno Haible <bruno@clisp.org>
34823 * lib/utf8-ucs4.h: Remove file.
34824 * lib/utf8-ucs4-unsafe.h: Remove file.
34825 * lib/utf16-ucs4.h: Remove file.
34826 * lib/utf16-ucs4-unsafe.h: Remove file.
34827 * lib/ucs4-utf8.h: Remove file.
34828 * lib/ucs4-utf16.h: Remove file.
34829 * lib/unistr.h: Include their previous contents.
34830 * m4/utf-ucs4.m4: Remove file.
34831 * m4/ucs4-utf.m4: Remove file.
34832 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34833 (Depends-on): Add unistr/base.
34834 (configure.ac): Remove gl_UTF_UCS4.
34835 (Makefile.am): Update.
34836 (Include): Change to unistr.h.
34837 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34838 (Depends-on): Add unistr/base.
34839 (configure.ac): Remove gl_UTF_UCS4.
34840 (Makefile.am): Update.
34841 (Include): Change to unistr.h.
34842 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34843 (Depends-on): Add unistr/base.
34844 (configure.ac): Remove gl_UTF_UCS4.
34845 (Makefile.am): Update.
34846 (Include): Change to unistr.h.
34847 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34848 (Depends-on): Add unistr/base.
34849 (configure.ac): Remove gl_UTF_UCS4.
34850 (Makefile.am): Update.
34851 (Include): Change to unistr.h.
34852 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34853 (Depends-on): Add unistr/base.
34854 (configure.ac): Remove gl_UCS4_UTF.
34855 (Makefile.am): Update.
34856 (Include): Change to unistr.h.
34857 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34858 (Depends-on): Add unistr/base.
34859 (configure.ac): Remove gl_UCS4_UTF.
34860 (Makefile.am): Update.
34861 (Include): Change to unistr.h.
34862 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34863 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34864 utf8-ucs4-unsafe.h.
34865 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34866 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34867 utf16-ucs4-unsafe.h.
34868 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34869 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34870 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34871 * lib/unistr/u8-strchr.c: Likewise.
34872 * lib/unistr/u8-strrchr.c: Likewise.
34873 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34874 * lib/unistr/u16-strchr.c: Likewise.
34875 * lib/unistr/u16-strrchr.c: Likewise.
34876 * lib/striconveh.c: Update.
34877 * lib/linebreak.c: Update.
34879 2007-03-24 Bruno Haible <bruno@clisp.org>
34881 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34882 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34884 2007-03-22 Bruno Haible <bruno@clisp.org>
34886 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34888 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
34890 * MODULES.html.sh (File system functions): New module write-any-file.
34891 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34892 * m4/write-any-file.m4: New files.
34894 2007-03-23 Eric Blake <ebb9@byu.net>
34896 * gnulib-tool: Rearrange space-tab sequences, since some editors
34899 2007-03-23 Eric Blake <ebb9@byu.net>
34901 * lib/version-etc.c (version_etc_va): Update license wording to
34902 be more concise. Recommended by Richard Stallman.
34904 2007-03-22 Bruno Haible <bruno@clisp.org>
34906 * lib/poll.c (MSG_PEEK): New fallback definition.
34908 2007-03-22 Bruno Haible <bruno@clisp.org>
34910 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34911 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34913 Fixes a compilation error on BeOS.
34915 2007-03-22 Bruno Haible <bruno@clisp.org>
34917 * modules/frexpl-tests: New file.
34918 * tests/test-frexpl.c: New file.
34920 * modules/frexpl: New file.
34921 * m4/frexpl.m4: New file.
34922 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34923 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34924 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34925 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34926 (Depends-on): Add frexpl. Remove isnanl-nolibm.
34927 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34929 2007-03-22 Bruno Haible <bruno@clisp.org>
34931 * lib/frexpl.c: Share code with lib/frexp.c.
34932 * modules/mathl (Files): Add lib/frexp.c.
34933 (Depends-on): Add isnanl-nolibm.
34935 2007-03-22 Bruno Haible <bruno@clisp.org>
34937 * modules/printf-frexp (Files): Add m4/frexp.m4.
34938 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34939 only if the found frexp function actually works.
34941 2007-03-22 Bruno Haible <bruno@clisp.org>
34943 * lib/frexp.c: Remove older implementation that uses divisions.
34945 2007-03-21 Bruno Haible <bruno@clisp.org>
34947 * modules/frexp-tests: New file.
34948 * tests/test-frexp.c: New file.
34950 * modules/frexp: New file.
34951 * lib/frexp.c: New file.
34952 * m4/frexp.m4: New file.
34953 * lib/math_.h (frexp): New declaration.
34954 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34956 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34958 2007-03-21 Bruno Haible <bruno@clisp.org>
34960 * modules/isnanl-tests: New file.
34961 * tests/test-isnanl.c: New file.
34963 * modules/isnanl: New file.
34964 * lib/isnanl.h: New file.
34965 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34966 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34967 gl_FUNC_ISNANL_WORKS.
34968 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34971 2007-03-21 Bruno Haible <bruno@clisp.org>
34973 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34976 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34977 * lib/vasnprintf.c: Update.
34978 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34979 tests/test-isnanl.h, remove tests/test-isnanl.c.
34980 (Makefile.am): Update.
34981 * tests/test-isnanl-nolibm.c: New file.
34982 * tests/test-isnanl.h: New file.
34983 * tests/test-isnanl.c: Remove file.
34985 2007-03-21 Jim Meyering <jim@meyering.net>
34987 When trying to open ".", treat ESTALE like EACCES.
34988 * lib/savewd.c (savewd_save): Resort to forking not just upon
34989 failure with EACCES, but also when errno is ESTALE.
34991 2007-03-20 Bruno Haible <bruno@clisp.org>
34993 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34994 Needed on AIX 5.1. Reported by Matthew Woehlke.
34996 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
34998 Suggestions by Bruno Haible:
34999 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35001 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35002 * modules/acl (Depends-on): Add gettext.
35004 2007-03-19 Bruno Haible <bruno@clisp.org>
35006 * modules/iconvme: Remove file.
35007 * lib/iconvme.h: Remove file.
35008 * lib/iconvme.c: Remove file.
35009 * m4/iconvme.m4: Remove file.
35011 2007-03-19 Bruno Haible <bruno@clisp.org>
35013 * doc/relocatable-maint.texi: Break long shell script line.
35014 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35016 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35018 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35019 handle file_has_acl.
35020 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35021 * lib/acl.c: Move header inclusions and related macro defns into
35022 lib/acl-internal.h.
35023 (S_ISLNK): Remove defn, since that's now done for us.
35024 (file_has_acl): Move to lib/file-has-acl.c.
35025 Call acl_trivial if available. This is the crucial part of the fix.
35026 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35027 shared within the library. Rewrite a bit, partly to make it compatible
35028 with the GNU coding style.
35029 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35030 Remove unnecessary double-quotes.
35031 Don't test for acl_to_text; the build will catch that.
35032 Replace acl_entries if it doesn't exist and it is needed.
35033 Check for -lsec and acl_trivial (as used on Solaris 10).
35034 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35035 lib/file-has-acl.c.
35036 (Depends-on): Add sys_stat, for S_ISLNK.
35038 2007-03-19 Ben Pfaff <blp@gnu.org>
35040 * doc/gnulib.texi: Fix typos.
35041 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35043 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35045 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35046 If size is zero here, buf must be zero.
35048 2007-03-19 Simon Josefsson <simon@josefsson.org>
35050 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35053 2007-03-18 Bruno Haible <bruno@clisp.org>
35055 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35056 Suggested by Eric Blake.
35058 2007-03-18 Ben Pfaff <blp@gnu.org>
35060 * doc/relocatable.texi: Recommend using as prefix a directory
35061 that does not exist and will never be created. Based on
35062 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35065 2007-03-17 Bruno Haible <bruno@clisp.org>
35067 * lib/fchownat.c: Include lchown.h.
35069 2007-03-17 Bruno Haible <bruno@clisp.org>
35071 Fix endless loop when the given allocated size was > INT_MAX.
35072 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35073 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35074 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35075 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35076 * lib/sprintf.c (sprintf): Likewise.
35078 2007-03-17 Bruno Haible <bruno@clisp.org>
35080 * tests/test-argp-2.sh (func_compare): Output a context diff.
35082 2007-03-17 Bruno Haible <bruno@clisp.org>
35084 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35085 locale's decimal-point character.
35087 2007-03-17 Bruno Haible <bruno@clisp.org>
35089 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35090 before comparing it. Needed because on some platforms (e.g. x86) a
35091 'long double' occupies less bytes than sizeof (long double).
35093 2007-03-17 Bruno Haible <bruno@clisp.org>
35095 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35096 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35097 * tests/test-getaddrinfo.c (simple): Likewise.
35098 * tests/test-read-file.c (main): Likewise.
35100 2007-03-17 Bruno Haible <bruno@clisp.org>
35102 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35104 2007-03-17 Bruno Haible <bruno@clisp.org>
35106 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35109 2007-03-17 Bruno Haible <bruno@clisp.org>
35111 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35112 * tests/test-c-strncasecmp.c: Likewise.
35114 2007-03-17 Bruno Haible <bruno@clisp.org>
35116 * modules/stdlib (Depends-on): Add unistd.
35117 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35118 Needed for MacOS X 10.3.
35120 2007-03-17 Bruno Haible <bruno@clisp.org>
35122 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35124 2007-03-17 Bruno Haible <bruno@clisp.org>
35126 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35128 2007-03-17 Bruno Haible <bruno@clisp.org>
35130 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35131 to reflect files copied from gnulib (with or without modifications).
35132 Suggested by Jim Meyering.
35134 2007-03-17 Eric Blake <ebb9@byu.net>
35136 * NEWS: Document stdlib change from 2007-02-18.
35138 2007-03-17 Jim Meyering <jim@meyering.net>
35140 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35141 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35142 someone uses a name containing shell meta-characters.
35143 Reported by Alfred M. Szmidt.
35145 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35147 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35149 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35150 and copy gettext configuration files only if configure.ac contains
35151 a use of AM_GNU_GETTEXT_VERSION.
35153 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35155 * build-aux/bootstrap (gnulib_name): New variable.
35156 (gnulib_tool_options): Use it.
35158 2007-03-13 Simon Josefsson <simon@josefsson.org>
35160 * tests/test-des.c: Use new namespace.
35162 2007-03-15 Bruno Haible <bruno@clisp.org>
35164 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35165 Reported by James Youngman <jay@gnu.org>.
35167 2007-03-15 Bruno Haible <bruno@clisp.org>
35169 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35170 declared prototype. Needed with cc on OSF/1 5.1.
35172 2007-03-15 Bruno Haible <bruno@clisp.org>
35174 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35175 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35176 (struct gl_list_implementation): Add dispose_fn argument to the
35177 'create_empty', 'create' methods.
35178 (struct gl_list_impl_base): Add field 'dispose_fn'.
35179 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35181 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35182 dispose_fn argument.
35183 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35184 dispose_fn on the dropped values.
35185 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35186 dispose_fn argument.
35187 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35189 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35190 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35191 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35192 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35193 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35195 (gl_tree_list_free): Call dispose_fn on the dropped values.
35196 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35197 the dropped values.
35198 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35199 Add dispose_fn argument.
35200 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35201 Call dispose_fn on the dropped values.
35202 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35203 Add dispose_fn argument.
35204 (gl_sublist_create): Initialize the 'dispose_fn' field.
35205 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35206 * tests/test-array_list.c (main): Update.
35207 * tests/test-carray_list.c (main): Update.
35208 * tests/test-avltree_list.c (main): Update.
35209 * tests/test-rbtree_list.c (main): Update.
35210 * tests/test-avltreehash_list.c (main): Update.
35211 * tests/test-rbtreehash_list.c (main): Update.
35212 * tests/test-linked_list.c (main): Update.
35213 * tests/test-linkedhash_list.c (main): Update.
35214 * tests/test-array_oset.c (main): Update.
35216 2007-03-15 Bruno Haible <bruno@clisp.org>
35218 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35219 (gl_oset_create_empty): Add dispose_fn argument.
35220 (struct gl_oset_implementation): Add dispose_fn argument to
35221 'create_empty' method.
35222 (struct gl_oset_impl_base): Add dispose_fn field.
35223 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35224 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35225 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35227 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35228 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35229 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35231 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35233 * tests/test-array_oset.c (main): Update.
35234 * tests/test-avltree_oset.c (main): Update.
35235 * tests/test-rbtree_oset.c (main): Update.
35236 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35238 2007-03-13 Bruno Haible <bruno@clisp.org>
35240 * tests/test-stdbool.c (i): Update after last patch.
35242 2007-03-12 Bruno Haible <bruno@clisp.org>
35244 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35245 the iswprint macro. Needed on Solaris 2.5.1.
35247 2007-03-12 Bruno Haible <bruno@clisp.org>
35249 * tests/test-printf-frexp.c (main): Declare x as volatile.
35251 2007-03-12 Simon Josefsson <simon@josefsson.org>
35253 * doc/gnulib.texi (Build robot for gnulib): New section.
35255 2007-03-12 Jim Meyering <jim@meyering.net>
35257 * build-aux/bootstrap: New file.
35258 * build-aux/bootstrap.conf: New file, from coreutils.
35260 2007-03-11 Bruno Haible <bruno@clisp.org>
35262 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35264 2007-03-12 Simon Josefsson <simon@josefsson.org>
35266 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35267 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35268 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35270 2007-03-11 Bruno Haible <bruno@clisp.org>
35272 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35273 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35275 2007-03-11 Bruno Haible <bruno@clisp.org>
35277 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35278 formula. Needed for SunPRO C 5.0.
35280 2007-03-11 Bruno Haible <bruno@clisp.org>
35282 * modules/long-options (Depends-on): Add getopt.
35284 2007-03-11 Bruno Haible <bruno@clisp.org>
35286 * modules/modechange (Depends-on): Add stdbool.
35288 2007-03-11 Bruno Haible <bruno@clisp.org>
35290 * modules/i-ring (Depends-on): Add stdbool.
35292 2007-03-11 Bruno Haible <bruno@clisp.org>
35294 * modules/gc-des (Depends-on): Add stdbool.
35296 2007-03-11 Bruno Haible <bruno@clisp.org>
35298 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35300 2007-03-11 Bruno Haible <bruno@clisp.org>
35302 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35304 2007-03-11 Bruno Haible <bruno@clisp.org>
35306 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35308 2007-03-11 Bruno Haible <bruno@clisp.org>
35310 * lib/vasnprintf.c (sprintf): Undefine.
35312 2007-03-11 Bruno Haible <bruno@clisp.org>
35314 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35315 initializers in SunPRO C and Compaq C compilers.
35317 2007-03-11 Bruno Haible <bruno@clisp.org>
35319 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35320 decrementing code ANSI C compliant.
35322 2007-03-11 Bruno Haible <bruno@clisp.org>
35324 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35325 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35327 2007-03-11 Bruno Haible <bruno@clisp.org>
35329 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35330 <stdbool.h> substitute doesn't pass.
35332 2007-03-11 Bruno Haible <bruno@clisp.org>
35334 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35336 2007-03-11 Bruno Haible <bruno@clisp.org>
35338 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35339 script, for submission to autobuild.josefsson.org.
35341 2007-03-10 Bruno Haible <bruno@clisp.org>
35343 * modules/canonicalize-lgpl-tests: New file.
35344 * tests/test-canonicalize-lgpl.sh: New file.
35345 * tests/test-canonicalize-lgpl.c: New file.
35347 * modules/c-strcase-tests: New file.
35348 * tests/test-c-strcase.sh: New file.
35349 * tests/test-c-strcasecmp.c: New file.
35350 * tests/test-c-strncasecmp.c: New file.
35352 * modules/atexit-tests: New file.
35353 * tests/test-atexit.sh: New file.
35354 * tests/test-atexit.c: New file.
35356 2007-03-10 Bruno Haible <bruno@clisp.org>
35358 * tests/test-binary-io.sh: Use temporary filenames that are not so
35359 likely to clash with those of other tests (in a parallel make).
35360 * tests/test-binary-io.c: Likewise.
35362 2007-03-10 Bruno Haible <bruno@clisp.org>
35364 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35365 fallback; use #error instead.
35366 Suggested by Simon Josefsson.
35368 2007-03-10 Bruno Haible <bruno@clisp.org>
35370 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35371 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35372 first and the last.
35374 2007-03-10 Bruno Haible <bruno@clisp.org>
35376 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35378 2007-03-10 Bruno Haible <bruno@clisp.org>
35380 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35382 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35383 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35384 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35386 2007-03-10 Bruno Haible <bruno@clisp.org>
35388 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35390 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35393 2007-03-09 Eric Blake <ebb9@byu.net>
35394 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35396 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35397 types are not being provided by gnulib.
35398 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35399 types are supported.
35401 2007-03-10 Bruno Haible <bruno@clisp.org>
35403 * lib/stdio_.h (__attribute__): New macro.
35404 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35405 vsprintf): Specify __attribute__ __format__ for GCC.
35406 Suggested by Eric Blake.
35408 2007-03-09 Bruno Haible <bruno@clisp.org>
35410 * modules/printf-posix-tests: New file.
35411 * tests/test-printf-posix.sh: New file.
35412 * tests/test-printf-posix.c: New file.
35414 * modules/printf-posix: New file.
35415 * lib/printf.c: New file.
35416 * m4/printf-posix-rpl.m4: New file.
35417 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35419 * lib/stdio_.h (printf): New declaration.
35420 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35421 ____strfmon____): New macros.
35422 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35425 2007-03-09 Bruno Haible <bruno@clisp.org>
35427 * tests/test-vasnprintf-posix2.sh: New file.
35428 * tests/test-vasnprintf-posix2.c: New file.
35429 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35430 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35431 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35433 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35434 a locale dependent decimal point, rather than always '.'.
35436 2007-03-09 Eric Blake <ebb9@byu.net>
35438 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35439 spite of platforms like Tandem/NSK that define it to -1.
35441 2007-03-08 Bruno Haible <bruno@clisp.org>
35443 * modules/vprintf-posix-tests: New file.
35444 * tests/test-vprintf-posix.sh: New file.
35445 * tests/test-vprintf-posix.c: New file.
35446 * tests/test-printf-posix.h: New file.
35448 * modules/vprintf-posix: New file.
35449 * lib/vprintf.c: New file.
35450 * m4/vprintf-posix.m4: New file.
35451 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35453 * lib/stdio_.h (vprintf): New declaration.
35454 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35457 2007-03-08 Bruno Haible <bruno@clisp.org>
35459 * modules/fprintf-posix-tests: New file.
35460 * tests/test-fprintf-posix.sh: New file.
35461 * tests/test-fprintf-posix.c: New file.
35463 * modules/fprintf-posix: New file.
35464 * lib/fprintf.c: New file.
35465 * m4/fprintf-posix.m4: New file.
35466 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35468 * lib/stdio_.h (fprintf): New declaration.
35469 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35472 2007-03-08 Bruno Haible <bruno@clisp.org>
35474 * modules/vfprintf-posix-tests: New file.
35475 * tests/test-vfprintf-posix.sh: New file.
35476 * tests/test-vfprintf-posix.c: New file.
35477 * tests/test-fprintf-posix.h: New file.
35478 * tests/test-fprintf-posix.out: New file.
35480 * modules/vfprintf-posix: New file.
35481 * lib/vfprintf.c: New file.
35482 * m4/vfprintf-posix.m4: New file.
35483 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35485 * lib/stdio_.h (vfprintf): New declaration.
35486 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35489 2007-03-08 Bruno Haible <bruno@clisp.org>
35491 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35493 2007-03-08 Bruno Haible <bruno@clisp.org>
35495 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35496 instead of 'expr' invocations.
35497 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35498 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35499 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35500 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35501 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35502 Suggested by Paul Eggert.
35504 2007-03-08 Bruno Haible <bruno@clisp.org>
35506 * modules/fseterr-tests: New file.
35507 * tests/test-fseterr.c: New file.
35509 * modules/fseterr: New file.
35510 * lib/fseterr.h: New file.
35511 * lib/fseterr.c: New file.
35513 2007-03-08 Bruno Haible <bruno@clisp.org>
35515 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35516 * lib/getopt_.h: Likewise.
35517 * lib/mbswidth.h: Likewise.
35518 * lib/setenv.h: Likewise.
35519 * lib/vasnprintf.h: Likewise.
35520 * lib/vasprintf.h: Likewise.
35521 * lib/verror.h: Likewise.
35522 * lib/xsetenv.h: Likewise.
35523 * lib/xvasprintf.h: Likewise.
35525 2007-03-08 Jim Meyering <jim@meyering.net>
35527 * users.txt: Add parted.
35529 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35531 2007-03-07 Bruno Haible <bruno@clisp.org>
35533 * m4/printf.m4: Make the shell script snippets copy&pastable.
35535 2007-03-02 Bruno Haible <bruno@clisp.org>
35537 * lib/netinet_in_.h: New file.
35538 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35539 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35540 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35541 (Depends-on): Add absolute-header.
35542 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35545 2007-03-03 Bruno Haible <bruno@clisp.org>
35547 * lib/sys_select_.h: New file.
35548 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35549 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35550 * modules/sys_select (Files): Add lib/sys_select_.h.
35551 (Depends-on): Add absolute-header.
35552 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35555 2007-03-02 Bruno Haible <bruno@clisp.org>
35557 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35558 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35560 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35561 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35562 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35563 * modules/sys_socket (Depends-on): Add absolute-header.
35564 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35565 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35566 (Include): Remove requirement of inclusion of <sys/types.h>.
35568 2007-03-02 Bruno Haible <bruno@clisp.org>
35570 * lib/byteswap_.h (bswap_32): Fix formula.
35572 2007-03-06 Bruno Haible <bruno@clisp.org>
35574 * modules/sprintf-posix-tests: New file.
35575 * tests/test-sprintf-posix.c: New file.
35577 * modules/sprintf-posix: New file.
35578 * lib/sprintf.c: New file.
35579 * m4/sprintf-posix.m4: New file.
35580 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35582 * lib/stdio_.h (sprintf): New declaration.
35583 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35586 2007-03-06 Bruno Haible <bruno@clisp.org>
35588 * modules/vsprintf-posix-tests: New file.
35589 * tests/test-vsprintf-posix.c: New file.
35590 * tests/test-sprintf-posix.h: New file.
35592 * modules/vsprintf-posix: New file.
35593 * lib/vsprintf.c: New file.
35594 * m4/vsprintf-posix.m4: New file.
35595 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35597 * lib/stdio_.h (vsprintf): New declaration.
35598 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35601 2007-03-06 Bruno Haible <bruno@clisp.org>
35603 * modules/vsnprintf (Depend-on): Remove minmax.
35605 2007-03-06 Bruno Haible <bruno@clisp.org>
35607 * modules/snprintf-posix-tests: New file.
35608 * tests/test-snprintf-posix.c: New file.
35610 * modules/snprintf-posix: New file.
35611 * m4/snprintf-posix.m4: New file.
35612 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35614 (gl_FUNC_SNPRINTF): Invoke it.
35615 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35616 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35618 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35620 2007-03-06 Bruno Haible <bruno@clisp.org>
35622 * modules/vsnprintf-posix-tests: New file.
35623 * tests/test-vsnprintf-posix.c: New file.
35624 * tests/test-snprintf-posix.h: New file.
35626 * modules/vsnprintf-posix: New file.
35627 * m4/vsnprintf-posix.m4: New file.
35628 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35630 (gl_FUNC_VSNPRINTF): Invoke it.
35631 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35632 * lib/stdio_.h (vsnprintf): Define as a replacement if
35633 REPLACE_VSNPRINTF is set.
35634 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35636 2007-03-06 Bruno Haible <bruno@clisp.org>
35638 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35639 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35641 2007-03-06 Bruno Haible <bruno@clisp.org>
35643 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35644 (asinl): Declare also if HAVE_DECL_ASINL is set.
35645 (atanl): Declare also if HAVE_DECL_ATANL is set.
35646 (ceill): Declare also if HAVE_DECL_CEILL is set.
35647 (cosl): Declare also if HAVE_DECL_COSL is set.
35648 (expl): Declare also if HAVE_DECL_EXPL is set.
35649 (floorl): Declare also if HAVE_DECL_FLOORL is set.
35650 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35651 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35652 (logl): Declare also if HAVE_DECL_LOGL is set.
35653 (sinl): Declare also if HAVE_DECL_SINL is set.
35654 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35655 (tanl): Declare also if HAVE_DECL_TANL is set.
35656 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35657 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35658 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35659 declaration of frexpl, ldexpl.
35660 * modules/printf-frexpl (Depends-on): Add math.
35661 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35663 2007-03-05 Bruno Haible <bruno@clisp.org>
35665 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35666 frexpl and ldexpl are declared.
35667 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35669 2007-03-05 Bruno Haible <bruno@clisp.org>
35671 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35672 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35674 2007-03-05 Bruno Haible <bruno@clisp.org>
35676 * lib/stdio_.h: Include <stddef.h>.
35678 2007-03-05 Bruno Haible <bruno@clisp.org>
35680 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35682 2007-03-05 Bruno Haible <bruno@clisp.org>
35684 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35685 NetBSD 4, from Ralf Wildenhues.
35687 2007-03-04 Bruno Haible <bruno@clisp.org>
35689 * lib/vasprintf.h: Update #if logic for the case when the functions
35690 exist but are overridden.
35692 2007-03-04 Bruno Haible <bruno@clisp.org>
35694 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35695 implementations: glibc-2.4 and MacOS X 10.3.
35696 * tests/test-vasnprintf-posix.c (test_function): Test also the case
35697 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35698 * tests/test-vasprintf-posix.c (test_function): Likewise.
35700 2007-03-04 Bruno Haible <bruno@clisp.org>
35702 * modules/vasprintf-posix-tests: New file.
35703 * tests/test-vasprintf-posix.c: New file.
35705 * modules/vasprintf-posix: New file.
35706 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35708 * m4/vasprintf-posix.m4: New file.
35709 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35711 (gl_FUNC_VASPRINTF): Invoke it.
35712 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35714 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35716 2007-03-04 Bruno Haible <bruno@clisp.org>
35718 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35719 REPLACE_GETTIMEOFDAY.
35720 * modules/sys_time (Makefile.am): Likewise.
35721 * m4/sys_time_h.m4: Likewise.
35722 * m4/gettimeofday.m4: Likewise.
35724 2007-03-04 Bruno Haible <bruno@clisp.org>
35726 * modules/vasnprintf-posix-tests: New file.
35727 * tests/test-vasnprintf-posix.c: New file.
35729 * modules/vasnprintf-posix: New file.
35730 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35732 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35733 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35734 REPLACE_VASNPRINTF is defined.
35735 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35736 gl_FUNC_VASNPRINTF.
35737 (gl_FUNC_VASNPRINTF): Invoke it.
35738 * m4/vasnprintf-posix.m4: New file.
35739 * m4/printf.m4: New file.
35741 2007-03-04 Bruno Haible <bruno@clisp.org>
35743 Compile progreloc.c only if --enable-relocatable is specified.
35744 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35745 if --enable-relocatable was specified.
35746 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35749 2007-03-04 Jim Meyering <jim@meyering.net>
35751 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35752 Use it consistently, rather than enumerating errno constants.
35754 2007-03-04 Bruno Haible <bruno@clisp.org>
35756 * modules/xvasprintf-tests: New file.
35757 * tests/test-xvasprintf.c: New file.
35759 * modules/vasprintf-tests: New file.
35760 * tests/test-vasprintf.c: New file.
35762 * modules/vasnprintf-tests: New file.
35763 * tests/test-vasnprintf.c: New file.
35765 * modules/vsnprintf-tests: New file.
35766 * tests/test-vsnprintf.c: New file.
35768 * modules/snprintf-tests: New file.
35769 * tests/test-snprintf.c: New file.
35771 2007-03-04 Bruno Haible <bruno@clisp.org>
35773 Compile relocatable.c only if --enable-relocatable is specified.
35774 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35775 gl_RELOCATABLE_LIBRARY.
35776 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35777 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35778 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35779 gl_RELOCATABLE_LIBRARY.
35780 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35781 (Makefile.am): Remove lib_SOURCES.
35782 * modules/relocatable-lib-lgpl (configure.ac): Invoke
35783 gl_RELOCATABLE_LIBRARY.
35784 (Makefile.am): Remove lib_SOURCES.
35785 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35787 * modules/relocatable-prog-wrapper (configure.ac): Invoke
35788 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35790 2007-03-04 Bruno Haible <bruno@clisp.org>
35792 * modules/argmatch-tests: New file.
35793 * tests/test-argmatch.c: New file.
35795 * tests/test-allocsa.c (main): Halve the number of loop runs.
35797 * modules/alloca-opt-tests: New file.
35798 * tests/test-alloca-opt.c: New file.
35800 2007-03-04 Jim Meyering <jim@meyering.net>
35802 Work around difference between Linux ACLs and Solaris 10 ZFS.
35803 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35806 2007-03-03 Bruno Haible <bruno@clisp.org>
35808 * modules/relocatable-prog (Depends-on): Add back progreloc's
35809 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35811 2007-03-03 Bruno Haible <bruno@clisp.org>
35813 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35814 * modules/relocatable-lib: New file.
35816 2007-03-03 Bruno Haible <bruno@clisp.org>
35818 * modules/relocatable-prog: Renamed from modules/relocatable.
35819 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35821 2007-03-03 Bruno Haible <bruno@clisp.org>
35823 * modules/relocatable-script (Files): Add doc/relocatable.texi,
35824 m4/relocatable-lib.m4.
35825 (Depends-on): Remove 'relocatable'.
35826 (configure.ac): Add gl_RELOCATABLE_NOP.
35828 2007-03-03 Bruno Haible <bruno@clisp.org>
35830 * modules/relocatable-prog-wrapper: New file.
35831 * modules/relocatable (Depends-on): Add it. Remove all other
35832 dependencies except progname.
35833 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35835 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35836 (gl_FUNC_STRERROR): Nop.
35837 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35839 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35840 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35842 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35843 (gl_FUNC_READLINK): Update.
35845 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35847 2007-03-03 Bruno Haible <bruno@clisp.org>
35849 * lib/xreadlink.c: Include <unistd.h> unconditionally.
35850 * modules/xreadlink (Depends-on): Add unistd.
35851 * modules/xreadlink-with-size (Depends-on): Likewise.
35853 2007-03-03 Bruno Haible <bruno@clisp.org>
35855 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35856 extracted from gt_FUNC_SETENV.
35857 (gt_FUNC_SETENV): Remove macro.
35858 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35859 remove gt_FUNC_SETENV.
35861 2007-03-03 Bruno Haible <bruno@clisp.org>
35863 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35864 ENABLE_RELOCATABLE here.
35865 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35867 2007-03-03 Bruno Haible <bruno@clisp.org>
35869 * modules/rbtreehash-list-tests (Depends-on): Add progname.
35870 * tests/test-rbtreehash_list.c: Include progname.h.
35871 (main): Call set_program_name.
35873 * modules/rbtree-oset-tests (Depends-on): Add progname.
35874 * tests/test-rbtree_oset.c: Include progname.h.
35875 (main): Call set_program_name.
35877 * modules/rbtree-list-tests (Depends-on): Add progname.
35878 * tests/test-rbtree_list.c: Include progname.h.
35879 (main): Call set_program_name.
35881 * modules/linked-list-tests (Depends-on): Add progname.
35882 * tests/test-linked_list.c: Include progname.h.
35883 (main): Call set_program_name.
35885 2007-03-03 Bruno Haible <bruno@clisp.org>
35887 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35888 All uses of __restrict changed to _Restrict_.
35889 * lib/glob_.h (__restrict): Remove macro.
35891 2007-03-02 Bruno Haible <bruno@clisp.org>
35893 * modules/gettext (configure.ac): Require gettext infrastructure
35894 from version 0.16.1.
35896 2007-03-02 Bruno Haible <bruno@clisp.org>
35898 * modules/linkedhash-list-tests (Depends-on): Add progname.
35899 * tests/test-linkedhash_list.c: Include progname.h.
35900 (main): Call set_program_name.
35902 * modules/carray-list-tests (Depends-on): Add progname.
35903 * tests/test-carray_list.c: Include progname.h.
35904 (main): Call set_program_name.
35906 * modules/avltreehash-list-tests (Depends-on): Add progname.
35907 * tests/test-avltreehash_list.c: Include progname.h.
35908 (main): Call set_program_name.
35910 * modules/avltree-oset-tests (Depends-on): Add progname.
35911 * tests/test-avltree_oset.c: Include progname.h.
35912 (main): Call set_program_name.
35914 * modules/avltree-list-tests (Depends-on): Add progname.
35915 * tests/test-avltree_list.c: Include progname.h.
35916 (main): Call set_program_name.
35918 * modules/array-oset-tests (Depends-on): Add progname.
35919 * tests/test-array_oset.c: Include progname.h.
35920 (main): Call set_program_name.
35922 * modules/array-list-tests (Depends-on): Add progname.
35923 * tests/test-array_list.c: Include progname.h.
35924 (main): Call set_program_name.
35926 * modules/argp-tests (Depends-on): Add progname.
35927 * tests/test-argp.c: Include argp.h first. Include progname.h.
35928 (main): Call set_program_name.
35930 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
35932 * doc/gnulib-tool.texi (Initial import): Reword description of
35933 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35934 limited effect even if defined after the first system include.
35936 2007-03-01 Bruno Haible <bruno@clisp.org>
35938 * build-aux/config.libpath: Update to libtool-1.5.22.
35939 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35941 2007-03-01 Bruno Haible <bruno@clisp.org>
35943 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35945 Reported by Ralf Wildenhues.
35947 2007-03-01 Bruno Haible <bruno@clisp.org>
35949 * build-aux/install-reloc: Remove object files left over by some
35951 Reported by Ralf Wildenhues.
35953 2007-03-01 Bruno Haible <bruno@clisp.org>
35955 * build-aux/install-reloc: Break long lines.
35957 2007-03-01 Bruno Haible <bruno@clisp.org>
35959 * doc/relocatable.texi: Document that it may not work on OpenBSD.
35960 Reported by Ralf Wildenhues.
35962 2007-03-01 Bruno Haible <bruno@clisp.org>
35964 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35965 include ordering constraints.
35967 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
35969 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35970 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35971 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35972 as another example.
35973 * lib/time_.h: Fix misspelling.
35974 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35975 Require gl_HEADER_TIME_H_DEFAULTS.
35976 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35977 * m4/time_r.m4 (gl_TIME_R): Likewise.
35978 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35980 2007-03-01 Bruno Haible <bruno@clisp.org>
35982 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35983 * m4/utimens.m4 (gl_UTIMENS): Likewise.
35985 2007-03-01 Jim Meyering <jim@meyering.net>
35987 * modules/xreadlink (Maintainer): Add my name.
35988 * modules/xreadlink-with-size (Depends-on): Alphabetize.
35990 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
35991 Bruno Haible <bruno@clisp.org>
35993 * build-aux/install-reloc: Compile also c-ctype.c.
35994 * build-aux/relocatable.sh.in: New file.
35995 * doc/relocatable.texi: New file.
35996 * doc/relocatable-maint.texi: New file.
35997 * doc/gnulib.texi: Include relocatable-maint.texi.
35998 * lib/progreloc.c: Include unistd.h unconditionally.
35999 * lib/relocwrapper.c: Include unistd.h unconditionally.
36001 (add_dotbin): Use c_tolower.
36002 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36003 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36004 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36005 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36006 to m4/relocatable-lib.m4.
36007 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36008 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36009 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36010 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36011 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36012 * modules/relocatable: New file.
36013 * modules/relocatable-lib: New file.
36014 * modules/relocatable-script: New file.
36016 2007-02-28 Bruno Haible <bruno@clisp.org>
36018 Import --enable-relocatable infrastructure.
36019 * build-aux/config.libpath: New file, from GNU gettext.
36020 * build-aux/install-reloc: New file, from GNU gettext.
36021 * build-aux/reloc-ldflags: New file, from GNU gettext.
36022 * lib/relocatable.h: New file, from GNU gettext.
36023 * lib/relocatable.c: New file, from GNU gettext.
36024 * lib/relocwrapper.c: New file, from GNU gettext.
36025 * m4/relocatable.m4: New file, from GNU gettext.
36027 2007-02-28 Bruno Haible <bruno@clisp.org>
36029 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36031 * modules/xreadlink: New file, from GNU gettext with modifications.
36032 * lib/xreadlink.c: New file, from GNU gettext.
36033 * lib/xreadlink.h: Add comments.
36034 (xreadlink): New declaration.
36036 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36037 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36038 lib/xreadlink-with-size.c.
36039 (configure.ac): Remove gl_XREADLINK invocation.
36040 (Makefile.am): Augment lib_SOURCES.
36041 * m4/xreadlink.m4: Remove file.
36042 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36043 (xreadlink_with_size): Renamed from xreadink.
36044 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36045 * modules/canonicalize (Depends-on): Replace xreadlink with
36046 xreadlink-with-size.
36047 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36049 2007-02-25 Jim Meyering <jim@meyering.net>
36051 * build-aux/announce-gen: When complaining about excess arguments,
36054 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36056 * README: Document signed integer overflow situation more
36059 2007-02-25 Bruno Haible <bruno@clisp.org>
36061 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36062 'a' or 'A' conversion.
36064 2007-02-25 Bruno Haible <bruno@clisp.org>
36066 * modules/filename: Renamed from modules/pathname.
36067 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36068 lib/concatpath.c with lib/concat-filename.c.
36069 (Makefile.am): Update.
36070 (Include): Replace pathname.h with filename.h.
36071 * lib/filename.h: Renamed from lib/pathname.h.
36072 (concatenated_filename): Renamed from concatenated_pathname.
36073 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36074 (concatenated_filename): Renamed from concatenated_pathname.
36075 * lib/findprog.c: Include filename.h instead of pathname.h.
36076 (find_in_path): Update.
36077 * lib/javacomp.c: Include filename.h instead of pathname.h.
36078 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36079 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36080 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36081 is_oldgcj_14_13_usable, is_javac_usable): Update.
36082 * lib/javaexec.c: Include filename.h instead of pathname.h.
36083 (execute_java_class): Update.
36084 * modules/findprog: Update.
36085 * modules/javacomp: Update.
36086 * modules/javaexec: Update.
36087 * MODULES.html.sh (File system functions): Add 'filename', remove
36090 2007-02-25 Bruno Haible <bruno@clisp.org>
36092 * modules/printf-frexpl-tests: New file.
36093 * tests/test-printf-frexpl.c: New file.
36095 * modules/printf-frexpl: New file.
36096 * lib/printf-frexpl.h: New file.
36097 * lib/printf-frexpl.c: New file.
36098 * m4/printf-frexpl.m4: New file.
36100 2007-02-25 Bruno Haible <bruno@clisp.org>
36102 * modules/printf-frexp-tests: New file.
36103 * tests/test-printf-frexp.c: New file.
36105 * modules/printf-frexp: New file.
36106 * lib/printf-frexp.h: New file.
36107 * lib/printf-frexp.c: New file.
36108 * m4/printf-frexp.m4: New file.
36110 2007-02-25 Bruno Haible <bruno@clisp.org>
36112 Assume automake >= 1.10 for the tests.
36113 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36114 * modules/arctwo-tests: Likewise.
36115 * modules/argp-tests: Likewise.
36116 * modules/avltree-list-tests: Likewise.
36117 * modules/avltree-oset-tests: Likewise.
36118 * modules/avltreehash-list-tests: Likewise.
36119 * modules/carray-list-tests: Likewise.
36120 * modules/crc-tests: Likewise.
36121 * modules/des-tests: Likewise.
36122 * modules/gc-arcfour-tests: Likewise.
36123 * modules/gc-arctwo-tests: Likewise.
36124 * modules/gc-des-tests: Likewise.
36125 * modules/gc-hmac-md5-tests: Likewise.
36126 * modules/gc-hmac-sha1-tests: Likewise.
36127 * modules/gc-md2-tests: Likewise.
36128 * modules/gc-md4-tests: Likewise.
36129 * modules/gc-md5-tests: Likewise.
36130 * modules/gc-pbkdf2-sha1-tests: Likewise.
36131 * modules/gc-rijndael-tests: Likewise.
36132 * modules/gc-sha1-tests: Likewise.
36133 * modules/gc-tests: Likewise.
36134 * modules/getaddrinfo-tests: Likewise.
36135 * modules/hmac-md5-tests: Likewise.
36136 * modules/hmac-sha1-tests: Likewise.
36137 * modules/linked-list-tests: Likewise.
36138 * modules/linkedhash-list-tests: Likewise.
36139 * modules/lock-tests: Likewise.
36140 * modules/md2-tests: Likewise.
36141 * modules/md4-tests: Likewise.
36142 * modules/md5-tests: Likewise.
36143 * modules/rbtree-list-tests: Likewise.
36144 * modules/rbtree-oset-tests: Likewise.
36145 * modules/rbtreehash-list-tests: Likewise.
36146 * modules/read-file-tests: Likewise.
36147 * modules/rijndael-tests: Likewise.
36148 * modules/stdint-tests: Likewise.
36149 * modules/tls-tests: Likewise.
36151 2007-02-24 Bruno Haible <bruno@clisp.org>
36153 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36154 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36155 function; instead check whether isnan with a double argument links.
36156 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36157 function; instead check whether isnan with a 'long double' argument
36159 Reported by Eric Blake <ebb9@byu.net>.
36161 2007-02-24 Bruno Haible <bruno@clisp.org>
36163 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36165 * lib/isnanl.c: Remove all code. Just include isnan.c.
36166 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36168 2007-02-25 Jim Meyering <jim@meyering.net>
36170 Avoid conflicting types for 'unsetenv' on FreeBSD.
36171 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36172 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36175 2007-02-24 Bruno Haible <bruno@clisp.org>
36177 * modules/isnanl-nolibm-tests: New file.
36178 * tests/test-isnanl.c: New file.
36180 * modules/isnanl-nolibm: New file.
36181 * lib/isnanl.h: New file.
36182 * lib/isnanl.c: New file.
36183 * m4/isnanl.m4: New file.
36185 2007-02-24 Bruno Haible <bruno@clisp.org>
36187 * modules/isnan-nolibm-tests: New file.
36188 * tests/test-isnan.c: New file.
36190 * modules/isnan-nolibm: New file.
36191 * lib/isnan.h: New file.
36192 * lib/isnan.c: New file.
36193 * m4/isnan.m4: New file.
36195 2007-02-24 Bruno Haible <bruno@clisp.org>
36197 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36198 assume that an exponent fits in 20 bits.
36200 2007-02-24 Jim Meyering <jim@meyering.net>
36202 * m4/regex.m4: Update the description of the configure-time option,
36203 --without-included-regex, to state accurately what the defaults are,
36204 and perhaps to give people an idea why using this option is risky.
36206 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36208 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36209 loops on small arguments. This attempts to avoid the problem
36210 Bruno Haible reported for AIX 4.3.2 in
36211 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36213 2007-02-23 Bruno Haible <bruno@clisp.org>
36215 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36216 Needed for help2man.
36218 2007-02-23 Karl Berry <karl@gnu.org>
36220 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36221 exists, foo.h should be cvs-ignored, not committed.
36223 2007-02-23 Eric Blake <ebb9@byu.net>
36225 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36226 * lib/stat-time.h (includes): Likewise.
36227 * lib/utimecmp.c (includes): Likewise.
36228 * lib/utimens.h (includes): Likewise.
36229 * lib/getdate.y (includes): Also include "timespec.h" for use
36230 internal to the module.
36231 * modules/utimens (Depends-on): Revert yesterday's patch.
36232 * modules/nanosleep (Depends-on): Add missing dependency.
36234 2007-02-22 Bruno Haible <bruno@clisp.org>
36236 * lib/glob.c: Don't include getlogin_r.h.
36238 2007-02-22 Jim Meyering <jim@meyering.net>
36240 * modules/utimens (Depends-on): Add timespec, required for
36241 utimens.h's inclusion of timespec.h.
36243 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36245 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36246 long unreadable paths in GNU/Linux. Problem reported by Andreas
36248 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36249 I'll try to think of a better way to fix the Solaris problem.
36251 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36252 like glibc; on Solaris 10, it fails with errno == EINVAL.
36253 POSIX says the behavior is unspecified if the first argument is NULL,
36254 so play it safe and never pass NULL to the system getcwd.
36256 2007-02-21 Jim Meyering <jim@meyering.net>
36258 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36259 of gettimeofday. It would conflict with the one now always
36260 provided via sys_time_.h. Reported by Matthew Woehlke, as
36261 an IRIX 6.5 build failure.
36263 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36265 Minor fixups to port to Solaris 10 with Sun C 5.8.
36266 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36267 * modules/getcwd (Depends-on): Add dirfd.
36268 * lib/putenv.c (putenv): #undef it.
36269 (rpl_putenv): New decl.
36270 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36272 2007-02-20 Bruno Haible <bruno@clisp.org>
36274 * modules/stdio-tests: New file.
36275 * tests/test-stdio.c: New file.
36277 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36278 (Depends-on): Add stdio.
36279 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36280 (Include): Use <stdio.h> instead of vsnprintf.h.
36281 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36282 HAVE_DECL_VSNPRINTF.
36283 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36285 * modules/snprintf (Files): Remove lib/snprintf.h.
36286 (Depends-on): Add stdio.
36287 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36288 (Include): Use <stdio.h> instead of snprintf.h.
36289 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36290 HAVE_DECL_SNPRINTF.
36291 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36292 * lib/getaddrinfo.c: Likewise.
36294 * modules/stdio: New file.
36295 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36296 * lib/snprintf.h: Remove file.
36297 * lib/vsnprintf.h: Remove file.
36298 * lib/.cppi-disable: Remove snprintf.h.
36299 * m4/stdio_h.m4: New file.
36300 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36302 2007-02-20 Jim Meyering <jim@meyering.net>
36304 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36305 used by e.g., mingw. From Bruno Haible.
36307 2007-02-19 Bruno Haible <bruno@clisp.org>
36309 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36311 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36313 2007-02-19 Bruno Haible <bruno@clisp.org>
36315 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36318 2007-02-19 Bruno Haible <bruno@clisp.org>
36320 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36322 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36324 2007-02-19 Jim Meyering <jim@meyering.net>
36326 Don't use FD after a successful "fdopendir (fd)".
36327 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36328 Reset it by calling dirfd on the just-obtained DIR*.
36330 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36331 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36333 2007-02-18 Bruno Haible <bruno@clisp.org>
36335 * lib/readlink.c: Include <unistd.h>.
36336 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36338 * modules/readlink (Depends-on): Add unistd.
36339 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36340 (Include): Add <unistd.h>.
36342 * lib/getlogin_r.h: Remove file.
36343 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36344 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36345 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36346 HAVE_DECL_GETLOGIN_R.
36347 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36348 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36349 (Include): Use <unistd.h> instead of getlogin_r.h.
36351 * lib/getcwd.h: Remove file.
36352 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36353 * lib/xgetcwd.c: Likewise.
36354 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36355 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36356 * modules/getcwd (Files): Remove lib/getcwd.h.
36357 (Depends-on): Add unistd.
36358 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36359 (Include): Use <unistd.h> instad of getcwd.h.
36361 * lib/ftruncate.c: Include <unistd.h> first.
36362 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36363 Set HAVE_FTRUNCATE.
36364 * modules/ftruncate (Depends-on): Add unistd.
36365 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36367 * lib/fchdir.c: Include <unistd.h> first.
36368 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36369 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36370 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36371 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36372 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36374 * lib/dup2.c: Include <unistd.h> first.
36375 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36377 * modules/dup2 (Depends-on): Add unistd.
36378 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36380 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36381 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36382 REPLACE_CHOWN. Don't define chown as a macro here.
36383 * modules/chown (Depends-on): Add unistd.
36384 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36386 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36387 Add definition for GL_LINK_WARNING.
36388 (chown, dup2): New declarations.
36389 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36391 (ftruncate): New declaration.
36392 (getcwd): New declaration, taken from old getcwd.h.
36393 (getlogin_r): New declaration, taken from old getlogin_r.h.
36394 (readlink): New declaration.
36395 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36396 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36397 (gl_PREREQ_UNISTD): Remove macro.
36398 (gl_UNISTD_MODULE_INDICATOR): New macro.
36399 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36400 many new variables. Don't set UNISTD_H.
36401 * modules/unistd (Description): Change.
36402 (Depends-on): Add link-warning.
36403 (configure.ac): Update.
36404 (Makefile.am): Create unistd.h always. Substitute many new variables
36407 2007-02-18 Bruno Haible <bruno@clisp.org>
36409 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36410 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36412 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36413 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36414 * lib/getsubopt.h: Remove file.
36415 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36416 (Depends-on): Add stdlib.
36417 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36418 (Includes): Use <stdlib.h> instead of getsubopt.h.
36419 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36420 Set HAVE_GETSUBOPT.
36421 * lib/getsubopt.c: Don't include getsubopt.h.
36423 2007-02-18 Bruno Haible <bruno@clisp.org>
36425 * modules/fchdir (Depends-on): Add dup2.
36427 2007-02-18 Bruno Haible <bruno@clisp.org>
36429 * lib/stdlib_.h: Handle glibc's special invocation convention
36432 2007-02-18 Bruno Haible <bruno@clisp.org>
36434 * modules/stdlib-tests: New file.
36435 * tests/test-stdlib.c: New file.
36437 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36438 (Depends-on): Add stdlib.
36439 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36440 (Includes): Use <stdlib.h> instead of mkstemp.h.
36441 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36442 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36443 * lib/mkstemp.c: Don't include mkstemp.h.
36444 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36445 * lib/stdlib--.h: Don't include mkstemp.h.
36447 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36448 (Depends-on): Add stdlib.
36449 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36450 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36451 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36453 * lib/mkdtemp.c: Don't include mkdtemp.h.
36454 * lib/clean-temp.c: Don't include mkdtemp.h.
36456 * modules/exit (Files): Remove lib/exit.h.
36457 (Depends-on): Add stdlib.
36458 (Makefile.am): Remove lib_SOURCES.
36459 (Include): Use <stdlib.h> instead of exit.h.
36460 * lib/argmatch.c: Don't include exit.h.
36461 * lib/execute.c: Likewise.
36462 * lib/pagealign_alloc.c: Likewise.
36463 * lib/pipe.c: Likewise.
36464 * lib/wait-process.c: Likewise.
36465 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36466 * lib/exitfail.c: Likewise.
36467 * lib/savewd.c: Likewise.
36468 * lib/xsetenv.c: Likewise.
36470 * modules/stdlib: New file.
36471 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36472 and extra comments about mkstemp().
36473 * lib/exit.h: Remove file.
36474 * lib/mkdtemp.h: Remove file.
36475 * lib/mkstemp.h: Remove file.
36476 * m4/stdlib_h.m4: New file.
36477 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36479 2007-02-18 Bruno Haible <bruno@clisp.org>
36481 * modules/math-tests: New file.
36482 * tests/test-math.c: New file.
36484 * modules/math: New file.
36485 * modules/mathl (Files): Remove lib/mathl.h.
36486 (Depends-on): Add math.
36487 (Makefile.am): Don't mention mathl.h.
36488 (Include): Use <math.h> instead of mathl.h.
36489 * lib/math_.h: New file.
36490 * lib/mathl.h: Remove file.
36491 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36493 * lib/asinl.c: Likewise.
36494 * lib/atanl.c: Likewise.
36495 * lib/ceill.c: Likewise.
36496 * lib/cosl.c: Likewise.
36497 * lib/expl.c: Likewise.
36498 * lib/floorl.c: Likewise.
36499 * lib/frexpl.c: Likewise.
36500 * lib/ldexpl.c: Likewise.
36501 * lib/logl.c: Likewise.
36502 * lib/sincosl.c: Likewise.
36503 * lib/sinl.c: Likewise.
36504 * lib/sqrtl.c: Likewise.
36505 * lib/tanl.c: Likewise.
36506 * lib/trigl.c: Likewise.
36507 * m4/math_h.m4: New file.
36508 * MODULES.html.sh (Mathematics): Add math.
36510 2007-02-17 Bruno Haible <bruno@clisp.org>
36512 * modules/wctype-tests: New file.
36513 * tests/test-wctype.c: New file.
36515 * modules/wchar-tests: New file.
36516 * tests/test-wchar.c: New file.
36518 * modules/unistd-tests: New file.
36519 * tests/test-unistd.c: New file.
36521 * modules/time-tests: New file.
36522 * tests/test-time.c: New file.
36524 * modules/sysexits-tests: New file.
36525 * tests/test-sysexits.c: New file.
36527 * modules/sys_time-tests: New file.
36528 * tests/test-sys_time.c: New file.
36530 * modules/sys_stat-tests: New file.
36531 * tests/test-sys_stat.c: New file.
36533 * modules/sys_socket-tests: New file.
36534 * tests/test-sys_socket.c: New file.
36536 * modules/sys_select-tests: New file.
36537 * tests/test-sys_select.c: New file.
36539 * modules/string-tests: New file.
36540 * tests/test-string.c: New file.
36542 * modules/stdbool-tests: New file.
36543 * tests/test-stdbool.c: New file.
36545 * modules/netinet_in-tests: New file.
36546 * tests/test-netinet_in.c: New file.
36548 * modules/inttypes-tests: New file.
36549 * tests/test-inttypes.c: New file.
36551 * modules/fcntl-tests: New file.
36552 * tests/test-fcntl.c: New file.
36554 * modules/byteswap-tests: New file.
36555 * tests/test-byteswap.c: New file.
36557 * modules/arpa_inet-tests: New file.
36558 * tests/test-arpa_inet.c: New file.
36560 2007-02-17 Bruno Haible <bruno@clisp.org>
36562 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36563 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36564 if the corresponding module is not enabled. Emit link warnings if
36565 the function is used nevertheless.
36566 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36567 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36568 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36569 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36570 * modules/inttypes (Depends-on): Add link-warning.
36571 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36572 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36573 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36574 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36575 * modules/imaxdiv (configure.ac): Likewise.
36576 * modules/strtoimax (configure.ac): Likewise.
36577 * modules/strtoumax (configure.ac): Likewise.
36579 2007-02-17 Bruno Haible <bruno@clisp.org>
36581 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36582 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36583 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36584 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36586 2007-02-17 Bruno Haible <bruno@clisp.org>
36588 * modules/link-warning: New file.
36589 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36590 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36591 * modules/string (Depends-on): Add link-warning.
36592 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36594 * MODULES.html.sh (Support for building libraries and executables): Add
36597 2007-02-17 Bruno Haible <bruno@clisp.org>
36599 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36600 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36601 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36604 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36605 Bruno Haible <bruno@clisp.org>
36607 * modules/tmpfile: New file.
36608 * lib/tmpfile.c: New file.
36609 * m4/tmpfile.m4: New file.
36610 * MODULES.html.sh (func_all_modules): New section "Input/output".
36612 2007-02-15 Bruno Haible <bruno@clisp.org>
36614 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36615 (supports_delete_on_close): New function.
36616 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36618 2007-02-14 Bruno Haible <bruno@clisp.org>
36620 * modules/mbspcasecmp-tests: New file.
36621 * tests/test-mbspcasecmp.sh: New file.
36622 * tests/test-mbspcasecmp.c: New file.
36624 New module mbspcasecmp.
36625 * modules/mbspcasecmp: New file.
36626 * lib/mbspcasecmp.c: New file.
36627 * lib/string_.h (strncasecmp): Change warning message.
36628 (mbspcasecmp): New declaration.
36629 * m4/mbspcasecmp.m4: New file.
36630 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36631 GNULIB_MBSPCASECMP.
36632 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36633 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36635 2007-02-14 Bruno Haible <bruno@clisp.org>
36637 * modules/mbsncasecmp-tests: New file.
36638 * tests/test-mbsncasecmp.sh: New file.
36639 * tests/test-mbsncasecmp.c: New file.
36641 New module mbsncasecmp.
36642 * modules/mbsncasecmp: New file.
36643 * lib/mbsncasecmp.c: New file.
36644 * lib/string_.h (mbsncasecmp): New declaration.
36645 * m4/mbsncasecmp.m4: New file.
36646 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36647 GNULIB_MBSNCASECMP.
36648 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36649 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36651 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
36653 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36654 Verify that it doesn't overlap with our flags.
36655 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36656 do not have the desired effect in multibyte locales; instead, use
36658 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36659 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
36660 we don't require GNU fnmatch ourselves (if our users require it, they
36661 should do so explicitly).
36663 Fix regex code so it doesn't rely on strcasecmp.
36664 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36665 Otherwise, include gnulib's langinfo.h.
36666 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36667 undesirable behavior in non-C locales. Instead, rely on localecharset.
36668 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36669 * modules/regex (FILES): Remove m4/codeset.m4.
36670 (Depends-on): Add localcharset. Remove strcase.
36672 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36674 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36675 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36677 2007-02-13 Bruno Haible <bruno@clisp.org>
36679 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36680 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36682 2007-02-12 Bruno Haible <bruno@clisp.org>
36684 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36685 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36686 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36687 time warning rather than a link error.
36689 2007-02-12 Bruno Haible <bruno@clisp.org>
36691 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36692 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36693 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36695 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36697 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36700 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36702 New module 'time', so that apps can include <time.h> as per
36703 POSIX and GNU instead of separate include files like time_r.h
36704 and timegm.h. This implementation tries out a simpler approach
36705 for replacing decls in standard include files (as compared to
36706 the string module), somewhat as an experiment.
36708 * config/srclist.txt: Comment out mktime.c for now.
36709 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36710 since it doesn't apply any more. Use generic wording instead.
36711 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36713 * lib/time_.h, m4/time_h.m4, modules/time: New files.
36714 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36715 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36716 Don't include <sys/types.h>; no longer needed since we assume C89.
36717 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36718 * lib/strftime.c: Likewise.
36719 * lib/time_r.c: Likewise.
36720 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36721 * lib/nanosleep.c: Include <time.h> first, to check interface.
36722 * lib/strptime.c: Likewise.
36723 * lib/time_r.c: Likewise.
36724 * lib/timegm.c: Likewise.
36725 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36727 * lib/timegm.c: Don't include timegm.h; no longer needed.
36728 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36729 time.h now handles any problems in that area.
36730 (struct timespec, nanosleep): Remove; time.h now arranges for these.
36731 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36732 that time.h defines struct timespec.
36733 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36734 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
36736 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36737 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36738 needed. Set REPLACE_LOCALTIME.
36739 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36740 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36741 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36742 nanosleep; time_h.m4 now does that. Don't require
36743 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36744 module handles this now.
36745 * modules/getdate (Depends-on): Remove timespec. Add time.
36746 * modules/nanosleep (Depends-on): Likewise.
36747 * modules/stat-time (Depends-on): Likewise.
36748 * modules/nanosleep (Include): Include time.h, not timespec.h.
36749 * modules/strptime (Files): Remove lib/strptime.h.
36750 (Depends-on): Add extensions, time.
36751 (Include): Include time.h, not strptime.h.
36752 * modules/time_r (Files): Remove lib/time_r.h.
36753 (Depends-on): Add time.
36754 (Include): Include time.h, not time_r.h.
36755 * modules/timegm: Likewise.
36756 * modules/timespec (Description): Now does timespec-related decls
36757 of our own, instead of struct timespec itself.
36758 (Depends-on): Add time; remove extensions.
36759 (Maintainer): Add self.
36760 * modules/utimecmp (Depends-on): Add time; remove timespec.
36761 * modules/utimens (Depends-on): Likewise.
36762 * modules/xnanosleep (Depends-on): Likewise.
36764 2007-02-11 Bruno Haible <bruno@clisp.org>
36766 * lib/c-strstr.c: Include allocsa.h.
36767 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36768 * lib/c-strcasestr.c: Include allocsa.h.
36769 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36770 * lib/strcasestr.c: Include allocsa.h.
36771 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36772 * lib/mbsstr.c: Include allocsa.h.
36773 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36774 allocsa/freesa instead of malloc/free.
36775 * lib/mbscasestr.c: Include allocsa.h.
36776 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36777 allocsa/freesa instead of malloc/free.
36778 * modules/c-strstr (Depends-on): Add allocsa.
36779 * modules/c-strcasestr (Depends-on): Likewise.
36780 * modules/strcasestr (Depends-on): Likewise.
36781 * modules/mbsstr (Depends-on): Likewise.
36782 * modules/mbscasestr (Depends-on): Likewise.
36784 2007-02-11 Bruno Haible <bruno@clisp.org>
36786 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36788 * modules/mbsspn-tests: New file.
36789 * tests/test-mbsspn.sh: New file.
36790 * tests/test-mbsspn.c: New file.
36792 2007-02-11 Bruno Haible <bruno@clisp.org>
36794 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36796 * modules/mbspbrk-tests: New file.
36797 * tests/test-mbspbrk.sh: New file.
36798 * tests/test-mbspbrk.c: New file.
36800 2007-02-11 Bruno Haible <bruno@clisp.org>
36802 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36805 * modules/mbscspn-tests: New file.
36806 * tests/test-mbscspn.sh: New file.
36807 * tests/test-mbscspn.c: New file.
36809 2007-02-11 Bruno Haible <bruno@clisp.org>
36811 * modules/mbscasecmp-tests: New file.
36812 * tests/test-mbscasecmp.sh: New file.
36813 * tests/test-mbscasecmp.c: New file.
36815 2007-02-11 Bruno Haible <bruno@clisp.org>
36817 Ensure O(n) worst-case complexity of mbscasestr.
36818 * lib/mbscasestr.c: Include stdbool.h.
36819 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36821 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36822 the bookkeeping indicates that it's worth it.
36823 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36825 * modules/mbscasestr-tests: New file.
36826 * tests/test-mbscasestr1.c: New file.
36827 * tests/test-mbscasestr2.sh: New file.
36828 * tests/test-mbscasestr2.c: New file.
36829 * tests/test-mbscasestr3.sh: New file.
36830 * tests/test-mbscasestr3.c: New file.
36831 * tests/test-mbscasestr4.sh: New file.
36832 * tests/test-mbscasestr4.c: New file.
36833 * m4/locale-tr.m4: New file.
36835 2007-02-11 Bruno Haible <bruno@clisp.org>
36837 Ensure O(n) worst-case complexity of mbsstr.
36838 * lib/mbsstr.c: Include stdbool.h.
36839 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36841 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36842 bookkeeping indicates that it's worth it.
36843 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36845 * modules/mbsstr-tests: New file.
36846 * tests/test-mbsstr1.c: New file.
36847 * tests/test-mbsstr2.sh: New file.
36848 * tests/test-mbsstr2.c: New file.
36849 * tests/test-mbsstr3.sh: New file.
36850 * tests/test-mbsstr3.c: New file.
36851 * m4/locale-fr.m4: New file.
36853 2007-02-11 Bruno Haible <bruno@clisp.org>
36855 * lib/mbsrchr.c (mbsrchr): Fix bug.
36857 * modules/mbsrchr-tests: New file.
36858 * tests/test-mbsrchr.sh: New file.
36859 * tests/test-mbsrchr.c: New file.
36861 2007-02-11 Bruno Haible <bruno@clisp.org>
36863 * lib/mbschr.c (mbschr): Fix bug.
36865 * modules/mbschr-tests: New file.
36866 * tests/test-mbschr.sh: New file.
36867 * tests/test-mbschr.c: New file.
36868 * m4/locale-zh.m4: New file.
36870 2007-02-11 Bruno Haible <bruno@clisp.org>
36872 Support for copying multibyte string iterators.
36873 * lib/mbiter.h: Include <string.h>.
36874 (mbiter_multi_copy): New function.
36875 (mbi_copy): New macro.
36876 * lib/mbuiter.h: Include <string.h>.
36877 (mbuiter_multi_copy): New function.
36878 (mbui_copy): New macro.
36880 2007-02-11 Bruno Haible <bruno@clisp.org>
36883 * modules/mbslen: New file.
36884 * lib/mbslen.c: New file.
36885 * lib/string_.h (mbslen): New declaration.
36886 * m4/mbslen.m4: New file.
36887 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36889 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36890 * MODULES.html.sh (Internationalization functions): Add mbslen.
36892 2007-02-11 Bruno Haible <bruno@clisp.org>
36894 Ensure O(n) worst-case complexity of strcasestr substitute.
36895 * lib/strcasestr.c: Include stdbool.h.
36896 (knuth_morris_pratt): New function.
36897 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36898 bookkeeping indicates that it's worth it.
36899 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36901 * modules/strcasestr-tests: New file.
36902 * tests/test-strcasestr.c: New file.
36904 2007-02-11 Bruno Haible <bruno@clisp.org>
36906 Ensure O(n) worst-case complexity of c_strcasestr.
36907 * lib/c-strcasestr.c: Include stdbool.h, string.h.
36908 (knuth_morris_pratt): New function.
36909 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36910 the bookkeeping indicates that it's worth it.
36911 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36913 * modules/c-strcasestr-tests: New file.
36914 * tests/test-c-strcasestr.c: New file.
36916 2007-02-11 Bruno Haible <bruno@clisp.org>
36918 Ensure O(n) worst-case complexity of c_strstr.
36919 * lib/c-strstr.c: Include stdbool.h, string.h.
36920 (knuth_morris_pratt): New function.
36921 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36922 bookkeeping indicates that it's worth it.
36923 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36925 * lib/c-strstr.c: Complete rewrite for maintainability.
36927 * modules/c-strstr-tests: New file.
36928 * tests/test-c-strstr.c: New file.
36930 2007-02-11 Bruno Haible <bruno@clisp.org>
36932 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36933 5.2.1 and earlier, whereby \055 was treated just like the range
36935 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36937 2007-02-08 Bruno Haible <bruno@clisp.org>
36939 * modules/regex (Depends-on): Add stdbool.
36940 Reported by Dalibor Topic <robilad@kaffe.org>.
36942 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
36944 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36945 Prefer returning from main to exiting from it.
36946 Remove unnecessary parens after sizeof.
36948 2007-02-05 Bruno Haible <bruno@clisp.org>
36951 * modules/mbssep: New file.
36952 * lib/mbssep.c: New file.
36953 * lib/string_.h (strsep): Add a conditional link warning.
36954 (mbssep): New declaration.
36955 * m4/mbssep.m4: New file.
36956 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36958 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36959 * MODULES.html.sh (Internationalization functions): Add mbssep.
36961 2007-02-05 Bruno Haible <bruno@clisp.org>
36963 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36964 Optimize search in case of 1 delimiter.
36966 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
36968 * lib/acl.h: Include sys/types.h before sys/acl.h.
36970 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
36972 Merge upstream fix for glibc bugzilla #3957:
36974 2007-02-05 Jakub Jelinek <jakub@redhat.com>
36976 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36977 bit for RE_HAT_LISTS_NOT_NEWLINE.
36978 (build_charclass_op): Remove bogus comment.
36980 2007-02-05 Simon Josefsson <simon@josefsson.org>
36982 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36984 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
36986 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36987 * lib/memmem.c [!defined _LIBC]: Include config.h.
36989 2007-02-04 Bruno Haible <bruno@clisp.org>
36991 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36994 2007-02-04 Bruno Haible <bruno@clisp.org>
36996 New module mbstok_r.
36997 * modules/mbstok_r: New file.
36998 * lib/mbstok_r.c: New file.
36999 * lib/string_.h (strtok_r): Change argument names to match the
37000 comments. Add a conditional link warning.
37001 (mbstok_r): New declaration.
37002 * m4/mbstok_r.m4: New file.
37003 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37005 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37006 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37008 2007-02-04 Bruno Haible <bruno@clisp.org>
37011 * modules/mbsspn: New file.
37012 * lib/mbsspn.c: New file.
37013 * lib/string_.h (strspn): Add a conditional link warning.
37014 (mbsspn): New declaration.
37015 * m4/mbsspn.m4: New file.
37016 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37018 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37019 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37021 2007-02-04 Bruno Haible <bruno@clisp.org>
37023 New module mbspbrk.
37024 * modules/mbspbrk: New file.
37025 * lib/mbspbrk.c: New file.
37026 * lib/string_.h (strpbrk): Add a conditional link warning.
37027 (mbspbrk): New declaration.
37028 * m4/mbspbrk.m4: New file.
37029 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37031 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37032 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37034 2007-02-04 Bruno Haible <bruno@clisp.org>
37036 New module mbscspn.
37037 * modules/mbscspn: New file.
37038 * lib/mbscspn.c: New file.
37039 * lib/string_.h (strcspn): Add a conditional link warning.
37040 (mbscspn): New declaration.
37041 * m4/mbscspn.m4: New file.
37042 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37044 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37045 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37047 2007-02-04 Bruno Haible <bruno@clisp.org>
37049 New module mbscasestr, reduced goal of strcasestr.
37050 * modules/mbscasestr: New file.
37051 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37052 (mbscasestr): Renamed from strcasestr.
37053 * lib/strcasestr.c: Don't include mbuiter.h.
37054 (strcasestr): Remove support for multibyte locales.
37055 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37056 Change the conditional link warning.
37057 (mbscasestr): New declaration.
37058 * m4/mbscasestr.m4: New file.
37059 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37060 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37061 REPLACE_STRCASESTR.
37062 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37063 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37064 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37065 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37066 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37067 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37068 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37069 (Depends-on): Remove mbuiter.
37070 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37072 2007-02-04 Bruno Haible <bruno@clisp.org>
37074 Simplify handling of strncasecmp.
37075 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37076 the conditional link warning.
37077 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37078 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37079 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37080 * modules/strcase (configure.ac): Don't invoke
37081 gl_STRING_MODULE_INDICATOR.
37082 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37084 2007-02-04 Bruno Haible <bruno@clisp.org>
37086 New module mbscasecmp, reduced goal of strcasecmp.
37087 * modules/mbscasecmp: New file.
37088 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37089 (mbscasecmp): Renamed from strcasecmp.
37090 * lib/strcasecmp.c: Don't include mbuiter.h.
37091 (strcasecmp): Remove support for multibyte locales.
37092 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37093 Change the conditional link warning.
37094 (mbscasecmp): New declaration.
37095 * m4/mbscasecmp.m4: New file.
37096 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37097 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37098 REPLACE_STRCASECMP.
37099 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37100 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37102 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37103 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37104 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37105 (Depends-on): Remove mbuiter.
37106 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37108 2007-02-04 Bruno Haible <bruno@clisp.org>
37110 New module mbsstr. Remove module strstr.
37111 * modules/mbsstr: New file.
37112 * modules/strstr: Remove file.
37113 * lib/mbsstr.c: Renamed from lib/strstr.c.
37114 (mbsstr): Renamed from strstr.
37115 * lib/string_.h (strstr): Remove declaration. Change the conditional
37117 (mbsstr): New declaration.
37118 * m4/mbsstr.m4: New file.
37119 * m4/strstr.m4: Remove file.
37120 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37122 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37123 Don't initialize GNULIB_STRSTR.
37124 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37125 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37126 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37127 (Support for systems lacking ANSI C 89): Remove strstr.
37129 2007-02-04 Bruno Haible <bruno@clisp.org>
37131 New module mbsrchr.
37132 * modules/mbsrchr: New file.
37133 * lib/mbsrchr.c: New file.
37134 * lib/string_.h (strrchr): Add a conditional link warning.
37135 (mbsrchr): New declaration.
37136 * m4/mbsrchr.m4: New file.
37137 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37139 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37140 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37142 2007-02-04 Bruno Haible <bruno@clisp.org>
37145 * modules/mbschr: New file.
37146 * lib/mbschr.c: New file.
37147 * lib/string_.h (strchr): Add a conditional link warning.
37148 (mbschr): New declaration.
37149 * m4/mbschr.m4: New file.
37150 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37152 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37153 * MODULES.html.sh (Internationalization functions): Add mbschr.
37155 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37157 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37159 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37161 2007-02-04 Bruno Haible <bruno@clisp.org>
37163 New module description section 'configure.ac-early'.
37164 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37165 (func_get_autoconf_early_snippet): New function.
37166 (func_import, func_create_testdir): Use it. Remove special cases for
37167 modules 'extensions' and 'lock'.
37168 * modules/extensions (configure.ac-early): Require
37169 gl_USE_SYSTEM_EXTENSIONS.
37170 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37172 2007-02-04 Bruno Haible <bruno@clisp.org>
37174 Make use of gcj-4.3's -fsource and -ftarget option.
37175 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37176 and if so try the options -fsource and -ftarget.
37177 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37178 source_version, ftarget_option, target_version arguments.
37179 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37180 (is_envjavac_oldgcj_14_14_usable): Renamed from
37181 is_envjavac_gcj_14_14_usable.
37182 (is_envjavac_oldgcj_14_13_usable): Renamed from
37183 is_envjavac_gcj_14_13_usable.
37184 (is_gcj_present): Update.
37185 (is_gcj_43, is_gcj43_usable): New functions.
37186 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37187 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37188 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37189 try the options -fsource and -ftarget.
37191 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37193 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37194 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37197 2007-02-03 Jim Meyering <jim@meyering.net>
37199 Give tools a better chance to allocate space for very large buffers.
37200 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37202 Make pwd and readlink work also when run with an unreadable parent dir
37203 on systems with openat support.
37204 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37205 provided getcwd function, even when we have openat support.
37206 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37208 2007-02-02 Bruno Haible <bruno@clisp.org>
37210 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37211 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37212 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37213 portability problems if one of these functions is only used on specific
37215 Reported by Paul Eggert.
37217 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37219 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37220 is causing more trouble than it's curing.
37221 * lib/regex_internal.h (__mempcpy): Remove.
37222 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37223 (and make the code a tad smaller to boot).
37224 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37226 2007-02-02 Jim Meyering <jim@meyering.net>
37228 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37229 section, not in the Makefile.am: one.
37231 2007-02-02 Eric Blake <ebb9@byu.net>
37233 * lib/strchrnul.c: Always include config.h first.
37235 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37236 gnulib strstr is not necessary here.
37238 2007-02-02 Simon Josefsson <simon@josefsson.org>
37240 * m4/socklen.m4: Fix typo.
37242 2007-02-02 Eric Blake <ebb9@byu.net>
37244 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37245 * modules/netinet_in (Makefile.am): Likewise.
37247 2007-02-01 Bruno Haible <bruno@clisp.org>
37249 * lib/string_.h (GL_LINK_WARNING): New macro.
37250 (strcasecmp, strstr, strcasestr): If provided by the system,
37251 conditionally define as a macro that leads to a warning instead of to
37253 (strncasecmp): Conditionally define as a macro that leads to a warning.
37255 2007-02-01 Karl Berry <karl@gnu.org>
37257 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37259 2007-02-01 Bruno Haible <bruno@clisp.org>
37261 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37264 2007-02-01 Eric Blake <ebb9@byu.net>
37266 * modules/regex (Depends-on): Revert dependence on mempcpy.
37267 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37268 module's definition of mempcpy.
37269 Reported by Paul Eggert.
37271 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37273 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37274 the symbol XYZ before redefining it. This fixes a problem with
37275 programs that don't use XYZ, when compiled on systems that define
37276 XYZ to something else.
37278 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37280 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37281 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37282 writeable to group or other and (2) is intended to have a special
37283 mode bit that is set or cleared. In such a case, the directory
37284 should be neither group- nor other-writeable until the special
37285 mode bits are right.
37287 2007-01-31 Eric Blake <ebb9@byu.net>
37289 * modules/mountlist (Depends-on): Add strstr.
37291 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37293 * modules/string (Makefile.am): Remove redundant replacement.
37294 * modules/regex (Depends-on): Add mempcpy.
37296 2007-01-31 Bruno Haible <bruno@clisp.org>
37298 New module description field 'Link'.
37299 * gnulib-tool (func_usage): Document --extract-link-directive.
37300 (sed_extract_prog): Recognize 'Link' directive.
37301 (func_get_link_directive): New function.
37302 (func_import): Show summary of link directives.
37303 Handle --extract-link-directive option.
37304 * modules/acl (Link): New section.
37305 * modules/clock-time (Link): New section.
37306 * modules/euidaccess (Link): New section.
37307 * modules/gettext (Link): New section.
37308 * modules/iconv (Link): New section.
37309 * modules/lock (Link): New section.
37310 * modules/nanosleep (Link): New section.
37311 * modules/readline (Link): New section.
37313 2007-01-27 Bruno Haible <bruno@clisp.org>
37315 Enforce the use of gnulib modules for unportable <string.h> functions.
37316 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37317 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37318 (gl_HEADER_STRING_H_BODY): Require it.
37319 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37320 the symbol XYZ to one that gives a link error.
37321 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37322 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37323 * modules/mempcpy (configure.ac): Likewise.
37324 * modules/memrchr (configure.ac): Likewise.
37325 * modules/stpcpy (configure.ac): Likewise.
37326 * modules/stpncpy (configure.ac): Likewise.
37327 * modules/strcase (configure.ac): Likewise.
37328 * modules/strcasestr (configure.ac): Likewise.
37329 * modules/strchrnul (configure.ac): Likewise.
37330 * modules/strdup (configure.ac): Likewise.
37331 * modules/strndup (configure.ac): Likewise.
37332 * modules/strnlen (configure.ac): Likewise.
37333 * modules/strpbrk (configure.ac): Likewise.
37334 * modules/strsep (configure.ac): Likewise.
37335 * modules/strstr (configure.ac): Likewise.
37336 * modules/strtok_r (configure.ac): Likewise.
37338 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37340 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37342 2007-01-30 Jim Meyering <jim@meyering.net>
37344 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37346 2007-01-29 Bruno Haible <bruno@clisp.org>
37348 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37349 * lib/execute.c: Likewise.
37350 * lib/pipe.c: Likewise.
37351 * lib/printf-args.h: Likewise.
37352 * lib/printf-args.c: Likewise.
37353 * lib/printf-parse.c: Likewise.
37354 * lib/vasnprintf.c: Likewise.
37356 2007-01-29 Eric Blake <ebb9@byu.net>
37358 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37361 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37363 * lib/strptime.h (strptime): Use 'restrict' for args where
37364 POSIX requires this.
37365 * lib/strptime.c (strptime): Likewise.
37366 Change license notice from LGPL to GPL, since gnulib-tool will
37367 change this as needed.
37368 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37370 Include "strptime.h" first, to check interface.
37371 Do not #undef _LIBC and _NL_CURRENT.
37372 Do not include <stdlib.h>; no longer needed.
37373 Include "time_r.h" and declare ptime_locale_status
37374 only if _LIBC is not defined.
37375 (__P): Remove unused macro.
37376 (match_string): Bring back glibc version, but use it only if _LIBC
37378 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37379 Remove unnecessary assertion and abort() call.
37380 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37381 * m4/strptime.m4: Fix serial number comment.
37382 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37383 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37384 (Depends-on): Add time_r.
37386 2007-01-29 Bruno Haible <bruno@clisp.org>
37388 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37390 * modules/strptime (Depends-on): Add stdbool.
37391 * lib/strptime.h: Include <time.h> always. Add comments.
37393 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37395 * modules/strptime: New file.
37396 * lib/strptime.h: New file.
37397 * lib/strptime.c: New file.
37398 * m4/strptime.m4: New file.
37400 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37402 * MODULES.html.sh: New module mpsort.
37403 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37405 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37406 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37407 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37409 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37411 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37413 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37414 the parameter matches the prototype.
37416 2007-01-28 Jim Meyering <jim@meyering.net>
37418 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37419 sys/time.h here, reverting that part of the previous patch:
37420 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37422 2007-01-28 Bruno Haible <bruno@clisp.org>
37424 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37425 value of $(SYS_TIME_H).
37426 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37427 remove it conditionally, too. [added by Jim Meyering]
37428 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37429 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37430 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37431 GETTIMEOFDAY_REPLACEMENT to 1.
37433 2007-01-28 Bruno Haible <bruno@clisp.org>
37435 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37436 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37437 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37438 Set UNISTD_H instead of UNISTD_H2.
37439 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37441 2007-01-28 Bruno Haible <bruno@clisp.org>
37443 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37444 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37446 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37448 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37449 (func_create_testdir): Ensure C locale for `grep' and `tr'
37451 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37452 ACLOCAL_AMFLAGS parsing state machine.
37454 2007-01-27 Bruno Haible <bruno@clisp.org>
37456 * modules/unistr/base: Update.
37458 2007-01-27 Bruno Haible <bruno@clisp.org>
37460 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37461 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37462 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37463 modules/unistr/u32-mbtouc.
37464 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37465 * lib/unistr.h: Update.
37466 * lib/linebreak.c: Update.
37467 * modules/unistr/u32-mbtouc: Renamed from
37468 modules/unistr/u32-mbtouc-safe.
37469 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37470 * lib/unistr.h: Update.
37471 * lib/unistr/u32-to-u8.c: Update.
37472 * lib/unistr/u32-to-u16.c: Update.
37474 2007-01-27 Bruno Haible <bruno@clisp.org>
37476 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37477 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37478 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37479 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37480 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37481 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37482 modules/unistr/u16-mbtouc.
37483 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37484 * lib/unistr.h: Update.
37485 * lib/linebreak.c: Update.
37486 * modules/linebreak: Update.
37487 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37488 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37489 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37490 * modules/unistr/u16-mbtouc: Renamed from
37491 modules/unistr/u16-mbtouc-safe.
37492 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37493 * lib/unistr.h: Update.
37494 * lib/unistr/u16-to-u8.c: Update.
37495 * modules/unistr/u16-to-u8: Update.
37496 * lib/unistr/u16-to-u32.c: Update.
37497 * modules/unistr/u16-to-u32: Update.
37499 2007-01-27 Bruno Haible <bruno@clisp.org>
37501 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37502 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37503 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37504 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37505 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37506 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37507 modules/unistr/u8-mbtouc.
37508 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37509 * lib/unistr.h: Update.
37510 * lib/striconveh.c: Update.
37511 * modules/striconveh: Update.
37512 * lib/linebreak.c: Update.
37513 * modules/linebreak: Update.
37514 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37515 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37516 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37517 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37518 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37519 * lib/unistr.h: Update.
37520 * lib/striconveh.c: Update.
37521 * modules/striconveh: Update.
37522 * lib/unistr/u8-to-u16.c: Update.
37523 * modules/unistr/u8-to-u16: Update.
37524 * lib/unistr/u8-to-u32.c: Update.
37525 * modules/unistr/u8-to-u32: Update.
37527 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37530 * lib/argz.c: Do not include strings.h nor memory.h, include
37531 string.h unconditionally. Patch by Simon Josefsson.
37533 2007-01-27 Bruno Haible <bruno@clisp.org>
37535 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37536 from gl_HEADER_STRING_H_BODY.
37537 (gl_HEADER_STRING_H_BODY): Require it.
37538 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37539 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37540 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37541 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37542 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37543 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37544 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37545 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37546 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37547 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37548 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37549 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37550 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37551 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37552 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37554 2007-01-27 Bruno Haible <bruno@clisp.org>
37556 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37557 check_PROGRAMS into noinst_PROGRAMS.
37558 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37559 check_PROGRAMS in this case.
37560 (func_import): Set for_test to false.
37561 (func_create_testdir): Set for_test to true.
37563 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37564 Bruno Haible <bruno@clisp.org>
37566 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37567 (Depends-on): Add string.
37568 (Includes): Use <string.h> instead of strcasestr.h.
37569 * modules/string (Makefile.am): Also substitute the value of
37570 REPLACE_STRCASESTR.
37571 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37572 assume strcasestr is declared in <string.h> not <strings.h>. Also
37573 set REPLACE_STRCASESTR.
37574 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37575 REPLACE_STRCASESTR.
37576 * lib/strcasestr.h: Remove file.
37577 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37578 * lib/string_.h (strcasestr): New declaration.
37580 2007-01-27 Bruno Haible <bruno@clisp.org>
37582 * lib/string_.h: Use 'extern'.
37584 2007-01-27 Jim Meyering <jim@meyering.net>
37586 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37587 of set-but-not-used local, "q".
37589 * lib/mempcpy.c: Include <config.h> before <string.h>.
37590 This fixes a compilation error on HP-UX, due to the system's
37591 "restrict"-using mempcpy prototype.
37593 2007-01-26 Bruno Haible <bruno@clisp.org>
37595 Small optimization.
37596 * lib/javacomp.c: Include c-strstr.h.
37597 (is_envjavac_gcj): Use c_strstr instead of strstr.
37598 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37600 2007-01-26 Bruno Haible <bruno@clisp.org>
37602 * MODULES.html.sh (Unicode string functions): Add the new modules.
37604 * modules/uniconv/u32-strconv-to-locale: New file.
37605 * lib/uniconv/u32-strconv-to-locale.c: New file.
37607 * modules/uniconv/u16-strconv-to-locale: New file.
37608 * lib/uniconv/u16-strconv-to-locale.c: New file.
37610 * modules/uniconv/u8-strconv-to-locale: New file.
37611 * lib/uniconv/u8-strconv-to-locale.c: New file.
37613 * modules/uniconv/u32-strconv-from-locale: New file.
37614 * lib/uniconv/u32-strconv-from-locale.c: New file.
37616 * modules/uniconv/u16-strconv-from-locale: New file.
37617 * lib/uniconv/u16-strconv-from-locale.c: New file.
37619 * modules/uniconv/u8-strconv-from-locale: New file.
37620 * lib/uniconv/u8-strconv-from-locale.c: New file.
37622 * modules/uniconv/u32-strconv-to-enc: New file.
37623 * lib/uniconv/u32-strconv-to-enc.c: New file.
37624 * modules/uniconv/u32-strconv-to-enc-tests: New file.
37625 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37627 * modules/uniconv/u16-strconv-to-enc: New file.
37628 * lib/uniconv/u16-strconv-to-enc.c: New file.
37629 * lib/uniconv/u-strconv-to-enc.h: New file.
37630 * modules/uniconv/u16-strconv-to-enc-tests: New file.
37631 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37633 * modules/uniconv/u8-strconv-to-enc: New file.
37634 * lib/uniconv/u8-strconv-to-enc.c: New file.
37635 * modules/uniconv/u8-strconv-to-enc-tests: New file.
37636 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37638 * modules/uniconv/u32-strconv-from-enc: New file.
37639 * lib/uniconv/u32-strconv-from-enc.c: New file.
37640 * modules/uniconv/u32-strconv-from-enc-tests: New file.
37641 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37643 * modules/uniconv/u16-strconv-from-enc: New file.
37644 * lib/uniconv/u16-strconv-from-enc.c: New file.
37645 * modules/uniconv/u16-strconv-from-enc-tests: New file.
37646 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37648 * modules/uniconv/u8-strconv-from-enc: New file.
37649 * lib/uniconv/u8-strconv-from-enc.c: New file.
37650 * lib/uniconv/u-strconv-from-enc.h: New file.
37651 * modules/uniconv/u8-strconv-from-enc-tests: New file.
37652 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37654 * modules/uniconv/u32-conv-from-enc: New file.
37655 * lib/uniconv/u32-conv-from-enc.c: New file.
37656 * modules/uniconv/u32-conv-from-enc-tests: New file.
37657 * tests/uniconv/test-u32-conv-from-enc.c: New file.
37659 * modules/uniconv/u16-conv-from-enc: New file.
37660 * lib/uniconv/u16-conv-from-enc.c: New file.
37661 * lib/uniconv/u-conv-from-enc.h: New file.
37662 * modules/uniconv/u16-conv-from-enc-tests: New file.
37663 * tests/uniconv/test-u16-conv-from-enc.c: New file.
37665 * modules/uniconv/u8-conv-from-enc: New file.
37666 * lib/uniconv/u8-conv-from-enc.c: New file.
37667 * modules/uniconv/u8-conv-from-enc-tests: New file.
37668 * tests/uniconv/test-u8-conv-from-enc.c: New file.
37670 * modules/uniconv/base: New file.
37671 * lib/uniconv.h: New file.
37673 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
37675 * doc/gnulib-tool.texi (Initial import): Update to match current
37676 behavior with strdup module.
37677 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37678 * lib/memmem.h: Remove; all uses removed. This is now done
37680 * lib/mempcpy.h: Likewise.
37681 * lib/memrchr.h: Likewise.
37682 * lib/stpcpy.h: Likewise.
37683 * lib/stpncpy.h: Likewise.
37684 * lib/strcase.h: Likewise.
37685 * lib/strchrnul.h: Likewise.
37686 * lib/strdup.h: Likewise.
37687 * lib/strndup.h: Likewise.
37688 * lib/strnlen.h: Likewise.
37689 * lib/strpbrk.h: Likewise.
37690 * lib/strsep.h: Likewise.
37691 * lib/strstr.h: Likewise.
37692 * lib/strtok_r.h: Likewise.
37693 * lib/string_.h: New file.
37694 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37695 Rely on <string.h> instead.
37696 * lib/canon-host.c: Likewise.
37697 * lib/chdir-long.c: Likewise.
37698 * lib/concatpath.c: Likewise.
37699 * lib/exclude.c: Likewise.
37700 * lib/fchdir.c: Likewise.
37701 * lib/getaddrinfo.c: Likewise.
37702 * lib/getcwd.c: Likewise.
37703 * lib/getsubopt.c: Likewise.
37704 * lib/glob.c: Likewise.
37705 * lib/hard-locale.c: Likewise.
37706 * lib/iconvme.c: Likewise.
37707 * lib/javacomp.c: Likewise.
37708 * lib/mempcpy.c: Likewise.
37709 * lib/memrchr.c: Likewise.
37710 * lib/regex_internal.h: Likewise.
37711 * lib/stpncpy.c: Likewise.
37712 * lib/strcasecmp.c: Likewise.
37713 * lib/strchrnul.c: Likewise.
37714 * lib/strdup.c: Likewise.
37715 * lib/striconv.c: Likewise.
37716 * lib/striconveh.c: Likewise.
37717 * lib/striconveha.c: Likewise.
37718 * lib/strncasecmp.c: Likewise.
37719 * lib/strndup.c: Likewise.
37720 * lib/strnlen.c: Likewise.
37721 * lib/strsep.c: Likewise.
37722 * lib/strstr.c: Likewise.
37723 * lib/strtok_r.c: Likewise.
37724 * lib/userspec.c: Likewise.
37725 * lib/w32spawn.h: Likewise.
37726 * lib/xstrndup.c: Likewise.
37727 * lib/mountlist.c (strstr): Remove decl.
37728 * m4/string_h.m4: New file.
37729 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37730 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37731 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37732 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37733 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37734 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37735 Set REPLACE_STRCASECMP if necessary.
37736 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37737 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37738 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37739 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37740 HAVE_DECL_STRDUP if necessary.
37741 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37742 since gl_FUNC_STRNDUP does that now.
37743 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37744 Check for decl here...
37745 (gl_PREREQ_STRNLEN): ... not here.
37746 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37747 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37748 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37749 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37751 * modules/string: New file.
37752 * modules/memmem (Files): Remove special-purpose include file.
37753 (Depends-on): Add string.
37754 (Include): Include <string.h>, not the removed file.
37755 * modules/mempcpy: Likewise.
37756 * modules/memrchr: Likewise.
37757 * modules/stpcpy: Likewise.
37758 * modules/stpncpy: Likewise.
37759 * modules/strcase: Likewise.
37760 * modules/strchrnul: Likewise.
37761 * modules/strdup: Likewise.
37762 * modules/strndup: Likewise.
37763 * modules/strnlen: Likewise.
37764 * modules/strpbrk: Likewise.
37765 * modules/strsep: Likewise.
37766 * modules/strstr: Likewise.
37767 * modules/strtok_r: Likewise.
37768 * tests/test-dirname.c: Don't include "strdup.h", since
37769 <string.h> now suffices.
37770 * tests/test-memmem.c: Don't include "memmem.h", since
37771 <string.h> now suffices.
37773 2007-01-25 Bruno Haible <bruno@clisp.org>
37775 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37778 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37779 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37780 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37781 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37783 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37784 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37785 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37786 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37787 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37788 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37790 2007-01-24 Bruno Haible <bruno@clisp.org>
37792 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37793 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37794 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37795 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37797 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37798 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37799 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37800 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37801 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37802 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37804 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37806 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37807 Reported by Ralf Wildenhues.
37809 2007-01-24 Bruno Haible <bruno@clisp.org>
37811 Drop AC_REQUIRE calls that are redundant with the module dependencies.
37812 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37814 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37815 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37816 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37818 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
37820 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37821 Don't use 'exit'; just return from 'main'.
37822 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37824 * lib/fnmatch_.h: Readjust white space and comments to match
37825 glibc, to avoid spurious diffs.
37827 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
37829 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37830 2004-12-01 change by Jakub Jelinek, since this code won't compile
37831 if !LIBC. Problem reported by Bob Proulx.
37833 2007-01-23 Bruno Haible <bruno@clisp.org>
37835 * lib/striconveh.c: Include c-strcaseeq.h.
37836 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37837 * modules/striconveh (Depends-on): Add c-strcaseeq.
37839 2007-01-23 Bruno Haible <bruno@clisp.org>
37841 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37843 * modules/c-strcaseeq: New file.
37844 * lib/c-strcaseeq.h: New file.
37846 * modules/streq: New file.
37847 * lib/streq.h: New file.
37849 2007-01-23 Bruno Haible <bruno@clisp.org>
37851 * modules/striconveha-tests: New file.
37852 * tests/test-striconveha.c: New file.
37854 * lib/striconveha.h: Include <stdbool.h>.
37855 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37856 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37857 (mem_iconveha_notranslit): Renamed from mem_iconveha.
37858 (mem_iconveha): New function.
37859 (str_iconveha_notranslit): Renamed from str_iconveha.
37860 (str_iconveha): New function.
37861 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37864 2007-01-23 Bruno Haible <bruno@clisp.org>
37866 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37867 encodings without forgiving before trying any encoding with handler.
37868 (str_iconveha): Try all encodings without forgiving before trying any
37869 encoding with handler.
37871 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
37873 Import the following changes from libc.
37875 2005-10-14 Ulrich Drepper <drepper@redhat.com>
37877 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37879 2004-12-01 Jakub Jelinek <jakub@redhat.com>
37881 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37882 normal_bracket label.
37884 2004-09-01 Jakub Jelinek <jakub@redhat.com>
37887 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37888 to normal_bracket after fetching the next character.
37890 2007-01-22 Bruno Haible <bruno@clisp.org>
37892 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37894 * lib/striconveh.c (iconv_carefully_1): New function.
37895 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37897 (str_cd_iconveh): Update.
37898 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37899 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37900 * tests/test-striconveh.c (MAGIC): New macro.
37901 (new_offsets): New function.
37902 (main): Test call with and without offsets.
37904 2007-01-22 Bruno Haible <bruno@clisp.org>
37906 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37907 * modules/sys_select (Makefile.am): Likewise.
37908 * modules/sys_socket (Makefile.am): Likewise.
37909 * modules/sys_time (Makefile.am): Likewise.
37911 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
37913 * modules/gettimeofday (License): Change from GPL to LGPL, since
37914 gettimeofday is a library function.
37916 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37918 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37920 2007-01-21 Bruno Haible <bruno@clisp.org>
37922 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37924 2007-01-21 Bruno Haible <bruno@clisp.org>
37926 * modules/striconveha: New file.
37927 * lib/striconveha.h: New file.
37928 * lib/striconveha.c: New file.
37929 * MODULES.html.sh (Internationalization functions): Add striconveha.
37930 * lib/striconv.c (str_iconv): Optimize the case of an empty input
37932 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37934 2007-01-21 Bruno Haible <bruno@clisp.org>
37936 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37937 * lib/striconveh.c (str_iconveh): Likewise.
37939 2007-01-21 Bruno Haible <bruno@clisp.org>
37941 * lib/striconveh.h (mem_iconveh): New declaration.
37942 * lib/striconveh.c (mem_iconveh): New function.
37943 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37945 2007-01-21 Bruno Haible <bruno@clisp.org>
37947 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37949 * lib/striconveh.h (mem_cd_iconveh): Change specification.
37950 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37951 original result buffer.
37952 (str_cd_iconveh): Update.
37953 * tests/test-striconveh.c (main): Update.
37955 * lib/striconv.h (mem_cd_iconv): Change specification.
37956 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37958 (str_cd_iconv): Update.
37959 * tests/test-striconv.c (main): Update.
37961 2007-01-21 Bruno Haible <bruno@clisp.org>
37963 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37965 2007-01-20 Jim Meyering <jim@meyering.net>
37967 * lib/userspec.c (parse_with_separator): If a user or group string
37968 starts with "+", skip the corresponding name-to-ID look-up, since
37969 such a look-up must fail: user and group names may not include "+".
37971 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
37973 * lib/poll.c: Include sys/time.h and time.h unconditionally,
37974 since we now assume the sys_time module.
37975 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37976 check for sys/time.h; no longer needed.
37977 * modules/poll (Depends-on): Depend on sys_time.
37979 2007-01-18 Bruno Haible <bruno@clisp.org>
37981 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37982 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37984 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37987 * tests/test-gettimeofday.c: Include <time.h>.
37988 (dummy): Remove variable.
37990 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37991 gl_HEADER_SYS_TIME_H.
37992 (gl_HEADER_SYS_TIME_H): New macro.
37994 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37995 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37996 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37997 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37998 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37999 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38000 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38001 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38002 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38003 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38004 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38006 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38007 last change; it caused a compilation error when cross-compiling to
38010 2007-01-18 Jim Meyering <jim@meyering.net>
38012 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38013 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38014 than the race-prone "test -d sys || mkdir sys".
38015 (configure.ac): Use AC_PROG_MKDIR_P.
38016 * modules/sys_select: Likewise.
38017 * modules/sys_socket: Likewise.
38018 * modules/sys_time: Likewise.
38020 2007-01-18 Eric Blake <ebb9@byu.net>
38022 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38023 replace gettimeofday.
38024 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38025 name, to avoid infinite recursion.
38027 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38029 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38031 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38032 assume timespec.h defines struct timeval.
38033 * lib/settime.c: Likewise.
38034 * lib/utimens.c: Likewise.
38035 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38036 since we now assume the gettimeofday module.
38037 * lib/tempname.c (__gen_tempname): Likewise.
38038 * lib/gettimeofday.h: Remove.
38039 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38040 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38041 Include <time.h>, for 'time()'.
38042 (localtime_buffer_addr): Also use this workaround if
38043 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38044 to simplify the uses. All uses changed.
38045 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38046 that #undef is inside {}, and 'const' follows type name consistently.
38047 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38048 (gettimeofday): Do not use the maximum possible value for
38049 tv->tv_usec, since that might break usages other than ls.c.
38050 Instead, we'll leave ls.c alone. This undoes today's patch
38051 by Bruno. Add a compile-time warning for 1s-clock resolution;
38052 we've never observed the problem but might as well keep the
38054 * lib/nanosleep.c: Include timespec.h first, for interface check.
38055 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38056 now assume the sys_time module.
38057 * lib/tempname.c: Likewise.
38058 * lib/timespec.h: Likewise.
38059 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38061 * lib/strftime.c: Likewise.
38062 * lib/timespec.h: Likewise.
38063 * lib/posixtm.c: Include posixtm.h first, for interface check.
38064 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38065 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38066 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38067 * lib/sys_time_.h: New file.
38068 * lib/timespec.h (struct timespec): Use long int, not long.
38069 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38070 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38071 Remove obsolescent call to AC_HEADER_TIME.
38072 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38073 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38074 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38075 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38077 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38078 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38079 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38080 into the sys_time module. Check for gettimeofday just once.
38081 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38082 for gettimeofday signature to just check the signature. Merely
38083 compile it, since linking doesn't test signature. Improve test for
38084 whether gettimeofday.o is actually needed.
38085 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38086 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38087 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38088 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38089 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38090 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38091 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38092 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38093 than worrying about sys/time.h.
38094 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38095 Don't bother worrying about TIME_WITH_SYS_TIME.
38096 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38097 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38098 * m4/sys_time_h.m4: New file.
38099 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38100 Don't include sys/time.h. Return from main rather than exiting.
38101 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38103 * modules/gethrxtime (Depends-on): Add sys_time.
38104 * modules/gettime (Depends-on): Likewise.
38105 * modules/gettimeofday (Depends-on): Likewise.
38106 * modules/nanosleep (Depends-on): Likewise.
38107 * modules/settime (Depends-on): Likewise.
38108 * modules/tempname (Depends-on): Likewise.
38109 * modules/utimens (Depends-on): Likewise.
38110 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38111 (Include:) Change back to <sys/time.h>.
38112 (Maintainer:) Add self.
38113 * modules/sys_time: New file.
38114 * modules/tempname (Depends-on): Add gettimeofday.
38115 * tests/test-gettimeofday.c: Include <sys/time.h>
38116 rather than gettimeofday.h.
38118 2007-01-17 Bruno Haible <bruno@clisp.org>
38120 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38121 the license default to GPL.
38122 (func_create_testdir): Don't complain if a module is LGPL and its
38123 tests module depends on GPLed modules.
38125 2007-01-17 Bruno Haible <bruno@clisp.org>
38127 * lib/gettimeofday.c (gettimeofday): Add code for the case
38128 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38129 maximum possible value for tv->tv_usec, rather than the minimum one.
38131 2005-10-08 Martin Lambers <marlam@marlam.de>
38132 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38133 2007-01-16 Bruno Haible <bruno@clisp.org>
38135 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38136 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38137 gl_FUNC_GETTIMEOFDAY.
38138 (Include): Add gettimeofday.h.
38139 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38140 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38141 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38142 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38143 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38144 * lib/gettimeofday.h: New file.
38145 * lib/gettimeofday.c: Include <sys/timeb.h>.
38146 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38147 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38148 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38149 fall back on time().
38151 * tests/test-gettimeofday.c: New file.
38152 * modules/gettimeofday-tests: New file.
38154 2007-01-16 Eric Blake <ebb9@byu.net>
38156 * modules/fnmatch (Depends-on): Depend on wchar.
38157 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38158 * m4/fnmatch.m4: Likewise.
38159 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38160 * m4/mbchar.m4: Likewise.
38161 * modules/mbswidth (Depends-on): Depend on wchar.
38162 * lib/mbswidth.c: Assume <wchar.h>.
38163 * m4/mbswidth.m4: Likewise.
38164 * modules/quotearg (Depends-on): Depend on wchar.
38165 * lib/quotearg.c: Assume <wchar.h>.
38166 * m4/quotearg.m4: Likewise.
38167 * modules/regex (Depends-on): Depend on wchar.
38168 * lib/regex_internal.h: Assume <wchar.h>.
38169 * m4/regex.m4: Likewise.
38170 * modules/stdint (Depends-on): Depend on wchar.
38171 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38172 * m4/stdint.m4: Likewise.
38173 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38174 * modules/strftime (Depends-on): Depend on wchar.
38175 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38176 * modules/strtol (Depends-on): Depend on wchar.
38177 * lib/strtol.c: Assume <wchar.h>.
38178 * modules/wcwidth (Depends-on): Depend on wchar.
38179 * lib/wcwidth.h: Assume <wchar.h>.
38180 * m4/wcwidth.m4: Likewise.
38182 2007-01-16 Bruno Haible <bruno@clisp.org>
38184 * modules/csharpexec-script: New, created from...
38185 * modules/csharpexec: ... this.
38187 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38189 * modules/javaexec-script: New, created from...
38190 * modules/javaexec: ... this.
38192 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38194 * modules/poll (Dependencies): Add sys_select.
38196 2007-01-15 Jim Meyering <jim@meyering.net>
38198 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38199 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38200 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38201 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38203 2007-01-15 Bruno Haible <bruno@clisp.org>
38205 * modules/striconveh: New file.
38206 * lib/striconveh.h: New file.
38207 * lib/striconveh.c: New file.
38208 * MODULES.html.sh (Internationalization functions): Add striconveh.
38210 * modules/striconveh-tests: New file.
38211 * tests/test-striconveh.c: New file.
38213 2007-01-15 Bruno Haible <bruno@clisp.org>
38215 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38216 not from GNU libiconv or GNU libc.
38218 2007-01-15 Bruno Haible <bruno@clisp.org>
38220 * doc/gnulib-intro.texi (Copyright): Explain the different license
38221 terms for module descriptions, autoconf macros, tests, documentation.
38223 2007-01-14 Bruno Haible <bruno@clisp.org>
38225 * modules/striconv-tests: New file.
38226 * tests/test-striconv.c: New file.
38228 2007-01-14 Bruno Haible <bruno@clisp.org>
38230 * modules/iconv-tests: New file.
38231 * tests/test-iconv.c: New file.
38233 2007-01-14 Bruno Haible <bruno@clisp.org>
38235 * gnulib-tool (func_get_license): For test modules, use the license of
38238 2007-01-14 Bruno Haible <bruno@clisp.org>
38240 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38241 if iconv is found to exist.
38243 2007-01-14 Bruno Haible <bruno@clisp.org>
38245 * modules/c-ctype-tests: New file.
38246 * tests/test-c-ctype.c: New file.
38248 2007-01-14 Bruno Haible <bruno@clisp.org>
38250 * modules/binary-io-tests: New file.
38251 * tests/test-binary-io.sh: New file.
38252 * tests/test-binary-io.c: New file.
38254 2007-01-14 Bruno Haible <bruno@clisp.org>
38256 * modules/array-oset-tests: New file.
38257 * tests/test-array_oset.c: New file.
38259 2007-01-14 Bruno Haible <bruno@clisp.org>
38261 * modules/array-list-tests: New file.
38262 * tests/test-array_list.c: New file.
38264 2007-01-14 Bruno Haible <bruno@clisp.org>
38266 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38268 Reported by Simon Josefsson in
38269 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38271 2007-01-14 Bruno Haible <bruno@clisp.org>
38273 * modules/allocsa-tests: New file.
38274 * tests/test-allocsa.c: New file.
38276 2007-01-14 Bruno Haible <bruno@clisp.org>
38278 * modules/fchdir (Depends-on): Add absolute-header.
38279 * modules/unistd (Depends-on): Likewise.
38281 2006-12-30 Bruno Haible <bruno@clisp.org>
38283 * modules/fchdir: New file.
38284 * modules/unistd (Files): Add lib/unistd_.h.
38285 (Makefile.am): Generate unistd.h from unistd_.h.
38286 * lib/fchdir.c: New file.
38287 * lib/dirent_.h: New file.
38288 * lib/unistd_.h: New file.
38289 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38290 * m4/fchdir.m4: New file.
38291 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38292 (gl_HEADER_UNISTD): Invoke it.
38293 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38295 * lib/backupfile.c (opendir, closedir): Undefine.
38296 * lib/chown.c (open, close): Undefine.
38297 * lib/clean-temp.c (open, close): Undefine.
38298 * lib/copy-file.c (open, close): Undefine.
38299 * lib/execute.c (open, close): Undefine.
38300 * lib/fsusage.c (open, close): Undefine.
38301 * lib/gc-gnulib.c (open, close): Undefine.
38302 * lib/getcwd.c (opendir, closedir): Undefine.
38303 * lib/glob.c (opendir, closedir): Undefine.
38304 * lib/javacomp.c (open, close): Undefine.
38305 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38306 * lib/openat-proc.c (open, close): Undefine.
38307 * lib/pagealign_alloc.c (open, close): Undefine.
38308 * lib/pipe.c (open, close): Undefine.
38309 * lib/progreloc.c (open, close): Undefine.
38310 * lib/savedir.c (opendir, closedir): Undefine.
38311 * lib/utime.c (open, close): Undefine.
38312 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38314 2007-01-10 Bruno Haible <bruno@clisp.org>
38316 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38318 2007-01-12 Eric Blake <ebb9@byu.net>
38320 Provide a robust <wchar.h>. Further simplifications are now
38321 possible in other modules, but not included here.
38322 * modules/wchar: New module.
38323 * m4/wchar.m4: New file.
38324 * lib/wchar_.h: Likewise.
38325 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38327 * MODULES.html.sh (Extended multibyte and wide character utilities):
38330 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38332 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38333 to a reasonable default for memory allocation.
38334 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38335 file system that reports garbage st_size values for symlinks.
38336 Problem reported by Liyang Hu.
38338 2007-01-11 Simon Josefsson <simon@josefsson.org>
38340 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38341 Emacs .#* auto-save files).
38343 2007-01-11 Bruno Haible <bruno@clisp.org>
38345 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38348 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38350 Use @...@ consistently in lib/wctype_.h.
38351 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38352 on it being set to 1 or 0.
38353 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38354 go back to AC_SUBSTing it.
38355 * modules/wctype (Makefile.am): Undo previous change.
38357 2007-01-10 Eric Blake <ebb9@byu.net>
38359 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38360 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38361 * modules/wctype (Makefile.am): Likewise.
38362 Reported by Chris McGuire.
38364 2007-01-10 Jim Meyering <jim@meyering.net>
38366 fts.c: a small readability/maintainability improvement
38367 * lib/fts.c (fts_read): Make this code slightly more readable and
38368 maintainable by hoisting the "sp->fts_cur = p" assignments to
38369 immediately follow the statements that set P. Derived from
38370 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38372 2007-01-10 Eric Blake <ebb9@byu.net>
38374 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38375 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38376 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38377 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38378 Reported by Chris McGuire.
38380 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38382 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38385 2007-01-09 Bruno Haible <bruno@clisp.org>
38387 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38388 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38390 (func_module): Use them.
38392 2007-01-09 Bruno Haible <bruno@clisp.org>
38394 * modules/unistr/base: New file.
38395 * lib/unistr.h: New file.
38397 * modules/unistr/u8-to-u16: New file.
38398 * lib/unistr/u8-to-u16.c: New file.
38400 * modules/unistr/u8-to-u32: New file.
38401 * lib/unistr/u8-to-u32.c: New file.
38403 * modules/unistr/u16-to-u8: New file.
38404 * lib/unistr/u16-to-u8.c: New file.
38406 * modules/unistr/u16-to-u32: New file.
38407 * lib/unistr/u16-to-u32.c: New file.
38409 * modules/unistr/u32-to-u8: New file.
38410 * lib/unistr/u32-to-u8.c: New file.
38412 * modules/unistr/u32-to-u16: New file.
38413 * lib/unistr/u32-to-u16.c: New file.
38415 * modules/unistr/u8-check: New file.
38416 * modules/unistr/u16-check: New file.
38417 * modules/unistr/u32-check: New file.
38418 * lib/unistr/u8-check.c: New file.
38419 * lib/unistr/u16-check.c: New file.
38420 * lib/unistr/u32-check.c: New file.
38422 * modules/unistr/u8-chr: New file.
38423 * modules/unistr/u16-chr: New file.
38424 * modules/unistr/u32-chr: New file.
38425 * lib/unistr/u8-chr.c: New file.
38426 * lib/unistr/u16-chr.c: New file.
38427 * lib/unistr/u32-chr.c: New file.
38429 * modules/unistr/u8-cmp: New file.
38430 * modules/unistr/u16-cmp: New file.
38431 * modules/unistr/u32-cmp: New file.
38432 * lib/unistr/u8-cmp.c: New file.
38433 * lib/unistr/u16-cmp.c: New file.
38434 * lib/unistr/u32-cmp.c: New file.
38436 * modules/unistr/u8-cpy: New file.
38437 * modules/unistr/u16-cpy: New file.
38438 * modules/unistr/u32-cpy: New file.
38439 * lib/unistr/u8-cpy.c: New file.
38440 * lib/unistr/u16-cpy.c: New file.
38441 * lib/unistr/u32-cpy.c: New file.
38442 * lib/unistr/u-cpy.h: New file.
38444 * modules/unistr/u8-cpy-alloc: New file.
38445 * modules/unistr/u16-cpy-alloc: New file.
38446 * modules/unistr/u32-cpy-alloc: New file.
38447 * lib/unistr/u8-cpy-alloc.c: New file.
38448 * lib/unistr/u16-cpy-alloc.c: New file.
38449 * lib/unistr/u32-cpy-alloc.c: New file.
38450 * lib/unistr/u-cpy-alloc.h: New file.
38452 * modules/unistr/u8-endswith: New file.
38453 * modules/unistr/u16-endswith: New file.
38454 * modules/unistr/u32-endswith: New file.
38455 * lib/unistr/u8-endswith.c: New file.
38456 * lib/unistr/u16-endswith.c: New file.
38457 * lib/unistr/u32-endswith.c: New file.
38458 * lib/unistr/u-endswith.h: New file.
38460 * modules/unistr/u8-mblen: New file.
38461 * modules/unistr/u16-mblen: New file.
38462 * modules/unistr/u32-mblen: New file.
38463 * lib/unistr/u8-mblen.c: New file.
38464 * lib/unistr/u16-mblen.c: New file.
38465 * lib/unistr/u32-mblen.c: New file.
38467 * modules/unistr/u8-mbtouc: New file.
38468 * modules/unistr/u16-mbtouc: New file.
38469 * modules/unistr/u32-mbtouc: New file.
38470 * lib/unistr/u8-mbtouc.c: New file.
38471 * lib/unistr/u16-mbtouc.c: New file.
38472 * lib/unistr/u32-mbtouc.c: New file.
38474 * modules/unistr/u8-mbtouc-safe: New file.
38475 * modules/unistr/u16-mbtouc-safe: New file.
38476 * modules/unistr/u32-mbtouc-safe: New file.
38477 * lib/unistr/u8-mbtouc-safe.c: New file.
38478 * lib/unistr/u16-mbtouc-safe.c: New file.
38479 * lib/unistr/u32-mbtouc-safe.c: New file.
38481 * modules/unistr/u8-move: New file.
38482 * modules/unistr/u16-move: New file.
38483 * modules/unistr/u32-move: New file.
38484 * lib/unistr/u8-move.c: New file.
38485 * lib/unistr/u16-move.c: New file.
38486 * lib/unistr/u32-move.c: New file.
38487 * lib/unistr/u-move.h: New file.
38489 * modules/unistr/u8-next: New file.
38490 * modules/unistr/u16-next: New file.
38491 * modules/unistr/u32-next: New file.
38492 * lib/unistr/u8-next.c: New file.
38493 * lib/unistr/u16-next.c: New file.
38494 * lib/unistr/u32-next.c: New file.
38496 * modules/unistr/u8-prev: New file.
38497 * modules/unistr/u16-prev: New file.
38498 * modules/unistr/u32-prev: New file.
38499 * lib/unistr/u8-prev.c: New file.
38500 * lib/unistr/u16-prev.c: New file.
38501 * lib/unistr/u32-prev.c: New file.
38503 * modules/unistr/u8-set: New file.
38504 * modules/unistr/u16-set: New file.
38505 * modules/unistr/u32-set: New file.
38506 * lib/unistr/u8-set.c: New file.
38507 * lib/unistr/u16-set.c: New file.
38508 * lib/unistr/u32-set.c: New file.
38509 * lib/unistr/u-set.h: New file.
38511 * modules/unistr/u8-startswith: New file.
38512 * modules/unistr/u16-startswith: New file.
38513 * modules/unistr/u32-startswith: New file.
38514 * lib/unistr/u8-startswith.c: New file.
38515 * lib/unistr/u16-startswith.c: New file.
38516 * lib/unistr/u32-startswith.c: New file.
38517 * lib/unistr/u-startswith.h: New file.
38519 * modules/unistr/u8-stpcpy: New file.
38520 * modules/unistr/u16-stpcpy: New file.
38521 * modules/unistr/u32-stpcpy: New file.
38522 * lib/unistr/u8-stpcpy.c: New file.
38523 * lib/unistr/u16-stpcpy.c: New file.
38524 * lib/unistr/u32-stpcpy.c: New file.
38525 * lib/unistr/u-stpcpy.h: New file.
38527 * modules/unistr/u8-stpncpy: New file.
38528 * modules/unistr/u16-stpncpy: New file.
38529 * modules/unistr/u32-stpncpy: New file.
38530 * lib/unistr/u8-stpncpy.c: New file.
38531 * lib/unistr/u16-stpncpy.c: New file.
38532 * lib/unistr/u32-stpncpy.c: New file.
38533 * lib/unistr/u-stpncpy.h: New file.
38535 * modules/unistr/u8-strcat: New file.
38536 * modules/unistr/u16-strcat: New file.
38537 * modules/unistr/u32-strcat: New file.
38538 * lib/unistr/u8-strcat.c: New file.
38539 * lib/unistr/u16-strcat.c: New file.
38540 * lib/unistr/u32-strcat.c: New file.
38541 * lib/unistr/u-strcat.h: New file.
38543 * modules/unistr/u8-strchr: New file.
38544 * modules/unistr/u16-strchr: New file.
38545 * modules/unistr/u32-strchr: New file.
38546 * lib/unistr/u8-strchr.c: New file.
38547 * lib/unistr/u16-strchr.c: New file.
38548 * lib/unistr/u32-strchr.c: New file.
38550 * modules/unistr/u8-strcmp: New file.
38551 * modules/unistr/u16-strcmp: New file.
38552 * modules/unistr/u32-strcmp: New file.
38553 * lib/unistr/u8-strcmp.c: New file.
38554 * lib/unistr/u16-strcmp.c: New file.
38555 * lib/unistr/u32-strcmp.c: New file.
38557 * modules/unistr/u8-strcpy: New file.
38558 * modules/unistr/u16-strcpy: New file.
38559 * modules/unistr/u32-strcpy: New file.
38560 * lib/unistr/u8-strcpy.c: New file.
38561 * lib/unistr/u16-strcpy.c: New file.
38562 * lib/unistr/u32-strcpy.c: New file.
38563 * lib/unistr/u-strcpy.h: New file.
38565 * modules/unistr/u8-strcspn: New file.
38566 * modules/unistr/u16-strcspn: New file.
38567 * modules/unistr/u32-strcspn: New file.
38568 * lib/unistr/u8-strcspn.c: New file.
38569 * lib/unistr/u16-strcspn.c: New file.
38570 * lib/unistr/u32-strcspn.c: New file.
38571 * lib/unistr/u-strcspn.h: New file.
38573 * modules/unistr/u8-strdup: New file.
38574 * modules/unistr/u16-strdup: New file.
38575 * modules/unistr/u32-strdup: New file.
38576 * lib/unistr/u8-strdup.c: New file.
38577 * lib/unistr/u16-strdup.c: New file.
38578 * lib/unistr/u32-strdup.c: New file.
38579 * lib/unistr/u-strdup.h: New file.
38581 * modules/unistr/u8-strlen: New file.
38582 * modules/unistr/u16-strlen: New file.
38583 * modules/unistr/u32-strlen: New file.
38584 * lib/unistr/u8-strlen.c: New file.
38585 * lib/unistr/u16-strlen.c: New file.
38586 * lib/unistr/u32-strlen.c: New file.
38587 * lib/unistr/u-strlen.h: New file.
38589 * modules/unistr/u8-strmblen: New file.
38590 * modules/unistr/u16-strmblen: New file.
38591 * modules/unistr/u32-strmblen: New file.
38592 * lib/unistr/u8-strmblen.c: New file.
38593 * lib/unistr/u16-strmblen.c: New file.
38594 * lib/unistr/u32-strmblen.c: New file.
38596 * modules/unistr/u8-strmbtouc: New file.
38597 * modules/unistr/u16-strmbtouc: New file.
38598 * modules/unistr/u32-strmbtouc: New file.
38599 * lib/unistr/u8-strmbtouc.c: New file.
38600 * lib/unistr/u16-strmbtouc.c: New file.
38601 * lib/unistr/u32-strmbtouc.c: New file.
38603 * modules/unistr/u8-strncat: New file.
38604 * modules/unistr/u16-strncat: New file.
38605 * modules/unistr/u32-strncat: New file.
38606 * lib/unistr/u8-strncat.c: New file.
38607 * lib/unistr/u16-strncat.c: New file.
38608 * lib/unistr/u32-strncat.c: New file.
38609 * lib/unistr/u-strncat.h: New file.
38611 * modules/unistr/u8-strncmp: New file.
38612 * modules/unistr/u16-strncmp: New file.
38613 * modules/unistr/u32-strncmp: New file.
38614 * lib/unistr/u8-strncmp.c: New file.
38615 * lib/unistr/u16-strncmp.c: New file.
38616 * lib/unistr/u32-strncmp.c: New file.
38618 * modules/unistr/u8-strncpy: New file.
38619 * modules/unistr/u16-strncpy: New file.
38620 * modules/unistr/u32-strncpy: New file.
38621 * lib/unistr/u8-strncpy.c: New file.
38622 * lib/unistr/u16-strncpy.c: New file.
38623 * lib/unistr/u32-strncpy.c: New file.
38624 * lib/unistr/u-strncpy.h: New file.
38626 * modules/unistr/u8-strnlen: New file.
38627 * modules/unistr/u16-strnlen: New file.
38628 * modules/unistr/u32-strnlen: New file.
38629 * lib/unistr/u8-strnlen.c: New file.
38630 * lib/unistr/u16-strnlen.c: New file.
38631 * lib/unistr/u32-strnlen.c: New file.
38632 * lib/unistr/u-strnlen.h: New file.
38634 * modules/unistr/u8-strpbrk: New file.
38635 * modules/unistr/u16-strpbrk: New file.
38636 * modules/unistr/u32-strpbrk: New file.
38637 * lib/unistr/u8-strpbrk.c: New file.
38638 * lib/unistr/u16-strpbrk.c: New file.
38639 * lib/unistr/u32-strpbrk.c: New file.
38640 * lib/unistr/u-strpbrk.h: New file.
38642 * modules/unistr/u8-strrchr: New file.
38643 * modules/unistr/u16-strrchr: New file.
38644 * modules/unistr/u32-strrchr: New file.
38645 * lib/unistr/u8-strrchr.c: New file.
38646 * lib/unistr/u16-strrchr.c: New file.
38647 * lib/unistr/u32-strrchr.c: New file.
38649 * modules/unistr/u8-strspn: New file.
38650 * modules/unistr/u16-strspn: New file.
38651 * modules/unistr/u32-strspn: New file.
38652 * lib/unistr/u8-strspn.c: New file.
38653 * lib/unistr/u16-strspn.c: New file.
38654 * lib/unistr/u32-strspn.c: New file.
38655 * lib/unistr/u-strspn.h: New file.
38657 * modules/unistr/u8-strstr: New file.
38658 * modules/unistr/u16-strstr: New file.
38659 * modules/unistr/u32-strstr: New file.
38660 * lib/unistr/u8-strstr.c: New file.
38661 * lib/unistr/u16-strstr.c: New file.
38662 * lib/unistr/u32-strstr.c: New file.
38663 * lib/unistr/u-strstr.h: New file.
38665 * modules/unistr/u8-strtok: New file.
38666 * modules/unistr/u16-strtok: New file.
38667 * modules/unistr/u32-strtok: New file.
38668 * lib/unistr/u8-strtok.c: New file.
38669 * lib/unistr/u16-strtok.c: New file.
38670 * lib/unistr/u32-strtok.c: New file.
38671 * lib/unistr/u-strtok.h: New file.
38673 * modules/unistr/u8-uctomb: New file.
38674 * modules/unistr/u16-uctomb: New file.
38675 * modules/unistr/u32-uctomb: New file.
38676 * lib/unistr/u8-uctomb.c: New file.
38677 * lib/unistr/u16-uctomb.c: New file.
38678 * lib/unistr/u32-uctomb.c: New file.
38680 * MODULES.html.sh (Unicode string functions): Add the new modules.
38682 2007-01-08 Bruno Haible <bruno@clisp.org>
38684 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38685 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38688 2007-01-08 Karl Berry <karl@gnu.org>
38690 * doc/error.texi: mention that main() fns must set program_name
38691 when progname is used.
38693 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
38695 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38696 WCTYPE_H is empty, for the benefit of builds from non-distclean
38697 directories. Problem reported by Eric Blake in
38698 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38700 2007-01-08 Bruno Haible <bruno@clisp.org>
38702 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38703 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38704 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38705 PROVIDE_CANONICALIZE_FILENAME_MODE.
38706 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38708 2007-01-08 Bruno Haible <bruno@clisp.org>
38710 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38711 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38712 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38713 * lib/fts.c: Likewise.
38714 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38716 2006-12-25 Bruno Haible <bruno@clisp.org>
38718 * modules/utf8-ucs4-safe: New file.
38719 * lib/utf8-ucs4-safe.h: New file.
38720 * lib/unistr/utf8-ucs4-safe.c: New file.
38722 * modules/utf16-ucs4-safe: New file.
38723 * lib/utf16-ucs4-safe.h: New file.
38724 * lib/unistr/utf16-ucs4-safe.c: New file.
38726 * MODULES.html.sh (Unicode string functions): Add the new modules.
38728 2007-01-08 Bruno Haible <bruno@clisp.org>
38730 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38731 (Depends-on): Add unitypes.
38732 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38733 (u8_mbtouc_aux): Move out to separate file.
38734 (u8_mbtouc): Use ucs4_t, uint8_t types.
38735 * lib/unistr/utf8-ucs4.c: New file.
38737 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38738 (Depends-on): Add unitypes.
38739 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38740 (u16_mbtouc_aux): Move out to separate file.
38741 (u16_mbtouc): Use ucs4_t, uint16_t types.
38742 * lib/unistr/utf16-ucs4.c: New file.
38744 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38745 (Depends-on): Add unitypes.
38746 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38747 (u8_uctomb_aux): Move out to separate file.
38748 (u8_uctomb): Use ucs4_t, uint8_t types.
38749 * lib/unistr/ucs4-utf8.c: New file.
38751 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38752 (Depends-on): Add unitypes.
38753 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38754 (u16_uctomb_aux): Move out to separate file.
38755 (u16_uctomb): Use ucs4_t, uint16_t types.
38756 * lib/unistr/ucs4-utf16.c: New file.
38758 2006-12-25 Bruno Haible <bruno@clisp.org>
38760 * modules/unitypes: New file.
38761 * lib/unitypes.h: New file.
38762 * MODULES.html.sh (func_all_modules): New section "Unicode string
38763 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38764 this section. Add unitypes.
38766 2007-01-08 Bruno Haible <bruno@clisp.org>
38768 Avoid variable names that conflict with those from libtool.
38769 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38770 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38771 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38772 library_names_spec to acl_library_names_spec, hardcode_* to
38774 Reported by Ralf Wildenhues.
38776 2007-01-08 Bruno Haible <bruno@clisp.org>
38778 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38780 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38782 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38783 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38785 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38787 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38788 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38789 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38790 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38792 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38794 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38795 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38796 GC_USE_<algorithm>.
38797 * lib/gc-libgcrypt.c: Likewise.
38798 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38799 * modules/gc-arctwo (configure.ac): Likewise.
38800 * modules/gc-des (configure.ac): Likewise.
38801 * modules/gc-hmac-md5 (configure.ac): Likewise.
38802 * modules/gc-hmac-sha1 (configure.ac): Likewise.
38803 * modules/gc-md2 (configure.ac): Likewise.
38804 * modules/gc-md4 (configure.ac): Likewise.
38805 * modules/gc-md5 (configure.ac): Likewise.
38806 * modules/gc-random (configure.ac): Likewise.
38807 * modules/gc-rijndael (configure.ac): Likewise.
38808 * modules/gc-sha1 (configure.ac): Likewise.
38810 2007-01-08 Bruno Haible <bruno@clisp.org>
38812 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38814 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38816 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38818 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38819 * modules/fcntl-safer (configure.ac): Likewise.
38820 * modules/fopen-safer (configure.ac): Likewise.
38821 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38822 GNULIB_FWRITEERROR macro definition.
38824 2007-01-08 Bruno Haible <bruno@clisp.org>
38826 * m4/gnulib-common.m4: New file.
38827 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38828 (func_get_filelist): Add m4/gnulib-common.m4.
38830 2007-01-08 Bruno Haible <bruno@clisp.org>
38832 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38835 2007-01-08 Jim Meyering <jim@meyering.net>
38837 Use a more robust test for a "can't happen" condition.
38838 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38839 narrowed the st_size value. Presuming the "can't happen" condition
38840 is true, that narrowing could conceivably convert an invalid st_size
38841 value into a valid one. Instead, use a change based on Matthew
38842 Woehlke's original patch.
38844 Slight readability improvement: use an assert-like macro
38845 in place of literal "abort ()" uses.
38846 * lib/fts.c (fts_assert): Define.
38847 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38848 Use this macro instead of a bare 'abort'.
38850 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
38852 Don't worry about using IRIX 5.3's wctype.h broken definitions;
38853 simply work around them.
38854 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38855 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38856 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38858 Don't bother to define as macros, since the standard doesn't require it.
38859 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38860 longer worry about IRIX 5.3.
38861 (HAVE_WCTYPE_CTMP_BUG): Remove.
38863 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
38865 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38866 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
38867 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38868 Problems reported by Georg Schwarz for IRIX 5.3.
38870 * gnulib-tool (autoconf_minversion): Take the maximum version number
38871 found, not the minimum. Problem reported by James Youngman.
38873 2007-01-03 Karl Berry <karl@gnu.org>
38875 * doc/error.texi: new file, explaining interaction with progname.
38876 * doc/gnulib.texi: include it. Update copyright.
38878 2007-01-03 Simon Josefsson <simon@josefsson.org>
38880 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38881 AC_CANONICAL_HOST, to improve autobuild outputs.
38883 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
38884 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38886 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38887 sockets, server sockets, and other file descriptors. Count errors
38888 to compute the return value. Reorder the code a bit to be easier
38889 to follow. Don't set event bits that were not requested (except
38890 POLLERR and POLLHUP).
38892 2007-01-01 Bruno Haible <bruno@clisp.org>
38894 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38896 2007-01-03 Jim Meyering <jim@meyering.net>
38898 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
38900 2007-01-02 Bruno Haible <bruno@clisp.org>
38902 * modules/settime (Include): Require timespec.h.
38903 * modules/nanosleep (Include): Likewise.
38905 2007-01-01 Bruno Haible <bruno@clisp.org>
38907 * gnulib-tool (func_emit_copyright_notice): Bump year.
38908 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38910 2007-01-01 Bruno Haible <bruno@clisp.org>
38912 Improve support for OpenBSD.
38913 * build-aux/config.rpath (libname_spec): Export.
38914 (library_names_spec): New variable. Export.
38915 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38916 library_names_spec from the config.rpath output. Locate shared library
38917 through the name pattern in library_names_spec.
38919 2007-01-01 Eric Blake <ebb9@byu.net>
38921 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38923 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
38925 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38926 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
38927 assume the C locale, and avoid an "eval" that could cause trouble.
38928 Problem with SORT reported by Bob Proulx.
38930 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38931 Define. Trivial patch from Henning Nielsen Lund, originally
38932 sent to bug-grep@gnu.org today.
38934 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
38936 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38937 struct stat. Problem reported by Henning Nielsen Lund.
38938 * lib/acl.c: Include acl.h first, to check interface. Don't
38939 bother to include sys/types.h and sys/stat.h again.
38941 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
38943 Import the following change from libc; problem reported by
38946 2005-10-13 Ulrich Drepper <drepper@redhat.com>
38949 * lib/argp.h: Remove __NTH for __argp_usage inline function.
38951 2006-12-28 Jim Meyering <jim@meyering.net>
38953 * build-aux/announce-gen: Do not assume that the package
38954 builds any of tar.gz, tar.bz2, and .xdelta files.
38955 Suggestion from Simon Josefsson.
38957 2006-12-28 Simon Josefsson <simon@josefsson.org>
38959 * modules/announce-gen: New file.
38961 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
38963 * lib/mbchar.h: Just include <wctype.h>; the wctype module
38964 handles its gotchas now.
38965 * lib/mbswidth.c: Likewise.
38966 * lib/wcwidth.h: Likewise.
38967 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38968 and iswcntrl; the wctype module does this stuff now.
38969 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38970 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38971 * modules/mbchar (Depends-on): Add wctype.
38972 * modules/mbswidth (Depends-on): Likewise.
38973 * modules/wcwidth (Depends-on): Likewise.
38975 2006-12-27 Eric Blake <ebb9@byu.net>
38977 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38978 module uses more than what <wctype.h> is required to provide.
38980 2006-12-26 Eric Blake <ebb9@byu.net>
38982 * gnulib-tool (sed_extract_prog): Avoid space-tab.
38984 2006-12-26 Eric Blake <ebb9@byu.net>
38986 * modules/absolute-header: New module.
38987 * modules/fcntl (Depends-on): Depend on it.
38988 * modules/inttypes (Depends-on): Likewise.
38989 * modules/stdint (Depends-on): Likewise.
38990 * modules/sys_stat (Depends-on): Likewise.
38991 * modules/wctype (Depends-on): Likewise.
38992 * MODULES.html.sh (Support for building libraries and
38993 executables): Document it.
38995 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
38997 * gnulib-tool (SED): Remove, undoing previous change.
38998 The problem was that it broke coreutils on Solaris, because
38999 "sed --posix" leaked into a makefile.
39000 (sed): New alias, if 'alias' and GNU sed.
39002 2006-12-24 Jim Meyering <jim@meyering.net>
39004 Work around an fchownat bug in glibc-2.4:
39005 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39006 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39007 in spite of the -P option.
39008 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39010 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39011 * modules/openat (Files): Add lib/fchownat.c.
39012 * lib/openat.c (fchownat): Don't define here. Move to...
39013 * lib/fchownat.c: ...this new file.
39015 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39017 Fix bug reported by Bruno Haible in
39018 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39019 where quotearg.c didn't compile on Mac OS X 10.2 because it
39020 lacks <wchar.h> and wint_t.
39021 * lib/wctype_.h (__wctype_wint_t): New type.
39022 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39023 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39024 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39025 Arg is now of type __wctype_wint_t, not wint_t.
39026 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39027 substitute HAVE_WINT_T.
39028 * modules/wctype (Files): Add m4/wint_t.m4.
39029 (wctype.h): Substitute HAVE_WINT_T.
39031 2006-12-23 Bruno Haible <bruno@clisp.org>
39033 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39035 2006-12-23 Bruno Haible <bruno@clisp.org>
39037 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39039 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39042 2006-12-22 Bruno Haible <bruno@clisp.org>
39044 * lib/copy-file.c: Include acl.h.
39045 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39046 Close the file descriptors only after being done with copy_acl.
39047 * modules/copy-file (Depends-on): Add acl.
39049 2006-12-22 Bruno Haible <bruno@clisp.org>
39051 * gnulib-tool (SED): New variable.
39052 Use $SED instead of sed everywhere.
39054 2006-12-22 Bruno Haible <bruno@clisp.org>
39056 * modules/no-c++: New file.
39057 * m4/no-c++.m4: New file.
39058 * MODULES.html.sh (Support for building libraries and executables):
39061 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39063 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39064 Include <limits.h>, and use its INT_MAX to rewrite the
39065 j loop so that it does not overflow 'int'. Problem reported by
39067 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39068 Play it safe by shifting left by 1 rather than multiplying by 2,
39069 as GCC is less likely to optimize this away when the value
39070 is signed (when it assumes overflow leads to undefined behavior).
39071 Also, don't assume time_t uses two's complement.
39073 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39075 * MODULES.html.sh: New module wctype.
39076 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39077 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39078 <wctype.h>, since the new wctype module should fix this.
39079 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39080 the wctype module should arrange for it.
39081 * lib/regex_internal.h: Likewise.
39082 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39083 since the wctype module should handle this now.
39084 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39085 * modules/fnmatch (Depends-on): Add wctype.
39086 * modules/quotearg (Depends-on): Likewise.
39087 * modules/regex (Depends-on): Likewise.
39089 2006-12-19 Bruno Haible <bruno@clisp.org>
39091 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39092 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39094 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39096 * modules/savewd (Depends-on): Fix dependency on fcntl.
39098 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39100 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39101 conforms to C99, rather than relying on the user's environment
39102 setting of STDINT_H.
39104 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39105 and Eric Blake <ebb9@byu.net>
39107 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39108 This is more consistent with the other defines here.
39109 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39110 Port to z/OS. Problem reported by Paul Gilmartin.
39111 Change local vars to use gl_ prefix rather than ac_.
39112 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39113 with other defines.
39114 * modules/double-slash-root: New module.
39115 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39116 (Depends-on): Add double-slash-root.
39117 * MODULES.html.sh (File system functions): Mention new module.
39119 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39121 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39122 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39123 This is for the benefit of gzip, which doesn't do i18n.
39125 2006-12-12 Jim Meyering <jim@meyering.net>
39127 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39128 Reported by Andreas Schwab <schwab@suse.de>.
39130 2006-12-12 Bruno Haible <bruno@clisp.org>
39132 Merge these changes.
39133 2006-09-05 Bruno Haible <bruno@clisp.org>
39134 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39135 iconv_alloc succeeded.
39136 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39137 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39138 test for " && dest " at the end - dest is always != NULL there. Call
39139 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39140 with 2xNULL arguments, also to flush the state storage. Handle the
39141 IRIX iconv behaviour. Realloc the final result, to throw away unused
39144 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39146 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39147 and fchmodat unconditionally, since glibc 2.4 has them.
39148 Problem reported by Arkadiusz Miskiewicz.
39150 2006-12-10 Bruno Haible <bruno@clisp.org>
39152 * gnulib-tool (func_import): Show the include files only for those
39153 modules that are copied and specified.
39154 Reported by Karl Berry.
39156 2006-12-08 Jim Meyering <jim@meyering.net>
39158 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39159 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39161 * build-aux/announce-gen: Add two new options, both optional:
39162 --bootstrap-tools=TOOL_LIST
39163 a comma-separated list of tools, e.g.,
39164 autoconf,automake,bison,gnulib
39165 --gnulib-snapshot-date=DATE
39166 if gnulib is in the bootstrap tool list,
39167 then report this as the snapshot date.
39168 If not specified, use the current date/time.
39169 If you specify a date here, be sure it's UTC.
39171 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39173 * tests/test-argp-2.sh: Fix test to match actual output.
39174 (func_compare): Fix sed script to be portable.
39176 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39178 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39179 workaround for this case. It is not autoconfigured now; offhand
39180 it's hard to see how to autoconfigure it.
39182 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39184 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39185 a directory that is about to be chowned. Such a directory's
39186 initial file permissions should permit the owner only and this
39187 should not be changed until after the chown, since the group and
39188 other bits would be incorrect if they granted permission before
39191 Fix porting problem for iswctype reported by Georg Schwarz in:
39192 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39193 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39194 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39195 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39196 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39198 2006-12-03 Jim Meyering <jim@meyering.net>
39200 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39201 p->fts_statp may not yet be defined.
39202 (fts_read): Instead, set it in the caller, once p->fts_statp is
39203 sure to be defined, and corresponds to a top-level directory.
39204 This bug made du -x fail. Here's the coreutils test case:
39205 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39206 Reported by Mike Frysinger.
39208 2006-12-01 Jim Meyering <jim@meyering.net>
39210 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39211 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39212 Reported by Simon Josefsson.
39214 2006-11-30 Jim Meyering <jim@meyering.net>
39216 * m4/warning.m4: Use the all-permissive copyright notice
39217 recommended by RMS (rather than LGPL).
39218 * m4/vararrays.m4: Likewise.
39219 * m4/flexmember.m4: Likewise.
39221 2006-11-29 Bruno Haible <bruno@clisp.org>
39223 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39224 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39226 Reported by Simon Josefsson <simon@josefsson.org>.
39228 2006-11-28 James Youngman <jay@gnu.org>
39230 * README: Advise users that they might find the bug-gnulib@gnu.org
39231 and autotools-announce@gnu.org mailing lists useful.
39233 2006-11-28 Bruno Haible <bruno@clisp.org>
39235 * m4/ptrdiff_max.m4: Remove file.
39237 2006-11-21 Bruno Haible <bruno@clisp.org>
39239 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39241 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39242 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39244 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39245 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39247 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39249 2006-11-28 Jim Meyering <jim@meyering.net>
39251 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39252 warning from "gcc -Wshadow" about shadowing the builtin.
39254 2006-11-27 Bruno Haible <bruno@clisp.org>
39256 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39258 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39260 2006-11-27 Bruno Haible <bruno@clisp.org>
39261 Paul Eggert <eggert@cs.ucla.edu>
39263 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39265 2006-11-26 Bruno Haible <bruno@clisp.org>
39267 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39268 noinst_LTLIBRARIES.
39270 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39271 Bruno Haible <bruno@clisp.org>
39273 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39274 if compiling with "gcc -ansi".
39276 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39278 Fix some incompatibilities with gcc -ansi -pedantic.
39279 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39280 if compiling pedantically with GCC, unless it's C99 or later.
39281 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39282 it mishandles gcc -ansi -pedantic as well.
39283 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39285 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39286 initializers for struct if -pedantic, unless it's C99 or later.
39288 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39290 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39291 Don't close an fd more than once. Identical atimes indicate
39292 success, not failure.
39294 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39296 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39298 2006-11-23 Jim Meyering <jim@meyering.net>
39300 * build-aux/announce-gen: New file. From coreutils.
39302 2006-11-22 Jim Meyering <jim@meyering.net>
39304 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39305 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39306 (fts_read): Use a temporary to narrow the overused st_size member
39307 before using it in a switch statement. Reported by Matthew Woehlke.
39309 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39310 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39312 2006-11-20 Bruno Haible <bruno@clisp.org>
39314 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39315 changequote instead of pairs of brackets.
39316 Reported by Andreas Schwab <schwab@suse.de>.
39318 2006-11-21 Jim Meyering <jim@meyering.net>
39320 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39321 so as to remain compatible with older compilers.
39322 Patch from Michael Deutschmann.
39324 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39326 * MODULES.html.sh (File system functions): Add openat.
39328 * lib/openat.h (rpl_fstatat): New macro, if
39329 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39330 (fstatat): Define to rpl_fstatat under the same conditions,
39331 unless COMPILING_FSTATAT.
39332 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39333 seems to have the bug.
39334 * lib/fstatat.c: New file.
39335 * modules/openat (Files): Add it.
39337 2006-11-20 Bruno Haible <bruno@clisp.org>
39339 * Makefile: New file.
39341 2006-11-20 Jim Meyering <jim@meyering.net>
39343 The beginnings of syntax-related checks for gnulib.
39344 * lib/Makefile: New file.
39345 * lib/t-idcache: New script. Ensure that the two halves of
39346 idcache.c stay in sync.
39348 * lib/idcache.c: Adjust comments in user- and group- portions to
39349 be more accurate, and to be consistent with one another.
39351 2006-11-20 Jim Meyering <jim@meyering.net>
39353 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39354 continue using the flexible array member (thus, this module performs
39355 half as many malloc calls), with the addition that...
39356 (getgroup, getuser): Consistently record a non-match via an empty
39357 "name" string, and map an empty string match to a NULL return value.
39358 * modules/idcache (Depends-on): Re-add flexmember.
39360 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39361 (getuidbyname, getgroup, getgidbyname): Likewise.
39363 Use cleaner syntax: NULL rather than 0.
39364 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39366 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39368 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39369 It mishandled the case where the group was missing.
39370 Problem reported by Greg Schafer.
39371 * modules/idcache: Likewise.
39373 2006-11-18 Jim Meyering <jim@meyering.net>
39375 * check-module (%exempt_header): Add exception for some
39376 conditionally-included headers.
39378 * modules/i-ring (Depends-on): Add verify.
39379 (License): Change to LGPL.
39381 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39383 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39384 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39385 and inttostr.h. Use snprintf rather than uinttostr, so that
39386 LGPLed code doesn't depend on GPLed.
39388 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39390 * modules/inline (License): Change from GPL to LGPL.
39392 2006-11-17 Jim Meyering <jim@meyering.net>
39394 * modules/d-type (License): Switch to LGPL.
39396 2006-11-15 Bruno Haible <bruno@clisp.org>
39398 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39400 2006-11-15 Eric Blake <ebb9@byu.net>
39402 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39403 the module dependency.
39405 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39406 Bruno Haible <bruno@clisp.org>
39408 * gnulib-tool (func_create_testdir): Add license consistency check.
39410 2006-11-15 Eric Blake <ebb9@byu.net>
39412 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39413 random "(cached)" in configure output.
39415 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39417 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39418 test for conforming inttypes.h is both announced and cached.
39420 * MODULES.html.sh (seen_modules, seen_files): New variables.
39421 (func_module): Rewrite to use a few less gnulib-tool and sed
39422 invocations. Avoid a couple of quadratic algorithms for ...
39423 (missed_modules, missed_files): ... these, with ...
39424 (func_append, func_tmpdir): ... these new functions, from
39425 gnulib-tool. Analogously, install traps for cleanup.
39427 * tests/test-gc.c (main): Remove unused variables.
39428 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39430 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39432 * modules/inttostr (License): Change to LGPL.
39434 2006-11-14 Eric Blake <ebb9@byu.net>
39436 * modules/tempname (License): Change to LGPL.
39438 2006-11-14 Eric Blake <ebb9@byu.net>
39440 * doc/functions.texi (Function Portability): *printf functions on
39441 Cygwin now understand all POSIX size specifiers.
39443 2006-11-14 Bruno Haible <bruno@clisp.org>
39445 * modules/c-ctype (License): Change to LGPL.
39447 2006-11-12 Bruno Haible <bruno@clisp.org>
39449 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39450 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39451 for GNOME libraries, for which the include files are installed in
39452 subdirectories of $prefix/include.
39454 2006-11-12 Bruno Haible <bruno@clisp.org>
39456 * m4/lib-link.m4: Require at least autoconf-2.54.
39457 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39458 name to underscores for the --with option.
39460 2006-11-13 Bruno Haible <bruno@clisp.org>
39462 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39463 the tests directory.
39464 Reported by Ralf Wildenhues.
39466 2006-11-13 Bruno Haible <bruno@clisp.org>
39468 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39469 (func_emit_initmacro_end): Undo the override here.
39470 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39471 Works around the famous automake error in coreutils.
39473 2006-11-13 Eric Blake <ebb9@byu.net>
39475 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39476 element, not its node.
39478 2006-11-12 Bruno Haible <bruno@clisp.org>
39480 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39481 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39483 2006-11-12 Bruno Haible <bruno@clisp.org>
39485 * gnulib-tool: New option --local-symlink.
39486 (func_usage): Document it.
39487 (lsymbolic): New variable.
39488 (func_import, func_create_testdir): If --symlink was not specified,
39489 test whether --local-symlink was specified and the file comes from
39490 the local_gnulib_dir.
39492 2006-11-12 Bruno Haible <bruno@clisp.org>
39494 * gnulib-tool (func_ln): New function.
39495 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39497 2006-11-12 Bruno Haible <bruno@clisp.org>
39499 Finish support for source files in subdirectories.
39500 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39501 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39503 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39505 2006-11-12 Bruno Haible <bruno@clisp.org>
39507 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39508 EXTRA_lib_SOURCES augmentation.
39509 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39511 2006-11-12 Jim Meyering <jim@meyering.net>
39513 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39514 file descriptors. This also averts a failure on systems with
39515 native openat support when a traversed directory lacks "x" access.
39516 * lib/fts_.h: Include "i-ring.h"
39517 (struct FTS) [fts_fd_ring]: New member.
39518 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39519 (FCHDIR): Add parentheses.
39520 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39521 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39522 When descending, rather than simply closing the previous
39523 fts_cwd_fd value, push that file descriptor onto the ring.
39524 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39525 (fts_open): Initialize the new fd_ring member.
39526 (fts_close): Clear the ring.
39527 (fts_safe_changedir): When possible, use our new fd_ring to skip
39528 the diropen and fstat and dev/ino comparison that would normally
39529 accompany a virtual `chdir ("..")'.
39531 * modules/fts (Depends-on): Add i-ring.
39532 * modules/i-ring: New module.
39533 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39534 * m4/i-ring.m4: New file.
39536 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39538 * gnulib-tool (func_create_testdir): Fix replacement of
39539 `build-aux' in configure.ac. Run autotools in gltests
39541 (func_create_testdir, func_create_megatestdir, test): There is
39542 no need for '--force' in most autotool invocations in a new
39543 tree. Actually fail the whole test if any of the tools, or the
39544 configure or make stages fail.
39546 Sync from Automake.
39547 * build-aux/gnupload: Revert last change. Add pointer to upload
39548 instructions of the GNU Maintenance Instructions.
39549 Suggestion by Karl Berry.
39551 2006-11-10 Jim Meyering <jim@meyering.net>
39553 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39555 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39557 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39558 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39559 (bind_textdomain_codeset) [! ENABLE_NLS]:
39560 Evaluate all the arguments. That way, callers get compatible behavior
39561 if the arguments have side effects. Also, it avoids some GCC
39562 diagnostics in some cases; Joel E. Denny reported problems when Bison
39563 was configured with --enable-gcc-warnigs.
39565 2006-11-10 Jim Meyering <jim@meyering.net>
39567 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39568 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39571 2006-11-10 Jim Meyering <jim@meyering.net>
39573 * modules/inline: New file/module.
39574 * modules/xalloc (Files): Remove m4/inline.m4.
39575 (Depends-on): Add inline, instead.
39576 * modules/oset: Likewise.
39577 * modules/list: Likewise.
39579 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39581 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39582 Problem reported by Matthew Woehlke.
39584 2006-11-09 Bruno Haible <bruno@clisp.org>
39586 * lib/tempname.c (gen_tempname): Remove variant that invokes
39588 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39591 2006-11-08 Bruno Haible <bruno@clisp.org>
39593 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39594 to 'yes' instead of 'cross-compiling'.
39596 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39598 * lib/quotearg.h (quotearg_free): New decl.
39599 * lib/quotearg.c (quotearg_free): New function.
39600 (slot0, nslots, slotvec0, slotvec):
39601 Now file-scope so that quotearg_free can get at them.
39603 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39605 Sync from Automake.
39606 * build-aux/gnupload: Add missing 'gnu' to example URL.
39607 Report by Karl Berry.
39609 2006-11-08 Bruno Haible <bruno@clisp.org>
39611 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39612 Suggested by Paul Eggert.
39614 2006-11-08 Jim Meyering <jim@meyering.net>
39616 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39617 It's already included if !_LIBC.
39618 (fts_safe_changedir): Add a comment.
39620 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39622 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39623 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39626 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39627 definitions up, to avoid colliding with change below.
39628 (static_inline) [HAVE_INLINE]: New macro.
39629 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39630 Provide extern decls when !HAVE_INLINE. Do not define unless
39631 static_inline is defined, either by us or by xmalloc.c. Use
39632 static_inline rather than static inline.
39633 (XCALLOC): Optimize sizeof(T) = 1 case.
39634 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39636 2006-11-07 Bruno Haible <bruno@clisp.org>
39638 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39639 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39641 * modules/xalloc (Files): Add m4/inline.m4.
39643 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39645 * README: Fix typo.
39646 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39647 (Miscellanous Notes): ...from this.
39649 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39651 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39652 Mention that offsetof should be used instead of sizeof.
39655 2006-11-07 Bruno Haible <bruno@clisp.org>
39657 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39659 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39661 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39662 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39663 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39664 (gl_tree_add_before, gl_tree_add_after):
39665 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39666 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39667 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39668 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39669 (gl_linked_add_after, gl_linked_add_at): Likewise.
39670 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39671 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39672 (gl_tree_add_before, gl_tree_add_after): Likewise.
39673 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39674 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39675 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39677 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39679 * lib/gl_oset.h: Use C comment style, not C++ comment style.
39681 2006-11-06 Bruno Haible <bruno@clisp.org>
39683 * m4/inline.m4: New file.
39684 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39685 * modules/list (Files): Add m4/inline.m4.
39686 * modules/oset (Files): Likewise.
39688 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39690 * lib/idcache.c: Include <stddef.h>, for offsetof.
39691 (struct userid.name): Change from char * to a flexible array member.
39693 * modules/idcache (Depends-on): Add flexmember.
39695 * MODULES.html.sh (Core language properties): New module flexmember.
39696 * modules/flexmember, m4/flexmember.m4: New files.
39698 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39699 inline functions that are identical with the old xnmalloc_inline,
39700 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
39701 that we can avoid some unnecessary integer multiplications and
39702 divisions in the common case where the element size is known at
39704 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39706 (xnboundedmalloc): Remove.
39707 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39708 arguments, for consistency with rest of this header.
39709 (xcharalloc): Rewrite using XNMALLOC.
39710 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39711 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
39712 versions have been moved to lib/xalloc.h and renamed to be the
39713 non-*_inline versions.
39714 (xmalloc, xrealloc): Implement without reference to the xnmalloc
39715 and xnrealloc functions, since those functions are now inline and
39717 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39718 renaming described above.
39719 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39720 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
39721 captures the dependency in AC_C_INLINE.
39723 New module canonicalize-lgpl, proposed by Charles Wilson in
39724 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39725 with a few small changes afterwards.
39726 * MODULES.html.sh (File system functions): New module
39728 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39729 and canonicalize_file_name.
39730 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39731 * modules/canonicalize-lgpl: New files.
39733 2006-11-05 Bruno Haible <bruno@clisp.org>
39735 * gnulib-tool (func_import, func_create_testdir): Create directories
39736 also for files in subdirectories of lib/.
39738 2006-11-05 Bruno Haible <bruno@clisp.org>
39740 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39743 2006-11-03 Bruno Haible <bruno@clisp.org>
39745 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39746 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39747 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39748 (xnboundedmalloc): New inline function.
39749 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39750 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39752 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39754 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39755 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39756 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39758 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39759 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39761 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39762 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39763 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39765 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39766 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39767 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39768 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39769 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39770 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39771 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39773 2006-11-03 Bruno Haible <bruno@clisp.org>
39775 * lib/c-ctype.h [C++]: Define functions without name mangling.
39776 * lib/fwriteerror.h [C++]: Likewise.
39777 * lib/gcd.h [C++]: Likewise.
39778 * lib/linebreak.h [C++]: Likewise.
39780 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
39782 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39783 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39784 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39785 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39786 Check for functions and headers just once.
39787 Check for declaration of canonicalize_file_name.
39788 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39790 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
39792 * gnulib-tool (func_import): Fix typo in actioncmd.
39794 2006-11-02 Bruno Haible <bruno@clisp.org>
39796 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39797 newline sequence in the Makefile.am snippet as a space, like "make"
39799 Reported by Roger Persson <perrog@gmail.com>.
39801 2006-11-01 Bruno Haible <bruno@clisp.org>
39803 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39804 already declared in <string.h>.
39805 * lib/strcase.h (strncasecmp): Don't declare it if yes.
39807 2006-11-01 Bruno Haible <bruno@clisp.org>
39809 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39810 * lib/strcase.h: Include <string.h>.
39811 (strcasecmp): Define to rpl_strcasecmp here.
39813 2006-11-01 Bruno Haible <bruno@clisp.org>
39815 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39817 2006-11-01 Eric Blake <ebb9@byu.net>
39819 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39821 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39823 2006-10-29 Bruno Haible <bruno@clisp.org>
39825 Make it compile in C++ mode.
39826 * lib/full-write.c (full_rw): Add a cast.
39828 2006-11-01 Bruno Haible <bruno@clisp.org>
39830 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39831 be POSIX compliant.
39832 Reported by Roger Persson <perrog@gmail.com>.
39834 2006-11-01 Eric Blake <ebb9@byu.net>
39836 * lib/getopt_.h: Fix comments.
39838 2006-10-31 Eric Blake <ebb9@byu.net>
39840 * modules/tmpdir (Depends-on): Add sys_stat.
39841 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39842 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39843 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39844 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39847 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
39849 Avoid some C++ diagnostics reported by Bruno Haible.
39850 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39852 (quotearg_alloc): Use xcharalloc rather than xmalloc.
39853 (struct slotvec): Move to top level.
39854 (quotearg_n_options): Rewrite to avoid xmalloc.
39855 * lib/xalloc.h (xcharalloc): New function.
39856 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39857 [defined __cplusplus]: Add function template that provides result
39858 type propagation. This part of the change is from Bruno Haible.
39860 2006-10-29 Bruno Haible <bruno@clisp.org>
39862 Make it compile in C++ mode.
39863 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39864 * lib/strnlen1.c (strnlen1): Cast memchr result.
39865 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39866 * lib/clean-temp.c (string_equals, string_hash): Add casts.
39867 (create_temp_dir): Rename local variable 'template'.
39868 (compile_csharp_using_sscli): Add cast.
39869 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39870 * lib/findprog.c (find_in_path): Likewise.
39871 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39872 * lib/wait-process.c (register_slave_subprocess): Likewise.
39874 2006-10-22 Bruno Haible <bruno@clisp.org>
39876 * modules/tsearch: New file.
39877 * lib/tsearch.h: New file.
39878 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39879 * m4/tsearch.m4: New file.
39880 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39882 2006-10-29 Eric Blake <ebb9@byu.net>
39884 * lib/arcfour.c: Assume config.h.
39885 * lib/arctwo.c: Likewise.
39886 * lib/base64.c: Likewise.
39887 * lib/check-version.c: Likewise.
39888 * lib/crc.c: Likewise.
39889 * lib/des.c: Likewise.
39890 * lib/gc-gnulib.c: Likewise.
39891 * lib/gc-libgcrypt.c: Likewise.
39892 * lib/gc-pbkdf2-sha1.c: Likewise.
39893 * lib/getaddrinfo.c: Likewise.
39894 * lib/getdelim.c: Likewise.
39895 * lib/getline.c: Likewise.
39896 * lib/hmac-md5.c: Likewise.
39897 * lib/hmac-sha1.c: Likewise.
39898 * lib/iconvme.c: Likewise.
39899 * lib/md2.c: Likewise.
39900 * lib/md4.c: Likewise.
39901 * lib/memxor.c: Likewise.
39902 * lib/read-file.c: Likewise.
39903 * lib/readline.c: Likewise.
39904 * lib/rijndael-alg-fst.c: Likewise.
39905 * lib/rijndael-api-fst.c: Likewise.
39906 * lib/xgetdomainname.c: Likewise.
39908 2006-10-28 Eric Blake <ebb9@byu.net>
39910 * lib/xstrndup.c: Assume config.h.
39912 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
39914 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39915 stat-macros.h is now for our own macros, whereas stat_h is for
39916 macros in the <sys/stat.h> name space.
39917 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39918 (STAT_MACROS_H): Remove.
39919 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39920 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39921 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39922 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39923 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39924 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39925 Move these macros to ...
39926 * lib/stat_.h: here. Don't include stat-macros.h.
39927 * lib/canonicalize.c: Don't include stat-macros.h.
39928 * lib/chown.c: Likewise.
39929 * lib/euidaccess.c: Likewise.
39930 * lib/file-type.c: Likewise.
39931 * lib/filemode.c: Likewise.
39932 * lib/glob.c: Likewise.
39933 * lib/isapipe.c: Likewise.
39934 * lib/lchown.c: Likewise.
39935 * lib/lstat.c: Likewise.
39936 * lib/mkdir-p.c: Likewise.
39937 * lib/rmdir.c: Likewise.
39938 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39939 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39940 unless mkdir isn't declared, to speed up 'configure'.
39941 Always create sys/stat.h, since it's unlikely any real sys/stat.h
39942 would define all the S_* symbols.
39943 * modules/canonicalize (Depends-on):
39944 Depend on sys_stat, not stat-macros.
39945 * modules/chown: Likewise.
39946 * modules/euidaccess: Likewise.
39947 * modules/filemode: Likewise.
39948 * modules/file-type: Likewise.
39949 * modules/glob: Likewise.
39950 * modules/isapipe: Likewise.
39951 * modules/lchown: Likewise.
39952 * modules/lstat: Likewise.
39953 * modules/mkancesdirs: Likewise.
39954 * modules/rmdir: Likewise.
39955 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39956 * modules/modechange: Likewise.
39957 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39958 (configure.ac): Remove gl_STAT_MACROS.
39959 * modules/sys_stat (Depends-on): Remove stat-macros.
39961 2006-10-27 Bruno Haible <bruno@clisp.org>
39963 * m4/signed.m4: Remove file.
39964 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39966 * modules/vasnprintf (Files): Remove m4/signed.m4.
39968 2006-10-27 Bruno Haible <bruno@clisp.org>
39970 Update to GNU gettext 0.16.
39971 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39972 m4/inttypes-h.m4, m4/signed.m4.
39973 * m4/gettext.m4: Update to GNU gettext 0.16.
39974 * m4/intl.m4: New file, from GNU gettext.
39975 * m4/intldir.m4: New file, from GNU gettext.
39976 * config/srclist.txt: Update
39978 2006-10-27 Eric Blake <ebb9@byu.net>
39980 * MODULES.html.sh: Document tempname.
39981 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39983 (Files): Move lib/tempname.c...
39984 * modules/tempname: ...to this new module.
39985 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39986 (gl_PREREQ_TEMPNAME): Move...
39987 * m4/tempname.m4: ...to this new file.
39988 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39989 * modules/sys_stat (Depends-on): Add stat-macros.
39990 * lib/stat_.h (includes): Pick up stat macros.
39991 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39992 if stat macros are broken.
39993 * lib/tempname.c (includes): No need to include "stat-macros.h".
39994 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39995 (direxists, __path_search) [!_LIBC]: Don't compile these in
39996 gnulib; the tmpdir module covers that.
39997 * lib/tempname.h: New file.
39999 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40001 * COPYING: Explain how gnulib-tool converts licence headers.
40002 Almost all wording by Eric Blake.
40004 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40006 * lib/mbchar.h (is_basic_table): Make read-only.
40007 * lib/mbchar.c (is_basic_table): Likewise.
40008 Reported by John Darrington.
40010 2006-10-25 Bruno Haible <bruno@clisp.org>
40012 * lib/progname.h (set_program_name): Undefine before defining.
40014 2006-10-25 Bruno Haible <bruno@clisp.org>
40016 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40017 false for non-gcc C++ compilers.
40018 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40020 2006-10-24 Bruno Haible <bruno@clisp.org>
40022 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40023 iconv implementations like Irix iconv.
40025 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40027 * modules/vararrays: New file.
40028 * m4/vararrays.m4: New file, taken from diffutils.
40029 * MODULES.html.sh: New module vararrays.
40031 2006-10-24 Karl Berry <karl@gnu.org>
40033 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40034 Don't call GNU Unix.
40036 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40038 * users.txt: Add Libtool.
40042 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40044 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40045 to gnulib's policy of including config.h unconditionally.
40047 2006-10-24 Bruno Haible <bruno@clisp.org>
40049 * modules/wcwidth (Files): Add m4/wint_t.m4.
40050 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40051 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40053 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40055 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40056 to pacify GCC with some -W flags enabled. Problem reported by
40059 2006-10-24 Jim Meyering <jim@meyering.net>
40061 * MODULES.html.sh: Remove uinttostr. It's not a module.
40062 Reported by Karl Berry.
40064 2006-10-23 Bruno Haible <bruno@clisp.org>
40066 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40068 2006-10-24 Bruno Haible <bruno@clisp.org>
40070 * lib/gl_list.h: Use C comment style, not C++ comment style.
40072 2006-10-23 Eric Blake <ebb9@byu.net>
40074 * lib/getaddrinfo.c (includes): Add missing include.
40076 2006-10-23 Bruno Haible <bruno@clisp.org>
40077 Paul Eggert <eggert@cs.ucla.edu>
40079 Ability to rename obstack_free.
40080 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40082 (obstack_free): Invoke the __obstack_free macro.
40083 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40085 2006-10-23 Bruno Haible <bruno@clisp.org>
40086 Paul Eggert <eggert@cs.ucla.edu>
40088 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40089 __argc, __argv from the declaration. (They are defined as macros on
40092 2006-10-22 Bruno Haible <bruno@clisp.org>
40094 * doc/gnulib-intro.texi: New file.
40095 * doc/gnulib.texi: Include it.
40097 2006-10-21 Bruno Haible <bruno@clisp.org>
40099 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40100 "Introduction", "Miscellanous Notes", "Particular Modules".
40102 2006-10-21 Bruno Haible <bruno@clisp.org>
40104 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40105 Change mostlyclean-local rule to avoid sh syntax error from bash
40106 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40108 2006-10-23 Jim Meyering <jim@meyering.net>
40110 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40111 in place of snprintf.
40113 * modules/inttostr (Files): Add lib/uinttostr.c.
40114 * lib/uinttostr.c (inttostr): New file/function.
40115 * lib/inttostr.h (uinttostr): Declare.
40116 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40117 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40119 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40121 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40123 * lib/canonicalize.c (ELOOP): Define if not already defined.
40124 Problem reported by Bruno Haible in
40125 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40127 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40129 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40130 Problem reported by Perry Smith and Ville Laurikari.
40132 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40135 2006-10-19 Bruno Haible <bruno@clisp.org>
40137 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40140 2006-10-19 Bruno Haible <bruno@clisp.org>
40142 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40145 2006-10-19 Bruno Haible <bruno@clisp.org>
40147 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40149 2006-10-19 Bruno Haible <bruno@clisp.org>
40151 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40154 2006-10-19 Bruno Haible <bruno@clisp.org>
40156 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40159 2006-10-19 Bruno Haible <bruno@clisp.org>
40161 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40162 mountlist by default.
40164 2006-10-16 Bruno Haible <bruno@clisp.org>
40166 * lib/c-strstr.c: Include c-strstr.h.
40168 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40170 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40173 2006-10-18 Bruno Haible <bruno@clisp.org>
40175 * lib/lock.h [C++]: Wrap definitions in extern "C".
40177 2006-10-18 Bruno Haible <bruno@clisp.org>
40179 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40182 2006-10-18 Bruno Haible <bruno@clisp.org>
40184 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40186 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40188 * lib/xstrtol.h: Include gettext.h.
40189 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40190 Problem reported by Eric Blake.
40191 * modules/xstrtol (Depends-on): Add gettext-h.
40193 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40195 * lib/strftime.c (advance): New macro.
40196 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40197 incomplete type, so you can't add 0 to it. Problem and patch
40198 reported by Eelco Dolstra for dietlibc.
40200 2006-10-18 Jim Meyering <jim@meyering.net>
40202 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40203 type for a local, and rename it: s/up/user_proc/.
40205 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40207 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40208 READ_UTMP_USER_PROCESS.
40209 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40211 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40213 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40214 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40216 2006-10-17 Eric Blake <ebb9@byu.net>
40218 * lib/sigprocmask.c (sigprocmask): Fix typo.
40220 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40222 * modules/clean-temp (Makefile.am): Don't add to make output...
40223 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40226 2006-10-17 Bruno Haible <bruno@clisp.org>
40228 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40229 differently if DEFAULT_TEXT_DOMAIN is set.
40231 2006-10-16 Bruno Haible <bruno@clisp.org>
40233 * lib/clean-temp.c: Include fwriteerror.h.
40235 2006-10-16 Bruno Haible <bruno@clisp.org>
40237 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40239 2006-10-16 Bruno Haible <bruno@clisp.org>
40241 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40242 * lib/sigprocmask.h: Include <sys/types.h>.
40243 (sigset_t): Use the system's definition if present.
40245 2006-10-17 Eric Blake <ebb9@byu.net>
40247 * lib/xvasprintf.c (includes): Assume config.h.
40248 * lib/xasprintf.c (includes): Likewise.
40250 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40252 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40253 at least as wide as intmax_t.
40255 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40257 (Imported from Automake.)
40258 * build-aux/gnupload: Update to version 1.1 of directive file.
40260 2006-10-16 Eric Blake <ebb9@byu.net>
40262 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40263 match Automake 1.10a.
40265 2006-10-14 Bruno Haible <bruno@clisp.org>
40267 * modules/sigprocmask: New file.
40268 * lib/sigprocmask.h: New file.
40269 * lib/sigprocmask.c: New file.
40270 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40271 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40272 request sigprocmask.o.
40273 (gl_PREREQ_SIGPROCMASK): New macro.
40274 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40275 (Depends-on): Add sigprocmask.
40276 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40277 gt_SIGNALBLOCKING. Test for 'raise' only once.
40278 * lib/fatal-signal.c: Include sigprocmask.h.
40279 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40280 unblock_fatal_signals): Define always.
40281 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40284 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40286 Sync from Automake.
40287 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40288 which incorrectly sets the mode of an existing destination
40289 directory. In some cases the unpatched install-sh could do the
40290 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40291 system. We hope this is rare in practice, but it's clearly worth
40292 fixing. Problem reported by Alex Unleashed in
40293 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40294 Also, don't bother to check for -m bugs unless we're using -m;
40295 suggested by Stepan Kasal.
40297 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40299 Sync from Automake.
40300 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40301 `-c' flag, so they appear at the same position as in %FASTDEP%
40302 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40303 which ignores unknown options only after the first non-option.
40304 Bug report against M4 by Nelson H. F. Beebe.
40306 2006-10-13 Jim Meyering <jim@meyering.net>
40308 Fix a bug in yesterday's change.
40309 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40310 p->fts_statp->st_dev would be used uninitialized.
40311 Ensures that we always call fts_stat on the very first entry.
40312 Miklos Szeredi reported that find -xdev stopped working.
40314 2006-10-12 Bruno Haible <bruno@clisp.org>
40316 * gnulib-tool (func_get_automake_snippet): Append an automatically
40317 computed EXTRA_DIST augmentation.
40318 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40319 * modules/alloca-opt (Makefile.am): Likewise.
40320 * modules/allocsa (Makefile.am): Likewise.
40321 * modules/arcfour (Makefile.am): Likewise.
40322 * modules/arctwo (Makefile.am): Likewise.
40323 * modules/argmatch (Makefile.am): Likewise.
40324 * modules/argz (Makefile.am): Likewise.
40325 * modules/atexit (Makefile.am): Likewise.
40326 * modules/backupfile (Makefile.am): Likewise.
40327 * modules/byteswap (Makefile.am): Likewise.
40328 * modules/c-strtod (Makefile.am): Likewise.
40329 * modules/c-strtold (Makefile.am): Likewise.
40330 * modules/calloc (Makefile.am): Likewise.
40331 * modules/canon-host (Makefile.am): Likewise.
40332 * modules/canonicalize (Makefile.am): Likewise.
40333 * modules/chdir-long (Makefile.am): Likewise.
40334 * modules/chdir-safer (Makefile.am): Likewise.
40335 * modules/check-version (Makefile.am): Likewise.
40336 * modules/chown (Makefile.am): Likewise.
40337 * modules/cloexec (Makefile.am): Likewise.
40338 * modules/close-stream (Makefile.am): Likewise.
40339 * modules/closeout (Makefile.am): Likewise.
40340 * modules/crc (Makefile.am): Likewise.
40341 * modules/csharpexec (Makefile.am): Likewise.
40342 * modules/cycle-check (Makefile.am): Likewise.
40343 * modules/des (Makefile.am): Likewise.
40344 * modules/dev-ino (Makefile.am): Likewise.
40345 * modules/dirfd (Makefile.am): Likewise.
40346 * modules/dirname (Makefile.am): Likewise.
40347 * modules/dup2 (Makefile.am): Likewise.
40348 * modules/eealloc (Makefile.am): Likewise.
40349 * modules/error (Makefile.am): Likewise.
40350 * modules/euidaccess (Makefile.am): Likewise.
40351 * modules/exclude (Makefile.am): Likewise.
40352 * modules/exitfail (Makefile.am): Likewise.
40353 * modules/fcntl-safer (Makefile.am): Likewise.
40354 * modules/fcntl (Makefile.am): Likewise.
40355 * modules/file-type (Makefile.am): Likewise.
40356 * modules/fileblocks (Makefile.am): Likewise.
40357 * modules/filemode (Makefile.am): Likewise.
40358 * modules/filenamecat (Makefile.am): Likewise.
40359 * modules/fnmatch (Makefile.am): Likewise.
40360 * modules/fopen-safer (Makefile.am): Likewise.
40361 * modules/fpending (Makefile.am): Likewise.
40362 * modules/fprintftime (Makefile.am): Likewise.
40363 * modules/free (Makefile.am): Likewise.
40364 * modules/fsusage (Makefile.am): Likewise.
40365 * modules/ftruncate (Makefile.am): Likewise.
40366 * modules/fts (Makefile.am): Likewise.
40367 * modules/gc-arcfour (Makefile.am): Likewise.
40368 * modules/gc-des (Makefile.am): Likewise.
40369 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40370 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40371 * modules/gc-md4 (Makefile.am): Likewise.
40372 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40373 * modules/gc-sha1 (Makefile.am): Likewise.
40374 * modules/gc (Makefile.am): Likewise.
40375 * modules/getaddrinfo (Makefile.am): Likewise.
40376 * modules/getcwd (Makefile.am): Likewise.
40377 * modules/getdelim (Makefile.am): Likewise.
40378 * modules/getdomainname (Makefile.am): Likewise.
40379 * modules/getgroups (Makefile.am): Likewise.
40380 * modules/gethostname (Makefile.am): Likewise.
40381 * modules/gethrxtime (Makefile.am): Likewise.
40382 * modules/getline (Makefile.am): Likewise.
40383 * modules/getloadavg (Makefile.am): Likewise.
40384 * modules/getlogin_r (Makefile.am): Likewise.
40385 * modules/getndelim2 (Makefile.am): Likewise.
40386 * modules/getopt (Makefile.am): Likewise.
40387 * modules/getpagesize (Makefile.am): Likewise.
40388 * modules/getpass-gnu (Makefile.am): Likewise.
40389 * modules/getpass (Makefile.am): Likewise.
40390 * modules/getsubopt (Makefile.am): Likewise.
40391 * modules/gettime (Makefile.am): Likewise.
40392 * modules/gettimeofday (Makefile.am): Likewise.
40393 * modules/getugroups (Makefile.am): Likewise.
40394 * modules/getusershell (Makefile.am): Likewise.
40395 * modules/glob (Makefile.am): Likewise.
40396 * modules/group-member (Makefile.am): Likewise.
40397 * modules/hard-locale (Makefile.am): Likewise.
40398 * modules/hash (Makefile.am): Likewise.
40399 * modules/hmac-md5 (Makefile.am): Likewise.
40400 * modules/hmac-sha1 (Makefile.am): Likewise.
40401 * modules/human (Makefile.am): Likewise.
40402 * modules/idcache (Makefile.am): Likewise.
40403 * modules/imaxabs (Makefile.am): Likewise.
40404 * modules/imaxdiv (Makefile.am): Likewise.
40405 * modules/inet_ntop (Makefile.am): Likewise.
40406 * modules/inet_pton (Makefile.am): Likewise.
40407 * modules/intprops (Makefile.am): Likewise.
40408 * modules/inttostr (Makefile.am): Likewise.
40409 * modules/inttypes (Makefile.am): Likewise.
40410 * modules/isapipe (Makefile.am): Likewise.
40411 * modules/javaversion (Makefile.am): Likewise.
40412 * modules/lchmod (Makefile.am): Likewise.
40413 * modules/lchown (Makefile.am): Likewise.
40414 * modules/localcharset (Makefile.am): Likewise.
40415 * modules/long-options (Makefile.am): Likewise.
40416 * modules/lstat (Makefile.am): Likewise.
40417 * modules/malloc (Makefile.am): Likewise.
40418 * modules/mathl (Makefile.am): Likewise.
40419 * modules/mbchar (Makefile.am): Likewise.
40420 * modules/md2 (Makefile.am): Likewise.
40421 * modules/md4 (Makefile.am): Likewise.
40422 * modules/md5 (Makefile.am): Likewise.
40423 * modules/memcasecmp (Makefile.am): Likewise.
40424 * modules/memchr (Makefile.am): Likewise.
40425 * modules/memcmp (Makefile.am): Likewise.
40426 * modules/memcoll (Makefile.am): Likewise.
40427 * modules/memcpy (Makefile.am): Likewise.
40428 * modules/memmem (Makefile.am): Likewise.
40429 * modules/memmove (Makefile.am): Likewise.
40430 * modules/mempcpy (Makefile.am): Likewise.
40431 * modules/memrchr (Makefile.am): Likewise.
40432 * modules/memset (Makefile.am): Likewise.
40433 * modules/memxor (Makefile.am): Likewise.
40434 * modules/mkancesdirs (Makefile.am): Likewise.
40435 * modules/mkdir-p (Makefile.am): Likewise.
40436 * modules/mkdir (Makefile.am): Likewise.
40437 * modules/mkdtemp (Makefile.am): Likewise.
40438 * modules/mkstemp (Makefile.am): Likewise.
40439 * modules/mktime (Makefile.am): Likewise.
40440 * modules/modechange (Makefile.am): Likewise.
40441 * modules/mountlist (Makefile.am): Likewise.
40442 * modules/nanosleep (Makefile.am): Likewise.
40443 * modules/obstack (Makefile.am): Likewise.
40444 * modules/openat (Makefile.am): Likewise.
40445 * modules/pagealign_alloc (Makefile.am): Likewise.
40446 * modules/pathmax (Makefile.am): Likewise.
40447 * modules/physmem (Makefile.am): Likewise.
40448 * modules/poll (Makefile.am): Likewise.
40449 * modules/posixtm (Makefile.am): Likewise.
40450 * modules/posixver (Makefile.am): Likewise.
40451 * modules/putenv (Makefile.am): Likewise.
40452 * modules/quote (Makefile.am): Likewise.
40453 * modules/quotearg (Makefile.am): Likewise.
40454 * modules/raise (Makefile.am): Likewise.
40455 * modules/read-file (Makefile.am): Likewise.
40456 * modules/readline (Makefile.am): Likewise.
40457 * modules/readlink (Makefile.am): Likewise.
40458 * modules/readtokens (Makefile.am): Likewise.
40459 * modules/readutmp (Makefile.am): Likewise.
40460 * modules/realloc (Makefile.am): Likewise.
40461 * modules/regex (Makefile.am): Likewise.
40462 * modules/rename-dest-slash (Makefile.am): Likewise.
40463 * modules/rename (Makefile.am): Likewise.
40464 * modules/rijndael (Makefile.am): Likewise.
40465 * modules/rmdir (Makefile.am): Likewise.
40466 * modules/rpmatch (Makefile.am): Likewise.
40467 * modules/safe-read (Makefile.am): Likewise.
40468 * modules/safe-write (Makefile.am): Likewise.
40469 * modules/same-inode (Makefile.am): Likewise.
40470 * modules/same (Makefile.am): Likewise.
40471 * modules/save-cwd (Makefile.am): Likewise.
40472 * modules/savedir (Makefile.am): Likewise.
40473 * modules/setenv (Makefile.am): Likewise.
40474 * modules/settime (Makefile.am): Likewise.
40475 * modules/sha1 (Makefile.am): Likewise.
40476 * modules/sig2str (Makefile.am): Likewise.
40477 * modules/snprintf (Makefile.am): Likewise.
40478 * modules/stat-macros (Makefile.am): Likewise.
40479 * modules/stat-time (Makefile.am): Likewise.
40480 * modules/stdbool (Makefile.am): Likewise.
40481 * modules/stdint (Makefile.am): Likewise.
40482 * modules/stdlib-safer (Makefile.am): Likewise.
40483 * modules/stpcpy (Makefile.am): Likewise.
40484 * modules/stpncpy (Makefile.am): Likewise.
40485 * modules/strcase (Makefile.am): Likewise.
40486 * modules/strcasestr (Makefile.am): Likewise.
40487 * modules/strchrnul (Makefile.am): Likewise.
40488 * modules/strcspn (Makefile.am): Likewise.
40489 * modules/strdup (Makefile.am): Likewise.
40490 * modules/strerror (Makefile.am): Likewise.
40491 * modules/strftime (Makefile.am): Likewise.
40492 * modules/strndup (Makefile.am): Likewise.
40493 * modules/strnlen (Makefile.am): Likewise.
40494 * modules/strpbrk (Makefile.am): Likewise.
40495 * modules/strsep (Makefile.am): Likewise.
40496 * modules/strstr (Makefile.am): Likewise.
40497 * modules/strtod (Makefile.am): Likewise.
40498 * modules/strtoimax (Makefile.am): Likewise.
40499 * modules/strtok_r (Makefile.am): Likewise.
40500 * modules/strtol (Makefile.am): Likewise.
40501 * modules/strtoll (Makefile.am): Likewise.
40502 * modules/strtoul (Makefile.am): Likewise.
40503 * modules/strtoull (Makefile.am): Likewise.
40504 * modules/strtoumax (Makefile.am): Likewise.
40505 * modules/strverscmp (Makefile.am): Likewise.
40506 * modules/sys_socket (Makefile.am): Likewise.
40507 * modules/sys_stat (Makefile.am): Likewise.
40508 * modules/sysexits (Makefile.am): Likewise.
40509 * modules/time_r (Makefile.am): Likewise.
40510 * modules/timegm (Makefile.am): Likewise.
40511 * modules/timespec (Makefile.am): Likewise.
40512 * modules/tmpfile-safer (Makefile.am): Likewise.
40513 * modules/trim (Makefile.am): Likewise.
40514 * modules/unistd-safer (Makefile.am): Likewise.
40515 * modules/unlinkdir (Makefile.am): Likewise.
40516 * modules/unlocked-io (Makefile.am): Likewise.
40517 * modules/userspec (Makefile.am): Likewise.
40518 * modules/utime (Makefile.am): Likewise.
40519 * modules/utimecmp (Makefile.am): Likewise.
40520 * modules/utimens (Makefile.am): Likewise.
40521 * modules/vasnprintf (Makefile.am): Likewise.
40522 * modules/vasprintf (Makefile.am): Likewise.
40523 * modules/vsnprintf (Makefile.am): Likewise.
40524 * modules/xalloc (Makefile.am): Likewise.
40525 * modules/xgetcwd (Makefile.am): Likewise.
40526 * modules/xnanosleep (Makefile.am): Likewise.
40527 * modules/xreadlink (Makefile.am): Likewise.
40528 * modules/xstrtod (Makefile.am): Likewise.
40529 * modules/xstrtol (Makefile.am): Likewise.
40530 * modules/xstrtold (Makefile.am): Likewise.
40531 * modules/yesno (Makefile.am): Likewise.
40532 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40534 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40536 * modules/error (Makefile.am): Distribute files through
40537 EXTRA_DIST, not lib_SOURCES.
40539 2006-10-12 Eric Blake <ebb9@byu.net>
40541 * modules/error (Makefile.am): Distribute files in /lib.
40542 * modules/obstack (Makefile.am): Likewise.
40544 2006-10-12 Bruno Haible <bruno@clisp.org>
40546 * modules/acl (Makefile.am): Distribute all files in lib/ through
40548 * modules/arcfour (Makefile.am): Likewise.
40549 * modules/arctwo (Makefile.am): Likewise.
40550 * modules/argmatch (Makefile.am): Likewise.
40551 * modules/argz (Makefile.am): Likewise.
40552 * modules/atexit (Makefile.am): Likewise.
40553 * modules/backupfile (Makefile.am): Likewise.
40554 * modules/c-strtod (Makefile.am): Likewise.
40555 * modules/c-strtold (Makefile.am): Likewise.
40556 * modules/calloc (Makefile.am): Likewise.
40557 * modules/canon-host (Makefile.am): Likewise.
40558 * modules/canonicalize (Makefile.am): Likewise.
40559 * modules/chdir-long (Makefile.am): Likewise.
40560 * modules/chdir-safer (Makefile.am): Likewise.
40561 * modules/check-version (Makefile.am): Likewise.
40562 * modules/chown (Makefile.am): Likewise.
40563 * modules/cloexec (Makefile.am): Likewise.
40564 * modules/close-stream (Makefile.am): Likewise.
40565 * modules/closeout (Makefile.am): Likewise.
40566 * modules/crc (Makefile.am): Likewise.
40567 * modules/cycle-check (Makefile.am): Likewise.
40568 * modules/des (Makefile.am): Likewise.
40569 * modules/dirfd (Makefile.am): Likewise.
40570 * modules/dirname (Makefile.am): Likewise.
40571 * modules/dup2 (Makefile.am): Likewise.
40572 * modules/euidaccess (Makefile.am): Likewise.
40573 * modules/exclude (Makefile.am): Likewise.
40574 * modules/exitfail (Makefile.am): Likewise.
40575 * modules/fcntl-safer (Makefile.am): Likewise.
40576 * modules/file-type (Makefile.am): Likewise.
40577 * modules/fileblocks (Makefile.am): Likewise.
40578 * modules/filemode (Makefile.am): Likewise.
40579 * modules/filenamecat (Makefile.am): Likewise.
40580 * modules/fnmatch (Makefile.am): Likewise.
40581 * modules/fopen-safer (Makefile.am): Likewise.
40582 * modules/fpending (Makefile.am): Likewise.
40583 * modules/fprintftime (Makefile.am): Likewise.
40584 * modules/free (Makefile.am): Likewise.
40585 * modules/fsusage (Makefile.am): Likewise.
40586 * modules/ftruncate (Makefile.am): Likewise.
40587 * modules/fts (Makefile.am): Likewise.
40588 * modules/gc (Makefile.am): Likewise.
40589 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40590 * modules/getaddrinfo (Makefile.am): Likewise.
40591 * modules/getcwd (Makefile.am): Likewise.
40592 * modules/getdelim (Makefile.am): Likewise.
40593 * modules/getdomainname (Makefile.am): Likewise.
40594 * modules/getgroups (Makefile.am): Likewise.
40595 * modules/gethostname (Makefile.am): Likewise.
40596 * modules/gethrxtime (Makefile.am): Likewise.
40597 * modules/getline (Makefile.am): Likewise.
40598 * modules/getloadavg (Makefile.am): Likewise.
40599 * modules/getlogin_r (Makefile.am): Likewise.
40600 * modules/getopt (Makefile.am): Likewise.
40601 * modules/getpass (Makefile.am): Likewise.
40602 * modules/getpass-gnu (Makefile.am): Likewise.
40603 * modules/getsubopt (Makefile.am): Likewise.
40604 * modules/gettime (Makefile.am): Likewise.
40605 * modules/gettimeofday (Makefile.am): Likewise.
40606 * modules/getugroups (Makefile.am): Likewise.
40607 * modules/getusershell (Makefile.am): Likewise.
40608 * modules/glob (Makefile.am): Likewise.
40609 * modules/group-member (Makefile.am): Likewise.
40610 * modules/hard-locale (Makefile.am): Likewise.
40611 * modules/hash (Makefile.am): Likewise.
40612 * modules/hmac-md5 (Makefile.am): Likewise.
40613 * modules/hmac-sha1 (Makefile.am): Likewise.
40614 * modules/human (Makefile.am): Likewise.
40615 * modules/idcache (Makefile.am): Likewise.
40616 * modules/imaxabs (Makefile.am): Likewise.
40617 * modules/imaxdiv (Makefile.am): Likewise.
40618 * modules/inet_ntop (Makefile.am): Likewise.
40619 * modules/inet_pton (Makefile.am): Likewise.
40620 * modules/inttostr (Makefile.am): Likewise.
40621 * modules/isapipe (Makefile.am): Likewise.
40622 * modules/lchown (Makefile.am): Likewise.
40623 * modules/long-options (Makefile.am): Likewise.
40624 * modules/lstat (Makefile.am): Likewise.
40625 * modules/malloc (Makefile.am): Likewise.
40626 * modules/mathl (Makefile.am): Likewise.
40627 * modules/mbchar (Makefile.am): Likewise.
40628 * modules/md2 (Makefile.am): Likewise.
40629 * modules/md4 (Makefile.am): Likewise.
40630 * modules/md5 (Makefile.am): Likewise.
40631 * modules/memcasecmp (Makefile.am): Likewise.
40632 * modules/memchr (Makefile.am): Likewise.
40633 * modules/memcmp (Makefile.am): Likewise.
40634 * modules/memcoll (Makefile.am): Likewise.
40635 * modules/memcpy (Makefile.am): Likewise.
40636 * modules/memmem (Makefile.am): Likewise.
40637 * modules/memmove (Makefile.am): Likewise.
40638 * modules/mempcpy (Makefile.am): Likewise.
40639 * modules/memrchr (Makefile.am): Likewise.
40640 * modules/memset (Makefile.am): Likewise.
40641 * modules/memxor (Makefile.am): Likewise.
40642 * modules/mkancesdirs (Makefile.am): Likewise.
40643 * modules/mkdir (Makefile.am): Likewise.
40644 * modules/mkdir-p (Makefile.am): Likewise.
40645 * modules/mkdtemp (Makefile.am): Likewise.
40646 * modules/mkstemp (Makefile.am): Likewise.
40647 * modules/mktime (Makefile.am): Likewise.
40648 * modules/modechange (Makefile.am): Likewise.
40649 * modules/mountlist (Makefile.am): Likewise.
40650 * modules/nanosleep (Makefile.am): Likewise.
40651 * modules/openat (Makefile.am): Likewise.
40652 * modules/pagealign_alloc (Makefile.am): Likewise.
40653 * modules/physmem (Makefile.am): Likewise.
40654 * modules/poll (Makefile.am): Likewise.
40655 * modules/posixtm (Makefile.am): Likewise.
40656 * modules/posixver (Makefile.am): Likewise.
40657 * modules/putenv (Makefile.am): Likewise.
40658 * modules/quote (Makefile.am): Likewise.
40659 * modules/quotearg (Makefile.am): Likewise.
40660 * modules/raise (Makefile.am): Likewise.
40661 * modules/read-file (Makefile.am): Likewise.
40662 * modules/readline (Makefile.am): Likewise.
40663 * modules/readlink (Makefile.am): Likewise.
40664 * modules/readtokens (Makefile.am): Likewise.
40665 * modules/readutmp (Makefile.am): Likewise.
40666 * modules/realloc (Makefile.am): Likewise.
40667 * modules/regex (Makefile.am): Likewise.
40668 * modules/rename (Makefile.am): Likewise.
40669 * modules/rename-dest-slash (Makefile.am): Likewise.
40670 * modules/rijndael (Makefile.am): Likewise.
40671 * modules/rmdir (Makefile.am): Likewise.
40672 * modules/rpmatch (Makefile.am): Likewise.
40673 * modules/safe-read (Makefile.am): Likewise.
40674 * modules/safe-write (Makefile.am): Likewise.
40675 * modules/same (Makefile.am): Likewise.
40676 * modules/save-cwd (Makefile.am): Likewise.
40677 * modules/savedir (Makefile.am): Likewise.
40678 * modules/setenv (Makefile.am): Likewise.
40679 * modules/settime (Makefile.am): Likewise.
40680 * modules/sha1 (Makefile.am): Likewise.
40681 * modules/sig2str (Makefile.am): Likewise.
40682 * modules/snprintf (Makefile.am): Likewise.
40683 * modules/stdlib-safer (Makefile.am): Likewise.
40684 * modules/stpcpy (Makefile.am): Likewise.
40685 * modules/stpncpy (Makefile.am): Likewise.
40686 * modules/strcase (Makefile.am): Likewise.
40687 * modules/strcasestr (Makefile.am): Likewise.
40688 * modules/strchrnul (Makefile.am): Likewise.
40689 * modules/strcspn (Makefile.am): Likewise.
40690 * modules/strdup (Makefile.am): Likewise.
40691 * modules/strerror (Makefile.am): Likewise.
40692 * modules/strftime (Makefile.am): Likewise.
40693 * modules/strndup (Makefile.am): Likewise.
40694 * modules/strnlen (Makefile.am): Likewise.
40695 * modules/strpbrk (Makefile.am): Likewise.
40696 * modules/strsep (Makefile.am): Likewise.
40697 * modules/strstr (Makefile.am): Likewise.
40698 * modules/strtod (Makefile.am): Likewise.
40699 * modules/strtoimax (Makefile.am): Likewise.
40700 * modules/strtok_r (Makefile.am): Likewise.
40701 * modules/strtol (Makefile.am): Likewise.
40702 * modules/strtoll (Makefile.am): Likewise.
40703 * modules/strtoul (Makefile.am): Likewise.
40704 * modules/strtoull (Makefile.am): Likewise.
40705 * modules/strtoumax (Makefile.am): Likewise.
40706 * modules/strverscmp (Makefile.am): Likewise.
40707 * modules/time_r (Makefile.am): Likewise.
40708 * modules/timegm (Makefile.am): Likewise.
40709 * modules/tmpfile-safer (Makefile.am): Likewise.
40710 * modules/unistd-safer (Makefile.am): Likewise.
40711 * modules/unlinkdir (Makefile.am): Likewise.
40712 * modules/userspec (Makefile.am): Likewise.
40713 * modules/utime (Makefile.am): Likewise.
40714 * modules/utimecmp (Makefile.am): Likewise.
40715 * modules/utimens (Makefile.am): Likewise.
40716 * modules/vasnprintf (Makefile.am): Likewise.
40717 * modules/vasprintf (Makefile.am): Likewise.
40718 * modules/vsnprintf (Makefile.am): Likewise.
40719 * modules/xalloc (Makefile.am): Likewise.
40720 * modules/xgetcwd (Makefile.am): Likewise.
40721 * modules/xnanosleep (Makefile.am): Likewise.
40722 * modules/xreadlink (Makefile.am): Likewise.
40723 * modules/xstrtod (Makefile.am): Likewise.
40724 * modules/xstrtol (Makefile.am): Likewise.
40725 * modules/xstrtold (Makefile.am): Likewise.
40726 * modules/yesno (Makefile.am): Likewise.
40728 2006-10-12 Jim Meyering <jim@meyering.net>
40730 * m4/getloadavg.m4: Revert the change below.
40732 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40733 lib/getloadavg.c using "ls -L", not "test -f". The latter would
40734 fail with a symlink, which is what coreutils' ./bootstrap now
40735 creates by default.
40737 2006-10-12 Bruno Haible <bruno@clisp.org>
40739 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40741 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40742 MSVC and mingw explicitly.
40744 2006-10-11 Simon Josefsson <jas@extundo.com>
40745 Bruno Haible <bruno@clisp.org>
40747 Add support for multiple gnulib-tool invocations in the scope of a
40748 single configure.ac file.
40749 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40750 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40751 with the same contents as the _LIBADD variable.
40752 (func_emit_initmacro_start, func_emit_initmacro_end,
40753 func_emit_initmacro_done): New functions.
40754 (func_import, func_create_testdir): Invoke them. Allow the identifiers
40755 gl_LIBOBJS and gl_LTLIBOBJS.
40757 2006-10-11 Bruno Haible <bruno@clisp.org>
40759 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40760 (func_create_testdir): Don't create po/Makefile.am, don't invoke
40761 autoreconf. Instead, invoke autopoint explicitly but move back the
40762 *.m4 files from gnulib.
40764 2006-10-11 Bruno Haible <bruno@clisp.org>
40766 * gnulib-tool (func_usage): Make module names after --create-testdir
40768 (func_create_testdir): If no module was specified, use nearly all
40771 2006-10-12 Jim Meyering <jim@meyering.net>
40773 Big performance improvement for fts-based tools that use FTS_NOSTAT.
40774 Avoid spurious inode-mismatch problems on non-POSIX file systems.
40775 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40776 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40777 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40778 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40779 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40780 (fts_set_stat_required): New function.
40781 (fts_open): Defer the calls to fts_stat, if possible or requested.
40782 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40783 into fts_stat itself.
40784 (fts_read): Perform any required (deferred) fts_stat call.
40785 (fts_build): Likewise, for the directory we're about to open and read.
40786 In the readdir loop, carefully decide whether each entry will require
40787 an eventual call to fts_stat, using dirent.d_type info if available.
40788 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40789 a command line argument into this function. Update all callers.
40790 Map a return value of FTS_DOT to FTS_D for a command line argument.
40791 * modules/fts (Depends-on): Add d-type. Alphabetize.
40792 Thanks to Miklos Szeredi for his tenacity and for the initial
40793 bug report about "find" failing on a FUSE-based file system.
40795 * lib/fts.c (fts_open): Use consistent indentation.
40797 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40799 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40800 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40801 reported by Jim Meyering. All uses of cache variables renamed
40802 to match Autoconf's.
40803 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40806 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40807 Fix misspelling in diagnostic.
40809 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
40811 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40812 defined. Problem reported by Matthew Woehlke.
40814 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40815 Add support for Tandem NonStop R series.
40816 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40819 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40820 (has_trailing_slash): Omit size arg; all callers changed.
40821 Omit 'inline', since it doesn't help performance and we'd
40822 need to configure it.
40823 Don't count //, ///, etc. as having a trailing slash.
40824 As a side effect, this removes a C99ism reported by Matthew Woehlke.
40825 (rpl_rename_dest_slash): On failure, use rename's errno rather
40826 than (in some cases) an incorrect or junk errno.
40827 Simplify code by removing need to compute length; this does
40828 cause it to make two passes instead of one over the file name,
40831 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40832 change, since Autoconf's version may no longer be appropriate now
40833 that we are using CVS Autoconf's version. Add support for Tandem.
40835 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
40836 Bruno Haible <bruno@clisp.org>
40838 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40839 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40840 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40841 gl_AC_TYPE_LONG_LONG.
40843 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40844 instead of HAVE_LONG_LONG.
40845 * lib/printf-args.c (printf_fetchargs): Likewise.
40846 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40847 * lib/vasnprintf.c (VASNPRINTF): Likewise.
40848 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40849 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40850 gl_AC_TYPE_LONG_LONG.
40852 2006-10-11 Bruno Haible <bruno@clisp.org>
40854 * m4/longlong.m4: Add comments.
40855 * m4/ulonglong.m4: Likewise.
40857 2006-10-10 Bruno Haible <bruno@clisp.org>
40859 Make it possible to #define stpcpy, strdup to aliases.
40860 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40861 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40863 2006-10-10 Bruno Haible <bruno@clisp.org>
40865 Make it possible to #define gcd to an alias.
40866 * lib/gcd.c: Include config.h.
40868 2006-10-10 Bruno Haible <bruno@clisp.org>
40870 Make it possible to #define c_isascii to an alias.
40871 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40872 defined. Undefine the macros before defining them, to avoid gcc
40874 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40875 define NO_C_CTYPE_MACROS early.
40877 2006-10-10 Bruno Haible <bruno@clisp.org>
40879 Make it possible to #define set_program_name to an alias.
40880 * lib/progname.c: Don't undefine set_program_name; instead, undefine
40881 ENABLE_RELOCATABLE early.
40883 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
40885 Port to Tandem NSK OSS, which has 64-bit signed int but at most
40886 32-bit unsigned int. Problem reported by Matthew Woehlke in:
40887 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40888 More generally, don't assume that 64-bit signed int is available
40889 if unsigned int is, and vice versa.
40890 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40891 unsigned symbols, not on their signed counterparts.
40892 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40893 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40894 (UINT64_C, UINTMAX_C):
40896 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40897 unsigned counterparts.
40898 (Have_long_long, Unsigned): New macros.
40899 (Int): Renamed from INT.
40900 (strtoimax): Use the new macros.
40901 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40902 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40903 * modules/inttypes (inttypes.h): Substitute
40904 HAVE_UNSIGNED_LONG_LONG_INT.
40905 * modules/stdint (stdint.h): Likewise.
40906 (Files): Add m4/ulonglong.m4.
40908 2006-10-10 Bruno Haible <bruno@clisp.org>
40910 Fix a gcc -Wshadow warning.
40911 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40913 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40914 gl_linked_indexof_from_to): Likewise.
40915 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40917 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40919 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40920 Reported by Eric Blake.
40922 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
40924 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40925 for NetBSD. Problem reported by Bruno Haible.
40927 2006-10-09 Jim Meyering <jim@meyering.net>
40929 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40930 Patch from Bruno Haible.
40932 2006-10-09 Jim Meyering <jim@meyering.net>
40934 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40935 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40936 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40938 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
40940 Don't include <config.h> twice; this doesn't work in some cases,
40941 e.g., when config.h has "#define intmax_t long long int" and
40942 we include <config.h>, <inttypes.h>, <config.h> in that order.
40943 Problem reported by Matthew Woehlke in:
40944 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40945 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40946 * lib/fts-cycle.c: Don't include config.h.
40947 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40948 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40949 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
40950 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40952 * lib/xstrtoumax.c: Likewise.
40953 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40954 __strtol and the like, so that this module is more like its siblings.
40955 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40956 Remove; no longer needed now that we assume gnulib inttypes.h.
40958 2006-10-08 Bruno Haible <bruno@clisp.org>
40960 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40963 2006-10-07 Jim Meyering <jim@meyering.net>
40965 * modules/inttypes (inttypes.h): Revert what seems to have been
40966 an inadvertent part of today's change: use "|", not "/" in the
40967 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40969 2006-10-07 Bruno Haible <bruno@clisp.org>
40971 * modules/sublist: New file.
40973 2006-10-07 Bruno Haible <bruno@clisp.org>
40975 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40976 * modules/argz (argz.h): Likewise.
40977 * modules/arpa_inet (arpa/inet.h): Likewise.
40978 * modules/byteswap (byteswap.h): Likewise.
40979 * modules/configmake (configmake.h): Likewise.
40980 * modules/fcntl (fcntl.h): Likewise.
40981 * modules/fnmatch (fnmatch.h): Likewise.
40982 * modules/getopt (getopt.h): Likewise.
40983 * modules/glob (glob.h): Likewise.
40984 * modules/inttypes (inttypes.h): Likewise.
40985 * modules/netinet_in (netinet/in.h): Likewise.
40986 * modules/poll (poll.h): Likewise.
40987 * modules/stdbool (stdbool.h): Likewise.
40988 * modules/stdint (stdint.h): Likewise.
40989 * modules/sys_select (sys/select.h): Likewise.
40990 * modules/sys_socket (sys/socket.h): Likewise.
40991 * modules/sys_stat (sys/stat.h): Likewise.
40992 * modules/sysexits (sysexits.h): Likewise.
40993 * modules/unistd (unistd.h): Likewise.
40994 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40995 Add a "DO NOT EDIT" comment to the generated file.
40996 (func_import): Likewise for gnulib-comp.m4.
40998 2006-10-07 Bruno Haible <bruno@clisp.org>
41000 * lib/gl_sublist.h: New file.
41001 * lib/gl_sublist.c: New file.
41003 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41005 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41006 name (relative to the original working directory) and the file
41007 name component (relative to the temporary working directory). All
41009 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41010 * lib/mkdir-p.c (make_dir_parents): Likewise.
41011 * lib/mkdir-p.h (make_dir_parents): Likewise.
41013 2006-10-06 Eric Blake <ebb9@byu.net>
41015 Define several macros for use by the clean-temp module.
41016 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41017 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41018 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41020 * lib/clean-temp.h (close_stream_temp): New declaration.
41021 * lib/clean-temp.c (includes): Pull in headers according to what
41022 other modules are in use.
41023 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41025 2006-10-06 Bruno Haible <bruno@clisp.org>
41027 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41028 instead of fopen, fwriteerror.
41030 2006-10-06 Bruno Haible <bruno@clisp.org>
41032 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41033 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41035 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41036 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41037 Return an error indicator.
41038 Suggested by Eric Blake.
41040 2006-10-06 Bruno Haible <bruno@clisp.org>
41042 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41043 Reported by Eric Blake.
41045 2006-10-06 Bruno Haible <bruno@clisp.org>
41047 * modules/closeout (Description): Mention stderr too.
41049 2006-10-06 Bruno Haible <bruno@clisp.org>
41050 and Paul Eggert <eggert@cs.ucla.edu>
41052 * lib/closeout.c (close_stdout): Also close stderr.
41053 * lib/closeout.h: Update comment.
41055 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41057 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41058 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41059 * lib/dirchownmod.c: Include lchown.h.
41060 * lib/lchown.c: Don't include files that lchown.h now includes.
41061 Don't declare chown, since lchown.h now does that.
41062 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41063 (lchown): Define to rpl_chown if lchown is declared but
41064 does not exist. Declare using a prototype if lchown is not
41065 declared. Add a copyright notice.
41066 * lib/mkstemp.h: Include <unistd.h>.
41067 * lib/openat.c: Include lchown.h.
41069 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41070 we now test for that separately.
41071 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41072 rather than O_NOFOLLOW, when testing whether it's possible to
41073 avoid a race condition reliably.
41074 * lib/savewd.c (savewd_chdir): Likewise.
41076 Remove macros that are no longer needed now that stdint.h is
41078 * lib/fsusage.c (UINTMAX_MAX): Remove.
41079 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41080 * lib/utimecmp.c (SIZE_MAX): Remove.
41082 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41084 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41085 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41088 2006-10-05 Bruno Haible <bruno@clisp.org>
41090 * lib/gl_list.h (gl_sortedlist_search_from_to,
41091 gl_sortedlist_indexof_from_to): New declarations.
41092 (gl_list_implementation): New fields sortedlist_search_from_to,
41093 sortedlist_indexof_from_to.
41094 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41096 * lib/gl_list.c (gl_sortedlist_search_from_to,
41097 gl_sortedlist_indexof_from_to): New functions.
41098 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41100 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41101 (gl_array_sortedlist_search_from_to): New function.
41102 (gl_array_list_implementation): Update.
41103 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41105 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41106 (gl_carray_sortedlist_search_from_to): New function.
41107 (gl_carray_list_implementation): Update.
41108 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41109 gl_linked_sortedlist_indexof_from_to): New functions.
41110 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41111 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41112 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41113 gl_tree_sortedlist_indexof_from_to): New functions.
41114 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41115 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41117 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41118 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41121 2006-10-05 Bruno Haible <bruno@clisp.org>
41123 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41124 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41125 (struct gl_list_implementation): Add fields search_from_to,
41126 indexof_from_to. Remove fields search, indexof.
41127 (gl_list_search): Use the search_from_to method.
41128 (gl_list_search_from, gl_list_search_from_to): New functions.
41129 (gl_list_indexof): Use the indexof_from_to method.
41130 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41131 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41132 (gl_list_search_from, gl_list_search_from_to): New functions.
41133 (gl_list_indexof): Use the indexof_from_to method.
41134 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41135 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41136 gl_array_indexof. Add start_index, end_index arguments.
41137 (gl_array_search_from_to): Renamed from gl_array_search. Add
41138 start_index, end_index arguments.
41139 (gl_array_remove, gl_array_list_implementation): Update.
41140 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41141 gl_carray_indexof. Add start_index, end_index arguments.
41142 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41143 start_index, end_index arguments.
41144 (gl_carray_remove, gl_carray_list_implementation): Update.
41145 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41146 gl_linked_search. Add start_index, end_index arguments.
41147 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41148 start_index, end_index arguments.
41149 (gl_linked_remove): Update.
41150 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41151 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41152 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41154 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41155 gl_tree_search. Add start_index, end_index arguments.
41156 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41157 start_index, end_index arguments.
41158 (gl_tree_remove): Update.
41159 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41160 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41161 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41163 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41164 gl_tree_search. Add start_index, end_index arguments.
41165 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41166 start_index, end_index arguments.
41167 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41169 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41171 2006-10-05 Bruno Haible <bruno@clisp.org>
41173 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41175 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41176 fwriteerror_temp): New declarations.
41177 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41178 (descriptors): New variable.
41179 (cleanup): First, close the descriptors.
41180 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41181 fclose_temp, fwriteerror_temp): New functions.
41183 2006-10-04 Jim Meyering <jim@meyering.net>
41185 * lib/fts.c (fts_open): Tiny comment change.
41187 2006-10-04 Bruno Haible <bruno@clisp.org>
41189 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41190 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41192 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41193 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41194 gl_LOCK_EARLY_BODY.
41195 (gl_LOCK): Require gl_LOCK_BODY.
41197 2006-10-04 Bruno Haible <bruno@clisp.org>
41199 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41200 (gl_oset_search_atleast): New declaration.
41201 (struct gl_oset_implementation): Add field 'search_atleast'.
41202 (gl_oset_search_atleast): New inline function.
41203 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41204 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41205 (gl_array_oset_implementation): Update.
41206 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41207 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41208 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41210 2006-10-04 Bruno Haible <bruno@clisp.org>
41212 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41214 2006-10-03 Bruno Haible <bruno@clisp.org>
41216 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41217 from gl_avltreehash_list_implementation.
41219 2006-10-03 Bruno Haible <bruno@clisp.org>
41221 * lib/gl_oset.c (gl_oset_add): Fix return type.
41223 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41225 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41227 2006-10-02 Eric Blake <ebb9@byu.net>
41229 * modules/strnlen (Depends-on): Add extensions.
41231 2006-10-02 Eric Blake <ebb9@byu.net>
41233 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41234 definition in 2.60+.
41236 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41238 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41241 2006-10-02 Bruno Haible <bruno@clisp.org>
41243 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41244 to the AUTOMAKE_OPTIONS.
41245 Reported by Jim Meyering.
41247 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41249 Work around bug in Solaris 10 /proc file system:
41250 /proc/self/fd/NNN/.. isn't the parent directory of
41251 the directory whose file descriptor is NNN. This needs to
41252 be worked around at run time, not compile time, since a
41253 program might be built on Solaris 8, where things work, and
41255 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41256 to use the following interface instead:
41257 (OPENAT_BUFFER_SIZE): New macro.
41258 (openat_proc_name): New function.
41259 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41260 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41262 * lib/openat-proc.c: New file.
41263 * modules/openat (Files): Add lib/openat-proc.c.
41264 (Depends-on): Add same-inode, stdbool.
41265 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41267 2006-09-29 Bruno Haible <bruno@clisp.org>
41269 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41270 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41271 argument. Set stdout_closed before testing for ferror, not after.
41272 (fwriteerror, fwriteerror_no_ebadf): New functions.
41274 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41276 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41278 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41280 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41281 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41283 2006-09-28 Jim Meyering <jim@meyering.net>
41285 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41286 Include <unistd.h>.
41288 2006-09-28 Bruno Haible <bruno@clisp.org>
41290 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41291 * modules/linkedhash-list (Depends-on): Likewise.
41292 * modules/rbtreehash-list (Depends-on): Likewise.
41294 2006-09-28 Bruno Haible <bruno@clisp.org>
41296 * lib/strndup.h: Simplify the redefinition of strndup.
41297 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41298 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41300 2006-09-28 Bruno Haible <bruno@clisp.org>
41302 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41303 * lib/gl_linkedhash_list.c: Likewise.
41304 * lib/gl_rbtreehash_list.c: Likewise.
41306 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41308 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41311 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41312 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41313 it causes <stdio_ext.h> to cause a compile-time error.
41314 Problem reported by Nelson H. F. Beebe.
41315 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41316 of HAVE_DECL___PENDING.
41318 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41319 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41322 2006-09-27 Jim Meyering <jim@meyering.net>
41324 This file could end up with a definition for a function
41325 named __strndup, rather than rpl_strndup on a system with
41326 incomplete weak_alias support.
41327 * lib/strndup.c (strndup): Rename from __strndup.
41328 Remove #defines that used to map __strndup to strndup.
41329 Don't use K&R prototypes.
41330 Remove LIBC-related code, since this file is not sync'd with glibc.
41331 * lib/strndup.h: Revamp, accordingly.
41332 * m4/strndup.m4: Modernize.
41334 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41336 * modules/savewd (Depends-on): Add 'raise'.
41337 * lib/savewd.c: Include <signal.h>, for 'raise'.
41339 2006-09-26 Jim Meyering <jim@meyering.net>
41341 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41342 when we detect Darwin 8.7.0's acl_get_file bug.
41343 Rearrange to perform the new (below) run-test while $LIBS
41344 contains any acl-related library. Set USE_ACL at the end.
41345 (gl_ACL_GET_FILE): New function.
41347 2006-09-26 Eric Blake <ebb9@byu.net>
41349 * lib/verror.c: Include <config.h> unconditionally.
41351 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41353 * modules/clock-time (Maintainer): Add self.
41354 * modules/getlogin_r (Depends-on): Add extensions.
41356 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41358 * modules/clock-time: New module.
41359 * modules/nanosleep (Depends-on): Add clock-time.
41360 * modules/gethrxtime (Depends-on): Likewise.
41361 * modules/gettime (Depends-on): Likewise.
41362 * modules/settime (Depends-on): Likewise.
41364 * modules/fts-lgpl: Depend on openat.
41365 * modules/mkancesdirs: Depend on savewd.
41366 * modules/mkdir-p: Likewise.
41368 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41370 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41372 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41373 `gl_have_arbitrary_file_name_length_limit' to
41374 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41375 actually works between configure runs.
41377 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41378 Bruno Haible <bruno@clisp.org>
41380 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41382 2006-09-25 Jim Meyering <jim@meyering.net>
41384 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41385 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41387 2006-09-25 Eric Blake <ebb9@byu.net>
41389 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41390 exec's in 2006-09-18 patch when shuffling fds.
41392 2006-09-25 Bruno Haible <bruno@clisp.org>
41394 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41395 Reported by Jim Meyering.
41397 2006-09-24 Jim Meyering <jim@meyering.net>
41399 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41400 compare a pointer against a literal "0". That caused failures with
41401 at least HP-UX's hpcc.
41403 2006-09-22 Simon Josefsson <jas@extundo.com>
41407 * modules/gc-hmac-sha1:
41408 * modules/gc-hmac-md5:
41410 * modules/gc-arcfour: Distribute more files.
41412 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41414 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41415 (gl_linked_iterator_from_to): Initialize struct completely.
41416 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41417 (gl_tree_iterator_from_to): Likewise
41418 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41419 * lib/gl_array_list.c [lint] (gl_array_iterator)
41420 (gl_array_iterator_from_to): Likewise.
41421 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41422 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41423 (gl_carray_iterator_from_to): Likewise.
41425 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41426 * lib/md4.c (md4_process_block): Remove unused variable.
41427 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41428 parentheses for clarity.
41430 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41432 * modules/bison-i18n (Depends-on): Add gettext.
41434 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41436 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41437 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41438 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41439 also add missing comma that caused broken test.
41440 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41441 stdlib.h, for `abort'.
41442 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41444 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41445 include unistd.h if present, for `rmdir'.
41446 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41448 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41449 in the process include standard headers for prototypes.
41450 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41451 gets declared on GNU/Linux.
41452 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41453 unistd.h, for `rmdir'.
41454 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41456 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41458 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41460 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41462 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41464 * gnulib-tool (func_version): Create output all at once. This
41465 may help avoid triggering unnecessary SIGPIPEs, and at any
41466 rate it doesn't hurt.
41468 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41469 Bruno Haible <bruno@clisp.org>
41471 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41472 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41473 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41475 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41476 (gl_FUNC_VASPRINTF): Invoke it.
41478 2006-09-22 Bruno Haible <bruno@clisp.org>
41480 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41481 getloadavg.c as first argument.
41483 2006-09-22 Bruno Haible <bruno@clisp.org>
41485 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41486 at the beginning of the gl_INIT macro.
41487 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41490 2006-09-22 Bruno Haible <bruno@clisp.org>
41492 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41494 Suggested by Ralf Wildenhues.
41496 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41498 Import this patch from libc:
41500 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41502 * lib/regex_internal.c (re_string_reconstruct): Handle
41503 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41504 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41505 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41506 re_string_context_at.
41508 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41510 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41511 gl_REGEX now does it for us.
41512 (gl_REGEX): Add test taken from
41513 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41515 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41516 Check that large offsets work. Modernize Autoconf usages.
41517 Prefer "yes" to mean a good thing rather than a bad.
41518 Don't put "#define mkstemp" in config.h, as this might interfere
41519 with standard system headers that "#define mkstemp mkstemp64".
41521 * modules/mkstemp (Depends-on): Add extensions, so that
41522 mkstemp is visible on some platforms.
41523 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41524 (Include): Change to "mkstemp.h" from <stdlib.h>.
41525 (Files): Add mkstemp.h.
41527 * lib/mkstemp.h: New file, since some standard headers
41529 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41530 Include "mkstemp.h".
41531 Make the _LIBC code resemble glibc original more,
41532 e.g., use K&R style.
41533 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41534 (mkstemp): Remove, since mkstemp.h does this for us.
41535 * lib/stdlib--.h: Include mkstemp.h.
41537 Import this patch from libc:
41539 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41541 * lib/tempname.c (__gen_tempname): Change attempts_min
41542 into a macro. Use preprocessor to decide how to initialize
41543 attempts [Coverity CID 67].
41545 2006-09-20 Bruno Haible <bruno@clisp.org>
41547 * lib/mkdtemp.c: Import from libc.
41548 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41549 * sysdeps/posix/tempname.c (__gen_tempname): Change
41550 attempts_min into a macro. Use preprocessor to decide how to
41551 initialize attempts [Coverity CID 67].
41552 2001-11-27 Paul Eggert <eggert@twinsun.com>
41553 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41554 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41556 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41558 * gnulib-tool (func_exit): New function, to allow to pass the
41559 exit status portably through the trap. Use everywhere.
41560 (--help, --version): Signal a write error.
41561 (trap): catch SIGPIPE, for write errors.
41562 Exit at the end of the trap, with the correct exit status.
41564 2006-09-19 Karl Berry <karl@gnu.org>
41566 * doc/gnulib.texi: note about the license texinfo files.
41568 2006-09-19 Eric Blake <ebb9@byu.net>
41570 * gnulib-tool: Avoid space-tab.
41572 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41574 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41575 that prevented coreutils 6.1 from building. Problem reported
41576 by Petter Reinholdtsen.
41578 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41580 * gnulib-tool (avoidlist): Fix typo that broke options like
41581 --avoid=lock that are used by coreutils bootstrap.
41583 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41585 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41586 more systematically.
41588 2006-09-18 Jim Meyering <jim@meyering.net>
41590 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41592 2006-09-18 Bruno Haible <bruno@clisp.org>
41594 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41596 2006-09-18 Bruno Haible <bruno@clisp.org>
41598 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41599 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41600 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41601 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41602 * m4/gettext.m4: Require autoconf >= 2.52.
41603 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41604 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41605 of gl_cv_header_inttypes_h.
41607 2006-09-18 Bruno Haible <bruno@clisp.org>
41609 * lib/javaversion.c: Include configmake.h.
41611 2006-09-18 Bruno Haible <bruno@clisp.org>
41613 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41614 avoid that the while loops be executed in a subshell.
41616 2006-09-18 Bruno Haible <bruno@clisp.org>
41618 * MODULES.html.sh (func_module): Break long lines.
41619 Suggested by Bruce Korb <bkorb@gnu.org>.
41621 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41623 Speed up by a factor of 1.12.
41624 * gnulib-tool (nl): New variable.
41625 (func_import): Rewrite include directive extraction to only read each
41628 2006-09-17 Bruno Haible <bruno@clisp.org>
41630 * modules/javaversion (Makefile.am): Remove DEFS setting.
41631 (Depends-on): Add configmake, for PKGDATADIR definition.
41633 2006-09-17 Bruno Haible <bruno@clisp.org>
41635 * gnulib-tool (func_create_testdir): Rewrite all files at once.
41637 2006-09-17 Bruno Haible <bruno@clisp.org>
41639 * gnulib-tool (func_append): New function, stolen from libtool.m4.
41640 (func_modules_transitive_closure, func_modules_add_dummy,
41641 func_modules_to_filelist, func_import, func_create_testdir,
41642 func_create_megatestdir, ...): Use it wherever possible.
41643 Suggested by Ralf Wildenhues.
41645 2006-09-16 Karl Berry <karl@gnu.org>
41647 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41648 to avoid sectioning errors.
41649 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41650 [ifinfo]: blank line after @center-ed titles.
41651 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41652 Spell FSF address consistently with others.
41653 (These changes approved by rms.)
41655 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41657 Speed up by a factor of 1.61.
41658 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41659 already checked module names again.
41661 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41663 Speed up by a factor of 1.13.
41664 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41665 for new_files, and the input to func_add_or_update.
41667 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41669 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41670 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41672 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41674 * modules/mkancesdirs (Depends-on): Add fcntl.
41675 * modules/savewd: New file.
41676 * MODULES.html.sh (File system functions): Add savewd.
41678 * modules/configmake (Makefile.am): Add support for the
41679 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41681 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41683 * m4/savewd.m4: New file.
41685 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41687 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41688 (dirchownmod): New arg FD. All callers changed.
41689 Use FD rather than opening the directory ourself, as opening is
41690 now the caller's responsibility.
41691 * lib/dirchownmod.h: Likewise.
41692 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41693 hosts that require <sys/types.h> before <sys/stat.h>. Include
41694 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41695 (test_dir): Remove.
41696 (mkancesdirs): Return length of prefix of FILE that has already
41697 been made, or -2 if there is a child doing the work. Redo
41698 algorithm so that it is O(N) rather than O(N**2). Optimize away
41699 ".", and treat ".." specially since it might stray back into
41700 already-created areas. Use a subprocess if necessary. New arg
41701 WD; all users changed. MAKE_DIR function should now return 1
41702 if it creates a directory that is not readable. Return -2 if
41703 a child process is spun off.
41704 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41705 Adjust signature to match code.
41706 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41707 (make_dir_parents): Use a subprocess if necessary. New arg WD;
41709 * lib/savewd.c, lib/savewd.h: New files.
41711 2006-09-15 Jim Meyering <jim@meyering.net>
41713 * modules/rename-dest-slash: New module.
41714 * MODULES.html.sh (posix_compat): Add it here.
41716 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41718 2006-09-15 Jim Meyering <jim@meyering.net>
41720 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41723 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41725 2006-09-15 Jim Meyering <jim@meyering.net>
41727 * lib/rename-dest-slash.c (has_trailing_slash): Use
41728 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41729 (rpl_rename_dest_slash): Perform the cheaper trailing slash
41730 test before testing whether SRC is a directory.
41731 Suggestions from Bruno Haible.
41733 Avoid a warning about an unused variable.
41734 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41735 into the #ifdef block where it's used.
41737 * lib/rename-dest-slash.c: New file.
41739 2006-09-14 Bruno Haible <bruno@clisp.org>
41741 * lib/allocsa.c: Include <config.h> unconditionally.
41742 * lib/asnprintf.c: Likewise.
41743 * lib/asprintf.c: Likewise.
41744 * lib/c-strcasecmp.c: Likewise.
41745 * lib/c-strcasestr.c: Likewise.
41746 * lib/c-strncasecmp.c: Likewise.
41747 * lib/c-strstr.c: Likewise.
41748 * lib/classpath.c: Likewise.
41749 * lib/clean-temp.c: Likewise.
41750 * lib/concatpath.c: Likewise.
41751 * lib/copy-file.c: Likewise.
41752 * lib/csharpcomp.c: Likewise.
41753 * lib/csharpexec.c: Likewise.
41754 * lib/execute.c: Likewise.
41755 * lib/fatal-signal.c: Likewise.
41756 * lib/findprog.c: Likewise.
41757 * lib/fwriteerror.c: Likewise.
41758 * lib/gl_array_list.c: Likewise.
41759 * lib/gl_array_oset.c: Likewise.
41760 * lib/gl_avltree_list.c: Likewise.
41761 * lib/gl_avltree_oset.c: Likewise.
41762 * lib/gl_avltreehash_list.c: Likewise.
41763 * lib/gl_carray_list.c: Likewise.
41764 * lib/gl_linked_list.c: Likewise.
41765 * lib/gl_linkedhash_list.c: Likewise.
41766 * lib/gl_list.c: Likewise.
41767 * lib/gl_oset.c: Likewise.
41768 * lib/gl_rbtree_list.c: Likewise.
41769 * lib/gl_rbtree_oset.c: Likewise.
41770 * lib/gl_rbtreehash_list.c: Likewise.
41771 * lib/imaxabs.c: Likewise.
41772 * lib/imaxdiv.c: Likewise.
41773 * lib/javacomp.c: Likewise.
41774 * lib/javaexec.c: Likewise.
41775 * lib/javaversion.c: Likewise.
41776 * lib/linebreak.c: Likewise.
41777 * lib/localcharset.c: Likewise.
41778 * lib/lock.c: Likewise.
41779 * lib/mbchar.c: Likewise.
41780 * lib/mbswidth.c: Likewise.
41781 * lib/mkdtemp.c: Likewise.
41782 * lib/pipe.c: Likewise.
41783 * lib/printf-args.c: Likewise.
41784 * lib/printf-parse.c: Likewise.
41785 * lib/progname.c: Likewise.
41786 * lib/progreloc.c: Likewise.
41787 * lib/readlink.c: Likewise.
41788 * lib/sh-quote.c: Likewise.
41789 * lib/stpcpy.c: Likewise.
41790 * lib/stpncpy.c: Likewise.
41791 * lib/strcasecmp.c: Likewise.
41792 * lib/strcasestr.c: Likewise.
41793 * lib/strcspn.c: Likewise.
41794 * lib/striconv.c: Likewise.
41795 * lib/strncasecmp.c: Likewise.
41796 * lib/strnlen1.c: Likewise.
41797 * lib/strstr.c: Likewise.
41798 * lib/strtok_r.c: Likewise.
41799 * lib/tls.c: Likewise.
41800 * lib/tmpdir.c: Likewise.
41801 * lib/unicodeio.c: Likewise.
41802 * lib/unsetenv.c: Likewise.
41803 * lib/vasnprintf.c: Likewise.
41804 * lib/vasprintf.c: Likewise.
41805 * lib/wait-process.c: Likewise.
41806 * lib/xallocsa.c: Likewise.
41807 * lib/xsetenv.c: Likewise.
41808 * lib/xstriconv.c: Likewise.
41810 2006-09-13 Simon Josefsson <jas@extundo.com>
41812 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41813 that internally, suggested by Ralf Wildenhues
41814 <Ralf.Wildenhues@gmx.de>.
41816 2006-09-13 Simon Josefsson <jas@extundo.com>
41818 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41820 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41822 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
41824 * lib/_fpending.c: Include <config.h> unconditionally, since we no
41825 longer worry about uses that don't define HAVE_CONFIG_H.
41826 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41827 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41828 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41829 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41830 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41831 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41832 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41833 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41834 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41835 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41836 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41837 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41838 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41839 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41840 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41841 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41842 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41843 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41844 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41845 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41846 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41847 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41848 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41849 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41850 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41851 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41852 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41853 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41854 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41855 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41856 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41857 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41858 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41859 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41860 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41861 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41862 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41863 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41864 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41865 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41866 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41869 2006-09-13 Eric Blake <ebb9@byu.net>
41871 * lib/getopt.c: Fix typo in last commit.
41873 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
41875 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41878 2006-09-12 Jim Meyering <jim@meyering.net>
41880 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41881 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41882 Reported by Nelson H. F. Beebe.
41884 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
41886 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41887 program_invocation_name and program_invocation_short_name are
41889 * lib/argp-namefrob.h: Move declarations of program_invocation_name
41890 and program_invocation_short_name to argp.h, so they are visible
41892 * lib/argp.h: Likewise
41894 2006-09-10 Bruno Haible <bruno@clisp.org>
41896 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41897 m4/inttypes_h.m4, m4/uintmax_t.m4.
41899 2006-09-10 Bruno Haible <bruno@clisp.org>
41901 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41902 gl_AC_TYPE_UINTMAX_T.
41904 2006-09-10 Bruno Haible <bruno@clisp.org>
41906 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41908 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
41910 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41911 convention. Text proposed by Bruno Haible.
41912 (struct argp_option): Document the use of N_() wrappers.
41914 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41915 '\v', and translate the two parts separately, instead of feeding
41916 the whole string to gettext. This allows to exclude
41917 '\v' from the strings visible to the translator by writing doc
41918 strings as N_("..") "\v" N_("..").
41920 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
41922 * config/srclist.txt: Undo latest change; the bug was fixed.
41924 2006-09-09 Bruno Haible <bruno@clisp.org>
41926 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41927 assignments if building a library without libtool.
41928 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41929 in func_emit_lib_Makefile_am.
41930 (func_import): When building a static library libfoo.a, arrange to
41931 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41932 (func_create_testdir): Likewise.
41933 * modules/gc (configure.ac, Makefile.am): If building statically,
41934 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41935 * modules/iconvme (configure.ac, Makefile.am): Likewise.
41936 * modules/striconv (configure.ac, Makefile.am): Likewise.
41937 Based on a suggestion by Ralf Wildenhues.
41939 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41941 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41942 Check for unistd.h too, since Autoconf doesn't assume POSIX.
41945 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41946 Add year_2050_test to catch glibc bug 2821
41947 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41949 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41950 Prefer #ifdef to #if.
41952 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
41953 Return from 'main' instead of calling 'exit'.
41955 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41957 * lib/mktime.c (guess_time_tm): Fix bug where mktime
41958 returned the maximum time_t value rather than (time_t) -1.
41959 Problem originally reported by William Bardwell
41960 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41962 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41964 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41967 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41969 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41972 2006-09-08 Jim Meyering <jim@meyering.net>
41974 Don't make generated files read-only. That would bother too many
41975 people. However, do retain the ability to work when targets are
41976 read-only: remove the destination and temporary files before writing
41977 them (when generated via sed or echo), or by using the -f option for
41978 both cp and mv commands. Suggestion to use -f from Paul Eggert.
41979 * modules/alloca-opt, modules/argz, modules/arpa_inet:
41980 * modules/byteswap, modules/configmake, modules/fcntl:
41981 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41982 * modules/localcharset, modules/netinet_in, modules/poll:
41983 * modules/stdbool, modules/stdint, modules/sys_select:
41984 * modules/sys_socket, modules/sys_stat, modules/sysexits:
41986 2006-09-08 Jim Meyering <jim@meyering.net>
41988 Avoid new build failure on FreeBSD 6.0.
41989 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41990 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
41991 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41993 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41995 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41997 2006-09-07 Jim Meyering <jim@meyering.net>
41999 Fix global typo in last change: use chmod u-w, not chmod u-x.
42000 Spotted by Paul Eggert and Bruce Korb.
42001 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42002 * modules/byteswap, modules/configmake, modules/fcntl:
42003 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42004 * modules/localcharset, modules/netinet_in, modules/poll:
42005 * modules/stdbool, modules/stdint, modules/sys_select:
42006 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42008 2006-09-06 Jim Meyering <jim@meyering.net>
42010 Make generated files be read-only.
42011 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42012 Ensure that each generated file is now read-only.
42013 * modules/argz: Likewise.
42014 * modules/arpa_inet: Likewise.
42015 * modules/byteswap: Likewise.
42016 * modules/configmake: Likewise.
42017 * modules/fcntl: Likewise.
42018 * modules/fnmatch: Likewise.
42019 * modules/getopt: Likewise.
42020 * modules/glob: Likewise.
42021 * modules/inttypes: Likewise.
42022 * modules/netinet_in: Likewise.
42023 * modules/poll: Likewise.
42024 * modules/stdbool: Likewise.
42025 * modules/stdint: Likewise.
42026 * modules/sys_select: Likewise.
42027 * modules/sys_socket: Likewise.
42028 * modules/sys_stat: Likewise.
42029 * modules/sysexits: Likewise.
42030 * modules/localcharset: Same as above, but continue using temporary
42031 file named "t-$@" (why different?) rather than the "$@-t" used
42034 * modules/sysexits (Makefile.am): Replace literal occurrences
42035 of "sysexit.h" more readable, and more consistent, "$@".
42037 2006-09-06 Bruno Haible <bruno@clisp.org>
42039 * modules/striconv: New file.
42040 * modules/xstriconv: New file.
42041 * MODULES.html.sh (Internationalization functions): Add striconv,
42044 2006-09-06 Bruno Haible <bruno@clisp.org>
42046 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42047 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42048 not using libtool correctly.
42050 2006-09-06 Bruno Haible <bruno@clisp.org>
42052 * lib/striconv.h: New file.
42053 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42055 * lib/xstriconv.h: New file.
42056 * lib/xstriconv.c: New file.
42058 2006-09-06 Bruno Haible <bruno@clisp.org>
42060 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42063 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42065 * lib/argz_.h: Sync from Libtool.
42067 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42068 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42070 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42072 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42074 * modules/trim: New file.
42076 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42078 * lib/trim.h: New file.
42079 * lib/trim.c: New file.
42081 2006-09-05 Bruno Haible <bruno@clisp.org>
42083 * MODULES.html.sh (String handling): Add trim.
42085 2006-09-04 Karl Berry <karl@gnu.org>
42087 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42088 until next release.
42090 2006-09-03 Bruno Haible <bruno@clisp.org>
42092 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42095 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42097 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42098 not gl_GETLOADAVG. Omit unneeded semicolons.
42099 Problems reported by Ralf Wildenhues in
42100 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42101 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42102 at the end, which is the usual gnulib style.
42104 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42105 of doing all the work ourselves.
42106 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42107 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42109 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42111 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42112 Problem reported by Ralf Wildenhues in
42113 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42115 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42116 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42118 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42120 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42121 yesterday's patch by changing test -n to test -z.
42123 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42125 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42126 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42127 the former is now obsolescent.
42129 * modules/chdir-long (Depends-on): Add fcntl.
42131 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42133 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42134 obsolescent, and programs should use gnulib instead.
42135 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42136 but with prefixes changed.
42138 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42140 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42141 or stdbool.h, because they might not exist while configuring.
42143 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42144 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42146 (O_DIRECTORY): Remove.
42148 2006-08-31 Eric Blake <ebb9@byu.net>
42150 * gnulib-tool: Don't let emacs change spaces to TAB.
42152 2006-08-31 Bruno Haible <bruno@clisp.org>
42154 * gnulib-tool: When calling func_import more than once, do it in a
42156 Reported by Eric Blake <ebb9@byu.net>.
42158 2006-08-31 Bruno Haible <bruno@clisp.org>
42160 * gnulib-tool (nl): Remove variable.
42161 (sed_transform_lib_file): Use more robust test for config-h module.
42162 (func_import): Fix typo in 2006-08-25 patch.
42164 2006-08-31 Bruno Haible <bruno@clisp.org>
42166 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42167 specified, augment Makefile.am variables instead of assigning them.
42169 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42171 Work around a bug in both the Linux and SunOS 64-bit kernels:
42172 nanosleep mishandles sleeps for longer than 2**31 seconds.
42173 Problem reported by Frank v Waveren in
42174 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42175 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42176 Check for nanosleep bug.
42177 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42179 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42181 Work around a bug in both the Linux and SunOS 64-bit kernels:
42182 nanosleep mishandles sleeps for longer than 2**31 seconds.
42183 Problem reported by Frank v Waveren in
42184 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42185 * lib/nanosleep.c (BILLION): New constant.
42186 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42187 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42190 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42192 * modules/nanosleep (Depends-on): Add gettime.
42194 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42195 and Simon Josefsson <jas@extundo.com>
42196 and Oskar Liljeblad <oskar@osk.mine.nu>
42198 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42199 * gnulib-tool (func_import): New license type 'unmodifiable license
42201 * modules/fdl: Use it. Longer description.
42202 * module/gpl, module/lgpl: New files.
42204 2006-08-30 Jim Meyering <jim@meyering.net>
42206 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42207 shadowing the parameter.
42209 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42213 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42215 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42216 sharing with gnulib. Report by Eric Blake.
42218 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42220 * modules/isapipe: New file.
42221 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42223 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42225 * modules/configmake (Makefile.am): Add a comment, and omit
42226 the CONFIGMAKE_ prefix from generated macro names. Suggested
42229 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42231 * m4/isapipe.m4: New file.
42233 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42235 * lib/isapipe.c, lib/isapipe.h: New files.
42237 2006-08-29 Jim Meyering <jim@meyering.net>
42239 * modules/configmake (Makefile.am): Make configmake.h depend on
42240 Makefile. Otherwise, a stale configmake.h could hang around.
42242 2006-08-29 Eric Blake <ebb9@byu.net>
42244 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42245 resolution of upstream bug 3044.
42247 2006-08-29 Bruno Haible <bruno@clisp.org>
42249 * modules/localcharset (Depends-on): Add configmake.
42250 (Makefile.am): Remove setting of LIBDIR through DEFS.
42252 2006-08-29 Bruno Haible <bruno@clisp.org>
42254 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42257 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42259 * modules/fcntl: New file.
42260 * modules/chdir-safer (Depends-on): Add fcntl.
42261 * modules/fts: Likewise.
42262 * modules/mkdir-p: Likewise.
42264 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42265 This undoes the most recent change, since we're now addressing the
42266 problem in a different way.
42268 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42269 into output, since the output might be called Makefile.am even
42270 if $makefile_name is something different.
42271 (func_import): Use $makefile_am rather than
42272 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42275 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42277 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42279 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42280 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42281 recent change to stdint.m4, since we're now addressing the problem in a
42284 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42286 * m4/fcntl_h.m4: New file.
42288 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42290 * lib/fcntl_.h: New file.
42291 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42293 * lib/dirchownmod.c: Likewise.
42294 * lib/fts.c: Likewise.
42296 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42297 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42298 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42299 just before including <inttypes.h>, to avoid circular inclusion.
42301 2006-08-28 Jim Meyering <jim@meyering.net>
42303 * doc/visibility.texi: Actually read and correct the grammar of the
42304 sentence affected by yesterday's change.
42306 2006-08-28 Eric Blake <ebb9@byu.net>
42308 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42311 2006-08-28 Eric Blake <ebb9@byu.net>
42313 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42315 2006-08-28 Eric Blake <ebb9@byu.net>
42317 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42319 2006-08-28 Bruno Haible <bruno@clisp.org>
42321 * modules/c-strstr: New file, from GNU gettext.
42322 * MODULES.html.sh (String handling): Add c-strstr.
42324 2006-08-28 Bruno Haible <bruno@clisp.org>
42326 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42328 Reported by Eric Blake.
42330 2006-08-28 Bruno Haible <bruno@clisp.org>
42332 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42333 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42334 * lib/vasprintf.c: Include errno.h, limits.h.
42335 (EOVERFLOW): New fallback definition.
42336 (vasprintf): Test here whether the string length is > INT_MAX.
42337 * lib/vsnprintf.c: Include errno.h, limits.h.
42338 (EOVERFLOW): New fallback definition.
42339 (vsnprintf): Fix bug when generated string was too long for the buffer.
42340 Test here whether the string length is > INT_MAX.
42342 2006-08-28 Bruno Haible <bruno@clisp.org>
42344 * lib/inttypes_.h (SCNX*): Remove definitions.
42345 Reported by Eric Blake.
42347 2006-08-28 Bruno Haible <bruno@clisp.org>
42349 * lib/c-strstr.h: New file, from GNU gettext.
42350 * lib/c-strstr.c: New file, from GNU gettext.
42352 2006-08-28 Bruno Haible <bruno@clisp.org>
42354 * gnulib-tool: Reorder some statements.
42356 2006-08-28 Bruno Haible <bruno@clisp.org>
42358 * gnulib-tool: New option --makefile-name.
42359 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42361 (func_import): Write $makefile_name to the cache file, and read it from
42362 there unless explicitly specified. Use $makefile_name as file name
42363 instead of Makefile.am. Adjust the recommendations accordingly.
42365 2006-08-28 Bruno Haible <bruno@clisp.org>
42367 * gnulib-tool (func_verify_module): Check against misapplying patch.
42369 2006-08-28 Bruno Haible <bruno@clisp.org>
42371 * gnulib-tool (func_relativize, func_relconcat): New functions.
42372 Give an error if --local-dir is given with --update.
42373 Remove trailing slashes from $local_gnulib_dir.
42374 (func_import): Store the relativized $local_gnulib_dir in
42375 gnulib-cache.m4, and read it from there if not specified explicitly.
42377 2006-08-28 Bruno Haible <bruno@clisp.org>
42379 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42380 is the current directory. Respect also $local_gnulib_dir.
42382 2006-08-28 Bruno Haible <bruno@clisp.org>
42383 Simon Josefsson <jas@extundo.com>
42386 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42388 2006-08-27 Jim Meyering <jim@meyering.net>
42390 * doc/visibility.texi: Remove duplicate word: "pointer".
42392 2006-08-26 Bruno Haible <bruno@clisp.org>
42394 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42395 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42396 (Makefile.am): Create inttypes.h from inttypes_.h.
42397 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42399 * modules/imaxabs: New file.
42401 * modules/imaxdiv: New file.
42403 2006-08-26 Bruno Haible <bruno@clisp.org>
42405 * m4/inttypes.m4: New file.
42406 * m4/_inttypes_h.m4: Remove file.
42407 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42409 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42411 * m4/imaxabs.m4: New file.
42413 * m4/imaxdiv.m4: New file.
42415 2006-08-26 Bruno Haible <bruno@clisp.org>
42417 * lib/inttypes_.h: New file.
42418 * lib/inttypes.h: Remove file.
42419 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42421 * lib/imaxabs.c: New file.
42423 * lib/imaxdiv.c: New file.
42425 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42427 New config-h module, so that "make" output needn't be cluttered
42428 by -DHAVE_CONFIG_H.
42429 * MODULES.html.sh (Support for building libraries and executables):
42431 * modules/config-h: New file.
42432 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42433 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42434 the config-h module is used.
42436 New configmake module, so that "make" output needn't be cluttered
42437 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42438 * MODULES.html.sh (Support for building libraries and executables):
42440 * modules/configmake: New file.
42442 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42444 * m4/config-h.m4: New file.
42446 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42448 * config/srclist.txt: Add elisp-comp.
42450 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42452 * MODULES.html.sh (Support for building libraries and executables):
42454 * build-aux/elisp-comp: New file.
42455 * modules/elisp-comp: New file.
42457 2006-08-24 Bruno Haible <bruno@clisp.org>
42459 * gnulib-tool (func_create_testdir): Use non-default values of
42460 sourcebase and m4base.
42462 2006-08-24 Bruno Haible <bruno@clisp.org>
42464 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42467 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42469 * modules/openat (Depends-on): Add lchown.
42471 2006-08-23 Bruno Haible <bruno@clisp.org>
42473 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42474 of gl_LOCK_EARLY instead of gl_LOCK.
42476 2006-08-23 Bruno Haible <bruno@clisp.org>
42478 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42480 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42482 2006-08-23 Bruno Haible <bruno@clisp.org>
42484 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42487 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42488 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42489 (gl_LOCK): New macro.
42491 2006-08-22 Simon Josefsson <jas@extundo.com>
42493 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42496 2006-08-22 Simon Josefsson <jas@extundo.com>
42498 * MODULES.html.sh: Add "Support for maintaining and release
42501 * build-aux/gnupload: New file, from coreutils.
42503 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42505 Avoid the need for AC_LIBSOURCES in m4 macros.
42506 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42507 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42508 * modules/check-version (EXTRA_DIST): Add check-version.h.
42509 * modules/crc (EXTRA_DIST): Add crc.h.
42510 * modules/des (EXTRA_DIST): Add des.h.
42511 * modules/gc (EXTRA_DIST): Add gc.h.
42512 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42513 * modules/getline (EXTRA_DIST): Add getline.h.
42514 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42515 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42516 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42517 * modules/md2 (EXTRA_DIST): Add md2.h.
42518 * modules/md4 (EXTRA_DIST): Add md4.h.
42519 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42520 * modules/read-file (EXTRA_DIST): Add read-file.h.
42521 * modules/readline (EXTRA_DIST): Add readline.h.
42522 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42523 rijndael-api-fst.h.
42525 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42527 * m4/rijndael.m4 (gl_ARCFOUR):
42528 * m4/arctwo.m4 (gl_ARCTWO):
42529 * m4/check-version.m4 (gl_CHECK_VERSION):
42530 * m4/crc.m4 (gl_CRC):
42531 * m4/des.m4 (gl_DES):
42532 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42533 * m4/gc.m4 (gl_GC):
42534 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42535 * m4/getline.m4 (gl_FUNC_GETLINE):
42536 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42537 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42538 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42539 * m4/md2.m4 (gl_MD2):
42540 * m4/md4.m4 (gl_MD4):
42541 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42542 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42543 * m4/readline.m4 (gl_FUNC_READLINE):
42544 * m4/rijndael.m4 (gl_RIJNDAEL):
42545 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42546 to get the necessary .h files and whatnot.
42548 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42550 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42551 gnulib rather than the other way around.
42552 * config/srclistvars.sh (COREUTILS): Remove.
42554 2006-08-22 Jim Meyering <jim@meyering.net>
42556 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42558 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42560 2006-08-22 Eric Blake <ebb9@byu.net>
42562 * modules/regexprops-generic: New file.
42563 * MODULES.html.sh (Support for building documentation): List it.
42565 2006-08-22 Eric Blake <ebb9@byu.net>
42567 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42568 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42569 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42570 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42572 2006-08-22 Bruno Haible <bruno@clisp.org>
42574 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42575 and lib_LTLIBRARIES like the other lib_* variables.
42577 2006-08-22 Bruno Haible <bruno@clisp.org>
42579 * build-aux/x-to-1.in: New file, from GNU gettext.
42581 2006-08-22 Bruno Haible <bruno@clisp.org>
42583 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42586 2006-08-22 Bruno Haible <bruno@clisp.org>
42588 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42591 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42594 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42596 Problem reported by Bruno Haible.
42598 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42600 Avoid the need for AC_LIBSOURCES in m4 macros.
42601 * modules/acl (EXTRA_DIST): Add acl.h.
42602 * modules/argmatch (Files): Add m4/argmatch.m4.
42603 (configure.ac): Add gl_ARGMATCH.
42604 (EXTRA_DIST): Renamed from lib_SOURCES, for
42605 consistency with the other modules. Remove argmatch.c.
42606 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42607 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42608 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42609 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42610 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42611 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42612 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42613 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42614 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42615 * modules/closeout (EXTRA_DIST): Add closeout.h.
42616 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42617 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42618 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42619 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
42620 dirname.h; remove basename.c and stripslash.c.
42621 * modules/exclude (EXTRA_DIST): Add exclude.h.
42622 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42623 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42624 * modules/file-type (EXTRA_DIST): Add file-type.h.
42625 * modules/filemode (EXTRA_DIST): Add filemode.h.
42626 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42627 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42628 * modules/fpending (EXTRA_DIST): Add __fpending.h.
42629 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42630 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42631 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42632 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42633 * modules/getdate (EXTRA_DIST): Add getdate.c.
42634 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42635 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42636 * modules/getpass (EXTRA_DIST): Add getpass.h.
42637 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42638 * modules/group-member (EXTRA_DIST): Add group-member.h.
42639 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42640 * modules/hash (EXTRA_DIST): Add hash.h.
42641 * modules/human (EXTRA_DIST): Add human.h.
42642 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42643 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42644 * modules/lchown (EXTRA_DIST): Add lchown.h.
42645 * modules/long-options (EXTRA_DIST): Add long-options.h.
42646 * modules/lstat (EXTRA_DIST): Add lstat.h.
42647 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42648 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42649 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42650 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42651 * modules/memxor (EXTRA_DIST): Add memxor.h.
42652 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42653 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42654 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42655 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42656 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42657 * modules/physmem (EXTRA_DIST): Add physmem.h.
42658 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42659 * modules/posixver (EXTRA_DIST): Add posixver.h.
42660 * modules/quote (EXTRA_DIST): Add quote.h.
42661 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42662 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42663 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42664 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42665 regex_internal.h regexec.c.
42666 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42667 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42668 * modules/same (EXTRA_DIST): Add same.h.
42669 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42670 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42671 * modules/savedir (EXTRA_DIST): Add savedir.h.
42672 * modules/sha1 (EXTRA_DIST): Add sha1.h.
42673 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42674 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42675 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42676 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42677 * modules/strdup (EXTRA_DIST): Add strdup.h.
42678 * modules/strftime (EXTRA_DIST): Add strftime.h.
42679 * modules/strndup (EXTRA_DIST): Add strndup.h.
42680 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42681 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42682 * modules/time_r (EXTRA_DIST): Add time_r.h.
42683 * modules/timespec (EXTRA_DIST): Add timespec.h.
42684 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42685 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42686 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42687 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42688 * modules/userspec (EXTRA_DIST): Add userspec.h.
42689 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42690 * modules/utimens (EXTRA_DIST): Add utimens.h.
42691 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42692 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42693 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42694 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42695 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42696 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42697 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42698 * modules/yesno (EXTRA_DIST): Add yesno.h.
42700 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42702 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42704 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42705 * m4/dev-ino.m4, same-inode.m4: Remove.
42707 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42708 * m4/acl.m4 (AC_FUNC_ACL):
42709 * m4/backupfile.m4 (gl_BACKUPFILE):
42710 * m4/c-strtod.m4 (gl_C99_STRTOLD):
42711 * m4/canon-host.m4 (gl_CANON_HOST):
42712 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42713 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42714 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42715 * m4/cloexec.m4 (gl_CLOEXEC):
42716 * m4/close-stream.m4 (gl_CLOSE_STREAM):
42717 * m4/closeout.m4 (gl_CLOSEOUT):
42718 * m4/dirfd.m4 (gl_FUNC_DIRFD):
42719 * m4/dirname.m4 (gl_DIRNAME):
42720 * m4/exclude.m4 (gl_EXCLUDE):
42721 * m4/exitfail.m4 (gl_EXITFAIL):
42722 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42723 * m4/file-type.m4 (gl_FILE_TYPE):
42724 * m4/filemode.m4 (gl_FILEMODE):
42725 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42726 * m4/fpending.m4 (gl_FUNC_FPENDING):
42727 * m4/fprintftime.m4 (gl_FPRINTFTIME):
42728 * m4/fts.m4 (gl_FUNC_FTS):
42729 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42730 * m4/getdate.m4 (gl_GETDATE):
42731 * m4/gethrxtime.m4 (gl_GETHRXTIME):
42732 * m4/getpagesize.m4 (gl_GETPAGESIZE):
42733 * m4/getpass.m4 (gl_FUNC_GETPASS):
42734 * m4/gettime.m4 (gl_GETTIME):
42735 * m4/getugroups.m4 (gl_GETUGROUPS):
42736 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42737 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42738 * m4/hard-locale.m4 (gl_HARD_LOCALE):
42739 * m4/hash.m4 (gl_HASH):
42740 * m4/idcache.m4 (gl_IDCACHE):
42741 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42742 * m4/lchown.m4 (gl_FUNC_LCHOWN):
42743 * m4/long-options.m4 (gl_LONG_OPTIONS):
42744 * m4/lstat.m4 (gl_FUNC_LSTAT):
42745 * m4/md5.m4 (gl_MD5):
42746 * m4/memcasecmp.m4 (gl_MEMCASECMP):
42747 * m4/memcoll.m4 (gl_MEMCOLL):
42748 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42749 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42750 * m4/memxor.m4 (gl_MEMXOR):
42751 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42752 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42753 * m4/modechange.m4 (gl_MODECHANGE):
42754 * m4/mountlist.m4 (gl_MOUNTLIST):
42755 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42756 * m4/openat.m4 (gl_FUNC_OPENAT):
42757 * m4/pathmax.m4 (gl_PATHMAX):
42758 * m4/physmem.m4 (gl_PHYSMEM):
42759 * m4/posixtm.m4 (gl_POSIXTM):
42760 * m4/posixver.m4 (gl_POSIXVER):
42761 * m4/quote.m4 (gl_QUOTE):
42762 * m4/quotearg.m4 (gl_QUOTEARG):
42763 * m4/readtokens.m4 (gl_READTOKENS):
42764 * m4/readutmp.m4 (gl_READUTMP):
42765 * m4/regex.m4 (gl_REGEX):
42766 * m4/safe-read.m4 (gl_SAFE_READ):
42767 * m4/safe-write.m4 (gl_SAFE_WRITE):
42768 * m4/same.m4 (gl_SAME):
42769 * m4/save-cwd.m4 (gl_SAVE_CWD):
42770 * m4/savedir.m4 (gl_SAVEDIR):
42771 * m4/settime.m4 (gl_SETTIME):
42772 * m4/sha1.m4 (gl_SHA1):
42773 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42774 * m4/stat-macros.m4 (gl_STAT_MACROS):
42775 * m4/stat-time.m4 (gl_STAT_TIME):
42776 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42777 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42778 * m4/strdup.m4 (gl_FUNC_STRDUP):
42779 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42780 * m4/strndup.m4 (gl_FUNC_STRNDUP):
42781 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42782 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42783 * m4/time_r.m4 (gl_TIME_R):
42784 * m4/timespec.m4 (gl_TIMESPEC):
42785 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42786 * m4/unlinkdir.m4 (gl_UNLINKDIR):
42787 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42788 * m4/userspec.m4 (gl_USERSPEC):
42789 * m4/utimecmp.m4 (gl_UTIMECMP):
42790 * m4/utimens.m4 (gl_UTIMENS):
42791 * m4/xalloc.m4 (gl_XALLOC):
42792 * m4/xgetcwd.m4 (gl_XGETCWD):
42793 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42794 * m4/xreadlink.m4 (gl_XREADLINK):
42795 * m4/xstrtod.m4 (gl_XSTRTOD):
42796 * m4/yesno.m4 (gl_YESNO):
42797 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42798 to get the necessary .h files and whatnot.
42800 2006-08-21 Mark D. Baushke <mdb@gnu.org>
42801 Bruno Haible <bruno@clisp.org>
42803 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42804 /bin/sh understanding of '!' conditional negation.
42806 2006-08-21 Jim Meyering <jim@meyering.net>
42808 * modules/openat (Depends-on): Really alphabetize.
42810 * modules/acl (Depends-on): Add error and quote.
42812 * check-module (find_included_lib_files): Add at-func.c to the
42813 ok-to-include-more-than-once white list.
42815 * modules/openat (Depends-on): Add lstat. Alphabetize.
42817 2006-08-21 Bruno Haible <bruno@clisp.org>
42819 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42820 Emit a pkgdata_DATA variable only if some snippets add contents to it.
42821 Reported by Martin Lambers <marlam@marlam.de>.
42823 2006-08-21 Bruno Haible <bruno@clisp.org>
42825 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42826 specify an installation location, don't emit a noinst_LIBRARIES or
42827 noinst_LTLIBRARIES assignment.
42829 2006-08-21 Bruno Haible <bruno@clisp.org>
42832 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42833 BeOS has mbrtowc() but no <wctype.h>.
42835 2006-08-21 Bruno Haible <bruno@clisp.org>
42838 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42841 2006-08-21 Bruno Haible <bruno@clisp.org>
42844 * lib/mbchar.h: Include <wctype.h> only if it exists.
42846 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42848 Remove files that are no longer needed by their respective modules.
42849 * m4/obstack.m4: Remove.
42850 * m4/strerror_r.m4: Remove.
42851 * m4/uint32_t.m4: Remove.
42852 * m4/uintptr_t.m4: Remove.
42853 * m4/ullong_max.m4: Remove.
42854 * m4/xstrtoimax.m4: Remove.
42855 * m4/xstrtoumax.m4: Remove.
42857 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42858 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42859 dependencies now capture this.
42861 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42862 Do not use AC_LIBSOURCES, since gnulib modules now do this.
42863 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42864 * m4/human.m4 (gl_HUMAN): Likewise.
42865 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42866 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42868 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42870 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42871 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42873 * m4/human.m4 (gl_HUMAN): Likewise.
42874 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42875 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42876 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42877 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42878 * m4/xstrtol (gl_XSTRTOL): Likewise.
42880 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42881 AC_TYPE_LONG_LONG_INT.
42882 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42883 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42884 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42885 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42887 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42890 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42891 (gl_PREREQ_XSTRTOUL): Remove.
42893 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42895 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42898 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42900 Add and change modules to make it easier for coreutils to use
42902 * modules/backupfile (Files): Remove m4/d-ino.m4.
42903 (Depends-on): Add d-ino.
42904 * modules/cycle-check (Depends-on): Add stdint.
42905 (lib_SOURCES): Add cycle-check.h.
42906 * modules/d-ino: New module.
42907 * modules/d-type: New module.
42908 * modules/error (Files): Remove m4/strerror_r.m4.
42909 * modules/filemode (Files): Add m4/st_dm_mode.m4.
42910 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42911 m4/inttypes_h.m4, m4/uintmax_t.m4.
42912 (Depends-on): Add stdint.
42913 (lib_SOURCES): Add fsusage.h.
42914 * modules/getcwd (Files): Remove d-ino.m4.
42915 (Depends-on): Add d-ino.
42916 * modules/getndelim2 (Depends-on): Add stdint.
42917 * modules/glob (Files): Remove m4/d-type.m4.
42918 (Depends-on): Add d-type.
42919 * modules/host-os: New module.
42920 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42921 m4/inttypes_h.m4, m4/uintmax_t.m4.
42922 * Depends-on: Add stdint.
42923 (lib_SOURCES): Add human.h.
42924 * modules/inttostr (Files): Remove m4/intmax_t.m4,
42925 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42926 m4/uintmax_t.m4, m4/ulonglong.m4.
42927 (Depends-on): Add stdint.
42928 (EXTRA_DIST): Add inttostr.h.
42929 * modules/lchmod: New module.
42930 * modules/link-follow: New module.
42931 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42932 (Depends-on): Add lchmod.
42933 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42934 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42935 (Depends-on): Add stdint.
42936 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42937 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42938 (Depends-on): Add stdint.
42939 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42940 * modules/perl: New module.
42941 * modules/regex (Depends-on): Add stdint.
42942 * modules/rmdir-errno: New module.
42943 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42945 (Depends-on): Add stdint.
42946 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42948 (Depends-on): Add stdint.
42949 * modules/unlink-busy: New module.
42950 * modules/utimecmp (Depends-on): Add stdint.
42951 * modules/uptime: New module.
42952 * modules/winsz-ioctl: New module.
42953 * modules/winsz-termios: New module.
42954 * modules/xnanosleep (Depends-on): Add nanosleep.
42955 * modules/ullong_max: Remove.
42956 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42957 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42958 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42959 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42960 (Depends-on): Add inttypes.
42961 (lib_SOURCES): Add xstrtol.h.
42962 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42963 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42964 * MODULES.html.sh: Move 'assert' into the assert section.
42965 Move 'dummy' into the linking section.
42967 Add section for compatibility checks for POSIX:2001 functions,
42968 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42969 winsz-ioctl, and winsz-termios into it.
42971 Add top-level Misc section and put host-os, perl, and uptime
42974 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42976 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42977 now assume the stdint module. Do not include inttypes.h.
42978 * lib/fsusage.h: Likewise.
42979 * lib/getndelim2.c: Likewise.
42980 * lib/human.h: Likewise.
42981 * lib/inttostr.h: Likewise.
42982 * lib/obstack.c: Likewise.
42983 * lib/regex_internal.h: Likewise.
42984 * lib/tempname.c: Likewise.
42985 * lib/utimecmp.c: Likewise.
42986 * lib/xstrtol.h: Likewise.
42988 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42990 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42991 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42992 * lib/xtime.h: Likewise.
42994 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
42996 * modules/openat (Files): Add lib/fchmodat.c.
42997 Fixes problem reported by Jay Youngman.
42999 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43001 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43002 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43004 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43005 Bruno Haible <bruno@clisp.org>
43007 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43008 and is a script that invokes bison. Tighten the code. Add comments.
43010 2006-08-18 Jim Meyering <jim@meyering.net>
43012 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43013 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43014 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43015 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43017 2006-08-18 Bruno Haible <bruno@clisp.org>
43019 * modules/bison-i18n: New file.
43020 * MODULES.html.sh (Internationalization functions): Add it.
43022 2006-08-18 Bruno Haible <bruno@clisp.org>
43024 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43025 sys/statvfs.h. When getmntinfo was found, check its declaration and
43026 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43028 2006-08-18 Bruno Haible <bruno@clisp.org>
43030 * m4/bison-i18n.m4: New file, from bison.
43032 2006-08-18 Bruno Haible <bruno@clisp.org>
43034 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43035 (ME_DUMMY): Treat "kernfs" as a dummy.
43036 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43038 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43040 Update from coreutils.
43042 2006-08-15 Jim Meyering <jim@meyering.net>
43044 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43046 2006-01-17 Jim Meyering <jim@meyering.net>
43048 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43050 2006-01-11 Jim Meyering <jim@meyering.net>
43052 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43053 Check for the lchmod function.
43055 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43057 Update from coreutils.
43059 * lib/__fpending.h: Add copyright notice.
43060 * lib/fprintftime.h: Likewise.
43061 * lib/savedir.c: Use (C) in copyright notice.
43062 * lib/savedir.h: Likewise.
43064 2006-08-15 Jim Meyering <jim@meyering.net>
43066 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43067 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43068 in support of the EXPECTED_ERRNO macro.
43069 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43070 definitions. Instead, define the appropriate symbols and include
43072 * lib/mkdirat.c (mkdirat): Likewise.
43073 * lib/fchmodat.c (fchmodat): Likewise.
43074 (ENOSYS): Remove definition.
43075 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43076 it. Don't include "unistd--.h" -- it wasn't ever used.
43078 2006-01-17 Jim Meyering <jim@meyering.net>
43080 Rewrite fts.c not to change the current working directory,
43081 by using openat, fstatat, fdopendir, etc..
43083 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43084 (HAVE_OPENAT_SUPPORT): Define.
43085 [_LIBC] (fchdir): Don't undef or define; no longer used.
43086 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43087 Now, this `function' always succeeds, and consumes its file descriptor
43088 parameter -- so callers must not close such FDs. Update callers.
43089 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43090 (diropen): Add parameter, SP. Adjust all callers.
43091 Implement using diropen_fd, rather than open.
43092 (fts_open): Initialize new member, fts_cwd_fd.
43093 Remove fts_rft-setting code.
43094 (fts_close): Close fts_cwd_fd, if necessary.
43095 (__opendir2): Define in terms of opendir or opendirat,
43096 depending on whether the FST_NOCHDIR flag is set.
43097 (fts_build): Since fts_safe_changedir consumes its FD, and since
43098 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43099 and close the dup'd file descriptor upon failure.
43100 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43101 (fts_safe_changedir): Tweak semantics to reflect that this function
43102 now calls cwd_advance_fd and hence consumes its FD argument.
43103 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43104 [struct FTS] (fts_rft): Remove now-unused member.
43105 [struct FTS] (fts_cycle.state): Improve comment.
43107 * lib/openat.c (openat_needs_fchdir): New function.
43108 * lib/openat.h (openat_needs_fchdir): Declare it.
43110 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43112 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43113 Problem and fix reported by Pádraig Brady in
43114 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43116 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43118 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43120 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43122 * lib/memcoll.c (memcoll): Optimize for the common case where the
43123 arguments are bytewise equal.
43125 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43127 * doc/regexprops-generic.texi: Add a copyright notice.
43129 2006-08-15 Bruno Haible <bruno@clisp.org>
43131 * modules/tmpdir (License): Change to LGPL.
43133 2006-08-15 Bruno Haible <bruno@clisp.org>
43135 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43138 2006-08-14 Simon Josefsson <jas@extundo.com>
43140 * config/srclist.txt: Add gnupload.
43142 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43144 Change copyright notice from LGPL 2 to GPL 2, since that's the
43145 standard form used in the gnulib repository.
43146 * tests/test-lock.c: Likewise.
43147 * tests/test-stdint.c: Likewise.
43148 * tests/test-tls.c: Likewise.
43150 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43151 prelude-manager. User shorter URLs for GNU projects, without '?'.
43152 Add copyright notice.
43154 * check-module: Add copyright notice. Output a copyright
43155 notice if "--version" is specified.
43156 * modules/COPYING: New file.
43157 * tests/test-getaddrinfo.c: Add copyright notice.
43158 * tests/test-verify.c: Likewise.
43160 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43162 Change copyright notice from LGPL 2 to GPL 2, since that's the
43163 standard form used in the gnulib repository.
43164 * lib/lock.c: LGPL -> GPL.
43165 * lib/lock.h: Likewise.
43166 * lib/strnlen1.c: Likewise.
43167 * lib/strnlen1.h: Likewise.
43168 * lib/tls.c: Likewise.
43169 * lib/tls.h: Likewise.
43170 * lib/tmpdir.c: Likewise.
43172 * lib/TODO: Remove; this belongs only in coreutils.
43174 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43176 Add copyright notices to long-enough files that lack them, since
43177 otherwise the files aren't clearly free. Use the same notice that
43178 getdate.texi already uses.
43179 * doc/alloca-opt.texi: Add copyright notice.
43180 * doc/alloca.texi: Likewise.
43181 * doc/ctime.texi: Likewise.
43182 * doc/functions.texi: Likewise.
43183 * doc/gcd.texi: Likewise.
43184 * doc/gnulib-tool.texi: Likewise.
43185 * doc/inet_ntoa.texi: Likewise.
43186 * doc/visibility.texi: Likewise.
43188 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43189 * doc/quote.texi: Add copyright notice.
43191 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43192 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43193 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43194 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43195 is now obsolete, and give a pointer to the Sun list.
43196 Add copyright notice.
43198 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43200 * config/srclistvars.sh: Add copyright notice.
43202 2006-08-14 Eric Blake <ebb9@byu.net>
43204 Import the following change from libc:
43206 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43209 * lib/misc/error.c: Add space between program name and message if file
43212 2006-08-12 Karl Berry <karl@gnu.org>
43214 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43215 remove, these originate in gnulib now.
43217 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43219 * doc/Makefile (standards.info standards.html standards.dvi):
43220 Also depend on make-stds.texi.
43222 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43224 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43225 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43227 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43228 in wchar_t. Problem reported by Eric Blake.
43230 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43231 LEN is smaller than SIZE. Suggested by Bruno Haible.
43232 Also, help the compiler to keep LEN in a register.
43234 2006-08-11 Eric Blake <ebb9@byu.net>
43236 * users.txt: Sort. Add tar.
43238 2006-08-11 Bruno Haible <bruno@clisp.org>
43240 * users.txt: New file.
43242 2006-08-11 Bruno Haible <bruno@clisp.org>
43244 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43245 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43247 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43249 * modules/snprintf (Depends-on): Remove minmax.
43250 (Maintainer): Add self and Bruno.
43252 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43254 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43255 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43256 (EOVERFLOW): Define if the system does not.
43257 Do not include "minmax.h"; it wasn't used.
43258 (snprintf): Don't assume size_t promotes to an unsigned type.
43259 Fix bug when generated string was too long for the buffer: the
43260 buffer's contents are supposed to be the initial prefix of the
43261 output. Don't assume vasnprintf returns EOVERFLOW if the size
43262 exceeds INT_MAX; do the check ourselves.
43264 Import the following changes from libc:
43266 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43268 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43269 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43270 set wc to the byte which couldn't be converted.
43271 (re_string_reconstruct): Don't clear valid_raw_len before calling
43272 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43273 tip_context using re_string_context_at.
43275 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43277 * lib/posix/regex.h: g++ still cannot handled [restrict].
43279 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43281 * lib/posix/regex.h: Remove special handling for VMS.
43283 2006-08-10 Jim Meyering <jim@meyering.net>
43285 * modules/same-inode: New module.
43286 * modules/dev-ino: New module.
43287 * modules/cycle-check: Depend on these modules, rather than simply
43288 including their .h files.
43289 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43290 required via m4/cycle-check.m4.
43291 * modules/same: Depend on new same-inode module, rather than
43292 including same-inode.h.
43293 * modules/chdir-safer: New file.
43295 * modules/chown (Depends-on): Add stat-macros.
43297 2006-08-10 Jim Meyering <jim@meyering.net>
43299 * m4/cycle-check.m4: New file.
43300 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43301 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43303 2006-08-10 Eric Blake <ebb9@byu.net>
43305 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43306 in from original proposal.
43308 2006-08-10 Eric Blake <ebb9@byu.net>
43309 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43311 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43314 2006-08-10 Bruno Haible <bruno@clisp.org>
43316 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43319 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43321 Sync from coreutils.
43323 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43325 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43326 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43328 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43330 * modules/restrict: Remove; no longer needed now that we assume
43331 Autoconf 2.59 or later.
43332 * MODULES.html.sh: Remove 'restrict'.
43333 * modules/argp (Depends-on): Remove 'restrict'.
43334 * modules/base64 (Depends-on): Likewise.
43335 * modules/gc (Depends-on): Likewise.
43336 * modules/getaddrinfo (Depends-on): Likewise.
43337 * modules/glob (Depends-on): Likewise.
43338 * modules/inet_ntop (Depends-on): Likewise.
43339 * modules/inet_pton (Depends-on): Likewise.
43340 * modules/memxor (Depends-on): Likewise.
43341 * modules/regex (Depends-on): Likewise.
43342 * modules/strtok_r (Depends-on): Likewise.
43343 * modules/time_r (Depends-on): Likewise.
43345 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43347 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43348 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43349 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43350 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43351 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43352 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43353 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43354 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43356 Merge from coreutils.
43357 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43358 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43359 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43360 * m4/time_r.m4 (gl_TIME_R): Likewise.
43362 2006-08-09 Karl Berry <karl@gnu.org>
43364 * config/srclist.txt: no more gettext-tools, per Bruno.
43366 2006-08-08 Eric Blake <ebb9@byu.net>
43368 * modules/verror: New module.
43369 * MODULES.html.sh: Document it.
43371 2006-08-08 Eric Blake <ebb9@byu.net>
43373 * lib/verror.h, lib/verror.c: New files.
43375 2006-08-08 Eric Blake <ebb9@byu.net>
43377 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43378 verror_at_line output complies with GNU Coding Standards even when
43381 2006-08-07 Bruno Haible <bruno@clisp.org>
43383 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43385 Reported by Ralf Wildenhues.
43387 2006-08-07 Bruno Haible <bruno@clisp.org>
43389 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43390 in an AC_DEFUN. Needed so that the autoconf snippets can use
43393 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43395 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43396 Initialize pkgdata_DATA.
43397 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43400 2006-08-06 Eric Blake <ebb9@byu.net>
43402 * lib/error.h: Fold in some upstream changes from glibc.
43403 * lib/error.c: Likewise.
43405 2006-08-04 Bruno Haible <bruno@clisp.org>
43407 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43408 Make the mostlyclean-local rule depend on mostlyclean-generic.
43409 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43411 2006-07-31 Bruno Haible <bruno@clisp.org>
43413 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43414 <stdlib.h>, <string.h>.
43416 2006-07-30 Bruno Haible <bruno@clisp.org>
43418 * modules/readlink (License): Change to LGPL.
43420 2006-07-30 Bruno Haible <bruno@clisp.org>
43422 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43423 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43424 set PKGDATADIR to point to it.
43426 2006-07-30 Bruno Haible <bruno@clisp.org>
43428 * modules/csharpexec (configure.ac): Comment out macro invocation.
43429 * modules/javaexec (configure.ac): Likewise.
43430 * modules/javacomp-script (configure.ac): Likewise.
43432 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43434 2006-07-30 Bruno Haible <bruno@clisp.org>
43436 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43439 2006-07-30 Bruno Haible <bruno@clisp.org>
43441 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43443 2006-07-30 Bruno Haible <bruno@clisp.org>
43445 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43446 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43449 2006-07-29 Bruno Haible <bruno@clisp.org>
43451 Make it possible for gnulib-tool to work with locally modified or
43452 augmented gnulib repositories.
43453 * gnulib-tool (func_usage): Document --local-dir option.
43454 (local_gnulib_dir): New variable.
43455 Handle --local-dir option.
43456 (func_lookup_file): New function.
43457 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43458 (func_get_description, func_get_filelist, func_get_description,
43459 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43460 func_get_automake_snippet, func_get_include_directive,
43461 func_get_license, func_get_maintainer): Use func_lookup_file.
43462 (func_import, func_create_testdir): Use func_lookup_file.
43464 2006-07-29 Bruno Haible <bruno@clisp.org>
43466 * modules/setenv (Depends-on): Add unistd.
43468 2006-07-29 Bruno Haible <bruno@clisp.org>
43470 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43472 2006-07-29 Bruno Haible <bruno@clisp.org>
43474 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43476 2006-07-29 Bruno Haible <bruno@clisp.org>
43478 * gnulib-tool (import, update): If there is no Makefile.am, look at
43479 aclocal.m4, instead of bailing out.
43481 2006-07-29 Bruno Haible <bruno@clisp.org>
43483 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43484 Categorize the options by when they are useful.
43486 2006-07-29 Bruno Haible <bruno@clisp.org>
43488 * gnulib-tool (func_usage): Document option --no-libtool.
43489 Handle option --no-libtool.
43490 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43491 for changed semantics of $libtool variable.
43492 (func_import): Likewise. If libtool is not used, show this through
43493 an option --no-libtool.
43494 (func_create_testdir): Update.
43496 2006-07-29 Bruno Haible <bruno@clisp.org>
43498 * gnulib-tool (func_import): Extend error message about missing
43501 2006-07-29 Bruno Haible <bruno@clisp.org>
43503 * gnulib-tool (func_import): Don't create the $docbase directory if
43504 there is no file to store there.
43506 2006-07-29 Bruno Haible <bruno@clisp.org>
43508 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43509 relevant, look for configure.ac there, not in the current directory.
43510 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43512 2006-07-29 Bruno Haible <bruno@clisp.org>
43514 * gnulib-tool (SORT): New variable.
43515 (func_usage): Undocument --assume-autoconf option.
43516 Remove --assume-autoconf option handling.
43517 (autoconf_minversion): Determine from the contents of configure.ac.
43518 (func_import): Remove autoconf_minversion handling.
43519 Suggested by Eric Blake.
43521 2006-07-29 Bruno Haible <bruno@clisp.org>
43523 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43525 2006-07-29 Bruno Haible <bruno@clisp.org>
43527 * config/srclist.txt (*setenv.[ch]): Remove rules.
43529 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43531 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43533 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43535 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43538 2006-07-28 Simon Josefsson <jas@extundo.com>
43540 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43541 * modules/inet_pton (Depends-on): Likewise.
43543 2006-07-28 Simon Josefsson <jas@extundo.com>
43545 * m4/netinet_in_h.m4: New file.
43547 2006-07-28 Simon Josefsson <jas@extundo.com>
43549 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43552 2006-07-28 Simon Josefsson <jas@extundo.com>
43554 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43557 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43559 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43560 setgid on directories only if they set these bits.
43561 * lib/modechange.h: Remove obsolete comment about masks.
43563 2006-07-28 Eric Blake <ebb9@byu.net>
43565 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43568 2006-07-28 Bruno Haible <bruno@clisp.org>
43570 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43572 2006-07-28 Bruno Haible <bruno@clisp.org>
43574 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43576 2006-07-28 Bruno Haible <bruno@clisp.org>
43578 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43579 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43581 Avoids link error on FreeBSD 4.x.
43582 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43584 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43586 * lib/mbswidth.c (iswcntrl): Likewise.
43588 2006-07-27 Bruno Haible <bruno@clisp.org>
43590 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43593 2006-07-27 Bruno Haible <bruno@clisp.org>
43595 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43596 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43599 2006-07-26 Eric Blake <ebb9@byu.net>
43601 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43603 2006-07-26 Eric Blake <ebb9@byu.net>
43605 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43606 like mingw that lack mkstemp.
43607 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43608 avoid compilation warning on mingw.
43610 2006-07-26 Bruno Haible <bruno@clisp.org>
43612 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43613 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43614 INT_FAST*_MIN, INTPTR_MIN.
43616 2006-07-25 Bruno Haible <bruno@clisp.org>
43618 * modules/version-etc (Depends-on): Add stdarg.
43620 2006-07-25 Bruno Haible <bruno@clisp.org>
43622 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43625 2006-07-25 Bruno Haible <bruno@clisp.org>
43627 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43628 defined in <stdarg.h> or config.h.
43630 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43632 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43633 (gl_STDIO_SAFER): Remove.
43635 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43637 * MODULES.html.sh (File stream based Input/Output):
43638 Add fopen-safer, tmpfile-safer; remove stdio-safer.
43639 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43640 * modules/fopen-safer, modules/tmpfile-safer: New files.
43641 * modules/stdio-safer: Remove.
43643 2006-07-24 Bruno Haible <bruno@clisp.org>
43645 * modules/tmpdir: New file.
43646 * MODULES.html.sh (File system functions): Add it.
43648 2006-07-24 Bruno Haible <bruno@clisp.org>
43650 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43651 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43653 2006-07-24 Bruno Haible <bruno@clisp.org>
43655 * modules/clean-temp: New file.
43657 2006-07-24 Bruno Haible <bruno@clisp.org>
43659 * m4/tmpdir.m4: New file, from GNU gettext.
43661 2006-07-24 Bruno Haible <bruno@clisp.org>
43663 * lib/tmpdir.h: New file, from GNU gettext.
43664 * lib/tmpdir.c: New file, from GNU gettext.
43666 2006-07-24 Bruno Haible <bruno@clisp.org>
43668 * lib/clean-temp.h: New file, from GNU gettext.
43669 * lib/clean-temp.c: New file, from GNU gettext.
43671 2006-07-23 Eric Blake <ebb9@byu.net>
43673 * modules/stdio-safer (Files): Add tmpfile-safer.c.
43674 (Depends-on): Add binary-io.
43676 2006-07-23 Eric Blake <ebb9@byu.net>
43678 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43680 2006-07-23 Eric Blake <ebb9@byu.net>
43682 * lib/tmpfile-safer.c: New file.
43683 * lib/stdio-safer.h (fopen_safer): Add prototype.
43684 * lib/stdio--.h (tmpfile): Make safer.
43686 2006-07-23 Bruno Haible <bruno@clisp.org>
43688 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43689 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43690 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43691 gl_linked_remove_at): Use it.
43693 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43694 and Simon Josefsson <jas@extundo.com>
43696 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43698 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43700 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43702 * modules/close-stream: New file.
43703 * modules/closeout (Description): Make it clear that it exits
43704 with a diagnostic on error.
43705 (Depends-on): Add close-stream. Remove fpending, stdbool.
43706 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43708 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43710 * m4/close-stream.m4: New file.
43712 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43714 * lib/close-stream.c, lib/close-stream.h: New files.
43716 2006-07-22 Bruno Haible <bruno@clisp.org>
43718 Merge from GNU gettext 0.15.
43720 2006-05-01 Bruno Haible <bruno@clisp.org>
43722 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43724 2006-07-22 Bruno Haible <bruno@clisp.org>
43726 * modules/javaversion: New file.
43727 * MODULES.html.sh (Java): Add javaversion.
43729 2006-03-12 Bruno Haible <bruno@clisp.org>
43731 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43733 2005-12-04 Bruno Haible <bruno@clisp.org>
43735 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43738 2006-06-21 Bruno Haible <bruno@clisp.org>
43740 Avoid warnings from recent versions of mcs.
43741 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43742 -o, -L, -r any more. Use options documented since mcs-1.0
43743 instead. Similarly for -g.
43745 2005-12-04 Bruno Haible <bruno@clisp.org>
43747 * build-aux/csharpcomp.sh.in: Suffix for resources is
43748 .resources, not .resource.
43750 2005-07-09 Bruno Haible <bruno@clisp.org>
43752 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43754 Reported by Mark Junker <mjscod@gmx.de>.
43756 2006-07-22 Bruno Haible <bruno@clisp.org>
43758 * modules/gettext: Upgrade to gettext-0.15.
43759 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43761 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43763 2006-07-22 Bruno Haible <bruno@clisp.org>
43765 Merge from GNU gettext 0.15.
43767 2006-03-25 Bruno Haible <bruno@clisp.org>
43769 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43771 2006-07-21 Bruno Haible <bruno@clisp.org>
43773 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43776 2006-05-09 Bruno Haible <bruno@clisp.org>
43778 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43779 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43780 for the conftestver execution.
43782 2006-05-01 Bruno Haible <bruno@clisp.org>
43784 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43785 optional target-version argument. Verify that the compiler
43786 groks source of the specified source-version, or add -source
43787 option as necessary. Verify that the compiler produces
43788 bytecode in the specified target-version, or add -target and
43789 -source options as necessary. Make the result of the test
43790 available as variable CONF_JAVAC. Also log error output in
43793 2006-03-11 Bruno Haible <bruno@clisp.org>
43795 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43797 2006-05-09 Bruno Haible <bruno@clisp.org>
43799 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43800 CLASSPATH_SEPARATOR to a semicolon.
43802 2006-03-12 Bruno Haible <bruno@clisp.org>
43804 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43805 available as variable CONF_JAVA, for subsequent autoconf
43806 tests. Also log error output in config.log.
43808 2006-07-19 Bruno Haible <bruno@clisp.org>
43810 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43811 that getline works on glibc2 systems. Needed to avoid trouble
43813 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43815 2005-12-04 Bruno Haible <bruno@clisp.org>
43817 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43818 launcher (untested).
43820 2005-12-04 Bruno Haible <bruno@clisp.org>
43822 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43824 2006-07-22 Bruno Haible <bruno@clisp.org>
43826 * gettext.m4: Update from GNU gettext-0.15.
43827 * nls.m4: Likewise.
43829 * inttypes-pri.m4: Likewise.
43830 * inttypes-h.m4: Renamed from inttypes.m4.
43831 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43833 2006-07-22 Bruno Haible <bruno@clisp.org>
43835 Merge from GNU gettext 0.15.
43837 2005-07-05 Bruno Haible <bruno@clisp.org>
43839 * printf-args.c (printf_fetchargs): Work around broken
43840 definition of wint_t on mingw.
43842 2005-02-12 Bruno Haible <bruno@clisp.org>
43844 * xallocsa.h: Add extern "C" for C++.
43846 2006-05-17 Bruno Haible <bruno@clisp.org>
43848 Cygwin portability.
43849 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43851 2006-04-30 Bruno Haible <bruno@clisp.org>
43853 * progreloc.c: Include <mach-o/dyld.h> if available.
43854 (find_executable): Use _NSGetExecutablePath when possible.
43856 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
43858 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43861 2005-12-29 Bruno Haible <bruno@clisp.org>
43863 * progreloc.c (set_program_name_and_installdir): Fix
43866 2005-12-04 Bruno Haible <bruno@clisp.org>
43868 Cygwin portability.
43869 * progreloc.c: Include <windows.h> also on Cygwin.
43870 (find_executable): Add support for Cygwin.
43871 (set_program_name_and_installdir): Handle also platforms with
43874 2006-07-11 Bruno Haible <bruno@clisp.org>
43876 * javacomp.c: Fix a comment.
43877 Reported by Jim Meyering.
43879 2006-04-30 Bruno Haible <bruno@clisp.org>
43881 * javacomp.h (compile_java_class): Add source_version,
43882 target_version arguments.
43883 * javacomp.c: Rewritten to choose only a compiler that
43884 respects the specified source_version and target_version.
43886 2006-06-27 Bruno Haible <bruno@clisp.org>
43888 Assume correct S_ISDIR macro.
43889 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43891 2006-07-22 Bruno Haible <bruno@clisp.org>
43893 * javaversion.h: New file, from GNU gettext.
43894 * javaversion.c: New file, from GNU gettext.
43895 * javaversion.java: New file, from GNU gettext.
43896 * javaversion.class: New file, from GNU gettext.
43898 2006-05-17 Bruno Haible <bruno@clisp.org>
43900 Cygwin portability.
43901 * javaexec.c (execute_java_class): Test for jview program
43904 2006-04-09 Bruno Haible <bruno@clisp.org>
43906 * fatal-signal.c: Don't include string.h.
43907 (at_fatal_signal): Use a copying loop instead of memcpy.
43909 2005-12-04 Bruno Haible <bruno@clisp.org>
43911 * csharpexec.c: Add support for 'clix' launcher (untested).
43912 (execute_csharp_using_sscli): New function.
43913 (execute_csharp_program): Call it.
43915 2006-06-21 Bruno Haible <bruno@clisp.org>
43917 Avoid warnings from recent versions of mcs.
43918 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43919 -o, -L, -r any more. Use options documented since mcs-1.0
43920 instead. Similarly for -g.
43922 2005-07-09 Bruno Haible <bruno@clisp.org>
43924 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43926 Reported by Mark Junker <mjscod@gmx.de>.
43928 2006-06-17 Bruno Haible <bruno@clisp.org>
43930 * config.charset: Update for NetBSD 3.0.
43932 2006-05-17 Bruno Haible <bruno@clisp.org>
43934 Cygwin portability.
43935 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43937 2006-05-16 Bruno Haible <bruno@clisp.org>
43939 * localcharset.c [CYGWIN]: Include <windows.h>.
43940 (get_charset_aliases): For Cygwin, return the same CPxxx
43941 aliases list as under WIN32.
43942 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43943 the environment variables. Fall back to GetACP().
43945 2006-04-05 Bruno Haible <bruno@clisp.org>
43947 * config.charset: Update Juan Manuel Guerrero's address.
43949 2005-02-12 Bruno Haible <bruno@clisp.org>
43951 * allocsa.h: Add extern "C" for C++.
43953 2005-02-10 Bruno Haible <bruno@clisp.org>
43955 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43956 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43958 2006-07-22 Bruno Haible <bruno@clisp.org>
43960 * gettext.h: Update to GNU gettext-0.15.
43962 2006-07-22 Bruno Haible <bruno@clisp.org>
43964 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43965 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43966 lib-prefix.m4, longdouble.m4, ssize_t.m4.
43968 2006-07-21 Eric Blake <ebb9@byu.net>
43970 * modules/stdlib-safer: New file.
43971 * MODULES.html.sh (File stream based Input/Output): Add
43974 2006-07-21 Eric Blake <ebb9@byu.net>
43976 * lib/stdlib-safer.h: New file from coreutils, required by
43979 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
43981 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43983 2006-07-20 Bruno Haible <bruno@clisp.org>
43985 * gnulib-tool: Recognize new option --assume-autoconf.
43986 (autoconf_minversion): New variable.
43987 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43989 2006-07-20 Bruno Haible <bruno@clisp.org>
43991 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43993 2006-07-19 Derek R. Price <derek@ximbiot.com>
43995 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43996 Reindent and repaginate.
43998 2006-07-19 Derek Price <derek@ximbiot.com>
44000 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44003 2006-07-17 Bruno Haible <bruno@clisp.org>
44005 * modules/list: New file.
44006 * modules/array-list: New file.
44007 * modules/carray-list, modules/carray-list-tests: New files.
44008 * modules/linked-list, modules/linked-list-tests: New files.
44009 * modules/avltree-list, modules/avltree-list-tests: New files.
44010 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44011 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44012 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44013 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44014 * modules/oset: New file.
44015 * modules/array-oset: New file.
44016 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44017 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44018 * tests/test-carray_list.c: New file.
44019 * tests/test-linked_list.c: New file.
44020 * tests/test-avltree_list.c: New file.
44021 * tests/test-rbtree_list.c: New file.
44022 * tests/test-linkedhash_list.c: New file.
44023 * tests/test-avltreehash_list.c: New file.
44024 * tests/test-rbtreehash_list.c: New file.
44025 * tests/test-avltree_oset.c: New file.
44026 * tests/test-rbtree_oset.c: New file.
44027 * MODULES.html.sh (Container data structures): New section.
44029 2006-07-17 Bruno Haible <bruno@clisp.org>
44031 * m4/gl_list.m4: New file.
44033 2006-07-17 Bruno Haible <bruno@clisp.org>
44035 * lib/gl_list.h: New file.
44036 * lib/gl_list.c: New file.
44037 * lib/gl_array_list.h: New file.
44038 * lib/gl_array_list.c: New file.
44039 * lib/gl_carray_list.h: New file.
44040 * lib/gl_carray_list.c: New file.
44041 * lib/gl_linked_list.h: New file.
44042 * lib/gl_linked_list.c: New file.
44043 * lib/gl_anylinked_list1.h: New file.
44044 * lib/gl_anylinked_list2.h: New file.
44045 * lib/gl_avltree_list.h: New file.
44046 * lib/gl_avltree_list.c: New file.
44047 * lib/gl_anyavltree_list1.h: New file.
44048 * lib/gl_anyavltree_list2.h: New file.
44049 * lib/gl_rbtree_list.h: New file.
44050 * lib/gl_rbtree_list.c: New file.
44051 * lib/gl_anyrbtree_list1.h: New file.
44052 * lib/gl_anyrbtree_list2.h: New file.
44053 * lib/gl_anytree_list1.h: New file.
44054 * lib/gl_anytree_list2.h: New file.
44055 * lib/gl_linkedhash_list.h: New file.
44056 * lib/gl_linkedhash_list.c: New file.
44057 * lib/gl_anyhash_list1.h: New file.
44058 * lib/gl_anyhash_list2.h: New file.
44059 * lib/gl_avltreehash_list.h: New file.
44060 * lib/gl_avltreehash_list.c: New file.
44061 * lib/gl_rbtreehash_list.h: New file.
44062 * lib/gl_rbtreehash_list.c: New file.
44063 * lib/gl_anytreehash_list1.h: New file.
44064 * lib/gl_anytreehash_list2.h: New file.
44066 * lib/gl_oset.h: New file.
44067 * lib/gl_oset.c: New file.
44068 * lib/gl_array_oset.h: New file.
44069 * lib/gl_array_oset.c: New file.
44070 * lib/gl_avltree_oset.h: New file.
44071 * lib/gl_avltree_oset.c: New file.
44072 * lib/gl_rbtree_oset.h: New file.
44073 * lib/gl_rbtree_oset.c: New file.
44074 * lib/gl_anytree_oset.h: New file.
44076 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44078 * m4/mkancesdirs.m4: New file.
44079 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44080 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44081 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44084 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44086 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44087 * lib/mkancesdirs.h: New files.
44088 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44089 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44090 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44091 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44092 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44093 callers changed. Revamp internals significantly, by not
44094 attempting to create directories that are temporarily more
44095 permissive than the final results. Do not attempt to use
44096 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44097 This removes some race conditions, fixes some bugs, and simplifies
44098 things. Use new dirchownmod function to do owner and mode changes.
44099 * lib/mkdir-p.h: Likewise.
44100 * lib/modechange.c (octal_to_mode): New function.
44101 (struct mode_change): New member mentioned.
44102 (make_node_op_equals): New arg mentioned. All callers changed.
44103 (mode_compile): Keep track of which mode bits the user has explicitly
44105 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44106 New arg PMODE_BITS, to keep track of which mode bits the user
44107 mentioned; it treats S_ISUID and S_ISGID speciall.
44108 All callers changed.
44109 * lib/modechange.h: Likewise.
44111 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44113 * MODULES.html.sh: Add mkancestors.
44114 * modules/mkancesdirs: New module.
44115 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44116 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44117 The chdir-safer and afs files are now orphans; I'll remove them
44118 unless someone speaks up.
44119 Add lib/dirchownmod.c, lib/dirchownmod.h.
44120 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44121 Add lchown, mkancesdirs.
44122 (Maintainer): Add self.
44124 2006-07-15 Karl Berry <karl@gnu.org>
44126 * gnulib-tool: help message wording/arrangement.
44128 2006-07-14 Simon Josefsson <jas@extundo.com>
44130 * doc/gnulib.texi (Libtool and Windows): New section.
44132 2006-07-12 Simon Josefsson <jas@extundo.com>
44134 * modules/gendocs (License): Fix license, approved by Karl.
44136 2006-07-12 Eric Blake <ebb9@byu.net>
44138 * MODULES.html.sh: Add gendocs.
44140 2006-07-11 Eric Blake <ebb9@byu.net>
44142 * modules/fdl: New module, to install doc/fdl.texi.
44143 * MODULES.html.sh: Add new section for documentation modules.
44144 * gnulib-tool: Avoid space-tab.
44145 (--doc-base): New option, to manage files from doc.
44147 2006-07-11 Eric Blake <ebb9@byu.net>
44149 * m4/absolute-header.m4: Fix comments to match recent change.
44151 2006-07-11 Eric Blake <ebb9@byu.net>
44153 * gnulib-tool: List --doc-base before --tests-base.
44155 2006-07-11 Derek R. Price <derek@ximbiot.com>
44157 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44159 2006-07-11 Bruno Haible <bruno@clisp.org>
44161 * README: Mention where to put documentation.
44163 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44165 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44167 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44169 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44172 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44174 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44175 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44176 "no/such/file/stdint.h" when there is no such file, so that
44177 the resulting C code can be parsed by dodgy compilers.
44178 Problems reported by Bob Proulx.
44180 2006-07-10 Derek R. Price <derek@ximbiot.com>
44182 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44183 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44184 macros into the GNU _D_EXACT_NAMLEN.
44185 * lib/savedir.c: Likewise.
44186 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44188 2006-07-10 Derek R. Price <derek@ximbiot.com>
44189 and Paul Eggert <eggert@cs.ucla.edu>
44191 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44193 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44194 macros into the GNU _D_EXACT_NAMLEN.
44196 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44198 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44199 around the absolute name, to work around a problem with the HP-UX
44200 11.23 native C compiler, reported by Bob Proulx.
44202 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44204 * doc/maintain.texi, make-stds.texi: Sync from
44205 <http://savannah.gnu.org/projects/gnustandards>.
44207 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44209 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44211 2006-07-09 Jim Meyering <jim@meyering.net>
44213 * m4/glob.m4: Remove a doubled word in a comment.
44215 2006-07-09 Jim Meyering <jim@meyering.net>
44217 * lib/argp-pv.c: Remove a doubled word in a comment.
44218 * lib/check-version.c (check_version): Likewise.
44219 * lib/javacomp.c (compile_java_class): Likewise.
44221 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44223 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44224 for the benefit of people using Autoconf 2.60. If you want to
44225 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44226 (or m4/onceonly.m4, if pre-2.57) manually.
44228 2006-07-08 Jim Meyering <jim@meyering.net>
44230 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44232 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44233 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44236 2006-07-08 Jim Meyering <jim@meyering.net>
44238 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44240 2006-07-07 Simon Josefsson <jas@extundo.com>
44242 * tests/test-crc.c: Change expected crc value, the test vector
44243 were probably computed using the old broken crc.c?
44245 2006-07-06 Simon Josefsson <jas@extundo.com>
44247 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44248 now the canonical place for the M4 file).
44250 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44251 from the sys_socket dependency now.
44253 * modules/inet_pton (Files): Ditto.
44255 * modules/inet_ntop (Files): Ditto.
44257 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44259 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44260 not gl_PREREQ_GETUSERSHELL.
44262 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44264 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44265 with only one argument, for Autoconf 2.60.
44266 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44267 expand to nothing, so add a shell command to avoid syntax error.
44268 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44270 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44272 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44274 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44276 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44277 no longer needed. Check for isblank decl.
44278 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44279 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44282 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44284 * lib/getloadavg.c: Use __VMS, not VMS.
44285 * lib/getopt.c: Likewise.
44286 * lib/getpagesize.h: Likewise.
44287 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44288 and probably does not work.
44290 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44292 * lib/.cppi-disable: Add wcwidth.
44293 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44294 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44295 (ISGRAPH): Remove. All uses changed to isgraph.
44296 (FOLD) [!defined _LIBC]: Remove special case.
44297 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44298 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44300 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44303 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44305 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44306 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44307 brackets. Other minor changes to suppress some compiler
44310 2006-07-06 Derek R. Price <derek@ximbiot.com>
44311 and Paul Eggert <eggert@cs.ucla.edu>
44313 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44314 of invoking obsolescent AC_HEADER_DIRENT macro.
44315 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44316 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44317 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44318 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44319 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44320 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44321 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44322 * m4/readdir.m4: Remove; no longer needed.
44324 2006-07-06 Derek R. Price <derek@ximbiot.com>
44325 and Paul Eggert <eggert@cs.ucla.edu>
44327 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44328 Don't worry about this obsolete case any more.
44329 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44331 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44332 worry about this obsolete case any more.
44333 * lib/fts.c: Likewise.
44334 * lib/getcwd.c: Likewise.
44335 * lib/glob.h: Likewise.
44336 * lib/savedir.c: Likewise.
44338 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44340 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44341 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44342 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44345 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44346 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44347 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44349 * m4/getdate.m4 (gl_GETDATE): Likewise.
44350 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44351 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44352 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44353 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44354 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44355 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44356 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44359 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44361 * lib/memcasecmp.c: Include <limits.h>.
44362 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44363 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44364 Don't assume isdigit succeeds only on '0' through '9'.
44366 2006-07-05 Eric Blake <ebb9@byu.net>
44368 * modules/getaddrinfo (Depends-on): Add snprintf.
44370 2006-07-05 Eric Blake <ebb9@byu.net>
44372 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44373 to avoid 'header present but could not be compiled' on cygwin.
44375 2006-07-05 Eric Blake <ebb9@byu.net>
44377 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44378 missing from netdb.h.
44379 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44381 2006-07-05 Derek R. Price <derek@ximbiot.com>
44383 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44385 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44386 * m4/getdate.m4 (gl_GETDATE): Likewise.
44387 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44388 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44389 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44390 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44391 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44393 2006-07-05 Derek R. Price <derek@ximbiot.com>
44395 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44396 All uses of is_space replaced by isspace.
44397 * lib/exit.h: Don't talk about STDC_HEADERS.
44398 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44399 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44400 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44401 replaced by isprint etc.
44402 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44403 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44404 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44405 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44406 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44407 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44409 2006-07-05 Bruno Haible <bruno@clisp.org>
44411 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44412 the function exists, before testing against AIX.
44413 Reported by Martin Lambers <marlam@marlam.de>.
44415 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44417 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44418 From Mark D. Baushke.
44420 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44422 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44423 to the absolute name, not just one, to bypass Sun C 5.8's
44424 "warning: #include of /usr/include/... may be non-portable".
44426 2006-07-04 Eric Blake <ebb9@byu.net>
44428 * modules/dirname-tests: New test module.
44429 * tests/test-dirname.c: New file, replacing dirname.c
44430 TEST_DIRNAME section that was recently deleted.
44432 2006-07-04 Bruno Haible <bruno@clisp.org>
44434 Assume ANSI C header files and <ctype.h> functions.
44435 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44436 (mbsnwidth): Use isprint, iscntrl instead.
44438 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44440 Merge from coreutils.
44441 * MODULES.html.sh: Add xstrtold.
44442 * modules/xstrtold: New file.
44443 * modules/cycle-check (Files): Add lib/same-inode.h.
44444 * modules/dirname (Files): Add m4/double-slash-root.m4.
44445 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44446 * modules/mkdir-p (Files): Add lib/same-inode.h.
44447 * modules/same (Files): Add lib/same-inode.h.
44449 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44451 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44452 This is to keep the terminology clean; POSIX talks about
44453 "absolute pathnames", not "full pathnames", but the GNU
44454 Coding Standards say to use "path" for something else;
44455 so use "absolute" to keep both sides happy.
44456 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44457 Set gl_absolute_header, not gl_full_header_path.
44458 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44459 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44462 Merge from coreutils.
44464 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44466 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44467 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44468 want to require the building of c-strtod.o.
44469 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44470 needs -lm directly.
44471 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44473 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44475 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44476 --as-needed option if available. Problem reported by Albert Chin in
44477 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44478 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44479 cc merely issues a bunch of annoying warnings for --as-needed
44480 (this problem was reported by Bob Proulx). Also, try linking with
44481 -lm to detect a bug in binutils 2.16 (this problem was reported
44482 by Ralf Wildenhues).
44484 2006-06-18 Jim Meyering <jim@meyering.net>
44486 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44487 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44489 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44490 also check for glibc-2.4's abort-inducing bug.
44492 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44493 Low-probability clean-up should be to use rmdir to get rid of
44494 the just-created directory, not unlink.
44496 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44497 configure fail, and request a bug report to inform us about it.
44498 Add a comment that, barring reports to the contrary, in 2007 we'll
44499 assume ftruncate is universally available.
44501 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44503 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44505 2006-03-12 Jim Meyering <jim@meyering.net>
44507 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44508 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44509 * m4/same.m4 (gl_SAME): Likewise.
44510 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44512 2006-03-11 Eric Blake <ebb9@byu.net>
44514 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44515 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44516 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44517 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44519 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44521 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44522 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44523 reported by Mark D. Baushke, one in
44524 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44526 Merge from coreutils.
44528 * lib/.cppi-disable: Add stdint_.h.
44529 * lib/.cvsignore: Add stdint.h.
44531 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44533 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44534 both double and long double versions.
44535 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44536 * lib/xstrtold.c: New file.
44537 * lib/xstrtod.h (xstrtold): New decl.
44539 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44541 * lib/filemode.c (setst): Remove.
44542 (strmode): Rewrite to avoid setst. This makes the code shorter,
44543 (arguably) clearer, and the generated code is a bit smaller on my
44544 Debian GNU/Linux stable x86 host.
44546 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44548 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44549 Assume that filemode.h includes sys/types.h and sys/stat.h.
44550 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44551 (ftypelet): Reorder to put common cases first, for efficiency.
44552 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44554 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44555 of 10, for compatibility with FreeBSD. All callers changed.
44556 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44557 types that can't be deduced solely from st_mode. First arg is now a
44559 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44560 (strmode): Renamed from mode_string.
44561 (filemodestring): New decl.
44562 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44563 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44565 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44567 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44569 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44570 fsusage.h now does that. Include fsusage.h first, to test interface.
44571 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44572 at most one method (the old code could have generated decls that
44573 didn't conform to C89, not that this was ever exercised).
44574 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44576 2006-03-19 Jim Meyering <jim@meyering.net>
44578 Work even in a chroot where d_ino values for entries in "/"
44579 don't match the stat.st_ino values for the same names.
44580 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44581 number, iterate through all entries again, using lstat instead.
44582 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44583 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44585 * lib/getcwd.c (__getcwd): Clarify a comment.
44586 Use memcpy in place of a call to strcpy.
44588 2006-03-12 Jim Meyering <jim@meyering.net>
44590 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44591 matches that of the current directory (which we're about to chdir ".."
44592 out of), then save the dev-ino of the parent, instead.
44594 * lib/same-inode.h (SAME_INODE): New file/macro.
44595 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44596 Include "same-inode.h", instead.
44597 * lib/same.c: Likewise.
44598 * lib/cycle-check.h: Include "same-inode.h".
44599 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44600 * lib/cycle-check.c (SAME_INODE): Remove definition.
44601 * lib/root-dev-ino.h: Include "same-inode.h".
44603 2006-03-11 Eric Blake <ebb9@byu.net>
44605 * lib/same.c (same_name): s/base_name/last_component/
44606 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44607 * lib/filenamecat.c (file_name_concat): Likewise.
44609 2006-03-11 Eric Blake <ebb9@byu.net>,
44610 Paul Eggert <eggert@cs.ucla.edu>
44612 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44613 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44615 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44616 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44617 (last_component): New method.
44618 * lib/dirname.c (dir_len): Determine when drive letters need a
44619 subsequent slash. Preserve // when it is special.
44620 (dir_name): Don't append dot when drive letter is absolute.
44621 [TEST_DIRNAME]: Move into a full-blown gnulib test.
44622 * lib/basename.c (base_name): New semantics - malloc the result.
44623 Preserve // when it is special. Preserve relative files that look
44624 like drive letters.
44625 (base_len): Preserve // when it is special.
44626 (last_component): New method, similar to old base_name semantics.
44627 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44628 base_name. Strip redundant slashes from ///.
44630 2006-07-03 Jim Meyering <jim@meyering.net>
44632 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44633 macro is used before the first cycle_check call.
44635 2006-07-03 Eric Blake <ebb9@byu.net>
44637 * modules/dirname (Depends-on): Add xstrndup.
44639 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44641 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44642 test cases, so that config.log is a bit easier to follow.
44644 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44646 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44647 both are 64 bits, since this seems to be the tradition, and this
44648 prevents gcc -Wformat from warning about usages with PRIuMAX. If
44649 we ever run into a host that prefers long long to long in this
44650 case, we'll need another configure-time test. Problem reported by
44653 2006-07-02 Eric Blake <ebb9@byu.net>
44655 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44657 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44659 * modules/inttypes (Depends-on): No longer depends on stdint.
44660 * modules/stdint (Description): Say more about assumptions.
44661 Say that the fast types might differ. Say macros are used.
44662 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
44663 (Makefile.am): Revise list of substituted symbols to match
44665 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44666 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44667 * tests/test-stdint.c (verify_same_types)
44668 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44669 the code conforms to C99/C89.
44670 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44671 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44673 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44675 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44676 but fix a bug, by requiring at least 64 bits.
44677 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44678 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44679 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
44680 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44682 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44683 changes. Make 2.59 a prerequisite. Check and substitute for
44684 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
44685 inttypes.h. Do not use special include files; just use the
44686 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
44687 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
44688 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44689 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44690 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44691 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44692 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44693 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44694 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44695 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44696 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44697 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44698 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44699 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44700 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44701 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44702 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44703 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44704 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44705 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44706 WINT_MAX. Check for C99 conformance more strictly, by detecting
44707 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
44708 not check for things that C99 does not require, e.g., int8_t. If
44709 a test isn't needed unless <stdint.h> isn't working, and is
44710 unlikely to be needed for any other reason, then don't do it
44711 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
44712 size_t, since we assume C89 freestanding at least. Do not check
44713 for sig_atomic_t, wchar_t, or wint_t, since the code now does
44714 the right thing even if the types are not defined. Instead use:
44715 (gl_STDINT_TYPE_PROPERTIES): New macro.
44716 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
44717 testing whether <sys/types.h> clashes, as Autoconf does this for
44718 us now. All uses removed.
44719 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44720 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44721 (gl_CHECK_TYPE_SAME):
44722 Remove; no longer needed.
44723 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44724 exists, since we'll return 0 anyway in that case.
44725 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44727 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44729 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44730 possible collision with system files.
44731 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44732 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44733 WCHAR_MIN and WCHAR_MAX in this case.
44734 (<stddef.h>): Do not include; no longer needed.
44735 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44736 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44737 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44738 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44739 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44740 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44741 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44742 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44743 !defined(__c99))]: Include in this case too, since it's harmless
44745 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44746 dangerous to do so.
44747 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44748 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44749 (_STDINT_MIN, _STDINT_MAX): New macros.
44750 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44751 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44752 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44753 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44754 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44755 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44756 macros, not typedefs; this simplifies things quite a bit.
44757 Use long int for all types narrower than int64_t.
44758 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44759 Define in terms of long long int or int64_t or long int,
44760 not int64_t or int32_t. This saves some compile-time testing.
44761 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44762 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44763 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44764 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44765 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44766 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44767 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44768 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44769 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44770 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44771 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44772 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44773 undef any previous version and define our own version, for
44774 simplicity and consistency with the new macros for types.
44775 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44776 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44777 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44778 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
44779 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44780 @WINT_T_SUFFIX@ to keep things simple here.
44781 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44782 Simplify by assuming typical 8/16/32/64 host, since we're
44783 already doing that elsewhere anyway.
44784 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44785 and assume long long int is 64 bits if available. This
44786 speeds up 'configure'.
44788 2006-07-01 Eric Blake <ebb9@byu.net>
44790 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44791 Reported by Andreas Buening.
44793 2006-07-01 Eric Blake <ebb9@byu.net>
44795 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44797 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44799 * lib/getaddrinfo.c: fixed typo
44801 2006-06-29 Jim Meyering <jim@meyering.net>
44803 * modules/strftime (Maintainer): Add my name, since with the
44804 FPRINTFTIME changes strftime.c has forked from glibc.
44806 2006-06-29 Eric Blake <ebb9@byu.net>
44808 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44810 2006-06-29 Eric Blake <ebb9@byu.net>
44812 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44814 2006-06-29 Eric Blake <ebb9@byu.net>
44816 * lib/stat_.h: New file.
44818 2006-06-29 Eric Blake <ebb9@byu.net>
44820 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44821 unused static function.
44823 2006-06-29 Eric Blake <ebb9@byu.net>
44825 * doc/functions.texi (Function Portability): Document missing lstat
44828 2006-06-29 Eric Blake <ebb9@byu.net>
44830 * MODULES.html.sh: Add sys_stat.
44831 * modules/sys_stat: New module.
44832 * modules/mkstemp (Depends-on): Add sys_stat.
44834 2006-06-29 Derek R. Price <derek@ximbiot.com>
44836 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44838 2006-06-29 Derek R. Price <derek@ximbiot.com>
44840 * m4/c-bs-a.m4: Removed.
44842 2006-06-29 Derek R. Price <derek@ximbiot.com>
44844 * lib/strftime.c: Assume strftime() exists.
44846 2006-06-29 Derek Price <derek@ximbiot.com>
44848 * modules/c-bs-a: Removed - \a is C89.
44849 * MODULES.html.sh: Remove c-bs-a.
44851 2006-06-29 Bruno Haible <bruno@clisp.org>
44853 * modules/wcwidth (License): Change to LGPL.
44855 2006-06-28 Simon Josefsson <jas@extundo.com>
44857 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
44860 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44863 2006-06-28 Simon Josefsson <jas@extundo.com>
44865 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44867 2006-06-28 Simon Josefsson <jas@extundo.com>
44869 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44870 functions there. It will succeed on Windows XP, but on Windows
44871 2000 and (presumably) earlier, it will fail, and use the internal
44873 (use_win32_p): New function.
44874 (getaddrinfo): Use strtoul on servname, to support numeric ports.
44875 Support AI_NUMERICSERV to disable getservbyname.
44876 (getnameinfo): New function, only supports
44877 NI_NUMERICHOST|NI_NUMERICSERV for now.
44879 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44880 only have some of them. Add AI_NUMERICSERV. Add prototype for
44883 2006-06-28 Eric Blake <ebb9@byu.net>
44885 * modules/wcwidth: New file.
44886 * modules/mbchar (Depends-on): Add wcwidth.
44887 * modules/mbswidth (Depends-on): Add wcwidth.
44888 * MODULES.html.sh: Add wcwidth.
44890 2006-06-28 Eric Blake <ebb9@byu.net>
44892 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44893 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44895 2006-06-28 Eric Blake <ebb9@byu.net>
44897 * lib/xvasprintf.h: Fix comments.
44899 2006-06-28 Eric Blake <ebb9@byu.net>
44901 * lib/mbchar.h (wcwidth): Include wcwidth.h.
44902 * lib/mbswidth.c (wcwidth): Move from here...
44903 * lib/wcwidth.h: ...to this new file.
44905 2006-06-28 Derek R. Price <derek@ximbiot.com>
44907 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44909 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44911 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44913 2006-06-28 Derek R. Price <derek@ximbiot.com>
44915 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
44916 Autoconf 2.60 says this stuff was obsolete.
44918 2006-06-28 Bruno Haible <bruno@clisp.org>
44920 * modules/wcwidth (Files): Add m4/wchar_t.m4.
44922 2006-06-28 Bruno Haible <bruno@clisp.org>
44924 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44927 2006-06-28 Bruno Haible <bruno@clisp.org>
44929 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44930 declaration for wcwidth.
44931 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44933 2006-06-28 Bruno Haible <bruno@clisp.org>
44935 * lib/mkdtemp.c [MINGW]: Include <io.h>.
44936 (mkdir): Define using _mkdir.
44938 2006-06-28 Bruno Haible <bruno@clisp.org>
44940 * lib/getaddrinfo.h: Fix POSIX URL.
44941 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44943 (use_win32_p): Make static.
44944 (getaddrinfo): Reject service name if it is empty or does not consist
44945 solely of decimal digits, or if its value is > 65535.
44946 (getnameinfo): Remove useless casts.
44948 2006-06-27 Simon Josefsson <jas@extundo.com>
44950 * modules/sys_select: New file, suggested by Bruno Haible, Paul
44951 Eggert and Martin Lambers.
44953 2006-06-27 Simon Josefsson <jas@extundo.com>
44955 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44956 Eggert and Martin Lambers.
44958 2006-06-27 Bruno Haible <bruno@clisp.org>
44960 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44961 result to 0, not to empty.
44962 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44964 2006-06-27 Bruno Haible <bruno@clisp.org>
44966 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44968 2006-06-26 Simon Josefsson <jas@extundo.com>
44970 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44973 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
44975 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44976 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
44977 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44979 2006-06-26 Mark D. Baushke <mdb@gnu.org>
44981 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44983 2006-06-26 Bruno Haible <bruno@clisp.org>
44985 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44987 2006-06-26 Bruno Haible <bruno@clisp.org>
44989 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44991 2006-06-26 Bruno Haible <bruno@clisp.org>
44993 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44994 SGI C compiler in pre-C99 mode.
44995 Suggested by Mark D. Baushke and Larry Jones.
44997 2006-06-26 Bruno Haible <bruno@clisp.org>
44999 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45001 Reported by Mark D. Baushke and Larry Jones.
45003 2006-06-26 Bruno Haible <bruno@clisp.org>
45005 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45007 Suggested by Mark D. Baushke and Larry Jones.
45009 2006-06-23 Simon Josefsson <jas@extundo.com>
45010 Bruno Haible <bruno@clisp.org>
45012 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45013 Emit mostlyclean-local rule.
45014 (func_emit_tests_Makefile_am): Likewise.
45015 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45017 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45019 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45021 2006-06-23 Bruno Haible <bruno@clisp.org>
45023 * tests/test-stdint.c: Update to match ISO C 99 Technical
45026 2006-06-23 Bruno Haible <bruno@clisp.org>
45028 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45030 2006-06-23 Bruno Haible <bruno@clisp.org>
45032 * lib/stdint_.h: Treat IRIX like OpenBSD.
45034 2006-06-23 Bruno Haible <bruno@clisp.org>
45036 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45037 ISO C 99 Technical Corrigendum 1.
45039 2006-06-22 Simon Josefsson <jas@extundo.com>
45041 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45044 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45046 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45047 needed. Some compiler complained about some of them. Problem reported
45049 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45051 2006-06-21 Simon Josefsson <jas@extundo.com>
45053 * tests/test-getaddrinfo.c: New file.
45055 * modules/getaddrinfo-tests: New file.
45057 * MODULES.html.sh: Add inet_pton.
45059 * modules/inet_pton: New file.
45061 2006-06-21 Simon Josefsson <jas@extundo.com>
45063 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45064 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45065 of using the (limited) gnulib implementation on Windows XP.
45067 * m4/inet_pton.m4: New file.
45069 2006-06-21 Simon Josefsson <jas@extundo.com>
45071 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45074 * lib/socket_.h: Don't define WINVER.
45076 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45077 slightly modified to work in gnulib.
45079 2006-06-21 Simon Josefsson <jas@extundo.com>
45081 * doc/gnulib.texi (Windows sockets): Add.
45083 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45085 * lib/read-file.c (fread_file): Start with buffer allocation of
45086 0 bytes rather than 1 byte; this simplifies the code.
45087 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45088 code to free buffer and save/restore errno.
45089 (internal_read_file): Remove unused local.
45091 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45093 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45094 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45095 Problem reported by Denis Excoffier in
45096 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45098 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45100 * modules/sys_socket, modules/socklen: Include sys/types since
45101 FreeBSD 4.x's sys/socket.h needs it.
45103 2006-06-19 Simon Josefsson <jas@extundo.com>
45105 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45107 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45109 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45111 2006-06-19 Bruno Haible <bruno@clisp.org>
45113 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45114 and FULL_PATH_INTTYPES_H in angle brackets.
45115 Reported by Mark D. Baushke <mdb@gnu.org>.
45117 2006-06-17 Eric Blake <ebb9@byu.net>
45119 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45122 2006-06-17 Bruno Haible <bruno@clisp.org>
45124 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45127 2006-06-17 Bruno Haible <bruno@clisp.org>
45129 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45130 whether errno is declared. Assume <errno.h> declares errno.
45132 2006-06-17 Bruno Haible <bruno@clisp.org>
45134 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45136 2006-06-17 Bruno Haible <bruno@clisp.org>
45138 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45139 problem on Solaris 2.5.1.
45141 2006-06-16 Eric Blake <ebb9@byu.net>
45143 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45144 * lib/unicodeio.c [!defined errno]: Likewise.
45145 * lib/strtol.c [!defined errno]: Likewise.
45146 * lib/strtod.c [!defined errno]: Likewise.
45148 2006-06-15 Eric Blake <ebb9@byu.net>
45150 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45152 2006-06-15 Eric Blake <ebb9@byu.net>
45154 * config/srclist.txt (ssize_t.m4): Lose sync.
45156 2006-06-15 Bruno Haible <bruno@clisp.org>
45158 * modules/stdint (Files): Include m4/full-header-path.m4,
45159 m4/size_max.m4, m4/wchar_t.m4.
45160 (Makefile.am): Many more substitutions.
45161 * modules/stdint-tests: New file.
45162 * tests/test-stdint.c: New file.
45164 2006-06-15 Bruno Haible <bruno@clisp.org>
45166 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45167 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45168 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45169 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45170 gl_CHECK_TYPE_SAME): New macros.
45172 2006-06-15 Bruno Haible <bruno@clisp.org>
45174 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45176 2006-06-15 Bruno Haible <bruno@clisp.org>
45178 * lib/stdint_.h: Rewritten to be fully auto-configured.
45179 Fixes bug on HP-UX/IA64.
45181 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45183 * lib/getdate.y (__attribute__): Don't define if already defined.
45184 Problem reported by Larry Jones.
45185 * lib/utimens.c (__attribute__): Likewise.
45187 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45189 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45190 reported by Andreas Schwab.
45192 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45193 Bruno Haible <bruno@clisp.org>
45195 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45196 check for the declaration of strnlen and a run test that exposes the
45197 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45200 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45201 Bruno Haible <bruno@clisp.org>
45203 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45205 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45207 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45208 compile test, for Tru64 4.0D.
45210 2006-05-28 Karl Berry <karl@gnu.org>
45212 * config/srclist.txt (printf-args.c): lose sync.
45214 2006-05-26 Martin Lambers <marlam@marlam.de>
45216 * lib/getpass.c: Updates the test for the native W32 API, and adds
45217 missing includes, thus fixing compilation warnings.
45219 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45221 * lib/exclude.c (exclude_fnmatch): New function.
45222 (excluded_file_name): Call exclude_fnmatch.
45223 * lib/exclude.h (excluded_file_name): New prototype
45225 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45227 * lib/tempname.c (small_open, large_open): New macros.
45228 (__open, __open64) [!_LIBC]: Remove.
45229 (__gen_tempname): Use small_open and large_open instead of __open
45230 and __open64. This fixes a portability bug on HP-UX 11.11i
45231 reported by Simon Wing-Tang in
45232 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45234 2006-05-24 Bruno Haible <bruno@clisp.org>
45236 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45237 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45238 Reported by Thorsten Maerz <torte@netztorte.de> via
45239 Aaron Stone <aaron@serendipity.cx>.
45241 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45243 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45244 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45245 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45246 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45247 not really conditional on the cache.
45248 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45250 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45252 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45253 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45254 (my_usleep): Don't mishandle maximum value.
45256 2006-05-19 Jim Meyering <jim@meyering.net>
45258 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45260 2006-05-17 Bruno Haible <bruno@clisp.org>
45262 Cygwin portability.
45263 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45265 2006-05-17 Bruno Haible <bruno@clisp.org>
45267 * lib/stdint_.h: Fix recognition of Cygwin.
45269 2006-05-15 Bruno Haible <bruno@clisp.org>
45271 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45272 on libtool patch by Ralf Wildenhues.
45274 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45276 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45277 test for C99 conformance; (bool) 0.5 is an integer constant
45278 expression, but (bool) -0.5 is not. Problem reported by Fedor
45279 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45281 2006-05-11 Simon Josefsson <jas@extundo.com>
45283 * m4/xvasprintf.m4: Fix obvious typo.
45285 2006-05-11 Jim Meyering <jim@meyering.net>
45287 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45290 2006-05-10 Simon Josefsson <jas@extundo.com>
45292 * lib/md4.c: Typo fix, update copyright years.
45293 (K1, K2): Don't use L because it turn computations into 64-bit on
45296 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45298 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45299 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45300 unwanted sign propagation, e.g., on hosts with 64-bit int.
45301 There still are some problems with reeelly weird theoretical hosts
45302 (e.g., 33-bit int) but it's not worth worrying about now.
45303 * lib/sha1.c (rol): Likewise.
45304 (K1, K2, K3, K4): Remove unnecessary L suffix.
45306 2006-05-10 Bruno Haible <bruno@clisp.org>
45308 * lib/des.c: Cast to avoid warnings.
45310 2006-05-09 Bruno Haible <bruno@clisp.org>
45312 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45313 (Depends-on): Depend also on xsize, stdarg.
45314 (configure.ac): Add gl_XVASPRINTF.
45316 2006-05-09 Bruno Haible <bruno@clisp.org>
45318 * m4/xvasprintf.m4: New file.
45320 2006-05-09 Bruno Haible <bruno@clisp.org>
45322 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45323 (EOVERFLOW): Define fallback value.
45324 (xstrcat): New function.
45325 (xvasprintf): Recognize the special case of a string concatenation.
45327 2006-05-08 Eric Blake <ebb9@byu.net>
45329 * gnulib-tool (func_version): Base copyright year on CVS date.
45330 (func_emit_copyright_notice): New function.
45331 (func_emit_lib_Makefile_am): Use it.
45332 (func_emit_tests_Makefile_am): Likewise.
45333 (func_import): Likewise.
45335 2006-05-08 Bruno Haible <bruno@clisp.org>
45337 * modules/stdarg: New file.
45338 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45340 2006-05-08 Bruno Haible <bruno@clisp.org>
45342 * m4/stdarg.m4: New file, from GNU gettext.
45344 2006-05-08 Bruno Haible <bruno@clisp.org>
45346 * config/srclist.txt (build-aux/config.rpath): different from latest
45349 2006-05-08 Bruno Haible <bruno@clisp.org>
45351 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45353 2006-05-05 Jim Meyering <jim@meyering.net>
45355 * m4/warning.m4: New file, derived from bison's file by the same name.
45357 2006-05-03 Bruno Haible <bruno@clisp.org>
45359 * lib/stdint_.h: Shorter URL.
45360 * lib/inttypes.h: Likewise.
45362 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45364 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45366 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45368 * lib/verify.h: Document the internals better. Most of this change
45369 was written by Bruno Haible.
45371 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45373 * doc/verify.texi: New file, partly based on a proposal by
45376 2006-05-02 Bruno Haible <bruno@clisp.org>
45378 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45380 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45382 2006-04-29 Bruno Haible <bruno@clisp.org>
45384 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45385 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45387 2006-04-29 Bruno Haible <bruno@clisp.org>
45389 * gnulib-tool: Make --update option actually work.
45391 2006-04-29 Bruno Haible <bruno@clisp.org>
45393 * doc/gcd.texi: New file.
45394 * doc/gnulib.texi: Include it.
45396 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45398 * lib/getdate.y (get_date): When adding relative date, start with the
45399 initial time, not with the result of the first mktime call.
45401 2006-04-25 Bruno Haible <bruno@clisp.org>
45403 * gnulib-tool (func_import): Output the include directives in three
45404 blocks, sorted separately.
45405 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45407 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45409 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45410 to define main with arguments, for C++. Reported by Eric Blake.
45411 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45412 Prefer 'int main ()' to 'int main (void)', for C++.
45413 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45414 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45415 for 'main', for C99 and C++.
45417 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45419 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45420 Don't assume that exit status -1 is valid.
45421 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45422 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45423 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45424 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45425 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45426 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45427 not AC_TRY_RUN. Use return, not exit. Don't assume that
45428 functions can be used without declaring them, or that you can
45429 exit with status -1.
45430 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45432 2006-04-24 Karl Berry <karl@gnu.org>
45434 * config/srclist.txt (longdouble.m4): sync lost.
45436 2006-04-24 Eric Blake <ebb9@byu.net>
45438 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45440 2006-04-24 Bruno Haible <bruno@clisp.org>
45442 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45443 poll() implementation in AIX.
45444 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45446 2006-04-24 Bruno Haible <bruno@clisp.org>
45448 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45449 assigned exactly once.
45451 2006-04-23 Claudio Fontana <claudio@gnu.org>
45452 Bruno Haible <bruno@clisp.org>
45454 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45455 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45458 2006-04-23 Bruno Haible <bruno@clisp.org>
45460 * modules/copy-file: Depend on unistd.
45461 * modules/execute: Likewise.
45462 * modules/fatal-signal: Likewise.
45463 * modules/findprog: Likewise.
45464 * modules/mkdtemp : Likewise.
45465 * modules/pipe: Likewise.
45466 * modules/wait-process: Likewise.
45468 2006-04-23 Bruno Haible <bruno@clisp.org>
45470 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45471 condition was already detected.
45472 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45474 2006-04-23 Bruno Haible <bruno@clisp.org>
45476 * lib/copy-file.c: Include <unistd.h> unconditionally.
45477 * lib/execute.c: Likewise.
45478 * lib/fatal-signal.c: Likewise.
45479 * lib/findprog.c: Likewise.
45480 * lib/mkdtemp.c: Likewise.
45481 * lib/pipe.h: Likewise.
45482 * lib/pipe.c: Likewise.
45483 * lib/wait-process.h: Likewise.
45485 2006-04-23 Bruno Haible <bruno@clisp.org>
45487 * gnulib-tool (func_usage): Fix --import description. Document
45489 (func_import): Create temporary file in a temporary directory, if
45490 --dry-run is specified. Silence errors from 'grep' when there are no
45491 m4 files in $m4dir.
45492 (func_create_testdir): Silence errors from 'grep' when there are no
45493 m4 files in $m4dir.
45494 Reported by Karl Berry <karl@freefriends.org>.
45496 2006-04-20 Bruno Haible <bruno@clisp.org>
45498 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45499 one argument, so that the code will be portable to Autoconf 2.60.
45500 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45501 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45502 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45504 2006-04-19 Derek Price <derek@ximbiot.com>
45505 Eric Blake <ebb9@byu.net>
45507 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45508 rather than "/full/path.h". Update comment to match. Shorten &
45509 generalize m4_translit call via AS_TR_CPP.
45511 2006-04-19 Derek Price <derek@ximbiot.com>
45512 Eric Blake <ebb9@byu.net>
45514 * lib/inttypes.h: Correct grammar in comment.
45516 2006-04-18 Derek Price <derek@ximbiot.com>
45517 Paul Eggert <eggert@cs.ucla.edu>
45519 * modules/inttypes: New file.
45520 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45522 2006-04-18 Derek Price <derek@ximbiot.com>
45523 Paul Eggert <eggert@cs.ucla.edu>
45525 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45528 2006-04-18 Derek Price <derek@ximbiot.com>
45529 Paul Eggert <eggert@cs.ucla.edu>
45531 * lib/inttypes.h: New file.
45532 * lib/strtoimax.c: Assume <inttypes.h>.
45534 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45536 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45537 isn't mounted. Problem reported by Kir Kolyshkin.
45539 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45541 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45542 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45544 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45547 2006-04-12 Eric Blake <ebb9@byu.net>
45549 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45550 is now done automatically by the corresponding Autoconf macro.
45552 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45554 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45557 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45559 Merge regex changes from libc, removing some of our
45560 POSIX-conformance changes that were rejected and redoing them in a
45561 less-intrusive way.
45563 * lib/regcomp.c (re_compile_internal, init_dfa):
45564 Length arg is now size_t, not Idx. All uses changed.
45565 (peek_token): Forward decl now says internal_function.
45566 (__re_error_msgid, __re_error_msgid_idx):
45567 Now static rather than extern with attribute_hidden.
45568 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45569 For some reason libc prefers K&R style defns for external functions.
45570 (regerror) [!defined _LIBC]: Likewise.
45571 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45572 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45573 (build_range_exp, build_collating_symbol):
45574 Use K&R-style defn.
45575 (re_compile_fastmap): Use '\0' to memset, not 0.
45576 (utf8_sb_map): Make the calculations more obvious.
45577 (init_dfa, parse_bracket_exp, build_charclass_op):
45578 Call calloc and cast result, as glibc does.
45579 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45580 (build_range_exp, build_collating_symbol):
45581 Now internal functions.
45583 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45585 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45586 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45587 Don't depend on VMS; depend on __VMS instead, for POSIX
45588 namespace cleanness.
45589 (regoff_t): Define to ssize_t, not long int.
45591 Remove the REG_ macros named below. Instead, make the old names
45592 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45594 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45595 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45596 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45597 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45598 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45599 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45600 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45601 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45602 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45603 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45604 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45605 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45606 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45607 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45608 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45609 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45610 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45612 Remove. All uses replaced by the old RE_* names.
45613 (RE_BACKSLASH_ESCAPE_IN_LISTS):
45614 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45615 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45616 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45617 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45618 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45619 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45620 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45621 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45622 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45623 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45624 Don't bother having these macros be independent of each others'
45625 values, since they no longer exist in the POSIX name space.
45627 Rename the following member names back to their old names,
45628 unless !__USE_GNU_REGEX. All uses changed back.
45629 (buffer): Renamed from re_buffer.
45630 (allocated): Renamed from re_allocated.
45631 (used): Renamed from re_used.
45632 (syntax): Renamed from re_syntax.
45633 (fastmap): Renamed from re_fastmap.
45634 (translate): Renamed from re_translate.
45635 (can_be_null): Renamed from re_can_be_null.
45636 (regs_allocated): Renamed from re_regs_allocated.
45637 (fastmap_accurate): Renamed from re_fastmap_accurate.
45638 (no_sub): Renamed from re_no_sub.
45639 (not_bol): Renamed from re_not_bol.
45640 (not_eol): Renamed from re_not_eol.
45641 (newline_anchor): Renamed from re_newline_anchor.
45642 (num_regs): Renamed from rm_num_regs.
45643 (start): Renamed from rm_start.
45644 (end): Renamed from rm_end.
45646 (free_state): Move up a bit.
45648 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45649 #define to be empty.
45650 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45651 when that is what is intended.
45652 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45653 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45655 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45656 All uses changed back to re_malloc, etc. It's now the caller's
45657 responsibility to check for overflow; all callers changed.
45658 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45659 (re_x2nrealloc): Remove.
45660 (free_state): Remove decl.
45662 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45663 (re_set_registers, re_exec):
45664 Use K&R-style defn.
45666 2006-01-31 Roland McGrath <roland@redhat.com>
45668 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45669 Reported by Mike Frysinger <vapier@gentoo.org>.
45671 2006-01-15 Andreas Jaeger <aj@suse.de>
45674 * lib/regex_internal.c (re_string_reconstruct): Adjust for
45675 build_wcs_upper_buffer change.
45676 (build_wcs_upper_buffer): Change return type.
45678 2005-12-10 Ulrich Drepper <drepper@redhat.com>
45680 * lib/regex_internal.h: Include <stdint.h> if available.
45682 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
45684 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45686 2005-10-14 Ulrich Drepper <drepper@redhat.com>
45688 * lib/regcomp.c: Adjust for changed secondary hash function.
45690 2005-09-30 Ulrich Drepper <drepper@redhat.com>
45692 * lib/regex.h: Pretty printing.
45693 Clean up namespace a bit.
45695 2005-09-30 Jakub Jelinek <jakub@redhat.com>
45697 * lib/regexec.c (update_cur_sifted_state, check_arrival,
45698 check_arrival_add_next_nodes): Avoid using uninitialized variable.
45700 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
45701 Ulrich Drepper <drepper@redhat.com>
45704 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
45706 (bitset_word_t): Renamed from bitset_word. All uses changed.
45708 2005-09-22 Ulrich Drepper <drepper@redhat.com>
45711 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45712 * lib/regcomp.c: Remove unnecessary uses of
45713 unsigned RE_TRANSLATE_TYPE.
45714 * lib/regex_internal.h: Likewise.
45715 * lib/regex_internal.c: Likewise.
45716 * lib/regexec.c: Likewise.
45717 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45719 2005-09-07 Ulrich Drepper <drepper@redhat.com>
45721 * lib/regexec.c (find_recover_state): Remove unnecessary
45723 (transit_state_bkref): Make DFA a const pointer.
45724 (get_subexp): Likewise.
45725 (check_arrival): Likewise.
45726 (update_cur_sifted_state): Likewise.
45727 (re_search_internal): Likewise.
45728 (prune_impossible_nodes): Likewise.
45729 (acquire_init_state_context): Likewise.
45730 (proceed_next_node): Likewise.
45731 (set_regs): Likewise.
45732 (free_fail_stack_return): Likewise.
45733 (check_arrival_expand_ecl): Mark DFA parameter as const.
45734 (check_arrival_expand_ecl_sub): Likewise.
45735 (check_subexp_limits): Likewise.
45736 (sub_epsilon_src_nodes): Likewise.
45737 (add_epsilon_src_nodes): Likewise.
45738 (merge_state_array): Likewise.
45739 (update_regs): Likewise.
45740 (build_trtable): Likewise.
45741 (sift_states_backward): Mark MCTX parameter as const.
45742 (build_sifted_states): Likewise.
45743 (update_cur_sifted_state): Likewise.
45744 (sift_states_mkref): Likewise.
45745 (check_arrival_expand_ecl): Mark eclosure as const.
45746 (check_dst_limits_calc_pos_1): Likewise.
45747 * lib/regex_internal.h (re_match_context_t): Make dfa a const
45750 2005-09-06 Ulrich Drepper <drepper@redhat.com>
45752 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45753 (transit_state_sb): Likewise.
45754 (transit_state_mb): Likewise.
45755 (sift_states_iter_mb): Likewise.
45756 (check_arrival_add_next_nodes): Likewise.
45757 (check_node_accept_bytes): Change first parameter to pointer-to-const.
45758 [_LIBC] (re_search_2_stub): Use mempcpy.
45760 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45761 mbrtowc for very simple UTF-8 case.
45763 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45764 a pointer-to-const.
45765 (re_acquire_state_context): Likewise.
45766 * lib/regex_internal.h: Adjust prototypes.
45768 * lib/regex.c: Prevent using C++ compilers.
45770 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45771 (re_acquire_state_context): Likewise.
45773 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45775 * modules/regex (Depends-on): Add ssize_t.
45777 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45779 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45782 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45784 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45786 2006-03-29 Mark D. Baushke <mdb@gnu.org>
45787 Bruno Haible <bruno@clisp.org>
45789 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45790 <sys/types.h> and <inttypes.h>.
45792 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45794 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45795 `__error_t_defined', so argp.h will not typedef the former.
45797 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
45799 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45800 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
45801 glibc names. Even if glibc is changed to conform to POSIX, the
45802 traditional names will be available anyway, since regex depends on
45803 the extensions module. Also, fix a longstanding typo in the
45804 implementation of Spencer ERE test #75 from grep 2.3. Problems
45805 reported by Emanuele Giaquinta. Also, change sense of cached
45806 variable, so that the message makes sense.
45808 2006-03-24 Simon Josefsson <jas@extundo.com>
45810 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45811 including some doc fixes.
45812 (base64_encode_alloc): Fix +1 bug on allocation failures.
45814 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45816 * lib/base64.c (base64_encode): Do not read past end of array with
45817 unsanitized input on systems with CHAR_BIT > 8.
45819 2006-03-24 Eric Blake <ebb9@byu.net>
45821 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45823 2006-03-22 Karl Berry <karl@gnu.org>
45825 * config/srclist.txt (*setenv.[ch]): get from coreutils.
45826 * config/srclistvars.sh (COREUTILS): new var.
45828 2006-03-17 Jim Meyering <jim@meyering.net>
45830 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45831 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45833 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
45835 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45836 no longer needs it. Instead, check that regoff_t is as least
45837 as wide as ptrdiff_t.
45839 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45840 so that our regex.h stays compatible with the installed regex.
45841 This is helpful for installers who configure --without-included-regex.
45842 Problem reported by Emanuele Giaquinta.
45844 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
45846 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45847 Typedef to long int, not to off_, as POSIX will likely change
45850 2006-03-15 Eric Blake <ebb9@byu.net>
45852 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45854 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
45856 * lib/argp-help.c (validate_uparams): Fix typo
45857 * lib/argp-parse.c (argp_default_options): Consistently begin help
45858 messages with a lowercase letter.
45860 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
45862 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
45863 overrun buffers and shouldn't be used (much as gets shouldn't be
45865 * lib/time_r.c (asctime_r, ctime_r): Likewise.
45867 2006-03-08 Simon Josefsson <jas@extundo.com>
45869 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45870 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45872 2006-03-08 Simon Josefsson <jas@extundo.com>
45874 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45875 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45877 2006-03-08 Simon Josefsson <jas@extundo.com>
45879 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45880 signal that configure disabled the device.
45882 2006-03-08 Simon Josefsson <jas@extundo.com>
45884 * build-aux/maint.mk: Fix refresh-po, to handle no translated
45887 2006-03-07 Simon Josefsson <jas@extundo.com>
45889 * modules/getopt (Depends-on): Add unistd.
45891 * modules/unistd: New file.
45893 2006-03-07 Simon Josefsson <jas@extundo.com>
45895 * modules/gc-random: New file.
45897 2006-03-07 Simon Josefsson <jas@extundo.com>
45899 * m4/unistd_h.m4: New file.
45901 2006-03-07 Simon Josefsson <jas@extundo.com>
45903 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45904 test to be side-effect free by storing the result in the cache
45905 variable gl_cv_lib_readline, and moving the assignment of
45906 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45907 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45909 2006-03-07 Simon Josefsson <jas@extundo.com>
45911 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
45912 error on missing devices (the functions will return an error).
45914 * m4/gc.m4: Move random stuff to gc-random.m4
45916 2006-03-07 Simon Josefsson <jas@extundo.com>
45918 * lib/unistd_.h: New file.
45920 2006-03-07 Simon Josefsson <jas@extundo.com>
45922 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45924 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45926 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45927 Problem reported by Juan Manuel Guerrero.
45929 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45931 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45933 * lib/getlogin_r.c: Likewise.
45934 * lib/getlogin_r.h: Likewise.
45935 * lib/glob.c: Likewise.
45936 * lib/pagealign_alloc.c: Likewise.
45937 * lib/unistd_.h: Remove; no longer needed.
45939 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45941 * MODULES.html.sh (Support for systems lacking POSIX:2001):
45943 * modules/c-stack (Depends-on): Add unistd.
45944 * modules/getlogin_r: Likewise.
45945 * modules/glob: Likewise.
45946 * modules/pagealign_alloc: Likewise.
45947 * modules/unistd (Files): Remove lib/unistd_.h.
45948 (EXTRA_DIST): Remove.
45949 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45951 (MOSTLYCLEANFILES): Remove unistd.h-t.
45953 2006-03-03 Simon Josefsson <jas@extundo.com>
45955 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45957 2006-03-03 Simon Josefsson <jas@extundo.com>
45959 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45962 2006-03-03 Simon Josefsson <jas@extundo.com>
45964 * build-aux/maint.mk: Add indent target.
45966 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45968 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45969 our replacement poll.h in any case, to avoid a differing
45970 declaration from a system header. Seen on AIX.
45972 2006-03-01 Simon Josefsson <jas@extundo.com>
45974 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45977 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
45979 * modules/gettime (Depends-on): Add extensions module.
45980 * modules/nanosleep (Depends-on): Likewise.
45981 * modules/settime (Depends-on): Likewise.
45983 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
45985 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45986 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45988 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45989 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45991 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45992 not "==". Reported by Ralf Wildenhues.
45994 2006-03-01 Karl Berry <karl@gnu.org>
45996 * doc/Copyright/request-*: new files, synced from gnuorg.
45998 2006-03-01 Karl Berry <karl@gnu.org>
46000 * config/srclist.txt (Copyright/*): new entries.
46002 2006-02-28 Simon Josefsson <jas@extundo.com>
46004 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46006 2006-02-27 Simon Josefsson <jas@extundo.com>
46008 * lib/base64.h: Indent #define's. From Jim Meyering
46009 <jim@meyering.net>.
46011 2006-02-27 Jim Meyering <jim@meyering.net>
46013 Revert the change of 2006-02-24, so these files can continue
46014 to be sync'd from gettext.
46015 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46018 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46020 * modules/intprops: New file.
46021 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46023 * modules/getloadavg (Files): Remove lib/intprops.h.
46024 (Depends-on): Add intprops.
46025 * modules/human: Likewise.
46026 * modules/inttostr: Likewise.
46027 * modules/openat: Likewise.
46028 * modules/sig2str: Likewise.
46029 * modules/userspec: Likewise.
46030 * modules/utimecmp: Likewise.
46031 * modules/xnanosleep: Likewise.
46032 * modules/xstrtol: Likewise.
46034 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46036 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46037 * modules/lock-tests (TESTS): Use $(EXEEXT).
46038 * modules/tls-tests: Likewise.
46039 * modules/argp-tests: Likewise.
46040 (check_PROGRAMS): New var, replacing...
46041 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46043 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46045 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46048 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46050 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46052 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46054 Sync from coreutils.
46055 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46058 2006-02-22 Jim Meyering <jim@meyering.net>
46060 Sync from coreutils.
46061 * m4/chdir-safer.m4: New file.
46063 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46065 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46066 AT_FDCWD exceeds INT_MAX.
46067 * lib/openat.h (AT_FDCWD): Likewise.
46069 2006-02-17 Eric Blake <address@hidden>
46071 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46073 2006-02-16 Simon Josefsson <jas@extundo.com>
46075 * modules/getaddrinfo (Depends-on): Add sys_socket.
46077 2006-02-15 Simon Josefsson <jas@extundo.com>
46079 * build-aux/maint.mk: Add dsyntax-check rule.
46081 2006-02-15 Eric Blake <ebb9@byu.net>
46083 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46084 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46085 'present but cannot compile' warnings on cygwin.
46086 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46087 use ws2tcpip.h if sys/socket.h works.
46088 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46089 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46091 2006-02-14 Simon Josefsson <jas@extundo.com>
46093 * modules/maintainer-makefile (Files): Rename.
46095 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46096 and (the local) Makefile.cfg to maint-cfg.mk.
46098 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46101 * modules/maintainer-makefile: New module.
46103 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46104 severaly stripped to make it possible to build it up from scratch
46105 with reliable tests.
46107 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46108 fixes to permit overriding the default actions when configure and
46109 makefile are not available.
46111 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46113 Sync from coreutils.
46114 * modules/lstat (Depends-on): Don't depend on xalloc.
46115 (License): Change from GPL to LGPL, since this is now simply a
46116 replacement for a libc function.
46118 2006-02-14 Jim Meyering <jim@meyering.net>
46120 Sync from coreutils.
46122 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46123 failure on deficient systems, and simplify gnulib lgpl dependencies.
46124 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46125 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46127 * lib/xalloc-die.c: Remove unused definition of N_.
46129 2006-02-14 Jim Meyering <jim@meyering.net>
46131 Sync from coreutils.
46132 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46133 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46134 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46135 double-quote uses of that variable, to accommodate the rare case in
46136 which getmntent is available in none of the libraries checked. This
46137 happens at least on FreeBSD 5.0.
46139 2006-02-13 Simon Josefsson <jas@extundo.com>
46141 * gnulib-tool (Usage): Fix --import, from
46142 karl@freefriends.org (Karl Berry).
46144 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46146 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46148 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46150 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46151 "autoupdate" on 2005-12-12.
46153 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46155 * modules/closeout (Depends-on): Remove atexit.
46157 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46159 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46160 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46162 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46164 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46165 __EXTENSIONS__ if this causes compilation to fail. Problem
46166 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46167 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46169 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46171 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46172 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46173 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46176 2006-01-26 Simon Josefsson <jas@extundo.com>
46178 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46179 prototype is visible on mingw32.
46181 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46184 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46187 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46189 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46190 attempt to open for write; this always fails, at least on POSIX
46191 hosts. This reinstates the 2006-01-09 change, which was
46192 inadvertently removed.
46194 2006-01-26 Bruno Haible <bruno@clisp.org>
46196 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46197 Reported by Paul Eggert.
46199 2006-01-26 Bruno Haible <bruno@clisp.org>
46200 Paul Eggert <eggert@cs.ucla.edu>
46202 * lib/stdbool_.h (_Bool)
46203 [(! (defined __cplusplus || defined __BEOS__)
46204 && !defined __GNUC__
46205 && !(defined __HP_cc || defined __xlc__
46206 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46207 || defined __sgi))]:
46208 #define to signed char in these cases too; this simplifies
46209 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46210 etc., separately) and makes it more conservative.
46212 2006-01-25 Simon Josefsson <jas@extundo.com>
46214 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46215 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46216 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46218 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46220 * lib/argp-namefrob.h: Bugfix. Remove stray #
46222 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46224 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46225 so that we test the test.
46226 Check for yet another HP-UX cc bug involving *bool |= bool.
46228 2006-01-25 Karl Berry <karl@gnu.org>
46230 * config/srclist.txt (vasnprintf.c): sync lost.
46232 2006-01-25 Jim Meyering <jim@meyering.net>
46234 Sync from the stable (b5) branch of coreutils:
46236 * lib/fts.c (fts_children): Don't let close() clobber errno from
46239 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46240 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46241 a dangling symlink. That can also happen at least for ELOOP.
46242 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46243 FYI, this bug predates the inclusion of fts.c in coreutils.
46245 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46246 in their own block, so pre-c99 compilers don't object.
46248 Avoid the double-free (first in fts_read, second in fts_close) that
46249 would occur when an `active' directory is made inaccessible (e.g.,
46250 via chmod a-x) during a traversal.
46251 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46252 before returning. Reproduce this failure by
46253 mkdir -p a/b; cd a; chmod a-x . b
46254 Reported by Stavros Passas.
46256 2006-01-25 Jim Meyering <jim@meyering.net>
46258 * lib/fileblocks.c: Remove more useless parentheses.
46259 * lib/readutmp.h: Likewise.
46261 2006-01-25 Bruno Haible <bruno@clisp.org>
46263 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46265 Reported by Paul Eggert.
46267 2006-01-25 Bruno Haible <bruno@clisp.org>
46269 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46270 rid of a trap command. For Solaris sh.
46271 Reported by Mark D. Baushke <mdb@gnu.org>.
46273 2006-01-24 Simon Josefsson <jas@extundo.com>
46275 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46278 2006-01-24 Karl Berry <karl@gnu.org>
46280 * config/srclist.txt (argp-namefrob.h): sync lost.
46282 2006-01-24 Jim Meyering <jim@meyering.net>
46284 * modules/openat (Files): Add lib/intprops.h.
46285 From Mark D. Baushke.
46287 2006-01-24 Jim Meyering <jim@meyering.net>
46289 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46290 Reported by Mark D. Baushke.
46292 2006-01-24 Jim Meyering <jim@meyering.net>
46294 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46296 2006-01-24 Bruno Haible <bruno@clisp.org>
46298 * modules/strnlen (Maintainer): Change from glibc to all.
46300 2006-01-24 Bruno Haible <bruno@clisp.org>
46302 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46303 Patch by Paul Eggert.
46305 2006-01-24 Bruno Haible <bruno@clisp.org>
46307 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46309 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46312 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46313 'signed char' to avoid problems with the built-in _Bool type.
46314 Reported by Paul Eggert on 2005-11-26.
46316 2006-01-24 Bruno Haible <bruno@clisp.org>
46318 * gnulib-tool (func_import): Avoid constructing complicated sed
46319 expressions inside backquote.
46320 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46322 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46324 These changes imported from libc.
46325 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46326 test and two separate function calls.
46327 * lib/strndup.c (__strndup): Add libc_hidden_def.
46329 2006-01-23 Simon Josefsson <jas@extundo.com>
46331 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46332 Remove the test_*_SOURCES variable: automake infers it by default.
46333 * modules/tls-tests: Likewise.
46335 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46337 Work around porting bugs reported by Dieter in
46338 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46339 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46340 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46341 Include "getopt.h" first, to check interface.
46342 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46344 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46345 (__strndup): Revert to K&R-style function dfns, the glibc style.
46346 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46347 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46348 Include strnlen.h first, to get prototype properly.
46349 (strnlen): Renamed from __strnlen.
46352 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46354 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46356 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46358 * config/srclist.txt: Adjust to reflect glibc reorganization.
46359 This affects only comments.
46361 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46363 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46364 Reported by Bruce Korb <bkorb@gnu.org>.
46366 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46368 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46369 to pacify gcc -Wswitch-default.
46371 2006-01-22 Bruno Haible <bruno@clisp.org>
46373 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46374 temporary buffer for sprintf, take into account the precision also
46375 for 'd', 'i', 'u', 'o', 'x', 'X'.
46377 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46379 * modules/argp-tests: New module
46380 * tests/test-argp.c: New file
46381 * tests/test-argp-2.sh: New file
46383 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46385 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46386 (__argp_base_name): Removed
46387 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46389 (__argp_base_name): Provide macro definition or extern declaration
46390 depending on the configuration
46392 2006-01-20 Simon Josefsson <jas@extundo.com>
46394 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46396 2006-01-20 Simon Josefsson <jas@extundo.com>
46398 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46400 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46402 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46403 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46404 Suggested by Bruno Haible.
46406 2006-01-20 Karl Berry <karl@gnu.org>
46408 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46409 until changes propagate, I guess.
46411 2006-01-19 Simon Josefsson <jas@extundo.com>
46413 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46415 2006-01-19 Simon Josefsson <jas@extundo.com>
46417 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46419 2006-01-19 Simon Josefsson <jas@extundo.com>
46421 * gnulib-tool: Set check_PROGRAMS.
46423 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46424 modules/des-tests, modules/gc-arcfour-tests,
46425 modules/gc-arctwo-tests, modules/gc-des-tests,
46426 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46427 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46428 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46429 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46430 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46431 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46432 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46435 2006-01-18 Simon Josefsson <jas@extundo.com>
46437 * modules/socklen (Depends-on): Depend on sys_socket.
46439 2006-01-18 Simon Josefsson <jas@extundo.com>
46441 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46442 modules/des-tests, modules/gc-arcfour-tests,
46443 modules/gc-arctwo-tests, modules/gc-des-tests,
46444 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46445 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46446 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46447 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46448 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46449 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46450 $(EXEEXT) to automake TESTS variable, for mingw32.
46452 2006-01-17 Simon Josefsson <jas@extundo.com>
46454 * modules/socklen (Include): Need sys/socket.h.
46456 2006-01-17 Bruno Haible <bruno@clisp.org>
46458 * modules/ssize_t (Include): Add <sys/types.h>.
46460 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46462 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46463 it's not portable and it doesn't work with cross-compiles.
46464 Problem reported by Bruno Haible. Fix missing-$ typo in
46465 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46466 -zignore from being used with Sun's C compiler.
46468 2006-01-12 Simon Josefsson <jas@extundo.com>
46470 * lib/base64.c: Fix warning, reported by Bruno Haible
46471 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46473 2006-01-12 Bruno Haible <bruno@clisp.org>
46475 * modules/ldd: New file.
46476 * build-aux/ldd.sh.in: New file.
46477 * MODULES.html.sh (Support for building libraries and executables): Add
46480 2006-01-12 Bruno Haible <bruno@clisp.org>
46482 * m4/ldd.m4: New file.
46484 2006-01-12 Bruno Haible <bruno@clisp.org>
46486 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46487 endless loop while replacing $auxdir with build-aux.
46489 2006-01-11 Simon Josefsson <jas@extundo.com>
46491 * lib/stdint_.h (SIZE_MAX): Add missing (.
46493 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46495 Sync from coreutils.
46496 * lib/md5.c: Fix commentary typos.
46497 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46498 * lib/md5.h (__attribute__): Remove; unused.
46499 * lib/sha1.c: Fix commentary to match md5 better.
46500 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46501 so that we don't need to worry about alignment. All uses changed.
46502 This merges the 2005-10-28 md5 change into sha1.
46504 2006-01-11 Jim Meyering <jim@meyering.net>
46506 Sync from coreutils.
46507 * lib/md5.c (OP): Fix spacing.
46509 2006-01-11 Bruno Haible <bruno@clisp.org>
46511 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46512 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46513 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46515 2006-01-11 Bruno Haible <bruno@clisp.org>
46517 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46518 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46519 the "early" section as well.
46521 2006-01-11 Bruno Haible <bruno@clisp.org>
46523 Avoid "ar: no archive members specified" error on MacOS X.
46524 * gnulib-tool (func_modules_add_dummy): New function.
46525 (func_import, func_create_testdir): Invoke it.
46527 2006-01-11 Bruno Haible <bruno@clisp.org>
46529 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46530 with $auxdir in AC_CONFIG_FILES statements.
46532 2006-01-11 Bruno Haible <bruno@clisp.org>
46534 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46535 Initialize also noinst_HEADERS to empty.
46537 2006-01-11 Bruno Haible <bruno@clisp.org>
46539 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46541 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46544 2006-01-11 Bruno Haible <bruno@clisp.org>
46546 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46547 overridable by the user.
46548 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46550 2006-01-10 Simon Josefsson <jas@extundo.com>
46552 * modules/sys_socket: New file.
46554 2006-01-10 Simon Josefsson <jas@extundo.com>
46556 * m4/sys_socket_h.m4: New file.
46558 2006-01-10 Simon Josefsson <jas@extundo.com>
46560 * lib/socket_.h: New file.
46562 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46564 * modules/readutmp (Maintainer): Add myself.
46566 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46568 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46569 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46570 People who are still concerned with buggy memcmp implementations
46571 can invoke gl_FUNC_MEMCMP themselves.
46573 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46575 * lib/regex_internal.h (BITSET_WORD_BITS):
46576 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46577 preprocessor mishandles large unsigned values as if they were signed.
46578 Problem reported by Claudio Fontana in
46579 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46581 2006-01-10 Jim Meyering <jim@meyering.net>
46583 Avoid the double-free (first in fts_read, second in fts_close) that
46584 would occur when an `active' directory is made inaccessible (e.g.,
46585 via chmod a-x) during a traversal.
46586 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46587 before returning. Reproduce this failure by
46588 mkdir -p a/b; cd a; chmod a-x . b
46589 Reported by Stavros Passas.
46591 Sync from coreutils.
46592 * lib/sha1.c: Tweak grammar in a comment.
46594 2006-01-10 Jim Meyering <jim@meyering.net>
46596 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46597 Patch by Joerg Sonnenberger.
46599 2006-01-10 Bruno Haible <bruno@clisp.org>
46601 * modules/readutmp: Depend on module free.
46602 * modules/strtok_r: Depend on module restrict.
46604 2006-01-10 Bruno Haible <bruno@clisp.org>
46606 * modules/gettext (configure.ac): Add an invocation of
46607 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46609 2006-01-10 Bruno Haible <bruno@clisp.org>
46611 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46612 Reported by Werner Lemberg <wl@gnu.org>.
46614 2006-01-10 Bruno Haible <bruno@clisp.org>
46616 * lib/localcharset.c: Update from GNU gettext.
46618 2006-01-10 Bruno Haible <bruno@clisp.org>
46620 * lib/argp.h (__const): Remove macro. Use const instead.
46621 * lib/argp-fmtstream.h (__const): Likewise.
46622 * lib/glob_.h (__const): Remove macro.
46623 * lib/glob-libc.h: Use const instead of __const.
46625 2006-01-10 Bruno Haible <bruno@clisp.org>
46627 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46629 Needed to avoid an automake error regarding the 'gettext' module.
46631 2006-01-09 Simon Josefsson <jas@extundo.com>
46633 * modules/inet_ntop (Depends-on): Add restrict.
46635 2006-01-09 Simon Josefsson <jas@extundo.com>
46637 * modules/gc-rijndael-tests (License): Put under LGPL.
46639 * modules/gc-des-tests (License): Likewise.
46641 * modules/gc-arcfour-tests (License): Likewise.
46643 * modules/gc-arctwo-tests (License): Likewise.
46645 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46647 * modules/gc-hmac-sha1-tests (Files): Likewise.
46649 * modules/gc-hmac-md5-tests (License): Likewise.
46651 * modules/gc-sha1-tests (License): Likewise.
46653 * modules/gc-md5-tests (License): Likewise.
46655 * modules/gc-md4-tests (License): Likewise.
46657 * modules/gc-md2-tests (License): Likewise.
46659 * modules/gc-tests (License): Likewise.
46661 * modules/des-tests (License): Likewise.
46663 * modules/md4-tests (License): Likewise.
46665 * modules/md2-tests (License): Likewise.
46667 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46669 Sync from coreutils:
46671 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46672 * modules/lib-ignore: New file.
46673 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46674 chdir-safer.m4, lchmod.m4.
46675 * modules/openat: Add mkdirat.c, openat-priv.h.
46677 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46679 Sync from coreutils.
46680 * m4/lib-ignore.m4: New file.
46681 * m4/lchmod.m4: New file.
46683 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46685 Sync from coreutils.
46686 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46687 for write access: POSIX says that must fail.
46688 * lib/fts.c (diropen): Likewise.
46689 * lib/save-cwd.c (save_cwd): Likewise.
46690 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46691 well, for minor improvements on hosts that lack O_DIRECTORY.
46692 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46693 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46694 Fall back on chown if open failed with EACCES.
46696 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46697 Report an error at compile-time if only a 1-second nominal clock
46698 resolution is found.
46700 * lib/lchmod.h: New file.
46701 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46702 (make_dir_parents): Use lchown rather than chown, and
46703 lchmod rather than chmod.
46705 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46706 dummies too. Problem with "none" reported by Bob Proulx. Problem with
46707 "proc" reported by n0dalus.
46709 * lib/mountlist.c: Include <limits.h>.
46710 (dev_from_mount_options)
46711 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46712 New function. It no longer assumes "dev=" has the System V meaning
46713 on Linux (since it doesn't). It also parses "dev=" more carefully.
46714 (read_file_system_list)
46715 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46716 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46719 * lib/posixtm.h (PDS_PRE_2000): New macro.
46720 * lib/posixtm.c (year): Arg is now syntax_bits rather than
46721 allow_century. All usages changed. Reject dates outside the range
46722 1969-1999 if PDS_PRE_2000 is used.
46724 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46726 Sync from coreutils.
46727 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46728 (Time of day items): Mention the possibility of leap seconds.
46729 Problem reported by Dr. David Alan Gilbert.
46731 2006-01-09 Jim Meyering <jim@meyering.net>
46733 Sync from coreutils.
46735 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46737 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46739 * lib/modechange.c (mode_compile): Reject an invalid mode string
46740 that starts with an octal digit. From Andreas Gruenbacher.
46742 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46743 and dup to open_safer and dup_safer, respectively.
46744 (openat_permissive): Fix typo in comment.
46746 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46747 "gettext.h"; either no longer needed or are guaranteed by openat.h.
46748 (_): Remove; no longer needed.
46749 (openat): Renamed from rpl_openat; no need for rpl_openat
46750 since openat.h renames openat for us.
46751 Replace most of the body with a call to openat_permissive,
46752 to avoid duplicate code.
46753 Port to (probably hypothetical) environments were mode_t is
46755 (openat_permissive): Require mode arg, so that we can check
46756 types better. Put it just after flags. Change cwd failure
46757 indicator from pointer-to-bool to pointer-to-errno-value.
46758 All callers changed.
46759 Invoke openat_save_fail and/or openat_restore_fail if
46760 cwd_errno is null, so that openat can call us.
46761 (openat_permissive, fdopendir, fstatat, unlinkat):
46762 Simplify errno handling to avoid some duplicate code,
46763 as it's OK to set errno on success.
46764 * lib/openat.h: Revamp code so that function macros depend on
46765 __OPENAT_PREFIX only, not also on AT_FDCWD.
46766 (openat_ro): Remove. Caller changed to use openat_permissive.
46767 (openat_permissive): Now a macro, if not a function.
46768 (openat_restore_fail, openat_save_fail): Now always functions,
46769 since mkdirat needs them even if __OPENAT_PREFIX is defined.
46771 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46773 * lib/mkdirat.c: Include openat-priv.h.
46774 Remove definitions of macros defined therein.
46775 * lib/openat.c: Likewise.
46777 * lib/mkdirat.c (mkdirat): New file and function.
46778 * lib/openat.h (mkdirat): Declare.
46780 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46782 * lib/openat.h (openat_permissive): Declare.
46783 (openat_ro): Define.
46785 * lib/openat.c (EXPECTED_ERRNO): New macro.
46786 (openat_permissive): New function -- used in remove.c rewrite.
46787 (all functions): Set errno just before returning, only if there
46788 was an actual failure.
46789 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46791 Emulate openat-family functions using Linux's procfs, if possible.
46792 Idea and some code based on Ulrich Drepper's glibc changes.
46794 * lib/openat.c: (BUILD_PROC_NAME): New macro.
46795 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46796 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46797 before falling back on save_cwd and restore_cwd.
46798 (fdopendir, fstatat, unlinkat): Likewise.
46800 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46801 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46803 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46804 as second argument to va_arg. Otherwise, some versions of gcc
46805 warn that `if this code is reached, the program will abort'.
46807 2006-01-09 Jim Meyering <jim@meyering.net>
46809 Sync from coreutils.
46810 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46811 Require openat-priv.h.
46813 2006-01-09 Bruno Haible <bruno@clisp.org>
46815 * modules/strnlen (Include): Use strnlen.h.
46817 2006-01-09 Bruno Haible <bruno@clisp.org>
46819 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46821 2006-01-09 Bruno Haible <bruno@clisp.org>
46823 * lib/sysexit_.h (EX_OK): New macro.
46824 Suggested by Martin Lambers <marlam@marlam.de>.
46826 2006-01-09 Bruno Haible <bruno@clisp.org>
46828 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46829 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46831 2006-01-09 Bruno Haible <bruno@clisp.org>
46833 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46836 2006-01-09 Bruno Haible <bruno@clisp.org>
46838 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46839 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46840 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46841 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46843 2006-01-09 Bruno Haible <bruno@clisp.org>
46845 * build-aux/javacomp.sh.in: New file, moved from lib/.
46846 * modules/javacomp-script (Files): Update.
46847 (configure.ac): Add AC_CONFIG_FILES invocation.
46848 (EXTRA_DIST): Remove variable.
46850 * build-aux/javaexec.sh.in: New file, moved from lib/.
46851 * modules/javaexec (Files): Update.
46852 (configure.ac): Add AC_CONFIG_FILES invocation.
46853 (EXTRA_DIST): Remove javaexec.sh.in.
46855 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46856 * modules/csharpcomp-script (Files): Update.
46857 (configure.ac): Add AC_CONFIG_FILES invocation.
46858 (EXTRA_DIST): Remove variable.
46860 * build-aux/csharpexec.sh.in: New file, moved from lib/.
46861 * modules/csharpexec (Files): Update.
46862 (configure.ac): Add AC_CONFIG_FILES invocation.
46863 (EXTRA_DIST): Remove csharpexec.sh.in.
46865 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
46867 Sync from coreutils.
46869 Add POSIX ACL support
46870 * lib/acl.h (copy_acl, set_acl): Add declarations.
46871 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46872 systems other than Linux.
46873 (chmod_or_fchmod): New function: use fchmod when possible,
46874 and chmod otherwise.
46875 (file_has_acl): Add a POSIX ACL implementation, with a
46876 Linux-specific subcase.
46877 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46878 S_ISVTX from one file to another. Fall back to fchmod/chmod when
46879 acls are unsupported.
46880 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46881 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
46884 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
46886 Sync from coreutils.
46887 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46889 2006-01-07 Bruno Haible <bruno@clisp.org>
46891 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46894 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
46896 * lib/strftime.c (tzname): Don't declare if it is already #defined.
46897 Problem reported for Mingw by Mark Junker.
46899 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
46901 * README: Gnulib normally doesn't generate a tarball.
46903 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
46905 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46906 long int, not int, for nanosecond counts, so that people who are
46907 used to POSIX struct timespec won't be surprised. Reported by Jim
46910 2005-12-28 Bruno Haible <bruno@clisp.org>
46912 * build-aux/config.rpath: Update from GNU gettext.
46914 2005-12-16 Jim Meyering <jim@meyering.net>
46916 * modules/fprintftime: New module.
46917 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46919 2005-12-16 Jim Meyering <jim@meyering.net>
46921 * m4/fprintftime.m4: New file.
46923 2005-12-16 Jim Meyering <jim@meyering.net>
46925 * lib/fprintftime.c, lib/fprintftime.h: New files.
46927 2005-12-15 Simon Josefsson <jas@extundo.com>
46929 * modules/socklen (configure.ac): Fix M4 macro name, to align with
46932 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
46934 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46935 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46937 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
46939 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46940 * lib/argp-help.c (fill_in_uparams): Check if the constructed
46941 struct uparams is valid. Fall back to the default values if it is
46944 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46946 * modules/argp (Files): Add argp-pin.c
46947 (Depends-on): dirname
46948 (lib_SOURCES): Add argp-pin.c
46950 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46952 * m4/argp.m4: Check if program_invocation_name and
46953 program_invocation_short_name are declared and define appropriate
46954 macros if they are not.
46956 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46958 * lib/argp-help.c (__argp_base_name): New function
46959 (__argp_short_program_name): Rewrite using __argp_base_name
46960 * lib/argp-namefrob.h: Define program_invocation_name and
46961 program_invocation_short_name if requested
46962 (__argp_base_name): Add prototype
46963 * lib/argp-parse.c (argp_def): Use gettext wrappers
46964 (argp_default_parser): Use __argp_base_name
46965 * lib/argp-pin.c: New file. Defines program_invocation_name and
46966 program_invocation_short_name on systems that lack them.
46968 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
46970 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46971 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46972 porting problem reported by Georg Schwarz in
46973 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46975 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
46977 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46978 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46979 porting problem reported by Georg Schwarz in
46980 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46982 2005-12-05 Bruno Haible <bruno@clisp.org>
46984 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46985 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46986 Reported by Mark Junker <mjscod@gmx.de>.
46988 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
46990 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46991 Use implementation from Albert Chin, with some
46992 comments/corrections by Stepan Kasal and myself.
46994 2005-12-02 Bruno Haible <bruno@clisp.org>
46996 * gnulib-tool (func_import): Accept GPLed build tool modules when
46998 * modules/csharpcomp-script: New file.
46999 * modules/csharpcomp: Depend on it.
47000 * modules/javacomp-script: New file.
47001 * modules/javacomp: Depend on it.
47002 Suggested by Simon Josefsson.
47004 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47006 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47007 statement, to work around an HP-UX 10.20 compiler bug reported by
47010 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47012 * modules/savedir (Depends-on): Add openat.
47014 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47016 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47017 (uintmax_t) [defined uintmax_t]: Do not declare.
47018 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47019 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47020 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47021 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47022 sake of portability to weird hosts that C allows (though we don't
47023 know of any practical examples).
47025 * lib/savedir.h (fdsavedir): New decl.
47026 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47027 contains most of the former guts of savedir.
47028 (savedir): Use savedirstream.
47029 Include "openat.h".
47031 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47033 * modules/obstack (Files): Add m4/ulonglong.m4.
47034 Problem reported by Davide Angelocola.
47036 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47038 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47039 coreutils no longer futzes with rounding modes.
47041 2005-11-14 Jim Meyering <jim@meyering.net>
47043 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47044 replacement of mkstemp.
47046 2005-11-10 Simon Josefsson <jas@extundo.com>
47048 * lib/readline.c: Remove EOL.
47050 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47052 * modules/gethrxtime (Depends-on): Add gettime.
47054 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47056 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47057 or gettimeofday; no longer needed.
47059 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47061 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47063 (gethrxtime) [! (HAVE_NANOUPTIME
47064 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47065 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47066 our own approximation.
47068 2005-11-08 Eric Blake <ebb9@byu.net>
47070 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47072 2005-11-08 Eric Blake <ebb9@byu.net>
47074 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47076 2005-11-04 Bruno Haible <bruno@clisp.org>
47078 * gnulib-tool: Implement --update mode.
47080 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47082 Fix porting problem reported by Theodoros V. Kalamatianos.
47083 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47084 Don't assume that futimes failing means we must fail.
47086 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47088 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47089 variables to suggest the intended function of the PATH_MAX check.
47091 2005-10-30 Kean Johnston <jkj@sco.com>
47093 Trivial changes to support SCO systems.
47094 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47096 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47097 where __ptr is null when no I/O is pending.
47099 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47101 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47102 leave errno alone. Problem reported by Dmitry V. Levin.
47104 2005-10-28 Simon Josefsson <jas@extundo.com>
47106 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47109 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47111 * modules/md2, modules/md2-tests: New files.
47113 2005-10-28 Simon Josefsson <jas@extundo.com>
47115 * m4/inet_ntop.m4: More tests.
47117 * m4/gc-md2.m4, md2.m4: New file.
47119 2005-10-28 Simon Josefsson <jas@extundo.com>
47121 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47122 "restrict" keywords, as per POSIX. Protect the function
47123 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47124 Don't use K&R prototypes. Check the sprintf return values.
47125 Re-define EAFNOSUPPORT if not present. Indent.
47127 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47128 suggested by Bruno Haible <bruno@clisp.org>.
47130 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47132 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47134 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47137 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47139 * lib/md2.h, lib/md2.c: New files.
47141 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47143 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47144 errno alone. Problem reported by Frederic Jolliton.
47146 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47148 * modules/verify (License): Change from GPL to LGPL. This is a
47149 tiny module and there are apparently near-equivalents that are
47150 under the BSD license.
47152 2005-10-24 Simon Josefsson <jas@extundo.com>
47154 * modules/sha1: Relicense to LGPL.
47156 2005-10-24 Simon Josefsson <jas@extundo.com>
47158 * lib/md4.h: Shrink buffer size, now that we changed the type.
47160 2005-10-23 Simon Josefsson <jas@extundo.com>
47162 * gnulib-tool (func_import): Fix --tests-base.
47164 2005-10-22 Simon Josefsson <jas@extundo.com>
47166 * modules/arcfour (Depends-on): Need stdint.
47168 2005-10-22 Simon Josefsson <jas@extundo.com>
47170 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47171 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47173 2005-10-22 Simon Josefsson <jas@extundo.com>
47175 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47176 suggested by Bruno Haible <bruno@clisp.org>.
47178 2005-10-22 Simon Josefsson <jas@extundo.com>
47180 * lib/crc.h: Include stddef.h, for size_t.
47182 2005-10-22 Simon Josefsson <jas@extundo.com>
47184 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47185 arcfour_context struct (simplify test vector testing in GNU
47188 2005-10-21 Simon Josefsson <jas@extundo.com>
47190 * modules/des, modules/des-tests: New files.
47192 * modules/gc-des, modules/gc-des-tests: New files.
47194 * tests/test-des.c, tests/test-gc-des.c: New file.
47196 2005-10-21 Simon Josefsson <jas@extundo.com>
47198 * modules/arctwo, modules/arctwo-tests: New files.
47200 * tests/test-arctwo.c: New file.
47202 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47204 * tests/test-gc-arctwo.c: New file.
47206 2005-10-21 Simon Josefsson <jas@extundo.com>
47208 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47209 Bruno Haible <bruno@clisp.org>.
47211 * m4/gc-des.m4: New file.
47213 2005-10-21 Simon Josefsson <jas@extundo.com>
47215 * m4/arctwo.m4: New file.
47217 * m4/gc-arctwo.m4: New file.
47219 2005-10-21 Simon Josefsson <jas@extundo.com>
47221 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47224 2005-10-21 Simon Josefsson <jas@extundo.com>
47226 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47229 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47231 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47232 Bruno Haible <bruno@clisp.org>.
47234 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47237 2005-10-21 Simon Josefsson <jas@extundo.com>
47239 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47241 2005-10-21 Simon Josefsson <jas@extundo.com>
47243 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47245 2005-10-21 Simon Josefsson <jas@extundo.com>
47247 * lib/des.h, lib/des.c: New files.
47249 * lib/gc-gnulib.c: Support DES.c
47251 2005-10-21 Simon Josefsson <jas@extundo.com>
47253 * lib/arctwo.h, lib/arctwo.c: New files.
47255 * lib/gc-gnulib.c: Support ARCTWO.
47257 2005-10-21 Simon Josefsson <jas@extundo.com>
47259 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47260 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47262 2005-10-21 Simon Josefsson <jas@extundo.com>
47264 * gnulib-tool (func_import, func_create_testdir): Define automake
47265 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47266 Makefile.am snippet),
47267 suggested by Bruno Haible <bruno@clisp.org>.
47269 * modules/gc (Makefile.am): Use it.
47271 2005-10-21 Bruno Haible <bruno@clisp.org>
47273 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47276 2005-10-19 Simon Josefsson <jas@extundo.com>
47278 * tests/test-gc-rijndael.c: New file.
47280 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47282 2005-10-19 Simon Josefsson <jas@extundo.com>
47284 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47287 2005-10-19 Simon Josefsson <jas@extundo.com>
47289 * tests/test-gc-arcfour.c: New file.
47291 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47293 2005-10-19 Simon Josefsson <jas@extundo.com>
47295 * modules/gc-md4, modules/gc-md4-tests: New file.
47297 * tests/test-gc-md4.c: New file.
47299 2005-10-19 Simon Josefsson <jas@extundo.com>
47301 * m4/gc-md4.m4: New file.
47303 2005-10-19 Simon Josefsson <jas@extundo.com>
47305 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47306 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47309 2005-10-19 Simon Josefsson <jas@extundo.com>
47311 * m4/gc-arcfour.m4: New file.
47313 * m4/gc-rijndael.m4: New file.
47315 2005-10-19 Simon Josefsson <jas@extundo.com>
47317 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47319 2005-10-19 Simon Josefsson <jas@extundo.com>
47321 * lib/gc-gnulib.c: Support ARCFOUR.
47323 2005-10-19 Simon Josefsson <jas@extundo.com>
47325 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47328 * lib/gc.h: Add ECB enum type.
47330 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47332 2005-10-18 Simon Josefsson <jas@extundo.com>
47334 * tests/test-md5.c: New file.
47336 * modules/md5-tests: New file.
47338 2005-10-18 Simon Josefsson <jas@extundo.com>
47340 * tests/test-md4.c: New file.
47342 * modules/md4, modules/md4-tests: New files.
47344 2005-10-18 Simon Josefsson <jas@extundo.com>
47346 * m4/md4.m4: New file.
47348 2005-10-18 Simon Josefsson <jas@extundo.com>
47350 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47352 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47354 * gnulib-tool (func_create_testdir): Omit the second check whether
47355 BUILT_SOURCES in nonempty.
47357 2005-10-17 Simon Josefsson <jas@extundo.com>
47359 * tests/test-rijndael.c: New file.
47361 2005-10-17 Simon Josefsson <jas@extundo.com>
47363 * modules/sha1: Depend on stdint instead of md5.
47365 * modules/md5: Depend on stdint, remove uint32_t.
47367 2005-10-17 Simon Josefsson <jas@extundo.com>
47369 * modules/gc-sha1-tests: New file.
47371 * tests/test-gc-sha1.c: New file.
47373 2005-10-17 Simon Josefsson <jas@extundo.com>
47375 * m4/md5.m4: Remove call to uint32_t.m4.
47377 2005-10-17 Simon Josefsson <jas@extundo.com>
47379 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47381 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47384 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47386 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47388 2005-10-17 Simon Josefsson <jas@extundo.com>
47390 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47392 2005-10-17 Simon Josefsson <jas@extundo.com>
47394 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47396 2005-10-17 Simon Josefsson <jas@extundo.com>
47398 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47400 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47402 2005-10-17 Bruno Haible <bruno@clisp.org>
47404 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47405 that it can also be used in a test.
47407 2005-10-16 Bruno Haible <bruno@clisp.org>
47409 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47410 TESTS_ENVIRONMENT, so that individual tests can augment it.
47412 * gnulib-tool (func_create_testdir): Use an intermediate target for
47413 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47414 macros, like $(ALLOCA_H), which cannot be passed through the command
47417 2005-10-15 Simon Josefsson <jas@extundo.com>
47419 * modules/rijndael-tests: New file.
47421 * modules/rijndael: New file.
47423 2005-10-15 Simon Josefsson <jas@extundo.com>
47425 * m4/rijndael.m4: New file.
47427 2005-10-15 Simon Josefsson <jas@extundo.com>
47429 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47431 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47433 2005-10-14 Simon Josefsson <jas@extundo.com>
47435 * tests/test-arcfour.c: New file.
47437 * modules/arcfour, modules/arcfour-tests: New files.
47439 2005-10-14 Simon Josefsson <jas@extundo.com>
47441 * m4/arcfour.m4: New file.
47443 2005-10-14 Simon Josefsson <jas@extundo.com>
47445 * lib/arcfour.h, lib/arcfour.c: New files.
47447 2005-10-14 Roland McGrath <roland@redhat.com>
47449 Import from libc. [BZ #1331]
47450 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47452 Reported by Matej Vela <vela@debian.org>.
47454 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47456 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47457 include <wchar.h>; no longer needed.
47459 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47461 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47463 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47464 and Ulrich Drepper <drepper@redhat.com>
47467 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47468 instead of inline stream orientation test and two separate
47469 function calls. Pay no attention to USE_IN_LIBIO.
47471 2005-10-13 Simon Josefsson <jas@extundo.com>
47473 * modules/gc-hmac-md5-tests: New file.
47475 * tests/test-gc-hmac-sha1.c: New file.
47477 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47479 * modules/gc-hmac-md5-tests: New file.
47481 * tests/test-gc-md5.c: New file.
47483 * modules/gc-md5-tests: New file.
47485 2005-10-13 Simon Josefsson <jas@extundo.com>
47487 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47488 Move memory allocation outside of loop.
47490 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47492 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47493 intermediate directory is in a read-only file system. Problem
47494 reported by Eric Blake.
47496 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47498 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47500 2005-10-12 Simon Josefsson <jas@extundo.com>
47502 * tests/test-hmac-sha1.c: New file.
47504 * modules/hmac-sha1-tests: New file.
47506 * modules/hmac-sha1: New file.
47508 2005-10-12 Simon Josefsson <jas@extundo.com>
47510 * modules/gc-sha1: New file.
47512 2005-10-12 Simon Josefsson <jas@extundo.com>
47514 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47516 * tests/test-gc-pbkdf2-sha1.c: New file.
47518 2005-10-12 Simon Josefsson <jas@extundo.com>
47520 * modules/gc-md5, modules/gc-hmac-md5: New files.
47522 * modules/gc (Files): Remove md5, memxor and hmac files.
47524 2005-10-12 Simon Josefsson <jas@extundo.com>
47526 * m4/gc-pbkdf2-sha1.m4: New file.
47528 * m4/gc-hmac-sha1.m4: New file.
47530 * m4/gc-sha1: New file.
47532 * m4/hmac-sha1.m4: New file.
47534 2005-10-12 Simon Josefsson <jas@extundo.com>
47536 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47538 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47540 2005-10-12 Simon Josefsson <jas@extundo.com>
47542 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47543 suggested by Bruno Haible <bruno@clisp.org>.
47545 2005-10-12 Simon Josefsson <jas@extundo.com>
47547 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47549 2005-10-12 Simon Josefsson <jas@extundo.com>
47551 * lib/gc-pbkdf2-sha1.c: New file.
47553 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47555 2005-10-12 Simon Josefsson <jas@extundo.com>
47557 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47559 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47561 2005-10-12 Simon Josefsson <jas@extundo.com>
47563 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47564 GC_USE_HMAC_MD5, respectively.
47566 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47567 (gc_md5): Fix typo.
47569 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47571 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47573 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47575 2005-10-12 Bruno Haible <bruno@clisp.org>
47577 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47578 Reported by Stepan Kasal <kasal@ucw.cz>.
47580 2005-10-11 Simon Josefsson <jas@extundo.com>
47582 * tests/test-crc.c: New file.
47584 * modules/crc, modules/crc-tests: New files.
47586 2005-10-11 Simon Josefsson <jas@extundo.com>
47588 * m4/crc.m4: New file.
47590 2005-10-11 Simon Josefsson <jas@extundo.com>
47592 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47594 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47596 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47598 2005-10-11 Simon Josefsson <jas@extundo.com>
47600 * lib/crc.h, lib/crc.c: New files.
47602 * lib/gc.h (gc_hash_buffer): Add doc.
47604 2005-10-11 Bruno Haible <bruno@clisp.org>
47606 * modules/c-strcasestr: New file.
47607 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47609 2005-10-11 Bruno Haible <bruno@clisp.org>
47611 * modules/c-strcase: New file.
47612 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47614 2005-10-11 Bruno Haible <bruno@clisp.org>
47616 * lib/strcasecmp.c: Include limits.h.
47617 (strcasecmp): Avoid integer overflow on exotic platforms.
47618 * lib/strncasecmp.c: Include limits.h.
47619 (strncasecmp): Avoid integer overflow on exotic platforms.
47620 Reported by Paul Eggert.
47622 2005-10-11 Bruno Haible <bruno@clisp.org>
47624 * lib/c-strcasestr.h: New file, from GNU gettext.
47625 * lib/c-strcasestr.c: New file, from GNU gettext.
47627 2005-10-11 Bruno Haible <bruno@clisp.org>
47629 * lib/c-strcase.h: New file, from GNU gettext.
47630 * lib/c-strcasecmp.c: New file, from GNU gettext.
47631 * lib/c-strncasecmp.c: New file, from GNU gettext.
47633 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
47635 * modules/mempcpy (License): GPL -> LGPL.
47636 * modules/strchrnul (License): Likewise.
47637 * modules/sysexits (License): Likewise.
47639 2005-10-08 Simon Josefsson <jas@extundo.com>
47641 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47643 2005-10-07 Simon Josefsson <jas@extundo.com>
47645 * m4/memxor.m4: Remove gl_C_RESTRICT call.
47647 2005-10-06 Simon Josefsson <jas@extundo.com>
47649 * tests/test-hmac-md5.c: New file.
47651 * modules/hmac-md5-tests: New file.
47653 * modules/hmac-md5: New file.
47655 2005-10-06 Simon Josefsson <jas@extundo.com>
47657 * m4/hmac-md5.m4: New file.
47659 * m4/memxor.m4: Require gl_C_RESTRICT.
47661 2005-10-06 Simon Josefsson <jas@extundo.com>
47663 * lib/memxor.c (memxor): Avoid casts and warnings.
47665 2005-10-06 Simon Josefsson <jas@extundo.com>
47667 * lib/hmac-md5.c: New file.
47669 * lib/hmac.h: New file.
47671 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
47673 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47674 promotes to int, not unsigned int, to catch the AIX 5.3
47677 2005-10-05 Simon Josefsson <jas@extundo.com>
47679 * modules/memxor: New file.
47681 * modules/iconv (Files): Move config.rpath to havelib, it is used
47684 * modules/havelib (Files): Add config.rpath.
47686 2005-10-05 Simon Josefsson <jas@extundo.com>
47688 * m4/memxor.m4: New file.
47690 2005-10-05 Simon Josefsson <jas@extundo.com>
47692 * lib/memxor.c (memxor): Fix compiler error.
47694 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47695 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47697 * lib/memxor.h, lib/memxor.c: New files.
47699 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47700 we assume all systems have it, suggested by Jim Meyering
47701 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
47702 any systems lack sys/socket.h; mingw32 is known to lack it, but we
47703 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
47706 2005-10-05 Simon Josefsson <jas@extundo.com>
47708 * config/srclist.txt: Add glibc bug 1423 for md5.h.
47710 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
47712 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47713 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47714 needed, since the source code now assumes these .h files.
47716 2005-10-05 Derek Price <derek@ximbiot.com>
47718 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47720 2005-10-05 Bruno Haible <bruno@clisp.org>
47722 * modules/stdint (License): Change to LGPL.
47724 2005-10-04 Simon Josefsson <jas@extundo.com>
47726 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47727 D. Baushke" <mdb@gnu.org>.
47729 2005-10-04 Bruno Haible <bruno@clisp.org>
47731 * lib/verify.h (verify_true): Provide alternative definition for C++.
47733 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
47735 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
47736 (SSIZE_MAX): New macro, if not already defined.
47737 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47740 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47742 Sync from coreutils.
47743 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47744 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47745 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
47746 ULLONG_MAX doesn't work with 2.7.2.1.
47748 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47750 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47753 * modules/exclude (Depends-on): Depend on verify.
47754 * modules/strtoimax (Depends-on): Likewise.
47755 * modules/utimecmp (Depends-on): Likewise.
47757 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47759 * lib/exclude.c: Include verify.h.
47760 (verify): Remove. All callers changed to use verify.h's version.
47761 * lib/strtoimax.c: Likewise.
47762 * lib/utimecmp.c: Likewis.e
47764 Sync from coreutils.
47765 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47766 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47767 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47768 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
47769 bother returning ENOSYS if settimeofday or stime fails; just let
47770 them return whatever errno they want to return.
47771 * lib/utimens.c: Include unistd.h, for dup2.
47772 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47773 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47775 2005-10-02 Jim Meyering <jim@meyering.net>
47777 Sync from coreutils.
47778 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47779 from glibc-2.2.5 that fails for read-only files.
47781 2005-10-02 Jim Meyering <jim@meyering.net>
47783 Sync from coreutils.
47784 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47785 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47786 `#if HAVE_CONFIG_H'.
47787 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47788 Remove AT_FDCWD test.
47789 Do not consume the fd unless successful.
47790 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47791 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47792 block, so that we don't even try to compile it if settimeofday is
47793 available. This works around a compilation failure on OSF1 V5.1,
47794 due to stime requiring a `long int*' while tv_sec is `int'.
47796 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
47798 Sync from coreutils.
47799 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47800 against `yes', rather than just testing for nonempty.
47802 2005-10-01 Simon Josefsson <jas@extundo.com>
47804 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47807 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47808 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
47809 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
47810 freeaddrinfo and gai_strerror are declared by the POSIX headers.
47811 Check if struct addrinfo is declared.
47813 2005-10-01 Simon Josefsson <jas@extundo.com>
47815 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47816 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
47817 AI_* and EAI_* definitions. Protect function declarations.
47819 2005-10-01 Jim Meyering <jim@meyering.net>
47821 Sync from coreutils.
47823 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47824 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
47825 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47826 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47827 in the inet and nsl libraries. Required on Solaris 5.7.
47829 2005-10-01 Jim Meyering <jim@meyering.net>
47831 Sync from coreutils.
47832 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47833 in the inet and nsl libraries. Required on Solaris 5.7.
47835 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
47837 * lib/getdelim.c (getdelim): Remove unused variables.
47839 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
47841 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47842 so that the code works even with ancient cpp. Portability problem
47843 with GCC 2.7.2.1 reported by Thomas M.Ott.
47845 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
47847 * modules/regex (Depends-on): Add strcase.
47849 * modules/gethostname (Licence): Change from GPL to LGPL, since
47850 gethostname.c is a trivial implementation of a standard library
47852 * modules/poll (License): Change from GPL to LGPL, since it's
47853 derived from LGPL code.
47855 2005-09-27 Jim Meyering <jim@meyering.net>
47857 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47860 * lib/intprops.h (signed_type_or_expr__): Define.
47861 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47862 for unsigned types.
47864 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
47866 * lib/verify.h (verify_expr): Remove, replacing with:
47867 (verify_true): New macro that returns true instead of void.
47868 (verify_type__): Remove.
47869 (verify): Use verify_true rather than verify_type__.
47871 2005-09-26 Bruno Haible <bruno@clisp.org>
47873 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47875 (lib_SOURCES): Remove mbchar.c.
47876 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47877 (Files): Add m4/mbrtowc.m4.
47878 * modules/mbiter: Likewise.
47879 * modules/mbuiter: Likewise.
47881 2005-09-26 Bruno Haible <bruno@clisp.org>
47883 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47884 compile mbchar.c if they are not both present.
47885 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47886 * m4/mbiter.m4 (gl_MBITER): Likewise.
47887 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47888 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47889 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47891 2005-09-25 Jim Meyering <jim@meyering.net>
47893 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47894 also uses socklen_t.
47896 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
47898 * lib/utimens.c (ENOSYS): Define if not already defined.
47899 (futimens): Support having a null PATH if the file descriptor
47902 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47904 (__attribute): Define to empty unless GCC 3.1 or later.
47905 This works around a core dump on OpenBSD 3.4, which has GCC
47906 2.95.3, which dumps core when given __attribute__(()). It also
47907 simplifies other tests, since we really don't want to bother with
47908 worrying about which ancient version of GCC supported what.
47909 Original problem reported by Yoann Vandoorselaere, with part of
47910 the fix suggested by Derek Price.
47912 2005-09-24 Jim Meyering <jim@meyering.net>
47914 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47915 so we can once again use a positive bitfield width of 1 -- now we
47916 don't have to explain why we were using a bitfield width of 2.
47918 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
47920 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47921 and similarly for the other external symbols. Problem reported
47924 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47925 bug reported by Jim Meyering.
47927 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47928 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47929 not needed, since socklen is a prerequisite module.
47931 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
47933 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47934 Problem reported by Eric Blake.
47935 (getaddrinfo): Initialize se so that it's not garbage.
47936 Redo internal storage allocation so that it doesn't make unportable
47937 assumptions about alignment.
47940 * lib/utimens.c (futimens): Use futimesat if available.
47941 Prefer it to futimes since it doesn't have the futimes bug.
47943 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47944 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47945 Instead, declare a function that returns a pointer to an array,
47946 and use verify_type__ to declare the size of the array.
47947 Problem and germ of a solution reported by Bruno Haible.
47948 (verify_type__): Use 2, not 1, for bitfield size, to avoid
47949 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
47951 2005-09-23 Jim Meyering <jim@meyering.net>
47953 Sync from coreutils.
47954 Correct build failure (socklen_t not defined) on at least
47955 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47956 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47958 2005-09-23 Jim Meyering <jim@meyering.net>
47960 * modules/getaddrinfo (Depends-on): Add socklen.
47962 2005-09-23 Bruno Haible <bruno@clisp.org>
47964 * tests/test-verify.c: New file.
47966 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47968 Sync from coreutils.
47970 * modules/argmatch (Depends-on): Add verify.
47971 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47973 * modules/save-cwd (Depends-on): Likewise.
47975 * modules/openat (Files): Add lib/openat-die.c.
47976 (Depends-on): Remove error, exitfail.
47979 * modules/verify: New file.
47980 * MODULES.html.sh (Diagnostics <assert.h>): New section,
47981 with "verify" module.
47983 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47985 Sync from coreutils.
47987 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47988 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47989 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47990 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47991 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47992 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47993 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47994 Don't bother checking for string.h, stdlib.h, unistd.h.
47995 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47996 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47998 * m4/jm-macros.m4 (gl_MACROS): Likewise.
47999 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48001 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48002 (gl_GETDATE): Use it.
48004 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48006 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48008 Sync from coreutils.
48010 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48012 * lib/argmatch.h: Include verify.h
48013 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48014 (ARGMATCH_ASSERT): Remove; unused.
48015 * lib/canonicalize.c: Assume STDC_HEADERS.
48016 * lib/exclude.c: Include "strcase.h".
48017 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48018 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48020 (getusershell): Call fopen, not fopen_safer.
48021 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48022 Do not include unistd-safer.h.
48023 (save_cwd): Don't call fd_safer; no longer needed
48024 now that we include fcntl--.h.
48026 * lib/getdate.y (relative_time): New type.
48027 (RELATIVE_TIME_0): New constant.
48028 (parser_control): Use relative_time instead of doing it ourselves.
48029 (%union): Add new relative_time rel member.
48030 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48032 (relunit, relunit_snumber): Now of type rel.
48033 (zone, rel, relunit, get_date): Adjust to above changes.
48035 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48036 Do not include unistd-safer.h.
48037 (getloadavg): Don't call fd_safer; no longer needed
48038 now that we include fcntl--.h.
48040 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48041 (make_dir_parents): Treat ENOSYS like EEXIST.
48043 Improve quality of diagnostics on restore_cwd failure.
48044 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48045 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48046 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48047 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48048 each time through the loop. Do not diagnose restore_cwd failure;
48049 that is the caller's job (and perhaps the caller does not care).
48051 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48052 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48053 If the file already exists but is not a directory, don't bother
48054 to try to make its parents.
48055 Close potential file descriptor leak if we can't chdir("/") (!).
48056 Don't always return true if chdir($PWD) fails; return true only
48057 if the requested action was done successfully (except for the
48059 Don't log final directory unless we actually made it.
48060 Refactor to avoid duplicate code to fix up permissions.
48061 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48063 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48064 to make it a bit faster and (I hope) clearer.
48065 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48066 Fix bug in formats like %2N.
48068 * lib/verify.h: New file.
48070 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48072 Sync from coreutils.
48073 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48075 2005-09-22 Jim Meyering <jim@meyering.net>
48077 Sync from coreutils.
48079 * m4/lstat.m4 (gl_FUNC_LSTAT):
48080 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48081 Remove obsolete comment.
48082 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48083 * m4/xstrtod.m4: Likewise.
48085 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48087 2005-09-22 Jim Meyering <jim@meyering.net>
48089 Sync from coreutils.
48091 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48093 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48094 the .tm_year member, since otherwise gcc-4.0 would now warn about
48095 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48097 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48098 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48100 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48101 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48102 when run in a time zone for which daylight savings time is in effect
48103 for the starting date.
48105 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48106 stop us from restricting permissions of just-created absolute-named
48108 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48109 to restore initial working directory.
48110 * lib/mkdir-p.c (make_dir_parents): New parameter:
48111 different_working_dir, to tell caller if/when we change the working
48112 directory and are unable to return to the initial one.
48113 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48114 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48115 `return false'. This fixes a bug introduced on 2004-07-30.
48117 * lib/openat.c (fdopendir): Be sure to close the supplied
48118 file descriptor before returning. This makes our replacement
48119 implementation a little closer to Solaris's, where fdopendir
48120 ties the file descriptor to the returned DIR* pointer.
48121 * lib/openat.c (unlinkat): New function.
48122 * lib/openat.h (unlinkat): Add prototype.
48123 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48124 (openat_restore_fail): Rename from openat_restore_die.
48125 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48127 Provide an alternative to exiting immediately upon save_cwd or
48128 restore_cwd failure. Now, an application can arrange e.g.,
48129 to perform a longjump in that case.
48130 * lib/openat.c: Include dirname.h.
48131 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48132 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48133 and openat_restore_die rather than calling error directly.
48134 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48136 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48137 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48140 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48141 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48142 int utc, int nanoseconds);
48144 date should not have to allocate a megabyte of virtual memory to
48145 handle a format argument like +%1048575T. When implemented with
48146 strftime, it must allocate such a buffer, use strftime to fill it
48147 in, print it, then free it.
48148 With fprintftime, it simply prints everything and exits.
48149 With no need for memory allocation, that's one fewer way to fail.
48150 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48151 optional field width, not before, so we accept %9:z, not %:9z.
48152 (my_strftime): Be sure to use L_('x') for literals.
48154 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48155 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48156 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48157 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48158 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48159 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48160 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48161 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48162 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48163 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48164 * lib/xgethostname.c, lib/xreadlink.c:
48165 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48167 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48168 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48169 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48170 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48171 and don't include <sys/file.h>).
48173 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48175 Sync from coreutils.
48177 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48178 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48179 [!LDAV_DONE]: Avoid unused variable warning.
48181 2005-09-21 Bruno Haible <bruno@clisp.org>
48183 * lib/unicodeio.h (unicode_to_mb): New declaration.
48185 2005-09-20 Derek Price <derek@ximbiot.com>
48187 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48190 2005-09-20 Bruno Haible <bruno@clisp.org>
48192 * gnulib-tool: Remove trailing slashes from the values specified for
48193 --source-base, --m4-base, --tests-base, --aux-dir.
48194 Suggested by Simon Josefsson <jas@extundo.com>.
48196 2005-09-20 Bruno Haible <bruno@clisp.org>
48198 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48199 func_modules_to_filelist, func_import, func_create_testdir): Make all
48200 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48201 change when gnulib-tool is invoked in a different locale.
48203 2005-09-19 Simon Josefsson <jas@extundo.com>
48205 * m4/socklen.m4: Fix typo.
48207 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48209 Use a consistent style for including <config.h>.
48210 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48211 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48212 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48213 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48214 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48215 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48216 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48217 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48218 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48219 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48220 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48221 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48222 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48223 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48224 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48225 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48226 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48227 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48228 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48229 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48230 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48231 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48232 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48233 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48234 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48235 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48236 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48237 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48238 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48239 lib/xstrtoumax.c, lib/yesno.c:
48240 Standardize inclusion of config.h.
48241 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48242 lib/inttostr.h: Removed inclusion of config.h from header files.
48243 * lib/inttostr.c: Adjusted in-tree users.
48244 * lib/timespec.h: Remove superfluous warning to include config.h.
48245 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48246 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48247 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48248 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48249 config.h with HAVE_CONFIG_H.
48251 2005-09-19 Jim Meyering <jim@meyering.net>
48253 * modules/pathmax (License): Change to LGPL.
48255 2005-09-19 Derek Price <derek@ximbiot.com>
48257 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48259 2005-09-19 Bruno Haible <bruno@clisp.org>
48261 * gnulib-tool (import): Provide default for --tests-base.
48263 2005-09-19 Bruno Haible <bruno@clisp.org>
48265 * doc/quote.texi: New file, extracted from gnulib.texi.
48266 * doc/ctime.texi: New file, extracted from gnulib.texi.
48267 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48268 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48269 * doc/gnulib.texi: Include them.
48271 2005-09-18 Bruno Haible <bruno@clisp.org>
48274 * gnulib-tool (func_readlink): New function.
48275 (func_ln_if_changed): Use it.
48277 2005-09-18 Bruno Haible <bruno@clisp.org>
48279 * gnulib-tool: Support --with-tests also with --import.
48280 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48281 (func_import): Use variables $testsbase and $inctests. Emit a
48282 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48283 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48284 SUBDIRS += $testsdir.
48285 (func_create_testdir): Update.
48287 2005-09-18 Bruno Haible <bruno@clisp.org>
48289 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48290 instead of $dry_run.
48291 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48292 (func_ln_if_changed): Don't handle dry-run here.
48293 (func_import): In dry-run mode, detect more precisely which actions
48294 would be performed, and don't use "...ing" verbs.
48296 2005-09-18 Bruno Haible <bruno@clisp.org>
48298 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48299 (func_import): Use join on two temporary files instead of three nested
48300 loops, in order to determine which files are new or old.
48302 2005-09-18 Bruno Haible <bruno@clisp.org>
48304 * gnulib-tool (func_import): Comment out code that spits out the
48305 new files with --dry-run.
48307 2005-09-18 Bruno Haible <bruno@clisp.org>
48309 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48311 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48313 * lib/stat-time.h: New file.
48314 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48315 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48316 in a different way.
48317 (timespec_cmp): New function.
48318 * lib/utimecmp.c: Include stat-time.h.
48319 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48320 members exist, not on the obsolescent ST_MTIM_NSEC.
48321 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48323 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48325 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48327 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48329 * MODULES.html.sh (File system functions): Add stat-time.
48330 * modules/stat-time: New file.
48331 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48332 is now done in a different way, by the stat-time module.
48333 * modules/utimecmp (Depends-on): Add stat-time.
48335 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48337 * m4/st_mtim.m4: Remove. Superseded by...
48338 * m4/stat-time.m4: New file.
48339 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48340 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48342 2005-09-15 Derek Price <derek@ximbiot.com>
48344 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48346 2005-09-15 Derek Price <derek@ximbiot.com>
48348 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48349 * lib/regex_internal.c: Ditto, using this...
48350 (__GNUC_PREREQ): ...new macro.
48351 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48353 (__GNUC_PREREQ): ...this new macro.
48355 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48357 2005-09-15 Derek Price <derek@ximbiot.com>
48358 Paul Eggert <eggert@cs.ucla.edu>
48360 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48361 changes, consolidating in...
48362 * lib/regex_internal.h: ...this file.
48364 2005-09-13 Jim Meyering <jim@meyering.net>
48366 * lib/canon-host.c: Filter through gnu indent and reword comments
48368 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48370 2005-09-13 Derek Price <derek@ximbiot.com>
48372 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48374 Reported by Jim Meyering <jim@meyering.net>.
48376 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48378 * lib/base64.c: Typo.
48379 (base64_encode): Put b64str in initialized data section.
48381 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48383 Merge glibc and coreutils changes into gnulib, plus a few
48385 * lib/md5.c: Use #error rather than a string.
48386 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48387 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48388 (__attribute__): Define to empty for non recent-GCC.
48389 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48390 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48391 Renamed from their non-__ counterparts, with new macros replacing
48392 them if not _LIBC. Add __THROW attribute.
48394 (struct md5_ctx): Align buffer if using GCC.
48395 * lib/sha1.h (struct sha1_ctx): Likewise.
48396 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48397 The old name was backwards.
48398 (NOTSWAP): Remove; not used.
48399 (rol): New macro, moved here from md5.h.
48400 (sha1_process_block): Remove a FIXME that doesn't make sense.
48402 2005-09-12 Derek Price <derek@ximbiot.com>
48404 Return usable errors from canon-host.
48405 * lib/canon-host.h: New file.
48406 * lib/canon-host.c (canon_host): Wrap...
48407 (canon_host_r): ...this new function, which now relies exclusively on
48409 (ch_strerror): New function.
48410 (last_cherror): New global.
48411 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48413 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48415 (freeaddrinfo): Free ai->ai_canonname when set.
48417 2005-09-12 Derek Price <derek@ximbiot.com>
48419 Make canon-host require getaddrinfo.
48420 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48421 AC_LIBSOURCE canon-host.h. Call...
48422 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48424 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48426 2005-09-12 Derek Price <derek@ximbiot.com>
48428 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48430 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48432 2005-09-12 Derek Price <derek@ximbiot.com>
48434 * lib/gai_strerror.c: Include config.h when available. Include
48435 getaddrinfo.h before other headers to test interface.
48436 Reported by Larry Jones <lawrence.jones@ugs.com>.
48438 2005-09-12 Derek Price <derek@ximbiot.com>
48439 Paul Eggert <eggert@cs.ucla.edu>
48441 * modules/glob (Files): Add glob-libc.h.
48443 2005-09-12 Derek Price <derek@ximbiot.com>
48444 Paul Eggert <eggert@cs.ucla.edu>
48446 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48447 glob_.h, glob-libc.h.
48448 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48450 2005-09-12 Derek Price <derek@ximbiot.com>
48451 Paul Eggert <eggert@cs.ucla.edu>
48453 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48454 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48455 protecting things that should be done only in gnulib contexts.
48456 * lib/glob_.h: New file, containing only the glob things needed for
48458 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48459 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48460 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48461 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48462 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48463 and to respect the namespace rules better.
48465 2005-09-08 Simon Josefsson <jas@extundo.com>
48467 * modules/socklen: New file.
48469 2005-09-08 Simon Josefsson <jas@extundo.com>
48471 * m4/socklen.m4: New file.
48473 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48475 * modules/utimens (Files): Add m4/utimbuf.m4, since
48476 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48477 Reported by Sergey Poznyakoff.
48479 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48481 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48482 definitions, since that's the preferred style in glibc.
48483 Fix a minor spacing issue, and update copyright notice to match
48486 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48488 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48490 2005-09-06 Simon Josefsson <jas@extundo.com>
48492 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48493 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48495 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48497 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48500 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48502 * config/srclist.txt: Add glibc bug 1302.
48504 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48506 Change bitset word type from unsigned int to unsigned long int,
48507 as this has better performance on typical 64-bit hosts.
48508 Port bitset code to hosts with unusual word sizes.
48509 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48510 (build_collating_symbol):
48511 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48512 argument is a bitset. This is merely a style issue, but it makes
48513 it clearer that an entire array is expected.
48514 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48515 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48516 Port to the case where bitset_word is not the same as unsigned int.
48517 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48518 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48520 * lib/regexec.c (check_dst_limits_calc_pos_1,
48521 check_subexp_matching_top):
48522 (build_trtable, group_nodes_into_DFAstates):
48524 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48525 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48526 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48527 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48528 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48529 * lib/regcomp.c (optimize_subexps, lower_subexp):
48530 Work even if bitset_word has holes in its bitwise representation.
48531 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48532 * lib/regexec.c (check_dst_limits_calc_pos_1,
48533 check_subexp_matching_top):
48535 * lib/regex_internal.c (re_string_reconstruct):
48536 Don't assume UCHAR_MAX == 255.
48537 * lib/regex_internal.h (bitset_set_all): Likewise.
48538 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48540 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48541 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48543 (BITSET_WORD_MAX): New macro.
48544 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48545 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48546 (bitset_empty, bitset_copy):
48547 Prefer sizeof (bitset) to multiplying it out ourselves.
48548 (bitset_not_merge): Remove; unused.
48549 (bitset_contain): Return bool, not unsigned int with one bit on.
48550 All callers changed.
48551 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48552 alignment than re_node_set; do this by defining a new internal
48553 type struct dests_alloc and using it to allocate memory.
48555 2005-09-05 Bruno Haible <bruno@clisp.org>
48557 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48560 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48562 * modules/size_max (Makefile.am): Add size_max.h
48564 2005-09-04 Derek Price <derek@ximbiot.com>
48566 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48568 2005-09-03 Simon Josefsson <jas@extundo.com>
48570 * gnulib-tool: Fix typo.
48572 2005-09-03 Simon Josefsson <jas@extundo.com>
48574 * config/srclist.txt: Add glibc bug 1293.
48576 2005-09-03 Derek Price <derek@ximbiot.com>
48578 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48579 From Larry Jones <lawrence.jones@ugs.com>.
48581 2005-09-02 Simon Josefsson <jas@extundo.com>
48583 * modules/socklen: New file.
48585 2005-09-02 Simon Josefsson <jas@extundo.com>
48587 * modules/havelib: New module.
48589 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48592 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48594 Check for arithmetic overflow when calculating sizes, to prevent
48595 some buffer-overflow issues. These patches are conservative, in the
48596 sense that when I couldn't determine whether an overflow was possible,
48597 I inserted a run-time check.
48598 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48600 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48601 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48602 (re_xnrealloc, re_x2nrealloc): New inline functions.
48603 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48604 parse_bracket_exp):
48605 (build_equiv_class, build_charclass): Check for arithmetic overflow
48606 in size expression calculations.
48607 * lib/regex_internal.c (re_string_realloc_buffers):
48608 (build_wcs_upper_buffer, re_node_set_add_intersect):
48609 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48610 (re_dfa_add_node, register_state): Likewise.
48611 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48612 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48613 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48614 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48616 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48618 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48619 m4/ulonglong.m4. Problem reported by Martin Lambers.
48621 2005-09-02 Bruno Haible <bruno@clisp.org>
48623 Support for lib vs. lib64 distinction on biarch platforms.
48624 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48625 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48626 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48628 2005-09-02 Bruno Haible <bruno@clisp.org>
48630 * gnulib-tool (import): In the other first-use case, provide defaults
48633 2005-09-02 Bruno Haible <bruno@clisp.org>
48635 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48636 patches not yet found in the latest gettext release.
48638 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48640 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48641 to avoid a collision with bits/local_lim.h in glibc.
48642 All uses changed. Problem reported by Dmitry V. Levin in
48643 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48645 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48646 bugs in int versus size_t comparisons.
48647 (re_string_context_at): Fix bug where the code assumed that
48650 Use bool where appropriate.
48651 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48652 All callers changed.
48653 (calc_eclosure_iter): Likewise, for ROOT arg.
48654 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48655 (build_charclass_op): Likewise, for NON_MATCH arg.
48656 * lib/regex_internal.c (re_string_allocate, re_string_construct):
48657 (re_string_construct_common): Likewise, for ICASE arg.
48658 * lib/regexec.c (re_search_2_stub, re_search_stub):
48659 Likewise, for RET_LEN arg.
48660 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48661 (set_regs): Likewise, for FL_BACKTRACK arg.
48662 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48663 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48664 (calc_eclosure_iter, parse_bracket_exp):
48665 Use bool for internal variables that are booleans.
48666 * lib/regexec.c (re_search_internal, check_matching,
48667 proceed_next_node):
48668 (set_regs, build_sifted_states, sift_states_bkref):
48669 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48670 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48671 (find_collation_sequence_value):
48673 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48674 (re_node_set_compare):
48675 Return bool, not int. All callers changed.
48676 * lib/regexec.c (check_halt_node_context, check_dst_limits):
48677 (build_trtable, check_node_accept): Likewise.
48678 * lib/regex_internal.h: Include stdbool.h.
48680 Fix bugs uncovered when converting to bool.
48681 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48682 failure instead of charging ahead blindly.
48683 * lib/regex_internal.c (register_state): Likewise.
48684 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48685 for freeing internal storage.
48686 (group_nodes_into_DFA_states): Use unsigned int, not int, for
48687 bitset pieces used as boolean, to avoid undefined behavior
48688 on hosts that do int overflow checking.
48690 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48692 * config/srclist.txt: Add glibc bugs 1285-1287.
48694 2005-09-01 Jim Meyering <jim@meyering.net>
48696 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48697 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48698 Require gl_STAT_MACROS, too.
48700 2005-09-01 Bruno Haible <bruno@clisp.org>
48702 * gnulib-tool (import): In the first-use case, provide defaults.
48704 2005-09-01 Bruno Haible <bruno@clisp.org>
48706 * gnulib-tool (func_import): Remove the .tmp files.
48708 2005-09-01 Bruno Haible <bruno@clisp.org>
48710 * gnulib-tool (func_import): Fix handling of symbolic links.
48712 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48714 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48715 old glibc regex code mishandles strings longer than 2**31 bytes.
48716 This patch fixes this when the regex code is used in gnulib
48717 (i.e., outside glibc).
48719 This patch should not affect the use of the regex code inside
48720 glibc. No doubt this problem also needs to be handled for glibc
48721 as well, but the result will be an incompatible change to the
48722 glibc ABI, and the old ABI will have to be supported too. That
48723 can be the the subject for another patch.
48725 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48726 governing whether the rest of this patch is active. By default,
48727 the macro is disabled and the patch has no effect.
48728 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48729 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48730 (struct re_pattern_buffer, re_search, re_search_2, re_match):
48731 (re_match_2, re_set_registers): Use the new types.
48732 * lib/regex_internal.h (Idx, re_hashval_t): New types.
48733 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48735 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48736 (re_string_context_at, bin_tree_t, re_dfastate_t):
48737 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48738 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48739 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48740 (re_string_char_size_at, re_string_wchar_at):
48741 (re_string_elem_size_at):
48742 Use the new types and macros to port to 64-bit hosts.
48743 Use unsigned types for internal values, so that the code
48744 mostly works even for arrays larger than SSIZE_MAX.
48745 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48746 (search_duplicated_node, calc_eclosure_iter, fetch_number):
48747 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48748 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48749 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48750 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48751 (calc_inveclosure, parse_dup_op, build_range_exp):
48752 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48753 (fetch_number, create_token_tree, mark_opt_subexp):
48755 * lib/regex_internal.c (re_string_construct_common,
48756 create_ci_newstate):
48757 (create_cd_newstate, re_string_allocate, re_string_construct):
48758 (re_string_realloc_buffers, build_wcs_upper_buffer):
48759 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48760 (re_string_reconstruct, re_string_peek_byte_case):
48761 (re_string_fetch_byte_case, re_string_context_at):
48762 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48763 (re_node_set_init_copy, re_node_set_add_intersect):
48764 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48765 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48766 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48767 (re_acquire_state, re_acquire_state_context, register_state):
48769 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48770 search_cur_bkref_entry):
48771 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48772 (re_search_internal, re_search_2_stub, re_search_stub)
48773 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48774 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48775 (update_cur_sifted_state, check_dst_limits):
48776 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48777 (check_subexp_limits, sift_states_bkref, merge_state_array):
48778 (check_subexp_matching_top, get_subexp, get_subexp_sub):
48779 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48780 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48781 (expand_bkref_cache, check_node_accept_bytes):
48782 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48783 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48784 (acquire_init_state_context, check_halt_node_context):
48785 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48786 (sift_states_backward, clean_state_log_if_needed):
48787 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48788 (find_recover_state, transit_state_sb, transit_state_mb):
48789 (transit_state_bkref, build_trtable, match_ctx_clean):
48791 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48792 to work around an assumption that REG_MISSING is negative.
48794 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48795 (seek_collating_symbol_entry) [defined _LIBC]:
48796 (lookup_collation_sequence_value) [defined _LIBC]:
48797 (build_range_exp, build_collating_symbol) [defined _LIBC]:
48798 Use prototypes rather than old-style function definitions.
48799 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48800 (transit_state_sb) [0]:
48801 (find_collation_sequence_value) [defined _LIBC]: Likewise.
48803 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48806 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48807 (optimize_subexps, lower_subexp):
48808 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48809 since the signed shift might overflow. Use 1u<<31 instead.
48810 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48812 * lib/regexec.c (check_dst_limits_calc_pos_1,
48813 check_subexp_matching_top): Likewise.
48815 * lib/regcomp.c (optimize_subexps, lower_subexp):
48816 Use CHAR_BIT rather than 8, for clarity.
48817 * lib/regexec.c (check_dst_limits_calc_pos_1):
48818 (check_subexp_matching_top): Likewise.
48819 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48820 have to worry about portability issues when shifting it left.
48821 Remove no-longer-needed test for table_size > 0.
48822 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48823 in a word, as the resulting behavior is undefined.
48824 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48825 in one case, a <= should have been an <, and in another case the
48826 whole test was missing.
48827 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
48828 the standard name CHAR_BIT.
48829 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48830 this is not true on one's complement and signed-magnitude hosts.
48832 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48834 (struct re_dfa_t): Remove unused member states_alloc.
48835 * lib/regcomp.c (init_dfa): Don't initialize unused members.
48837 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48839 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48840 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
48841 and large-file glibc and in 32-bit large-file Solaris.
48843 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48845 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48846 lengths fit in regoff_t; this isn't true if regoff_t is the same
48848 * lib/regex.c (re_search_internal): 5th arg is LAST_START
48849 (= START + RANGE) instead of RANGE. This avoids overflow
48850 problems when regoff_t is the same width as size_t.
48851 All callers changed.
48852 (re_search_2_stub): Check for overflow when adding the
48853 sizes of the two strings.
48854 (re_search_stub): Check for overflow when adding START
48855 to RANGE; if it occurs, substitute the extreme value.
48857 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48859 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48861 2005-08-31 Jim Meyering <jim@meyering.net>
48863 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48864 a pointer-to-const.
48865 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48866 (register_state): Likewise.
48867 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48868 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48869 (group_nodes_into_DFAstates): Likewise.
48871 2005-08-31 Jim Meyering <jim@meyering.net>
48873 * check-module: Add a FIXME comment.
48875 2005-08-31 Eric Blake <ebb9@byu.net>
48877 * modules/unistd-safer (Files): Add unistd--.h.
48878 * modules/stdio-safer (Files): Add stdio--.h.
48880 2005-08-31 Derek Price <derek@ximbiot.com>
48882 * lib/getdelim.c (getdelim): Return EOF on EOF.
48883 Reported by Larry Jones <lawrence.jones@ugs.com>.
48885 2005-08-31 Bruno Haible <bruno@clisp.org>
48887 Avoid unnecessary diffs in the generated lib/Makefile.am.
48888 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48889 the generated files.
48890 (func_import): Don't set cmd.
48892 2005-08-31 Bruno Haible <bruno@clisp.org>
48894 * lib/strstr.c: Include <stddef.h>, for NULL.
48895 * lib/strcasestr.c: Likewise.
48896 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48898 2005-08-31 Bruno Haible <bruno@clisp.org>
48900 * gnulib-tool: New option --macro-prefix.
48901 (func_import): Use macro_prefix.
48902 (import): Handle option --macro-prefix.
48904 2005-08-31 Bruno Haible <bruno@clisp.org>
48906 * gnulib-tool (import): Rename most ac_* variables to cached_*.
48907 Also use new variables cached_lgpl, cached_libtool.
48909 2005-08-31 Bruno Haible <bruno@clisp.org>
48911 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48912 always instantiating them.
48914 2005-08-31 Bruno Haible <bruno@clisp.org>
48916 * gnulib-tool (func_import): Read the previous cached settings
48917 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48918 earlier added by gnulib but are now dropped. Warn when a gnulib file
48919 overwrites a non-gnulib file.
48921 2005-08-31 Bruno Haible <bruno@clisp.org>
48923 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48924 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48925 projects that don't keep autogenerated files in CVS. Put into
48926 actioncmd only the specified modules, not the transitive closure.
48928 2005-08-31 Bruno Haible <bruno@clisp.org>
48930 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48931 Create directories that shall be filled.
48932 (import): Don't look for gl_* macros in configure.ac. Recurse across
48933 all directories containing a gnulib-cache.m4 files, if meaningful.
48935 2005-08-31 Bruno Haible <bruno@clisp.org>
48937 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48938 (import): Set seen_libtool when we see gl_LIBTOOL.
48940 2005-08-31 Bruno Haible <bruno@clisp.org>
48942 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48943 declaration macro definitions from generated gnulib.m4.
48945 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
48947 * lib/iconvme.h: Add prototype for iconv_alloc.
48949 2005-08-29 Simon Josefsson <jas@extundo.com>
48951 * lib/iconvme.c: Fix errno.
48953 2005-08-29 Bruno Haible <bruno@clisp.org>
48955 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48956 that it works when the directory contains spaces.
48958 2005-08-29 Bruno Haible <bruno@clisp.org>
48960 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48962 2005-08-29 Bruno Haible <bruno@clisp.org>
48964 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48967 2005-08-29 Bruno Haible <bruno@clisp.org>
48968 and Stepan Kasal <kasal@ucw.cz>
48970 * check-module: If more parameters are given, check each of them
48971 separately; add more exceptions, as noted by Jim Meyering.
48972 (check_module): New procedure.
48973 (%exempt_header): Now contains all exceptions.
48975 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
48977 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48979 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
48981 * lib/iconvme.c: Split iconv_string into iconv_alloc.
48983 2005-08-28 Bruno Haible <bruno@clisp.org>
48985 * m4/gnulib-tool.m4: New file.
48987 2005-08-27 Jim Meyering <jim@meyering.net>
48989 * modules/unistd-safer (Files): Add pipe-safer.c.
48990 * modules/fcntl-safer (Files): Add creat-safer.c.
48992 2005-08-27 Jim Meyering <jim@meyering.net>
48994 * m4/stdlib-safer.m4: New file. From coreutils.
48995 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48996 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48997 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48998 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48999 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49001 2005-08-27 Jim Meyering <jim@meyering.net>
49003 * lib/fopen-safer.c: Merge minor changes from coreutils.
49004 * lib/dup-safer.c: Likewise.
49005 * lib/fd-safer.c: Likewise.
49007 Merge from coreutils.
49008 * lib/stdio--.h: New file.
49009 * lib/stdlib--.h: New file.
49010 * lib/mkstemp-safer.c: New file.
49012 GNU tar needs these.
49013 * lib/pipe-safer.c: New file.
49014 * lib/creat-safer.c: New file.
49015 * lib/fcntl--.h (creat): Define to creat_safer.
49016 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49017 * lib/unistd--.h (pipe): Define to pipe_safer.
49018 * lib/unistd-safer.h: Declare pipe_safer.
49020 2005-08-26 Simon Josefsson <jas@extundo.com>
49022 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49023 Haible <bruno@clisp.org>.
49025 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49027 * lib/regex_internal.h: Remove all references to
49028 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49030 (bitset_not, bitset_merge, bitset_not_merge):
49031 (bitset_mask, re_string_allocate, re_string_construct):
49032 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49033 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49034 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49035 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49036 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49037 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49038 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49039 (re_acquire_state_context):
49040 Remove unnecessary forward decls.
49041 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49042 Put __attribute at function definition,
49043 now that the function decl has been removed.
49044 * lib/regex_internal.c (re_string_peek_byte_case):
49045 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49048 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49050 * m4/regex.m4: Add AC_PREREQ(2.50).
49051 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49053 2005-08-25 Simon Josefsson <jas@extundo.com>
49055 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49058 2005-08-25 Simon Josefsson <jas@extundo.com>
49060 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49061 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49062 GLIBC specific code.
49064 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49066 Make regex safe for g++. This fixes one real bug (an "err"
49067 that should have been "*err"). g++ problem reported by
49069 * lib/regex_internal.h (re_calloc): New macro, consistent with
49070 re_malloc etc. All callers of calloc changed to use re_calloc.
49071 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49072 not int. All callers changed.
49073 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49074 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49075 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49076 (find_recover_state): Change "err" to "*err"; this fixes what
49077 appears to be a real bug.
49078 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49081 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49083 * modules/regex (Depends-on): Add malloc, since the code
49084 assumes that !malloc(0) means failure.
49086 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49088 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49090 alloca modernization/simplification for regex.
49091 * lib/regex.c: Remove portability cruft for alloca. This no longer
49092 needs to be at the start of the file, and can be moved into
49093 regex_internal.h and simplified.
49094 * lib/regex_internal.h: Include <alloca.h>.
49095 (__libc_use_alloca) [!defined _LIBC]: New macro.
49096 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49097 now works outside glibc.
49099 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49101 * config/srclist.txt: Add glibc bugs 1241, 1245.
49103 2005-08-25 Jim Meyering <jim@meyering.net>
49105 * lib/open-safer.c: Include <config.h>.
49106 Otherwise, we'd lose LARGEFILE support in any file using
49109 2005-08-25 Bruno Haible <bruno@clisp.org>
49111 * m4/minmax.m4: Require autoconf 2.52.
49112 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49113 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49114 alternatives of translit over the alphabet.
49115 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49117 2005-08-24 Simon Josefsson <jas@extundo.com>
49119 * tests/test-getpass.c: New file.
49121 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49123 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49124 for GNU regex features.
49126 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49128 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49129 * lib/regex.h (regerror): Likewise.
49131 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49132 requires this. (The code never needed it.)
49134 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49135 All uses of recently-renamed identifiers changed to use the new,
49136 POSIX-compliant names. The code will build and run just fine
49137 without these changes, but it's better to eat our own dog food
49138 and use the standard-conforming names.
49140 * lib/regex.h: Fix a multitude of POSIX name space violations.
49141 These changes have an effect only for programs that define
49142 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49143 do not change anything for programs compiled in the normal way.
49144 Also, there is no effect on the ABI.
49146 (_REGEX_SOURCE): New macro.
49147 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49148 defined and _GNU_SOURCE is not; this fixes a name space violation.
49150 Rename the following macros to obey POSIX requirements.
49151 The old names are still visible as macros if _REGEX_SOURCE is defined.
49152 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49153 RE_BACKSLASH_ESCAPE_IN_LISTS.
49154 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49155 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49156 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49157 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49158 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49159 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49160 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49161 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49162 (REG_INTERVALS): renamed from RE_INTERVALS.
49163 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49164 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49165 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49166 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49167 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49168 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49169 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49170 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49171 RE_UNMATCHED_RIGHT_PAREN_ORD.
49172 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49173 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49174 (REG_DEBUG): renamed from RE_DEBUG.
49175 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49176 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49177 unusual, since we can't clash with the POSIX REG_ICASE.
49178 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49179 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49180 (REG_NO_SUB): renamed from RE_NO_SUB.
49181 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49182 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49183 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49184 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49185 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49186 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49187 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49188 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49189 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49190 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49191 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49192 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49193 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49194 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49195 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49196 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49197 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49198 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49199 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49200 (REG_FIXED): Renamed from REGS_FIXED.
49201 (REG_NREGS): Renamed from RE_NREGS.
49203 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49204 of other REG_* macros, since POSIX says the user is allowed to
49205 #undef these macros selectively.
49207 (reg_errcode_t): Update comment stating what other tables need
49210 Rename the following enum values to obey POSIX requirements.
49211 The old names are still visible as macros.
49212 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49213 is not defined, since GNU is supposed to be a superset of POSIX as
49214 much as possible, and since we want reg_errcode_t to be a signed
49215 type for implementation consistency.
49216 (_REG_NOERROR): Renamed from REG_NOERROR.
49217 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49218 (_REG_BADPAT): Renamed from REG_BADPAT.
49219 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49220 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49221 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49222 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49223 (_REG_EBRACK): Renamed from REG_EBRACK.
49224 (_REG_EPAREN): Renamed from REG_EPAREN.
49225 (_REG_EBRACE): Renamed from REG_EBRACE.
49226 (_REG_BADBR): Renamed from REG_BADBR.
49227 (_REG_ERANGE): Renamed from REG_ERANGE.
49228 (_REG_ESPACE): Renamed from REG_ESPACE.
49229 (_REG_BADRPT): Renamed from REG_BADRPT.
49230 (_REG_EEND): Renamed from REG_EEND.
49231 (_REG_ESIZE): Renamed from REG_ESIZE.
49232 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49233 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49234 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49235 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49236 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49238 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49239 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49240 changed. But support the old name if the new one is not defined
49241 and if _REGEX_SOURCE.
49243 Change the following member names in struct re_pattern_buffer.
49244 The old names are still supported if !_REGEX_SOURCE.
49245 The new names are always supported, regardless of _REGEX_SOURCE.
49246 (re_buffer): Renamed from buffer.
49247 (re_allocated): Renamed from allocated.
49248 (re_used): Renamed from used.
49249 (re_syntax): Renamed from syntax.
49250 (re_fastmap): Renamed from fastmap.
49251 (re_translate): Renamed from translate.
49252 (re_can_be_null): Renamed from can_be_null.
49253 (re_regs_allocated): Renamed from regs_allocated.
49254 (re_fastmap_accurate): Renamed from fastmap_accurate.
49255 (re_no_sub): Renamed from no_sub.
49256 (re_not_bol): Renamed from not_bol.
49257 (re_not_eol): Renamed from not_eol.
49258 (re_newline_anchor): Renamed from newline_anchor.
49260 Change the following member names in struct re_registers.
49261 The old names are still supported if !_REGEX_SOURCE.
49262 The new names are always supported, regardless of _REGEX_SOURCE.
49263 (rm_num_regs): Renamed from num_regs.
49264 (rm_start): Renamed from start.
49265 (rm_end): Renamed from end.
49267 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49268 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49269 Prepend __ to parameter names.
49271 Undo yesterday's changes.
49273 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49275 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49276 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49279 2005-08-24 Jim Meyering <jim@meyering.net>
49281 Sync from coreutils.
49282 * m4/fcntl-safer.m4: New file.
49284 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49285 and object files for this module.
49287 2005-08-24 Jim Meyering <jim@meyering.net>
49289 Sync from coreutils.
49290 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49292 2005-08-24 Jim Meyering <jim@meyering.net>
49294 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49295 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49297 2005-08-24 Jim Meyering <jim@meyering.net>
49299 * modules/fcntl-safer: New module.
49300 * modules/fts (Depends-on): Add fcntl-safer.
49301 * MODULES.html.sh (File descriptor based Input/Output):
49304 2005-08-24 Bruno Haible <bruno@clisp.org>
49306 Support for unit test modules.
49307 * modules/README: Mention tests modules.
49308 * modules/TEMPLATE-TESTS: New file.
49309 * gnulib-tool: New options --extract-tests-module, --with-tests and
49310 --tests-base (unused for the moment).
49311 (testsbase, inctests): New variables.
49312 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49313 (func_verify_module): Exclude TEMPLATE-TESTS.
49314 (func_verify_nontests_module, func_verify_tests_module): New functions.
49315 (func_get_dependencies): Add implicit dependency for tests modules.
49316 (func_get_tests_module): New function.
49317 (func_modules_transitive_closure): When --with-tests was specified,
49318 include the unit tests as well, unless explicitly avoided.
49319 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49320 (func_emit_tests_Makefile_am): New function.
49321 (func_create_testdir): When --with-tests was specified, emit a
49323 * MODULES.html.sh (Future developments): Update.
49325 2005-08-24 Bruno Haible <bruno@clisp.org>
49327 * modules/tls-tests: New file.
49328 * tests/test-tls.c: New file, from GNU gettext.
49330 2005-08-24 Bruno Haible <bruno@clisp.org>
49332 * modules/lock-tests: New file.
49333 * tests/test-lock.c: New file, from GNU gettext.
49335 2005-08-24 Bruno Haible <bruno@clisp.org>
49337 * lib/lock.h: Add multiple inclusion guard.
49338 * lib/tls.h: Add multiple inclusion guard.
49340 2005-08-24 Bruno Haible <bruno@clisp.org>
49342 * gnulib-tool: Add support for the --aux-dir option to
49343 --create-testdir, --create-megatestdir, --test, --megatest.
49344 (func_create_testdir, func_create_megatestdir): Optionally emit a
49345 AC_CONFIG_AUX_DIR directive.
49346 (create-testdir, create-megatestdir, test, megatest): Provide a
49347 default value for $auxdir.
49349 2005-08-24 Bruno Haible <bruno@clisp.org>
49351 * gnulib-tool (import): Use compound statement instead of subshell
49354 2005-08-24 Bruno Haible <bruno@clisp.org>
49356 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49358 2005-08-24 Bruno Haible <bruno@clisp.org>
49360 * gnulib-tool (func_version): Update.
49362 2005-08-24 Bruno Haible <bruno@clisp.org>
49364 * gnulib-tool (func_import, func_create_testdir,
49365 func_create_megatestdir): Quote all autoconf macro arguments.
49367 2005-08-24 Bruno Haible <bruno@clisp.org>
49369 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49370 option --force, because --force causes the aclocal.m4 of each
49371 subdirectory to be newer than the corresponding config.h.in.
49373 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49375 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49376 All contents moved to gl_REGEX.
49377 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49378 assume that it does.
49380 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49382 * lib/regex.h (REG_NOSYS)
49383 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49384 Define, since POSIX requires it as of 2001.
49386 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49387 New private symbol, used to keep the enum signed in all cases.
49388 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49390 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49392 * lib/regex_internal.c (re_string_skip_chars, register_state):
49394 Remove forward decls; no longer needed now that we use prototypes.
49395 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49396 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49397 (clean_state_log_if_needed): Likewise.
49399 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49401 * config/srclist.txt: Add glibc bugs 1231-1233.
49403 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49405 Fix problems reported by Sam Steingold in
49406 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49407 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49408 assumed that reg_errcode_t is a signed type, which is not
49409 necessarily true if _XOPEN_SOURCE is not defined.
49410 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49411 since some compilers warn about it otherwise.
49413 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49415 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49416 (init_word_char, create_initial_state, duplicate_node_closure):
49417 (fetch_token, peek_token_bracket, build_range_exp):
49418 (build_collating_symbol): Remove forward decls; no longer needed
49419 now that we use prototypes.
49422 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49423 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49424 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49425 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49426 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49427 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49428 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49429 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49430 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49431 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49432 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49433 (build_charclass, build_charclass_op, fetch_number, create_tree):
49434 (create_token_tree, mark_opt_subexp, duplicate_tree):
49435 Use prototypes rather than old-style definitions.
49437 * lib/regex_internal.c:
49438 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49439 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49440 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49441 (re_string_reconstruct, re_string_peek_byte_case):
49442 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49443 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49444 (re_node_set_init_copy, re_node_set_add_intersect):
49445 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49446 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49447 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49448 (re_acquire_state, re_acquire_state_context, register_state):
49449 (create_ci_newstate, create_cd_newstate, free_state):
49451 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49453 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49454 (re_search_internal, prune_impossible_nodes):
49455 (acquire_init_state_context, check_matching, static):
49456 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49457 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49458 (update_regs, sift_states_backward, build_sifted_states):
49459 (clean_state_log_if_needed, merge_state_array):
49460 (update_cur_sifted_state, add_epsilon_src_nodes):
49461 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49462 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49463 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49464 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49465 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49466 (check_arrival, check_arrival_add_next_nodes):
49467 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49468 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49469 (check_node_accept_bytes, check_node_accept, extend_buffers):
49470 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49471 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49475 * lib/regex_internal.h:
49476 (re_string_allocate, re_string_construct, re_string_reconstruct):
49477 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49478 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49479 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49480 (re_string_context_at, re_string_peek_byte_case):
49481 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49482 is defined, since we now use prototypes always.
49484 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49485 C89 or better. All uses removed.
49487 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49489 * config/srclist.txt: Add glibc bugs 1220-1227.
49491 2005-08-20 Jim Meyering <jim@meyering.net>
49493 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49494 of unused local, dfa.
49496 2005-08-20 Bruno Haible <bruno@clisp.org>
49498 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49500 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49502 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49503 (re_node_set_insert_last, re_dfa_add_node):
49504 Rename local variables to avoid GCC shadowing warnings.
49506 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49508 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49509 [defined lint]: Suppress bogus uninitialized-variable warnings.
49511 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49512 and let the caller return REG_ESPACE if out of space. This
49513 removes an uninitialied-variable warning with GCC 4.0.1, and also
49514 avoids taking the address of a local variable. All callers
49517 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49519 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49520 $LIBCSRC/posix/regexec.c.
49521 Add glibc bug 1217 for regcomp.c.
49523 2005-08-19 Jim Meyering <jim@meyering.net>
49525 * lib/regexec.c (proceed_next_node): Redo local variables to
49526 avoid GCC shadowing warnings.
49528 2005-08-18 Bruno Haible <bruno@clisp.org>
49530 * lib/strstr.c (strstr): Fix return value in multibyte case.
49531 * lib/strcasestr.c (strcasestr): Likewise.
49533 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49535 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49537 2005-08-17 Jim Meyering <jim@meyering.net>
49539 Make the %s format (seconds since the epoch) work for a negative
49540 number and when used with a zero-padded field width, e.g. %015s.
49542 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49543 label so that it precedes the code to set `digits'. Otherwise,
49544 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49545 print `00-22'. Now, it prints `-0022', as it should.
49547 2005-08-17 Bruno Haible <bruno@clisp.org>
49549 * modules/strstr (Files): Add m4/mbrtowc.m4.
49550 (Depends-on): Add mbuiter.
49552 2005-08-17 Bruno Haible <bruno@clisp.org>
49554 * modules/strcasestr: New file.
49555 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49558 2005-08-17 Bruno Haible <bruno@clisp.org>
49560 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49562 2005-08-17 Bruno Haible <bruno@clisp.org>
49564 * modules/mbuiter: New file.
49565 * MODULES.html.sh (Extended multibyte and wide character utilities):
49568 2005-08-17 Bruno Haible <bruno@clisp.org>
49570 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49571 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49573 2005-08-17 Bruno Haible <bruno@clisp.org>
49575 * m4/strcasestr.m4: New file.
49577 2005-08-17 Bruno Haible <bruno@clisp.org>
49579 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49580 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49582 2005-08-17 Bruno Haible <bruno@clisp.org>
49584 * lib/strcasestr.h: New file.
49585 * lib/strcasestr.c: New file.
49587 2005-08-17 Bruno Haible <bruno@clisp.org>
49589 * lib/strcasecmp.c: Use mbuiter.h.
49591 2005-08-17 Bruno Haible <bruno@clisp.org>
49593 * lib/mbuiter.h: New file.
49595 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49597 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49598 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49599 and gl_GETOPT are both invoked via different paths (as happens
49600 with GNU tar CVS because it uses both argp and getopt), the former
49603 2005-08-16 Bruno Haible <bruno@clisp.org>
49605 * modules/tls: New file.
49606 * MODULES.html.sh (Multithreading): Add tls.
49608 2005-08-16 Bruno Haible <bruno@clisp.org>
49610 * modules/strnlen1: New file.
49611 * MODULES.html.sh (String handling): Add strnlen1.
49613 2005-08-16 Bruno Haible <bruno@clisp.org>
49615 * modules/strcase (Files): Add m4/mbrtowc.m4.
49616 (Depends-on): Add strnlen1, mbchar.
49618 2005-08-16 Bruno Haible <bruno@clisp.org>
49620 * modules/mbiter: New file.
49621 * MODULES.html.sh (Extended multibyte and wide character utilities):
49624 2005-08-16 Bruno Haible <bruno@clisp.org>
49626 * modules/mbfile: New file.
49627 * MODULES.html.sh (Extended multibyte and wide character utilities):
49630 2005-08-16 Bruno Haible <bruno@clisp.org>
49632 * modules/mbchar: New file.
49633 * MODULES.html.sh (Extended multibyte and wide character utilities):
49636 2005-08-16 Bruno Haible <bruno@clisp.org>
49638 * m4/tls.m4: New file, from GNU gettext.
49640 2005-08-16 Bruno Haible <bruno@clisp.org>
49642 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49644 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49646 2005-08-16 Bruno Haible <bruno@clisp.org>
49648 * m4/mbiter.m4: New file.
49650 2005-08-16 Bruno Haible <bruno@clisp.org>
49652 * m4/mbfile.m4: New file.
49654 2005-08-16 Bruno Haible <bruno@clisp.org>
49656 * m4/mbchar.m4: New file.
49658 2005-08-16 Bruno Haible <bruno@clisp.org>
49660 * lib/tls.h: New file, from GNU gettext.
49661 * lib/tls.c: New file, from GNU gettext.
49663 2005-08-16 Bruno Haible <bruno@clisp.org>
49665 * lib/strnlen1.h: New file.
49666 * lib/strnlen1.c: New file.
49668 2005-08-16 Bruno Haible <bruno@clisp.org>
49670 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49671 (mbi_init): Update.
49672 (mbi_avail, mbi_advance): Let the iteration end before the terminating
49673 NUL byte, not after it.
49675 2005-08-16 Bruno Haible <bruno@clisp.org>
49677 * lib/strcase.h (strcasecmp): Add note in comments.
49678 * lib/strncasecmp.c: Use code from strcasecmp.c.
49679 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49680 (strcasecmp): Work correctly in multibyte locales.
49682 2005-08-16 Bruno Haible <bruno@clisp.org>
49684 * lib/mbiter.h: New file.
49686 2005-08-16 Bruno Haible <bruno@clisp.org>
49688 * lib/mbfile.h: New file.
49690 2005-08-16 Bruno Haible <bruno@clisp.org>
49692 * lib/mbchar.h: New file.
49693 * lib/mbchar.c: New file.
49695 2005-08-16 Bruno Haible <bruno@clisp.org>
49697 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49698 the valid ones. Makes the comparison operations transitive:
49699 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49700 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49702 2005-08-15 Simon Josefsson <jas@extundo.com>
49704 * modules/ssize_t (License): Change to 'unlimited'.
49706 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49708 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
49710 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49711 Add comments for each pending glibc patch.
49713 2005-08-15 Bruno Haible <bruno@clisp.org>
49715 * lib/regex.h (__restrict_arr): Don't define to __restrict if
49716 __cplusplus is defined.
49718 2005-08-14 Jim Meyering <jim@meyering.net>
49720 Sync from coreutils.
49722 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49723 Use the hash-table-based cycle-detection code not just when
49724 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49725 Reported by James Youngman in
49726 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49727 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49728 FTS_TIGHT_CYCLE_CHECK.
49729 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49730 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49732 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49733 * lib/fts.c (fd_safer): Remove decl.
49734 Include fcntl--.h rather than unistd-safer.h
49735 (fts_safe_changedir): Don't call fd_safer; no longer needed
49736 now that we include fcntl--.h.
49738 2005-08-12 Simon Josefsson <jas@extundo.com>
49740 * modules/getndelim2: Use ssize_t module.
49741 * modules/getnline: Likewise.
49742 * modules/safe-read: Likewise.
49743 * modules/xreadlink: Likewise.
49745 * modules/ssize_t: New file.
49747 2005-08-12 Simon Josefsson <jas@extundo.com>
49749 * m4/readline.m4: Look for termcap, curses or ncurses if required.
49751 2005-08-12 Simon Josefsson <jas@extundo.com>
49753 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49756 2005-08-12 Simon Josefsson <jas@extundo.com>
49758 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49759 readline, getdelim and check_version.
49760 (Support for systems lacking ISO C 99: Sizes of integer types):
49763 2005-08-12 Bruno Haible <bruno@clisp.org>
49765 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49767 2005-08-11 Simon Josefsson <jas@extundo.com>
49769 * modules/readline: New file.
49771 * modules/strnlen (Files): Add strnlen.h.
49773 2005-08-11 Simon Josefsson <jas@extundo.com>
49775 * m4/readline.m4: New file.
49777 2005-08-11 Simon Josefsson <jas@extundo.com>
49779 * lib/readline.h, readline.c: New file.
49781 2005-08-11 Simon Josefsson <jas@extundo.com>
49783 * doc/gnulib.texi (Initial import, Finishing touches): Mention
49786 2005-08-11 Bruno Haible <bruno@clisp.org>
49788 * lib/strnlen.h (strnlen): Change parameter name to match comment.
49790 2005-08-10 Stepan Kasal <kasal@ucw.cz>
49792 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49794 2005-08-10 Simon Josefsson <jas@extundo.com>
49796 * tests/test-iconvme.c: New file.
49798 2005-08-10 Simon Josefsson <jas@extundo.com>
49800 * m4/strnlen.m4: New file.
49802 * m4/strndup.m4: Don't check for strnlen declaration, done in
49805 2005-08-10 Simon Josefsson <jas@extundo.com>
49807 * lib/strndup.c: Use strnlen.h.
49809 * lib/strnlen.h: New file.
49811 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49815 2005-08-02 Simon Josefsson <jas@extundo.com>
49817 * modules/readline: New file.
49819 2005-08-02 Simon Josefsson <jas@extundo.com>
49821 * modules/getdelim: New file.
49823 * modules/getline: Rewrite, don't use getndelim2.
49825 2005-08-02 Simon Josefsson <jas@extundo.com>
49827 * m4/getline.m4: Separate out getdelim stuff into separate module.
49829 * m4/getdelim.m4: New file.
49831 2005-08-02 Simon Josefsson <jas@extundo.com>
49833 * lib/getline.h, getline.c: Rewrite.
49835 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49837 2005-07-31 Bruno Haible <bruno@clisp.org>
49839 * lib/lock.h (gl_lock_initializer): New macro.
49840 (gl_lock_define_initialized): Use it.
49841 (gl_rwlock_initializer): New macro.
49842 (gl_rwlock_define_initialized): Use it.
49843 (gl_recursive_lock_initializer): New macro.
49844 (gl_recursive_lock_define_initialized): Use it.
49846 2005-07-30 Karl Berry <karl@gnu.org>
49848 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49849 Report from Ben Pfaff, regarding getopt.
49851 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
49853 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49855 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49856 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
49857 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49858 (gl_GETOPT): Use the new macros. Most of the implementation
49859 is moved to the new macros. This is for programs like Emacs
49860 that don't want all the functionality of gl_GETOPT.
49862 2005-07-26 Bruno Haible <bruno@clisp.org>
49864 * m4/lock.m4: Update from GNU gettext.
49866 2005-07-26 Bruno Haible <bruno@clisp.org>
49868 * lib/lock.h: Update from GNU gettext.
49869 * lib/lock.c: Update from GNU gettext.
49871 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
49873 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49874 obsolescent AC_TRY_RUN. Include the default includes files, for
49877 2005-07-24 Bruno Haible <bruno@clisp.org>
49879 * modules/visibility: New file.
49880 * MODULES.html.sh (Misc): Add visibility.
49882 2005-07-24 Bruno Haible <bruno@clisp.org>
49884 * m4/visibility.m4: New file.
49886 2005-07-24 Bruno Haible <bruno@clisp.org>
49888 * doc/visibility.texi: New file.
49890 2005-07-22 Bruno Haible <bruno@clisp.org>
49892 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49893 $(ALLOCA_H), redundant through BUILT_SOURCES.
49894 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49895 redundant through BUILT_SOURCES.
49896 * modules/byteswap (Makefile.am): Remove explicit dependency on
49897 $(BYTESWAP_H), redundant through BUILT_SOURCES.
49898 * modules/fnmatch (Makefile.am): Remove explicit dependency on
49899 $(FNMATCH_H), redundant through BUILT_SOURCES.
49900 * modules/getopt (Makefile.am): Remove explicit dependency on
49901 $(GETOPT_H), redundant through BUILT_SOURCES.
49902 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49903 redundant through BUILT_SOURCES.
49904 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49905 redundant through BUILT_SOURCES.
49906 * modules/stdbool (Makefile.am): Remove explicit dependency on
49907 $(STDBOOL_H), redundant through BUILT_SOURCES.
49908 * modules/stdint (Makefile.am): Remove explicit dependency on
49909 $(STDINT_H), redundant through BUILT_SOURCES.
49910 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49911 Remove explicit dependency on $(SYSEXITS_H).
49912 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49914 2005-07-18 Simon Josefsson <jas@extundo.com>
49916 * lib/check-version.c (check_version): Accept identical versions too.
49918 2005-07-18 Bruno Haible <bruno@clisp.org>
49920 * modules/lock: New file.
49921 * MODULES.html.sh (Multithreading): New section.
49923 2005-07-18 Bruno Haible <bruno@clisp.org>
49925 * m4/lock.m4: New file, from GNU gettext.
49927 2005-07-18 Bruno Haible <bruno@clisp.org>
49929 * lib/lock.h: New file, from GNU gettext.
49930 * lib/lock.c: New file, from GNU gettext.
49932 2005-07-18 Bruno Haible <bruno@clisp.org>
49934 * lib/lock.h (gl_once_t): New type.
49935 (gl_once_define, gl_once): New macros.
49936 * lib/lock.c (fresh_once): New variable.
49937 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49940 2005-07-16 Simon Josefsson <jas@extundo.com>
49942 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49943 workaround, suggested by Bruno.
49945 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
49947 * modules/xalloc (Depends-on): Add xalloc-die.
49948 * modules/xvasprintf (Depends-on): Add xalloc-die.
49950 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
49952 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49953 with a minor change.
49955 2005-07-15 Bruno Haible <bruno@clisp.org>
49957 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49958 When using lib/poll.c, define poll as rpl_poll.
49960 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
49962 * modules/argp (Depends-on): Remove unlocked-io.
49964 2005-07-14 Derek Price <derek@ximbiot.com>
49966 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
49967 for glob symlink bug.
49969 2005-07-14 Bruno Haible <bruno@clisp.org>
49971 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49972 Instead, test for *_unlocked function declarations directly.
49974 2005-07-11 Simon Josefsson <jas@extundo.com>
49976 * modules/size_max: New file.
49978 * modules/xsize: Depend on size_max module for size_max.m4.
49980 2005-07-11 Simon Josefsson <jas@extundo.com>
49982 * lib/size_max.h: New file.
49984 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
49986 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49987 copyright symbol and the year.
49988 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49989 (version_etc_va): Use parameterized copyright notice.
49990 Reword to conform to the current GNU coding standards.
49992 2005-07-11 Karl Berry <karl@gnu.org>
49994 * doc/gnulib.texi (Quoting): new node.
49995 (Initial import): more info, from Patrice.
49997 2005-07-11 Bruno Haible <bruno@clisp.org>
49999 * gnulib-tool (func_usage): Document option --avoid.
50000 (Command line options): Handle --avoid.
50001 (func_acceptable): New function.
50002 (func_modules_transitive_closure): Use it.
50004 2005-07-11 Bruno Haible <bruno@clisp.org>
50006 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50007 Reported by Jim Meyering.
50009 2005-07-10 Bruno Haible <bruno@clisp.org>
50011 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50012 Needed when size_t is smaller than 'unsigned int'.
50013 Reported by Paul Eggert.
50015 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50017 * modules/argp (Depends-on): Add unlocked-io
50019 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50021 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50024 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50026 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50029 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50030 and Paul Eggert <eggert@cs.ucla.edu>
50032 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50033 in wint_t, not wchar_t. Remove now-unnecessary cast.
50035 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50037 * modules/regex (Files): Add lib/regex_internal.c,
50038 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50039 (Depends-on): Add extensions.
50040 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50042 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50044 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50046 * m4/same.m4 (gl_SAME): Likewise.
50047 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50049 * m4/regex.m4: Adjust to new libc regex implementation.
50050 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50051 all the .c and .h parts of (the new) regex.
50052 Quote the m4 stuff better.
50053 Check for RE_ICASE bug of old gnulib.
50054 Check for REG_STARTEND of recent libc.
50055 Rename local variables from jm_* to gl_*.
50056 Quote operand of "test -f".
50057 Say "recent enough" version of libc, not "version 2".
50058 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50059 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50060 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50061 Remove check for btowc, isascii.
50062 Require AM_LANGINFO_CODESET.
50064 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50066 * lib/regex.c, regex.h: Sync from libc.
50067 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50069 New files, synced from libc, except that regex_internal.h
50070 currently has a small porting fix.
50072 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50074 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50075 regex_internal.c, regexec.c.
50076 Add regex_internal.h too, but as a comment, since the libc version
50077 is currently broken in gnulib mode.
50079 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50081 Support programs like Emacs that use gnulib but not gettext.
50082 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50083 * modules/gettext-h: New file.
50084 * modules/gettext (Files): Remove lib/gettext.h.
50085 (Depends-on): Add gettext-h.
50086 (Makefile.am): Remove lib_SOURCES.
50087 * modules/argmatch, modules/c-stack, modules/closeout:
50088 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50089 * modules/execute, modules/file-type, modules/getaddrinfo:
50090 * modules/getopt, modules/human, modules/javacomp:
50091 * modules/javaexec, modules/mkdir-p, modules/obstack:
50092 * modules/openat, modules/pagealign_alloc, modules/pipe:
50093 * modules/quotearg, modules/regex, modules/rpmatch:
50094 * modules/unicodeio, modules/userspec, modules/version-etc:
50095 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50097 Depend on gettext-h, not gettext.
50099 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50101 * gnulib-tool (func_import): Add support for 'public domain' license.
50102 * modules/alloca, modules/atexit, modules/memmove:
50103 Now public domain, not GPL.
50104 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50105 * modules/realloc, modules/strerror, modules/strtod:
50108 2005-07-05 Bruno Haible <bruno@clisp.org>
50110 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50111 autoconf CVS. Needed for mingw.
50113 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50115 Remove the dependency of the strftime module on the tzset module.
50116 * modules/strftime (Depends-on): Remove dependency on tzset.
50118 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50120 Remove the dependency of the strftime module on the tzset module.
50121 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50122 gl_FUNC_TZSET_CLOBBER.
50124 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50126 Remove the dependency of the strftime module on the tzset module.
50127 * lib/strftime.c (my_strftime)
50128 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50129 Copy the input structure, to work around some of the bug with
50130 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50131 Solaris releases, you should also use the tzset module, but we won't
50132 require it as a dependency any more since we don't want LGPLed code
50133 to depend on GPLed code.
50135 2005-07-02 Jim Meyering <jim@meyering.net>
50137 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50138 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50139 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50140 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50142 2005-07-02 Jim Meyering <jim@meyering.net>
50144 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50146 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50148 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50149 declares only 'struct timespec;' (!).
50151 2005-07-01 Jim Meyering <jim@meyering.net>
50153 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50154 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50155 * lib/save-cwd.c, tempname.c:
50156 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50157 and don't include <sys/file.h>).
50159 2005-06-29 Jim Meyering <jim@meyering.net>
50161 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50162 type name. Use the variable name instead.
50163 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50166 2005-06-28 Simon Josefsson <jas@extundo.com>
50168 * modules/check-version (Files): Add check-version.m4.
50170 2005-06-28 Simon Josefsson <jas@extundo.com>
50172 * m4/check-version.m4: New file, suggested by Jim Meyering
50173 <jim@meyering.net>.
50175 2005-06-28 Simon Josefsson <jas@extundo.com>
50177 * lib/check-version.h, lib/check-version.c: New files.
50179 2005-06-28 Simon Josefsson <jas@extundo.com>
50181 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50182 collision with global variable. Better indentation. Don't
50183 increment buffer pointer beyond buffer end. Based on comments
50184 from Paul Eggert <eggert@cs.ucla.edu>.
50186 * lib/base64.h: Indent.
50188 2005-06-28 Simon Josefsson <jas@extundo.com>
50190 * doc/gnulib.texi (Library version handling): New section.
50192 2005-06-28 Jim Meyering <jim@meyering.net>
50194 * check-module (find_included_lib_files): Hard-code another
50195 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50196 but modules/fts-lgpl (correctly) does not list those files.
50198 * modules/canonicalize (Files): Add lib/pathmax.h.
50200 2005-06-25 Simon Josefsson <jas@extundo.com>
50202 * modules/check-version: New file.
50204 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50206 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50207 initializer of struct addrinfo, as an indication that we don't
50208 care how many members the structure has.
50210 2005-06-24 Derek Price <derek@ximbiot.com>
50211 and Bruno Haible <bruno@clisp.org>
50213 Remove stat module & update lstat.
50214 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50215 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50216 * m4/stat.m4: Remove this file.
50218 2005-06-24 Derek Price <derek@ximbiot.com>
50219 and Bruno Haible <bruno@clisp.org>
50221 Remove stat module & update lstat.
50222 * lib/stat.c: Remove this file...
50223 (slash_aware_lstat): ...moving this content and its support...
50224 * lib/lstat.c (rpl_lstat): ...into here.
50225 * lib/lstat.h: New file.
50227 2005-06-24 Derek Price <derek@ximbiot.com>
50228 and Bruno Haible <bruno@clisp.org>
50230 Remove stat module & update lstat.
50231 * config/srclist.txt (libc sources): Remove stat.
50233 2005-06-24 Derek Price <derek@ximbiot.com>
50234 and Bruno Haible <bruno@clisp.org>
50236 Remove stat module & update lstat.
50237 * MODULES.html.sh (stat): Remove.
50238 * MODULES.html: Regenerated.
50239 * modules/lstat (Description): Correct function name.
50240 (Files): Add "lstat.h".
50241 (Depends-on): Remove stat, add xalloc, stat-macros.
50242 * modules/stat: Remove this file.
50243 (Include): Add "lstat.h", remove <sys/stat.h>.
50245 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50247 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50248 (ranged_convert): Don't save conversion in a temporary struct.
50249 This causes a warning with GCC 4.0.0, and anyway in the typical
50250 case it's not worth the extra 100 bytes or so of code.
50251 (ranged_convert, __mktime_internal): When calling a function via a
50252 pointer P, use P () rather than (*P) (), as we now assume C89 or
50255 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50257 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50258 "who -r" failed to give output. Problem reported by Tim Waugh.
50260 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50261 (xcalloc): Use it to avoid needless tests.
50262 Problem reported by Jim Meyering.
50264 2005-06-20 Derek Price <derek@ximbiot.com>
50266 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50267 unnecessary for Autoconfs > 2.59c.
50269 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50271 * lib/argp.h (__option_is_short): Check upper limit of
50272 __key. Isprint() requires its argument to have the value
50273 of an unsigned char or EOF.
50275 2005-06-16 Jim Meyering <jim@meyering.net>
50277 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50278 when either N or S is zero.
50280 2005-06-16 Derek Price <derek@ximbiot.com>
50282 * m4/bison.m4: Declare YACC & YFLAGS precious.
50284 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50286 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50287 multibyte string or pattern, fall back on unibyte matching.
50288 Problem reported by James Youngman.
50290 2005-06-08 Bruno Haible <bruno@clisp.org>
50292 * modules/csharpcomp: New file.
50293 * MODULES.html.sh (C#): Add csharpcomp.
50295 2005-06-08 Bruno Haible <bruno@clisp.org>
50297 * m4/csharpcomp.m4: New file, from GNU gettext.
50299 2005-06-08 Bruno Haible <bruno@clisp.org>
50301 * lib/csharpcomp.h: New file, from GNU gettext.
50302 * lib/csharpcomp.c: New file, from GNU gettext.
50303 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50305 2005-06-08 Bruno Haible <bruno@clisp.org>
50307 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50310 2005-06-07 Derek Price <derek@ximbiot.com>
50313 * lib/glob_.h: Indent nested #ifdef.
50315 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50317 Sync from coreutils.
50318 Use "file name" when talking about file names, instead of "filename"
50319 or "path", as per the GNU coding standards.
50320 * lib/mkdir-p.c: Renamed from makepath.c.
50321 (make_dir_parents): Renamed from make_path. All callers changed.
50322 * lib/mkdir-p.h: Likewise. All includers changed.
50323 * lib/filenamecat.c: Renamed from path-concat.c.
50324 (file_name_concat): Renamed from path_concat. All callers changed.
50325 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50326 * lib/filenamecat.h: Likewise. All includers changed.
50327 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50328 in comments or local variable names.
50329 * lib/basename.c: Likewise.
50330 * lib/canonicalize.c, canonicalize.h: Likewise.
50331 * lib/dirname.c, dirname.h: Likewise.
50332 * lib/euidaccess.c: Likewise.
50333 * lib/exclude.c: Likewise
50334 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50335 * lib/fsusage.c, fsuage.h: Likewise.
50336 * lib/fts.c, fts_.h: Likewise.
50337 * lib/getcwd.c: Likewise.
50338 * lib/getloadavg.c: Likewise.
50339 * lib/mkstemp.c: Likewise.
50340 * lib/mountlist.c, mountlist.h: Likewise.
50341 * lib/openat.c, openat.h: Likewise.
50342 * lib/readlink-stub.c: Likewise.
50343 * lib/readutmp.c, readutmp.h: Likewise.
50344 * lib/rename.c: Likewise.
50345 * lib/rmdir.c: Likewise.
50346 * lib/same.c: Likewise.
50347 * lib/savedir.c: Likewise.
50348 * lib/stripslash.c: Likewise.
50349 * lib/tempname.c: Likewise.
50350 * lib/xreadlink.c: Likewise.
50351 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50353 * lib/exclude.h: Likewise.
50355 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50356 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50357 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50358 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50359 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50360 files have been getting away with it for years (MORE/BSD 4.3
50362 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50363 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50365 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50366 Define to 256, not 255, as per modern POSIX.
50368 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50370 Sync from coreutils.
50371 Use "file name" when talking about file names, instead of "filename"
50372 or "path", as per the GNU coding standards.
50373 * MODULES.html.sh: mkdir-p renamed from makepath.
50374 filenamecat renamed from path-concat.
50375 * modules/filenamecat: Renamed from modules/path-concat.
50376 (Files): filenamecat.h and filenamecat.c renamed from
50377 path-concat.h and path-concat.c.
50378 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50379 (Include): filenamecat.h, not path-concat.h.
50380 * modules/mkdir-p: Renamed from modules/makepath.
50381 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50383 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50384 (Include): mkdir-p.h, not makepath.h.
50386 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50388 Sync from coreutils.
50389 * m4/mkdir-p.m4: Renamed from makepath.m4.
50390 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50391 Rename files from makepath.c to mkdir-p.c, and from
50392 makepath.h to mkdir-p.h.
50393 * m4/filenamecat.m4: Renamed from path-concat.m4.
50394 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50395 Rename files from path-concat.c to filenamecat.c,
50396 and from path-concat.h to filenamecat.h.
50397 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50398 "file name" in local variables or comments.
50399 * m4/rename.m4: Likewise.
50401 2005-06-01 Bruno Haible <bruno@clisp.org>
50403 * modules/csharpexec: New file.
50404 * MODULES.html.sh (C#): New section.
50406 2005-06-01 Bruno Haible <bruno@clisp.org>
50408 * m4/csharp.m4: New file, from GNU gettext.
50409 * m4/csharpexec.m4: New file, from GNU gettext.
50411 2005-06-01 Bruno Haible <bruno@clisp.org>
50413 * lib/csharpexec.h: New file, from GNU gettext.
50414 * lib/csharpexec.c: New file, from GNU gettext.
50415 * lib/csharpexec.sh.in: New file, from GNU gettext.
50417 2005-05-31 Derek Price <derek@ximbiot.com>
50418 Paul Eggert <eggert@cs.ucla.edu>
50421 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50423 2005-05-31 Derek Price <derek@ximbiot.com>
50424 Paul Eggert <eggert@cs.ucla.edu>
50427 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50429 2005-05-29 Derek Price <derek@ximbiot.com>
50431 * config/srclist.txt (glob_.h, glob.c): Add these files.
50433 2005-05-29 Derek Price <derek@ximbiot.com>
50435 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50436 * modules/glob: New file.
50437 * modules/getlogin_r: Add link to POSIX spec in description.
50439 2005-05-29 Derek Price <derek@ximbiot.com>
50440 Paul Eggert <eggert@cs.ucla.edu>
50442 * m4/glob.m4: New file.
50444 2005-05-29 Derek Price <derek@ximbiot.com>
50445 Paul Eggert <eggert@cs.ucla.edu>
50447 * lib/glob_.h, lib/glob.c: New files.
50449 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50451 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50452 * modules/fts-lgpl (Depends-on): Remove gettext.
50454 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50456 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50457 and don't require gt_INTTYPES_PRI.
50459 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50461 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50463 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50464 the configuration hassle isn't worth it.
50465 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50466 (LONGEST_MODIFIER, PRIuMAX): Remove.
50468 2005-05-27 Bruno Haible <bruno@clisp.org>
50470 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50472 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50474 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50475 _POSIX_PTHREAD_SEMANTICS for Solaris.
50477 2005-05-25 Derek Price <derek@ximbiot.com>
50479 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50481 2005-05-25 Derek Price <derek@ximbiot.com>
50482 Paul Eggert <eggert@cs.ucla.edu>
50484 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50485 * lib/getlogin_r.c, getlogin_r.h: New files.
50487 2005-05-25 Bruno Haible <bruno@clisp.org>
50488 Derek Price <derek@ximbiot.com>
50490 * lib/getlogin_r.h: Simplify API documentation.
50492 2005-05-23 Derek Price <derek@ximbiot.com>
50494 * modules/minmax (Files): Add m4/minmax.m4.
50495 (configure.ac): Add gl_MINMAX.
50497 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50499 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50500 so that unistd-safer.h (GPL'ed code) need not be included.
50502 2005-05-22 Bruno Haible <bruno@clisp.org>
50504 * m4/minmax.m4: New file.
50505 Based on a patch by Derek Price <derek@ximbiot.com>.
50507 2005-05-22 Bruno Haible <bruno@clisp.org>
50509 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50510 (INT64_MIN): Fix definition.
50511 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50513 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50514 NEED_SIGNED_INT_TYPES.
50516 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50517 HAVE_SYSTEM_INTTYPES.
50519 2005-05-22 Bruno Haible <bruno@clisp.org>
50521 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50522 Also include <sys/param.h> if it defines MIN, MAX.
50523 Based on a patch by Derek Price <derek@ximbiot.com>.
50525 2005-05-21 Jim Meyering <jim@meyering.net>
50527 * modules/fts (Files): Add m4/inttypes-pri.m4.
50528 (Depends-on): Add lstat and remove gettext. Alphabetize.
50530 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50533 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50534 (setup_dir, free_dir): New functions.
50535 (enter_dir, leave_dir): Define trivial
50536 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50537 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50538 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50539 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50540 Move to fts-cycle.c.
50541 (fts_open): Use setup_dir.
50542 (fts_close): Use free_dir.
50543 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50544 This adds a label and some gotos, but the alternatives were messier.
50545 Check for memory allocation failure when entering a dir.
50546 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50547 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50548 (FTS): New member fts_cycle, that is a union that contains the
50549 old active_dir_ht and cycle_state. All uses changed to mention
50550 fts_cycle.ht and fts_cycle.state.
50551 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50552 fts.c, with the following changes:
50553 (setup_dir, free_dir): New functions.
50554 (enter_dir): Now returns bool. Return true if successful, false
50555 if memory exhausted. All callers changed.
50556 Do not bother partly cleaning up on
50557 memory allocation failure; that is free_dir's job.
50558 However, free ad if hash_insert fails, to avoid memory leak.
50559 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50560 fts->fts_options to see which union member to use.
50562 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50564 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50565 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50567 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50569 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50571 2005-05-20 Jim Meyering <jim@meyering.net>
50573 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50574 Now a macro, to pacify GCC.
50576 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50578 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50581 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50583 * lib/chown.c (rpl_chown): Return -1 on failure.
50585 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50587 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50588 Don't check for stddef.h.
50589 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50590 don't use its results.
50591 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50592 since we include them unconditionally. Don't require
50593 AM_STDBOOL_H, since stdbool is a prerequisite.
50594 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50595 since we assume C89 or better.
50596 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50597 as we don't use their results.
50598 Don't check for fchdir, memmove, memset, strrchr, as we use
50599 them unconditionally.
50600 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50601 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50603 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50605 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50606 Include <stddef.h> unconditionally, since we assume C89 now.
50607 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50608 * lib/fts.c: Include fts_.h first, to check interface.
50609 Do not include intprops.h; no longer needed.
50610 Include cycle-check.h and hash.h, since fts_.h no longer does.
50611 Remove unnecessary casts of closedir to void.
50612 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50613 decide whether to decrement nlinks.
50614 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50615 (FTS): Use struct hash_table * instead of Hash_table, so that
50616 we no longer need to include hash.h here.
50618 2005-05-18 Jim Meyering <jim@meyering.net>
50620 * modules/dirfd (License): Change to LGPL. Most of the code
50621 is already in the public domain.
50623 2005-05-18 Jim Meyering <jim@meyering.net>
50625 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50626 Reported by Yoann Vandoorselaere.
50628 2005-05-17 Jim Meyering <jim@meyering.net>
50630 * m4/fts.m4: New file, from coreutils.
50632 2005-05-17 Jim Meyering <jim@meyering.net>
50634 * lib/fts.c, lib/fts_.h: New files, from coreutils.
50636 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50638 Sync from coreutils.
50639 * m4/unlinkdir.m4: New file.
50641 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50643 Sync from coreutils.
50644 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50645 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50646 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50647 White space changes only.
50648 * lib/makepath.c (make_path): Port to hosts where leading "//" is
50650 * lib/yesno.c: Include getline.h, not ctype.h.
50651 (yesno): Don't remove leading white space; POSIX doesn't allow it.
50652 Use getline to remove arbitrary restriction on response length.
50654 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50656 * config/srclist-update: Spell out "Street" in FSF postal
50657 mail address; this is the style the FSF seems to prefer.
50659 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50660 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50661 this updates FSF postal mail address.
50663 Sync from coreutils.
50664 * modules/unlinkdir: New file.
50665 * modules/yesno (Depends-on): Add getline.
50666 * MODULES.html.sh (File system functions): Add unlinkdir.
50668 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50670 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50672 Change the initial comment to refer to GPL, not LGPL.
50673 gnulib-tool will change it to LGPL as needed.
50675 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50676 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50677 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50678 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50679 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50680 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50681 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50682 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50683 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50684 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50685 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50686 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50687 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50688 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50689 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50690 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50691 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50692 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50693 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50694 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50695 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50696 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50697 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50698 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50699 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50700 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50701 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50702 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50703 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50704 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50705 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50706 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50707 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50708 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50709 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50710 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50711 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50712 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50713 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50714 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50715 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50716 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50717 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50718 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50719 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50720 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50721 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50722 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50723 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50724 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50725 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50726 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50727 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50728 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50729 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50730 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50731 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50732 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50733 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50734 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50735 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50736 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50737 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50738 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50739 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50740 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50741 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50742 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50743 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50744 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50745 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50746 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50747 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50748 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50749 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50750 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50751 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50752 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50753 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50754 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50755 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50756 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50757 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50758 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50759 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50760 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50761 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50762 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50763 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50764 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50765 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50766 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50767 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50768 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50769 lib/yesno.c, lib/yesno.h:
50770 Update FSF postal mail address.
50772 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50774 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50775 tests/test-memmem.c, tests/test-stpncpy.c:
50776 Update FSF postal mail address.
50778 2005-05-13 Bruno Haible <bruno@clisp.org>
50780 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50781 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50782 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50783 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50784 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50785 Add support for 64-bit integers in the MSVC compiler.
50787 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50789 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50791 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
50793 * gnulib-tool (func_import): Sort and uniquify recommended includes.
50795 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
50797 * doc/getdate.texi (General date syntax): Don't say that date
50798 date --iso-8601=ns generates acceptable dates; it doesn't yet.
50799 Problem reported by Nic Ferrier.
50801 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50803 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50804 specified in ai_socktype. Fix invalid ai_protocol
50805 check. ai_protocol is usually set to 0 or depending on
50806 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
50807 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
50808 ai_socktype / ai_protocol in the returned addrinfo structure.
50810 2005-05-10 Simon Josefsson <jas@extundo.com>
50812 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50813 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50815 2005-05-10 Karl Berry <karl@gnu.org>
50817 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50818 (from http://www.gnu.org/licenses).
50819 * doc/COPYING.LIB: also rename to COPYING.LESSER.
50820 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50823 2005-05-10 Karl Berry <karl@gnu.org>
50825 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50826 (COPYING.DOC): remove.
50828 * config/srclist-update: new FSF address.
50830 2005-05-10 Derek Price <derek@ximbiot.com>
50832 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50835 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50836 Bruno Haible <bruno@clisp.org>
50838 * modules/inet_ntop: New file.
50839 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50842 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50843 Bruno Haible <bruno@clisp.org>
50845 * m4/inet_ntop.m4: New file.
50847 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50848 Bruno Haible <bruno@clisp.org>
50850 * lib/inet_ntop.h: New file.
50851 * lib/inet_ntop.c: New file, from glibc with modifications.
50853 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
50855 * modules/time_r (License): Change to LGPL.
50856 * modules/extensions (License): Change to LGPL. Actually,
50857 the license is more permissive than that, but currently gnulib-tool
50858 doesn't know how to handle more-permissive licenses.
50860 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50861 Problem reported by Dave Love.
50863 2005-05-08 Jim Meyering <jim@meyering.net>
50865 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50868 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
50870 * modules/argmatch (Depends-on): Add stdbool.
50871 * modules/backupfile (Depends-on): Likewise.
50872 * modules/chdir-long (Depends-on): Likewise.
50873 * modules/closeout (Depends-on): Likewise.
50874 * modules/cycle-check (Depends-on): Likewise.
50875 * modules/dirname (Depends-on): Likewise.
50876 * modules/fnmatch (Depends-on): Likewise.
50877 * modules/fsusage (Depends-on): Likewise.
50878 * modules/fwriteerror (Depends-on): Likewise.
50879 * modules/getcwd (Depends-on): Likewise.
50880 * modules/getloadavg (Depends-on): Likewise.
50881 * modules/hard-locale (Depends-on): Likewise.
50882 * modules/makepath (Depends-on): Likewise.
50883 * modules/mountlist (Depends-on): Likewise.
50884 * modules/nanosleep (Depends-on): Likewise.
50885 * modules/posixtm (Depends-on): Likewise.
50886 * modules/quotearg (Depends-on): Likewise.
50887 * modules/readtokens (Depends-on): Likewise.
50888 * modules/readtokens0 (Depends-on): Likewise.
50889 * modules/readutmp (Depends-on): Likewise.
50890 * modules/save-cwd (Depends-on): Likewise.
50891 * modules/strftime (Depends-on): Likewise.
50892 * modules/userspec (Depends-on): Likewise.
50893 * modules/utimecmp (Depends-on): Likewise.
50894 * modules/xgetcwd (Depends-on): Likewise.
50895 * modules/xnanosleep (Depends-on): Likewise.
50896 * modules/xstrtod (Depends-on): Likewise.
50897 * modules/yesno (Depends-on): Likewise.
50899 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
50901 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50904 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50906 Merge from coreutils. Among other things,
50907 add bulletproofing for cases where stdin, stdout, or stderr are closed.
50908 * lib/fd-safer.c: New file.
50909 * lib/fcntl-safer.h, open-safer.c: Remove.
50910 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50911 * lib/dup-safer.c: Include unistd-safer.h first.
50912 Don't include errno.h.
50913 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50914 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50915 * lib/file-type.c: Rely on file-type.h change.
50916 * lib/getloadavg.c: Include unistd-safer.h.
50917 (getloadavg): Use safer open.
50918 * lib/getusershell.c: Include "stdio-safer.h".
50919 (getusershell): Use safer fopen.
50920 * lib/long-options.c (long_options): Use NULL rather than 0.
50921 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50923 * lib/modechange.c: Likewise.
50924 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50925 (MODE_DONE): New constant.
50926 (struct mode_change): Remove 'next' member.
50927 (make_node_op_equals): New function; like the old one of the
50928 same name, except it allocates an array.
50929 (mode_compile, mode_create_from_ref): Use it.
50930 (mode_compile): Allocate result as an array, not a linked list.
50931 Parse octal string ourself, so that we catch mistakes like "+0".
50932 (mode_adjust): Arg is an array, not a linked list.
50933 * lib/modechange.c: Include stat-macros.h, xalloc.h.
50934 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50935 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50936 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50937 Remove. This is now stat-macros.h's job.
50938 (talloc): Remove. All callers replaced by xalloc, so that
50939 our invokers don't have to worry about reporting memory failures.
50940 (make_node_op_equals): Remove.
50941 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50943 (struct mode_change): Moved here from modechange.h.
50944 (mode_append_entry): Remove.
50945 (mode_compile): Remove MASKED_OPS arg, since it encouraged
50946 apps to have incorrect behavior. Use simpler algorithm for head
50947 and tail. Don't futz with umask; that's now the job of mode_adjust.
50948 Detect more invalid usages rather than having somewhat-random behavior.
50949 Don't insert an "a=" action, as that leads to incorrect behavior.
50950 (mode_compile, mode_create_from_ref): Return NULL on error instead
50951 of an enum, since now there's only one way to have an error. All
50953 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50954 at the correct time. Simplify calculation of "+u" and its ilk.
50955 Don't mishandle "+X".
50956 (mode_free): Remove "register" and localize decls.
50957 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50958 (struct mode_change): Move to modechange.c; callers don't
50959 need to see this stuff.
50960 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50961 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50962 (mode_change, mode_adjust): Reflect the new signatures noted above.
50963 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50964 that might redefine system include files.
50965 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50966 (my_usleep): Use NULL rather than (void *) 0.
50967 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50968 Use siginterrupt to specify that system calls should be interrupted.
50969 (rpl_nanosleep): Move initialization of suspended closer to call of
50971 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
50972 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
50973 (desirable_utmp_entry): New function.
50974 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50975 using x2nrealloc, to simplify logic.
50976 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50977 size calculation. Do not assume utmp file is a regular file.
50978 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50979 (READ_UTMP_CHECK_PIDS): New constant.
50980 * lib/save-cwd.c: Include unistd-safer.h.
50981 (save_cwd): Use fd_safer.
50982 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50983 [!_LIBC] Include "stat-macros.h" instead.
50984 * lib/unistd-safer.h (fd_safer): New decl.
50986 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50988 * modules/getloadavg (Depends-on): Add unistd-safer.
50989 * modules/getusershell (Depends-on): Add stdio-safer.
50990 * modules/lstat (Depends-on): Remove xalloc.
50991 * modules/mkstemp (Depends-on): Add stat-macros.
50992 * modules/modechange (Depends-on): Remove xstrtol.
50993 Add stat-macros, xalloc.
50994 * modules/save-cwd (Depends-on): Add unistd-safer.
50995 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50996 * modules/unistd-safer (Files): Add lib/fd-safer.c
50997 (Makefile.am): Remove lib_SOURCES.
50999 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51000 Remove fcntl-safer; unistd-safer supersedes it.
51002 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51004 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51006 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51007 (gl_PREREQ_CHOWN): Remove.
51008 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51009 it. Don't require AC_HEADER_STAT.
51010 (gl_PREREQ_LSTAT): Remove.
51011 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51012 Don't require AC_HEADER_STAT.
51013 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51014 (gl_PREREQ_RMDIR): Remove.
51015 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51016 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51017 the stat-macros module a prerequisite.
51018 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51019 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51020 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51021 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51022 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51024 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51025 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51027 * m4/fcntl-safer.m4: Remove.
51028 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51029 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51030 Invoke gl_PREREQ_FD_SAFER.
51031 (gl_PREREQ_FD_SAFER): New macro.
51032 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51033 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51034 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51035 Remove duplicate call to AC_LIBOBJ(readutmp).
51036 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51038 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51039 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51041 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51043 * MODULES.html.sh (Misc): Add byteswap.
51045 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51047 * modules/getcwd (Depends-on): Add extensions.
51048 * modules/openat (Depends-on): Likewise.
51050 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51052 * modules/byteswap: New file.
51054 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51056 * m4/byteswap.m4: New file.
51058 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51060 * lib/byteswap_.h: New file.
51062 2005-04-25 Karl Berry <karl@gnu.org>
51064 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51066 2005-04-25 Albert Chin <china@thewrittenword.com>
51068 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51071 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51073 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51074 (func_ln_if_changed) Remove forcibly for no error message
51075 in case file does not exist.
51077 2005-04-19 Simon Josefsson <jas@extundo.com>
51079 * gnulib-tool (Options): Make --symlink mean --symbolic.
51081 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51083 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51085 2005-04-16 Simon Josefsson <jas@extundo.com>
51087 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51089 2005-04-15 Simon Josefsson <jas@extundo.com>
51091 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51093 2005-04-15 Simon Josefsson <jas@extundo.com>
51095 * gnulib-tool: Rename --symlink to --symbolic.
51097 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51099 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51100 symbolic links to files instead of copying/moving. Add --aux-dir,
51101 specifying directory relative --dir where auxiliary build tools
51104 2005-04-14 Bruno Haible <bruno@clisp.org>
51106 * modules/allocsa (License): Change to LGPL.
51107 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51109 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51111 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51112 that "UTC +1 second" continues to work. Problem reported
51113 by Dmitry V. Levin.
51114 (relunit_snumber): New rule.
51117 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51119 * lib/getdate.y (universal_time_zone_table): New constant.
51120 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51121 universal_time_zone_table.
51122 (lookup_zone): Prefer universal_time_zone_table to
51123 local_time_zone_table, so that "GMT" time stamps are allowed in
51124 London during the summer. Problem reported by Ian Abbott.
51126 2005-04-12 Jim Meyering <jim@meyering.net>
51128 * lib/human.c (humblock): Set *options even when returning due to
51129 xstrtoumax conversion failure. Thanks to a used-uninitialized
51130 warning from gcc-4.
51132 2005-04-09 Jim Meyering <jim@meyering.net>
51134 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51135 -Wuninitialized: initialize tm0.tm_year.
51137 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51139 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51140 count, since there's no maximum. All uses changed.
51141 Add member dsts_seen.
51142 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51144 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51145 Use pc_rels_seen to decide whther a date is absolute.
51147 * lib/getdate.y (number): Don't overwrite year.
51148 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51151 2005-04-02 Simon Josefsson <jas@extundo.com>
51153 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51154 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51156 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51158 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51159 where no absolute path name can be longer than PATH_MAX.
51161 2005-03-27 Jim Meyering <jim@meyering.net>
51163 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51165 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51167 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51168 "one's complement" -> "ones' complement" in comment, as per Knuth.
51169 "value of type" -> "type or expression" in comment.
51170 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51172 2005-03-26 Jim Meyering <jim@meyering.net>
51175 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51176 Correct typos: s/or/of/.
51178 2005-03-26 Jim Meyering <jim@meyering.net>
51180 * modules/check-include-files: Move to ../ and rename to...
51181 * check-module: ...this.
51183 2005-03-25 Jim Meyering <jim@meyering.net>
51185 * modules/xvasprintf (Files): Add xalloc.h.
51187 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51189 * modules/gettext (Files): config/config.rpath ->
51190 build-aux/config.rpath
51191 * modules/iconv (Files): Likewise.
51192 Problem reported by Oskar Liljeblad.
51194 2005-03-23 Jim Meyering <jim@meyering.net>
51196 * modules/check-include-files: New script to check for
51197 missing dependencies, multiple includes, etc.
51199 * modules/c-strtold (Depends-on): Add xalloc.
51200 * modules/c-strtod (Depends-on): Add xalloc.
51201 * modules/hash (Depends-on): Add xalloc.
51202 (Files): Remove lib/xalloc.h.
51204 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51205 * modules/userspec (Files): Add lib/inttostr.h.
51207 2005-03-23 Jim Meyering <jim@meyering.net>
51209 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51211 2005-03-22 Jim Meyering <jim@meyering.net>
51213 * modules/stat-macros: New module.
51214 * modules/canonicalize, modules/euidaccess, modules/file-type,
51215 * modules/filemode, modules/lchown, modules/makepath,
51216 * modules/rmdir, modules/stat: Depend on new stat-macros module
51217 rather than listing lib/stat-macros.h manually.
51218 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51220 2005-03-22 Jim Meyering <jim@meyering.net>
51222 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51224 2005-03-22 Bruno Haible <bruno@clisp.org>
51226 * config/srclist.txt: Replace target directory 'config' with
51228 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51229 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51232 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51234 * modules/chdir-long (Depends-on): Add mempcpy.
51236 * modules/acl, modules/backupfile, modules/c-strtod,
51237 modules/c-strtold, modules/canon-host, modules/canonicalize,
51238 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51239 modules/exclude, modules/exitfail, modules/file-type,
51240 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51241 modules/getdate, modules/getline, modules/getpagesize,
51242 modules/getpass, modules/getugroups, modules/group-member,
51243 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51244 modules/inttostr, modules/long-options, modules/makepath,
51245 modules/md5, modules/memcasecmp, modules/memcoll,
51246 modules/modechange, modules/mountlist, modules/path-concat,
51247 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51248 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51249 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51250 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51251 modules/strftime, modules/strndup, modules/strverscmp,
51252 modules/timespec, modules/unlocked-io, modules/userspec,
51253 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51255 Remove lib_SOURCES line from Makefile.am section, as this is now
51256 done automatically by the corresponding Autoconf macro.
51258 2005-03-21 Jim Meyering <jim@meyering.net>
51260 Changes imported from coreutils.
51262 * lib/cycle-check.c: Don't include xalloc.h.
51264 * lib/path-concat.c: Don't include assert.h.
51265 (path_concat): Remove assertion that would have triggered
51266 for ABASE starting with more than one slash.
51267 Reported by Andreas Schwab.
51269 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51270 properly when ABASE is an absolute file name.
51271 Correct the description of this function.
51272 Include <assert.h>.
51273 Add an assertion and a test driver.
51274 This fixes a bug introduced on 2004-07-02.
51275 Andreas Schwab reported the resulting failure of cp --parents:
51276 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51278 2005-03-21 Jim Meyering <jim@meyering.net>
51280 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51281 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51283 2005-03-21 Jim Meyering <jim@meyering.net>
51284 and Paul Eggert <eggert@cs.ucla.edu>
51286 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51287 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51288 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51289 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51290 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51291 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51292 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51293 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51294 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51295 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51296 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51297 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51298 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51299 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51300 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51301 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51302 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51305 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51307 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51308 (which shouldn't happen), generate nothing instead of returning 0
51309 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51311 2005-03-16 Bruno Haible <bruno@clisp.org>
51313 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51314 HAVE_LONGLONG_64BIT.
51316 2005-03-16 Bruno Haible <bruno@clisp.org>
51318 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51319 HAVE_LONGLONG_64BIT.
51321 2005-03-16 Bruno Haible <bruno@clisp.org>
51323 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51324 HAVE_LONGLONG_64BIT.
51326 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51328 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51329 reliably distinguish strftime failure from empty output on POSIX
51332 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51334 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51335 (iconv_string): Don't guess a size-zero buffer, as that might cause
51336 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51337 result would be 'too large', where 'too large' is (heuristically)
51338 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51339 overflow concerns. This will prevent some unwanted malloc failures
51340 when the inputs are very large.
51342 2005-03-15 Karl Berry <karl@gnu.org>
51344 * config/srclist.txt (config.rpath): from gettext.
51345 * config/config.rpath: update.
51347 2005-03-15 Bruno Haible <bruno@clisp.org>
51349 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51352 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51355 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51358 2005-03-14 Simon Josefsson <jas@extundo.com>
51360 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51363 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51365 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51366 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51368 * lib/strtol.c: Likewise.
51370 2005-03-14 Jim Meyering <jim@meyering.net>
51372 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51373 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51374 to be nonzero so that we (and caller) can detect the difference
51375 between a valid zero-length expansion and an error return, even
51376 when the underlying strftime fails before writing anything into
51379 2005-03-14 Bruno Haible <bruno@clisp.org>
51381 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51382 Update from GNU gettext 0.14.3.
51384 2005-03-10 Jim Meyering <jim@meyering.net>
51386 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51388 2005-03-10 Jim Meyering <jim@meyering.net>
51390 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51391 so that this module works on systems without fchdir.
51393 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51395 Factor int-properties macros into a single file, except for
51396 glibc-related files.
51397 * lib/intprops.h: New file.
51398 * lib/getloadavg.c: Include it instead of limits.h.
51399 (INT_STRLEN_BOUND): Remove.
51400 * lib/human.c: Include intprops.h.
51401 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51402 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51404 * lib/inttostr.h: Include intprops.h instead of limits.h.
51405 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51406 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51407 for consistency with intprops.h.
51408 (time_t_is_integer, twos_complement_arithmetic): Use them.
51409 * lib/sig2str.h: Include <signal.h>, intprops.h.
51410 (INT_STRLEN_BOUND): Remove.
51411 * lib/strftime.c (TYPE_SIGNED): Remove.
51412 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51413 * lib/strtol.c: Adjust comments to match intprops.h.
51414 * lib/userspec.c: Include intprops.h.
51415 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51416 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51417 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51418 instead of rolling our own expressions.
51419 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51421 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51423 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51424 the right thing even if adding 1900 would overflow. Similarly
51425 for tm_mon + 1 and tm_yday + 1.
51426 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51427 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51428 (DO_SIGNED_NUMBER): New macro.
51429 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51431 2005-03-07 Bruno Haible <bruno@clisp.org>
51433 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51435 2005-03-07 Bruno Haible <bruno@clisp.org>
51437 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51439 2005-03-04 Derek R. Price <derek@ximbiot.com>
51441 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51442 (func_import): Only replace files via --import when they have actually
51445 2005-03-03 Derek R. Price <derek@ximbiot.com>
51447 * m4/mmap-anon.m4: New file.
51448 * m4/pagealign_alloc.m4: New file.
51450 2005-03-03 Derek R. Price <derek@ximbiot.com>
51451 Bruno Haible <bruno@clisp.org>
51453 * modules/pagealign_alloc: New file.
51454 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51456 2005-03-03 Derek R. Price <derek@ximbiot.com>
51457 Bruno Haible <bruno@clisp.org>
51459 * lib/pagealign_alloc.h: New file.
51460 * lib/pagealign_alloc.c: New file.
51462 2005-03-03 Bruno Haible <bruno@clisp.org>
51464 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51465 Use an all-permissive copyright notice, recommended by RMS.
51467 2005-03-02 Bruno Haible <bruno@clisp.org>
51469 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51470 of AIX, the replacement has to be done only after <string.h> is
51471 included, therefore not in config.h. stpncpy.h does the replacement,
51472 and stpncpy.c uses it.
51474 2005-03-02 Bruno Haible <bruno@clisp.org>
51476 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51479 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51481 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51482 The workaround isn't strictly needed for POSIX conformance, and
51483 it's too much of a pain to configure and maintain. We'll ask
51484 people to fix their kernels instead.
51485 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51486 (NANOSLEEP_BUG_WORKAROUND): Remove.
51487 (xnanosleep): Remove the workaround.
51489 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51491 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51492 Reported by Derek Price.
51493 (Include): Add "timespec.h".
51495 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51497 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51499 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51500 to detect nanosleep bug.
51502 2005-03-01 Bruno Haible <bruno@clisp.org>
51504 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51506 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51508 * modules/gethrxtime: New file.
51509 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51510 (Depends-on): Add gethrxtime.
51511 (configure.ac): Add gl_XNANOSLEEP.
51512 (Makefile.am): Remove lib_SOURCES line.
51514 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51516 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51517 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51519 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51521 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51522 * lib/timespec.h (gettime): Return void, since it always
51523 succeeds now. All uses changed.
51524 * lib/gettime.c (gettime) Likewise.
51525 [HAVE_NANOTIME]: Prefer nanotime.
51526 Assume gettimeofday succeeds, as POSIX requires.
51527 Assime time () succeeds, since other code already does.
51528 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51529 (timespec_subtract): Remove.
51530 (NANOSLEEP_BUG_WORKAROUND): New constant.
51531 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51532 things considerably. Use it only on GNU/Linux hosts, since the
51533 workaround shouldn't be needed elsewhere.
51535 2005-02-24 Bruno Haible <bruno@clisp.org>
51537 * modules/gettext (Files): Add m4/glibc2.m4.
51539 2005-02-24 Bruno Haible <bruno@clisp.org>
51541 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51542 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51544 Update from GNU gettext 0.14.2.
51545 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51547 2005-02-24 Bruno Haible <bruno@clisp.org>
51549 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51550 * lib/config.charset: Update from GNU gettext 0.14.2.
51552 2005-02-24 Bruno Haible <bruno@clisp.org>
51554 * lib/gettext.h: Update from GNU gettext 0.14.2.
51556 2005-02-23 Simon Josefsson <jas@extundo.com>
51558 * m4/iconvme.m4: New file.
51560 2005-02-23 Jim Meyering <jim@meyering.net>
51562 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51564 Thanks to Bruno Haible for catching it.
51566 2005-02-22 Simon Josefsson <jas@extundo.com>
51568 * modules/iconvme: New file.
51570 * MODULES.html.sh: Add iconvme.
51572 2005-02-22 Simon Josefsson <jas@extundo.com>
51574 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51576 2005-02-22 Simon Josefsson <jas@extundo.com>
51578 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51580 2005-02-22 Jim Meyering <jim@meyering.net>
51582 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51585 2005-02-20 Neil Conway <neilc@samurai.com>
51587 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51588 returned by OSX/Darwin if the specified buffer is not large
51589 enough for the hostname.
51591 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51593 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51594 pass it to _help, otherwise the latter coredumps trying to
51595 dereference state.root_argp.
51597 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51599 * modules/chdir-long (Depends-on): Add memrchr.
51600 * modules/memrchr (Files): Add lib/memrchr.h.
51601 (Include): "memrchr.h".
51603 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51605 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51607 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51609 * lib/memrchr.h: New file.
51610 * lib/chdir-long.c: Include it.
51611 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51612 Don't bother including stddef.h.
51614 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
51616 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51618 Include <sys/types.h>, for dev_t.
51619 (ME_DUMMY, ME_REMOTE): Move from here....
51620 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51621 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
51623 Include mountlist.h first, to test the interface.
51625 2005-01-29 Bruno Haible <bruno@clisp.org>
51627 * lib/progname.c (program_name): Initialize.
51628 Needed when linking statically on MacOS X.
51630 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51632 Sync from coreutils.
51633 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51634 (Depends-on): Add c-strtod.
51635 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51637 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51639 Sync from coreutils.
51640 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51642 Remove files that are specific to coreutils.
51643 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51645 2005-01-28 Bruno Haible <bruno@clisp.org>
51647 * modules/javacomp: New file.
51648 * MODULES.html.sh (Java): Add javacomp.
51650 2005-01-28 Bruno Haible <bruno@clisp.org>
51652 * m4/javacomp.m4: New file, from GNU gettext.
51654 2005-01-28 Bruno Haible <bruno@clisp.org>
51656 * lib/javacomp.sh.in: New file, from GNU gettext.
51657 * lib/javacomp.h: New file, from GNU gettext.
51658 * lib/javacomp.c: New file, from GNU gettext.
51660 2005-01-26 Simon Josefsson <jas@extundo.com>
51662 * lib/gai_strerror.c: Use GPL in header.
51664 2005-01-26 Bruno Haible <bruno@clisp.org>
51666 * modules/javaexec: New file.
51667 * MODULES.html.sh (Java): Add javaexec.
51669 2005-01-26 Bruno Haible <bruno@clisp.org>
51671 * m4/javaexec.m4: New file, from GNU gettext.
51673 2005-01-26 Bruno Haible <bruno@clisp.org>
51675 * lib/javaexec.sh.in: New file, from GNU gettext.
51676 * lib/javaexec.h: New file, from GNU gettext.
51677 * lib/javaexec.c: New file, from GNU gettext.
51679 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51681 * modules/lchown (Depends-on): Remove lchown.h
51683 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51685 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51686 must be defined if the header file was not found, in order
51687 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51689 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51691 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51692 initializers for struct pentry_state.
51693 (__argp_error): Check return value of __asprintf
51694 (__argp_failure): Translate error message
51696 * lib/argp-parse.c: Removed braces around the expansion of N_()
51698 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
51700 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51701 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51702 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51703 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51704 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51705 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51706 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51707 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51708 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51709 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51710 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51711 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51712 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51713 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51714 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51715 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51716 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51717 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51718 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51719 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51720 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51721 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51722 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51723 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51724 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51725 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51726 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51727 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51728 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51729 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51730 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51731 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51732 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51733 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51734 xstrtol.m4, xstrtoumax.m4, yesno.m4:
51735 Use an all-permissive copyright notice, recommended by RMS.
51737 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
51739 * modules/chdir-long (Depends-on): Remove mempcpy.
51741 2005-01-21 Jim Meyering <jim@meyering.net>
51743 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51744 same value as for Solaris 9.
51746 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51747 component length. This included changing the parameter to be
51748 of type `char *' rather than `char const *'.
51749 * lib/chdir-long.h (chdir_long): Update prototype.
51751 * lib/openat.c (fdopendir, fstatat): New functions.
51752 * lib/openat.h: Include headers required for use of DIR and struct
51754 [AT_SYMLINK_NOFOLLOW]: Define.
51755 (fdopendir, fstatat): Add prototypes.
51757 2005-01-21 Bruno Haible <bruno@clisp.org>
51759 * modules/classpath: New file.
51760 * MODULES.html.sh (Java): Add classpath.
51762 2005-01-21 Bruno Haible <bruno@clisp.org>
51764 * lib/classpath.h: New file, from GNU gettext.
51765 * lib/classpath.c: New file, from GNU gettext.
51767 2005-01-20 Simon Josefsson <jas@extundo.com>
51769 * modules/version-etc-fsf: New file.
51771 2005-01-20 Simon Josefsson <jas@extundo.com>
51773 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51774 * lib/version-etc.c: Remove version_etc_copyright.
51775 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51776 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51778 2005-01-20 Simon Josefsson <jas@extundo.com>
51780 * lib/base64.h (isbase64): Add.
51782 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51783 using a unsigned prototype, don't inline.
51784 (base64_decode): Use it.
51786 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51788 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51791 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51793 * lib/save-cwd.c (save_cwd): Remove code to support the case
51794 where fchdir is missing or flaky.
51796 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51798 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51800 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
51802 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51803 AC_LIBSOURCES now does this.
51804 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51805 with new ullong_max module.
51807 2005-01-19 Bruno Haible <bruno@clisp.org>
51809 * modules/sh-quote: New file.
51810 * MODULES.html.sh (Executing programs): Add sh-quote.
51812 2005-01-19 Bruno Haible <bruno@clisp.org>
51814 * lib/sh-quote.h: New file, from GNU gettext.
51815 * lib/sh-quote.c: New file, from GNU gettext.
51817 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51819 Merge from coreutils.
51820 * m4/ullong_max.m4: New file.
51821 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51822 (gl_MACROS): Assume localeconv exists.
51824 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51826 Merge changes from coreutils, as described below in several
51827 changelogs dated today.
51829 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51830 (O_DIRECTORY): Remove; not needed here, since "." must be
51831 a directory. All uses removed.
51832 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
51833 universal on Suns, and we also need to test for IRIX.
51834 Revamp code to use 'if' rather than '#if'.
51835 Avoid unnecessary comparison of cwd->desc to 0.
51837 * lib/utimens.c (futimens): Robustify the previous patch, by checking
51838 for known valid error numbers rather than observed invalid ones.
51840 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51842 * modules/ullong_max: New file.
51844 * modules/chdir-long, modules/openat: New files.
51845 * modules/save-cwd (Depends-on): Depend on chdir-long.
51846 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51848 2005-01-18 Jim Meyering <jim@meyering.net>
51850 Merge from coreutils.
51851 * m4/chdir-long.m4, m4/openat.m4: New files.
51852 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51853 save-cwd.h. Add AC_LIBOBJ for save-cwd.
51854 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51855 is sane and DOES follow symlinks. Besides, testing 20 different
51856 systems found no broken chown implementations.
51857 Prompted by a change in rsync's copy of this macro.
51858 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51860 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51862 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51863 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51864 NULL-means-set-to-current-time semantics.
51865 Remove temporary file immediately, rather than waiting
51866 for configure's at-exit trap code to do it.
51868 2005-01-18 Jim Meyering <jim@meyering.net>
51870 * lib/version-etc.c (version_etc_copyright): Update copyright date.
51872 * lib/utimens.c (futimens): Account for the fact that futimes
51873 can also fail with errno == ENOSYS or errno == ENOENT.
51874 Patch from Dmitry V. Levin.
51876 Change the name of the robust chdir function from chdir to chdir_long.
51877 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51878 (restore_cwd): Use chdir_long, not chdir.
51879 * lib/chdir-long.c: Renamed from chdir.c.
51880 * lib/chdir-long.h: Renamed from chdir.h.
51881 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51884 2005-01-18 Bruno Haible <bruno@clisp.org>
51886 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51887 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51888 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51889 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51890 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51891 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51892 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51893 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51894 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51895 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51896 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51897 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51898 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51899 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51900 Use an all-permissive copyright notice, recommended by RMS.
51902 2005-01-18 Bob Proulx <bob@proulx.com>
51904 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51905 simplify offsetof() macro construct to avoid compile failure with
51906 native HP-UX 11.0 ANSI C compiler.
51908 2005-01-17 Bruno Haible <bruno@clisp.org>
51910 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51911 redundant because stpncpy.m4 takes care of it.
51913 2005-01-17 Bruno Haible <bruno@clisp.org>
51915 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51917 2005-01-17 Bruno Haible <bruno@clisp.org>
51919 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51922 2005-01-17 Bruno Haible <bruno@clisp.org>
51924 * lib/fwriteerror.h (fwriteerror): Change specification to include
51926 * lib/fwriteerror.c: Include <stdbool.h>.
51927 (fwriteerror): At the end, close the file stream. Record whether
51928 stdout was already closed.
51930 2005-01-17 Bruno Haible <bruno@clisp.org>
51932 * lib/execute.c (environ): Declare if needed.
51933 * lib/pipe.c (environ): Likewise.
51934 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51936 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51938 * modules/argp: Depend on vsnprintf
51940 2005-01-10 Jim Meyering <jim@meyering.net>
51942 * modules/closeout (Depends-on): Add atexit.
51944 2005-01-06 Bruno Haible <bruno@clisp.org>
51946 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51948 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
51950 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51951 definitions to be after all include files, to avoid collisions.
51952 Problem reported by Bob Proulx.
51954 2005-01-04 Jim Meyering <jim@meyering.net>
51956 Changes imported from coreutils.
51957 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51958 as the mkstemp template, use a temporary directory and an
51959 8.3-friendly template to avoid trouble on systems like DJGPP.
51960 Reported by Juan M. Guerrero via Stepan Kasal.
51961 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51962 close. Remove the temporary directory right away, rather than waiting
51963 for configure's at-exit trap code to do it.
51964 Suggestion from Stepan Kasal.
51966 2005-01-01 Simon Josefsson <jas@extundo.com>
51968 * gnulib-tool: Print #include directives when --import'ing.
51970 2004-12-28 Simon Josefsson <jas@extundo.com>
51972 * tests/test-base64.c: Include required header files. Remove
51975 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
51977 * modules/error (Depends-on): Remove gettext.
51979 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
51981 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51982 not needed. This removes a dependency on the gettext module.
51983 [defined _LIBC]: Do not include <libintl.h>; not needed.
51985 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
51987 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51988 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51990 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
51992 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51995 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
51997 * modules/getdate (Depends-on): Remove alloca-opt.
51999 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52001 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52003 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52005 * lib/argp-parse.c: Include <stddef.h>.
52006 (alignof, alignto): New macros.
52007 (parser_init): Don't assume that void * is aligned sufficiently
52010 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52011 need to extend the stack.
52012 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52015 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52017 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52019 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52021 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52022 (2004-10-24) change. Apparently this was a false alarm.
52024 * modules/getdate: Depend on alloca-opt, not alloca.
52026 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52028 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52029 Remove now-obsolete comment about AIX.
52030 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52031 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52032 (YYMAXDEPTH): New macro.
52034 2004-12-18 Simon Josefsson <jas@extundo.com>
52036 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52038 2004-12-18 Bruno Haible <bruno@clisp.org>
52040 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52042 2004-12-18 Bruno Haible <bruno@clisp.org>
52044 * lib/fatal-signal.c (fatal_signals): Make non-const.
52045 (init_fatal_signals): New function.
52046 (uninstall_handlers, install_handlers): Ignore signals that were set to
52048 (at_fatal_signal): Call init_fatal_signals.
52049 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52051 Reported by Paul Eggert.
52053 2004-12-18 Bruno Haible <bruno@clisp.org>
52055 * doc/alloca.texi: New file.
52056 * doc/alloca-opt.texi: New file.
52058 2004-12-17 Jim Meyering <jim@meyering.net>
52060 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52061 Otherwise, install-sh could exit with improper exit status when
52062 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52064 2004-12-16 Simon Josefsson <jas@extundo.com>
52066 * tests/test-base64.c: Add license.
52068 2004-12-15 Stepan Kasal <address@hidden>
52070 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52072 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52074 * modules/getcwd (Files): Add m4/d-ino.m4.
52075 Suggested by Mark D. Baushke.
52077 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52079 * lib/getdate.y (textint): New member "negative".
52080 (time_zone_hhmm): New function.
52081 Expect 14 shift-reduce conflicts, not 13.
52082 (o_colon_minutes): New rule.
52083 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52084 (yylex): Set the "negative" member of signed numbers.
52086 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52088 * doc/getdate.texi (Time of day items, Time zone items):
52089 Describe new formats +00:00, UTC+00:00.
52091 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52093 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52094 spurious "-l"s. Problem reported by Stepan Kasal.
52096 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52098 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52099 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52101 2004-12-04 Simon Josefsson <jas@extundo.com>
52103 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52104 Vandoorselaere <yoann@prelude-ids.org>.
52106 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52108 Changes imported from coreutils.
52109 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52111 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52113 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52115 Changes imported from coreutils.
52116 * lib/hard-locale.c: Assume <locale.h> exists.
52117 Include "strdup.h".
52118 (GLIBC_VERSION): New macro.
52119 (hard_locale): Assume setlocale exists.
52120 Rewrite to avoid #ifdef.
52121 Use strdup rather than malloc + strcpy.
52122 * lib/human.c: Assume <locale.h> exists.
52123 (human_readable): Assume localeconv exists.
52125 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52127 * modules/hard-locale (Depends-on): Add strdup.
52129 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52131 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52132 convert T2, not T. (Imported from libc.)
52134 2004-11-30 Simon Josefsson <jas@extundo.com>
52136 * modules/restrict (License): Change to LGPL.
52138 2004-11-30 Simon Josefsson <jas@extundo.com>
52140 * m4/restrict.m4: Add copyright and copying conditions.
52142 2004-11-30 Simon Josefsson <jas@extundo.com>
52144 * m4/base64.m4: New file.
52146 2004-11-30 Simon Josefsson <jas@extundo.com>
52148 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52151 * tests/test-base64.c: New file.
52153 * modules/base64: New file.
52155 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52157 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52158 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52160 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52162 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52164 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52165 (__getcwd.c): Don't restore errno; glibc doesn't.
52166 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52167 first, falling back to our code only if its results look suspicious.
52168 Ensure that the resulting buffer is only as large as necessary.
52170 * lib/readutmp.c: Include readutmp.h first.
52171 Include <errno.h>, since readutmp.h no longer does that.
52172 * lib/readutmp.h: Don't include <errno.h>,
52173 <sys/param.h>, <time.h>; not needed to establish interface.
52174 (errno): Remove decl.
52175 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52176 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52177 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52179 2004-11-28 Simon Josefsson <jas@extundo.com>
52181 * lib/base64.h, base64.c: New file.
52183 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52185 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52187 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52189 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52190 (Depends-on): Remove pathmax, same. Add mempcpy.
52191 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52192 (Makefile.am): Append getcwd.h to lib_SOURCES.
52193 (Include): Add getcwd.h.
52194 (Maintainer): Change from Jim Meyering to "all, glibc",
52195 since getdate now uses intended-for-glibc code.
52196 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52197 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52199 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52201 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52202 HP's ANSI C compiler.
52203 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52204 Declaring int functions causes warnings on some modern systems and
52205 shouldn't be needed to compile on ancient ones.
52206 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52209 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52210 with the following changes.
52211 (__set_errno): Parenthesize properly.
52212 Include <stdbool.h>.
52213 (MIN, MAX, MATCHING_INO): New macros.
52214 (__getcwd): Define with prototype, not K&R form.
52215 Use heuristics to allocate default buffer on stack if possible.
52216 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52217 behavior, and to avoid the PATH_MAX limit when computing
52219 Use MATCHING_INO to compare inode number to file.
52220 Check for arithmetic overflow in size calculations.
52221 Fix bug in reallocation of dot array that caused getcwd to fail
52222 on directories nested deeper than 75.
52223 Be more careful about saving errno on error.
52224 Do not use realloc; use only free+malloc, as this is a bit
52225 more flexible and avoids a needless copy operation.
52226 Do not inspect st_dev and st_ino for symbolic links; POSIX
52227 doesn't specify the latter.
52228 Check for closedir errors.
52229 Avoid needless casts.
52230 Use "#ifdef weak_alias" around weak_alias, to be like other
52232 The following changes to getcwd.c have effect only when used in
52233 gnulib; they have no effect inside glibc proper.
52234 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52235 as alloca isn't used.
52236 (alloca, __alloca): Likewise.
52237 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52238 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52239 unconditionally, as gnulib assumes C89 or better.
52240 Do not include <sys/param.h>.
52241 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52242 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52244 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52245 Include <dirent.h> in a way that is compatible with modern Autoconf.
52246 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52247 New macros, if not already defined.
52248 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52249 Use "_LIBC", not "defined _LIBC", for consistency.
52250 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52252 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52253 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52254 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52255 credit only to Jim Meyering and adjust the copyright dates.
52256 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52257 <stdlib.h>, <unistd.h>, "pathmax.h".
52258 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52259 (INITIAL_BUFFER_SIZE): Remove.
52260 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52262 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52264 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52265 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52266 Use the _ONCE methods, for efficiency.
52267 Check for fcntl.h. In test program, include <errno.h>
52268 and <fcntl.h> if available. Remove old K&R cruft from
52269 test program. Check for common errors in GNU/Linux,
52270 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52271 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52272 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52273 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52275 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52276 accommodate new getcwd.c.
52277 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52278 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52279 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52280 that's all we need now.
52282 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52284 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52285 argp-parse.c depends on getopt internals, that means we should
52286 always use our getopt, to be on the safe side.
52287 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52288 order not to spoil the result of an eventual previous invocation
52289 of gl_GETOPT_SUBSTITUTE.
52291 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52293 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52294 redefinition warnings. To avoid them, include the defines
52295 in `#if !defined __need_getopt ... #endif'. The only place
52296 where __getopt_argv_const is used is in definitions
52297 of getopt_long and getopt_long_only below, which are as well
52298 protected by `#ifndef __need_getopt'.
52299 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52300 __need_getopt after including <stdio.h> and <unistd.h> These
52301 headers might have defined it.
52303 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52305 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52307 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52309 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52310 (futimens): New function, which uses futimes if available.
52311 (futimens, utimens): Support timespec==NULL, with same semantics
52312 as utime and utimens.
52313 * lib/utimens.h (futimens): New decl.
52315 2004-11-23 Jim Meyering <jim@meyering.net>
52317 * lib/getopt_.h: Remove trailing blanks.
52319 2004-11-23 Jim Meyering <jim@meyering.net>
52321 * lib/__fpending.c: Add comment.
52323 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52325 * modules/canonicalize (Depends-on): Add xreadlink.
52326 Problem reported by James Youngman.
52328 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52330 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52332 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52333 optopt): Use them instead of invoking ## directly; otherwise, the
52334 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52336 2004-11-19 Bruno Haible <bruno@clisp.org>
52338 * lib/strtok_r.c: Move comments from here...
52339 * lib/strtok_r.h: ... to here.
52341 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52343 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52344 implementations that mishandle size_t overflow.
52346 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52348 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52349 might fail. Problem reported by Yoann Vandoorselaere.
52350 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52351 implementations that mishandle size_t overflow.
52353 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52355 * modules/canon-host (Depends-on): Add strdup.
52357 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52359 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52361 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52363 * lib/canon-host.c: Include "strdup.h".
52364 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52365 Use strdup instead of malloc/strcpy to duplicate strings.
52367 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52368 (human_space_before_unit): New constant.
52369 * lib/human.c (human_readable): Support it.
52371 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52372 (xgetcwd): Set errno correctly when failing.
52373 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52374 the failure is actually due to a PATH_MAX problem.
52376 Further getopt changes to make it more likely that glibc will
52377 buy the changes back.
52378 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52379 (getopt): Use it, so to preserve glibc semantic
52380 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52381 when compiling for libc.
52382 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52383 (getopt_long, getopt_long_only): Use it.
52385 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52386 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52387 (getopt): Argv is now char * const *, as per standard.
52388 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52389 not char *__getopt_argv_const *.
52390 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52391 _getopt_long_only_r): Likewise.
52392 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52393 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52394 _getopt_long_r, _getopt_long_only_r): Likewise.
52395 * lib/getopt_.h (__getopt_argv_const): Remove.
52396 (getopt): Argv is now char * const *, as per standard.
52398 * lib/getdate.y (tORDINAL): New token.
52399 (day, relunit): Allow it for relative times.
52400 (relative_time_table): Use tORDINAL for ordinals.
52402 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52404 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52405 Document that "second" isn't allowed as an ordinal number.
52407 2004-11-16 Jim Meyering <jim@meyering.net>
52409 * modules/closeout (Depends-on): Add fpending.
52411 2004-11-15 Jim Meyering <jim@meyering.net>
52413 * lib/closeout.c: Include "__fpending.h" once again.
52414 Include <stdbool.h>.
52415 (close_stdout): Don't fail just because stdout was closed initially,
52416 since some programs don't write to stdout in the normal course of
52417 operation (other than --version and --help), and we don't want this
52418 function to make e.g. `touch file >&-' fail.
52419 But do fail if it was closed and someone has tried to write to it.
52420 E.g., `printf foo >&-' must fail.
52422 2004-11-13 Jim Meyering <jim@meyering.net>
52424 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52426 2004-11-12 Simon Josefsson <jas@extundo.com>
52428 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52429 small doc fix is still pending.
52431 2004-11-11 Simon Josefsson <jas@extundo.com>
52433 * modules/strtok_r: New file.
52435 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52438 2004-11-11 Simon Josefsson <jas@extundo.com>
52440 * m4/strtok_r.m4: New file.
52442 * m4/getopt.m4: Replace opterr.
52444 2004-11-11 Simon Josefsson <jas@extundo.com>
52446 * lib/strtok_r.h, strtok_r.c: New file.
52448 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52450 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52451 of replacing opterr, getopt, etc. This should handle the
52452 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52454 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52456 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52457 we can stop lying to compilers about the constness of argv when we
52458 are compiled outside glibc.
52459 (getopt, getopt_long, getopt_long_only): Use it.
52460 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52461 _getopt_internal, getopt): Likewise.
52462 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52463 _getopt_long_only_r): Likewise.
52464 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52465 _getopt_long_r, _getopt_long_only_r): Likewise.
52467 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52468 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52469 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52470 the other external symbols.
52471 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52472 declaration, since the above renaming now works around collisions.
52474 2004-11-11 Jim Meyering <jim@meyering.net>
52476 * lib/linebreak.c: Remove trailing blanks.
52477 * lib/alloca_.h: Likewise.
52478 * lib/acosl.c: Likewise.
52479 * lib/euidaccess.c: Likewise.
52480 * lib/allocsa.h: Likewise.
52482 2004-11-10 Simon Josefsson <jas@extundo.com>
52484 * m4/getaddrinfo.m4: New file.
52486 2004-11-10 Simon Josefsson <jas@extundo.com>
52488 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52490 2004-11-10 Simon Josefsson <jas@extundo.com>
52492 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52495 * modules/getaddrinfo: New file.
52497 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52499 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52501 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52503 * lib/mktime.c (SHR): New macro, which is a portable
52504 substitute for >> that should work even on Crays.
52505 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52506 Problem reported by Mark D. Baushke in
52507 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52508 * lib/getdate.y (SHR): Likewise.
52510 * lib/strftime.c (SHR): Likewise.
52512 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52513 quote_these_too, so that right shifts are well defined. All uses
52516 2004-11-10 Jim Meyering <jim@meyering.net>
52518 Ensure that no close failure goes unreported.
52519 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52520 return early when it seems there's nothing to flush.
52521 Don't include __fpending.h.
52523 2004-11-10 Jim Meyering <jim@meyering.net>
52525 * modules/closeout (Depends-on): Remove fpending.
52527 2004-11-10 Jim Meyering <jim@meyering.net>
52529 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52531 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52533 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52535 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52536 and AC_REQUIRE when possible, to avoid duplicate checks.
52537 Check for <wchar.h>.
52539 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52541 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52543 2004-11-09 Bruno Haible <bruno@clisp.org>
52545 * m4/sockpfaf.m4: New file.
52547 2004-11-05 Bruno Haible <bruno@clisp.org>
52549 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52550 Reported by Mark D. Baushke <mdb@cvshome.org>.
52552 2004-11-04 Bruno Haible <bruno@clisp.org>
52554 2004-09-11 Bruno Haible <bruno@clisp.org>
52555 * allocsa.valgrind: New file.
52556 2004-02-06 Bruno Haible <bruno@clisp.org>
52557 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52558 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52559 Reported by Christopher Seip <chris.seip@hp.com>.
52561 2004-11-04 Bruno Haible <bruno@clisp.org>
52563 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52564 (Makefile.am): Distribute it.
52566 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52568 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52569 with errno == ERANGE if the buffer is too small.
52570 Problem reported by Mark D. Baushke.
52572 2004-11-03 Albert Chin <china@thewrittenword.com>
52573 Paul Eggert <eggert@cs.ucla.edu>
52575 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52576 equivalent, substitute $ac_type for equivalent type rather than
52577 blindly using uint32_t *always* which won't work if uint32_t is not
52578 available. Define _UINT32_T to work around typedef of uint32_t if
52579 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52582 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52584 * m4/jm-macros.m4: Sync from coreutils.
52585 (gl_MACROS): Check for mbrlen, for pathchk.
52586 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52588 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52590 * lib/xreadlink.c (MAXSIZE): New macro.
52591 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52592 size does not exceed MAXSIZE. Avoid cast.
52593 As suggested by Mark D. Baushke in
52594 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52595 if readlink fails with buffer size just under MAXSIZE, try again
52598 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52600 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52602 2004-11-02 Derek R. Price <derek@ximbiot.com>
52603 and Paul Eggert <eggert@cs.ucla.edu>
52605 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52606 (get_date): Overparenthesize to avoid GCC warning.
52608 2004-11-02 Bruno Haible <bruno@clisp.org>
52610 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52613 2004-11-02 Bruno Haible <bruno@clisp.org>
52615 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52616 function returns void.
52618 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52620 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52621 fflush_unlocked, flockfile, funlockfile, funlockfile,
52622 fputs_unlocked, putc_unlocked.
52624 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52626 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52627 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52630 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52632 * modules/getdate (Files): Add doc/getdate.texi.
52633 (Depends-on): Add setenv, xalloc.
52635 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52637 * lib/getdate.y: Add support for TZ="foo" within a date string.
52638 Fix some bugs near time_t boundaries. Reject dates with
52639 out-of-range components, e.g., "Sept 31".
52640 Include <stdlib.h>, "setenv.h", "xalloc.h".
52641 (ISDIGIT_LOCALE): Remove; unused.
52642 Note that the TZ and time functions used here are not reentrant.
52643 (mktime_ok, get_tz): New functions.
52644 (TZBUFSIZE): New constant.
52645 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
52646 This requires that we sometimes generate our own TZ="XXX..." setting.
52648 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52650 * doc/getdate.texi: New file, from coreutils with modifications for
52651 the new TZ parsing.
52653 2004-10-27 Derek R. Price <derek@ximbiot.com>
52655 * lib/mktime.c (not_equal_tm): Remove redundant check.
52657 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52659 * modules/regex (lib_SOURCES): Add regex.c.
52660 Reported by James Youngman in
52661 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52663 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52665 * lib/getdate.y: Use Bison 1.875 features, and some minor
52666 code cleanups. This change does not affect semantics.
52667 Don't include <stdlib.h>; no longer needed.
52668 Don't include unlocked-io.h; only the "#if TEST" code uses
52669 stdio, and performance isn't crucial there.
52670 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52671 Bison 1.875 features as described below.
52672 All uses of "PC." replaced by "pc->".
52673 (YYSTYPE): Add a forward declaration.
52674 (yylex, yyerror): Use full prototypes in forward decls.
52675 Use "%pure-parser" rather than obsolescent "%pure_parser".
52676 Use %parse-param and %lex-param instead of obsolescent
52677 YYPARSE_PARAM and YYLEX_PARAM.
52678 (meridian_table, month_and_day_table, time_units_table,
52679 relative_time_table, time_zone_table, military_table,
52680 lookup_zone, lookup_word, get_date):
52681 Use NULL instead of 0 where appropriate.
52682 (to_hour): Avoid abort (), to avoid a dependency on
52684 (yyerror, yylex): Now accepts parser_control * arg.
52685 (main) [TEST]: Use '\0' rather than 0 for char.
52687 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52689 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52691 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52693 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52694 It's now the caller's responsibility to handle the case where
52695 !HAVE_GETPAGESIZE && !defined getpagesize.
52697 * lib/mktime.c (leapyear): Arg is long int, not int.
52699 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
52701 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52703 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
52705 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52706 missing. Problem reported by James Youngman.
52708 2004-10-16 Simon Josefsson <jas@extundo.com>
52710 * gnulib-tool: Fix comments. Fix parse problem.
52711 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52713 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
52715 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52716 implementation of getopt_long. Problem reported by Alexander Taler in:
52717 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52719 2004-10-15 Bruno Haible <bruno@clisp.org>
52721 * gnulib-tool: Untabify. Initialize supplied_libname.
52722 (func_usage): More homogenous output.
52723 (func_modules_transitive_closure, func_modules_to_filelist,
52724 func_emit_lib_Makefile_am): New functions.
52725 (func_import): New function, extracted from big case statement. Use
52726 func_get_license, func_modules_transitive_closure,
52727 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52728 opt_lgpl. Don't use test -a, as it's not portable.
52729 (func_create_testdir): Use func_modules_transitive_closure,
52730 func_modules_to_filelist, func_emit_lib_Makefile_am.
52732 2004-10-15 Bruno Haible <bruno@clisp.org>
52734 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52736 2004-10-15 Bruno Haible <bruno@clisp.org>
52738 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52739 the portions belonging to each module.
52740 Suggested by Derek Robert Price <derek@ximbiot.com>.
52742 2004-10-12 Simon Josefsson <jas@extundo.com>
52744 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52745 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52748 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52750 * modules/vsnprintf: New file.
52752 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52754 * m4/vsnprintf.m4: New file.
52756 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52758 * lib/vsnprintf.h: New file.
52759 * lib/vsnprintf.c: New file.
52761 2004-10-11 Bruno Haible <bruno@clisp.org>
52763 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52766 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
52768 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52770 2004-10-07 Bruno Haible <bruno@clisp.org>
52772 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52773 fits into the provided buffer.
52775 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
52777 * lib/diacrit.c, diacrit.h: Add GPL notice.
52779 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52781 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52782 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52783 This avoids a potential constant-folding bug.
52785 2004-10-05 Bruno Haible <bruno@clisp.org>
52787 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52788 for the declaration of strsep.
52790 2004-10-05 Bruno Haible <bruno@clisp.org>
52792 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52794 2004-10-04 Simon Josefsson <jas@extundo.com>
52796 * modules/memmem: New file.
52797 * tests/test-memmem.c: New file.
52798 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52800 2004-10-04 Simon Josefsson <jas@extundo.com>
52802 * m4/memmem.m4: New file.
52804 2004-10-04 Simon Josefsson <jas@extundo.com>
52806 * lib/memmem.h: New file.
52807 * lib/memmem.c: New file, taken from glibc.
52809 2004-10-04 Simon Josefsson <jas@extundo.com>
52811 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52812 '#ifdef USE_UNLOCKED_IO'.
52814 2004-10-04 Simon Josefsson <jas@extundo.com>
52816 * config/srclist.txt: Add memmem from glibc.
52818 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52820 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52822 * modules/argmatch, modules/argp, modules/closeout, modules/error,
52823 modules/exclude, modules/getdate, modules/getline,
52824 modules/getndelim2, modules/getpass, modules/getpass-gnu,
52825 modules/getusershell, modules/linebuffer, modules/md5,
52826 modules/mountlist, modules/posixtm, modules/readtokens,
52827 modules/readutmp, modules/regex, modules/sha1,
52828 modules/version-etc, modules/yesno:
52829 Remove dependency on unlocked-io.
52831 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52833 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
52835 * m4/unlocked-io.m4: Add copyright notice.
52836 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52838 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52840 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
52841 * lib/xmalloc.c (xmemdup): Likewise.
52842 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52843 XFREE): Remove these long-obsolescent macros.
52844 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52845 * lib/xstrdup.c: Remove.
52847 * lib/regex.c (re_comp): Cast gettext return value to char *,
52848 Problem reported by Martin Neitzel via Mark D. Baushke.
52850 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52852 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52853 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52854 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52855 regex.c, sha1.c, version-etc.c, yesno.c:
52856 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52857 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52858 the includer's responsibility.
52860 Sync from coreutils.
52862 * lib/modechange.c (mode_compile): Don't decrement a pointer that
52863 points to the start of a string, as the C Standard says the
52864 resulting behavior is undefined.
52866 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52867 simple -> simple_backups, numbered_existing ->
52868 numbered_existing_backups, numbered -> numbered_backups
52869 to avoid shadowing problems. All uses changed.
52870 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52871 * lib/backupfile.c (check_extension, numbered_backup):
52872 Rename locals to avoid shadowing 'basename'.
52873 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52876 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52877 * lib/.cvsignore: Add getopt.h.
52879 2004-10-04 Bruno Haible <bruno@clisp.org>
52881 * modules/README: New file.
52882 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52885 2004-10-02 Jim Meyering <jim@meyering.net>
52887 * lib/dirfd.h, getpagesize.h: Add copyright notice.
52889 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52891 * modules/strsep: New file.
52893 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52895 * m4/strsep.m4: New file.
52897 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52899 * lib/strsep.h: New file.
52900 * lib/strsep.c: New file.
52902 2004-10-01 Simon Josefsson <jas@extundo.com>
52904 * lib/snprintf.c (snprintf): Handle size==0.
52906 2004-10-01 Simon Josefsson <jas@extundo.com>
52907 Bruno Haible <bruno@clisp.org>
52909 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52910 (snprintf): Declare 'args'.
52912 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
52914 * lib/snprintf.c: Remove comments as to why each header is needed.
52916 2004-10-01 Bruno Haible <bruno@clisp.org>
52918 * MODULES.html.sh: Add strsep.
52920 2004-09-30 Simon Josefsson <jas@extundo.com>
52922 * modules/snprintf: New file.
52924 2004-09-30 Simon Josefsson <jas@extundo.com>
52926 * m4/snprintf.m4: New file.
52928 2004-09-30 Simon Josefsson <jas@extundo.com>
52930 * lib/snprintf.h, lib/snprintf.c: New files.
52932 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52934 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52935 (hol_entry_help): Never translate an empty string.
52936 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52937 * lib/argp.h (OPTION_NO_TRANS): New option.
52939 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52941 * modules/argp (Maintainer): Replace Simon Josefsson
52942 by Sergey Poznyakoff.
52944 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52946 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52947 changes merged back into glibc.
52949 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52951 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52953 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
52955 * lib/xvasprintf.c: Include xalloc.h.
52956 (xvasprintf): Use xalloc_die, not xmalloc_die.
52958 2004-09-29 Bruno Haible <bruno@clisp.org>
52960 * modules/alloca-opt: New file, derived from modules/alloca.
52961 * modules/allocsa: Depend on alloca-opt instead of alloca.
52962 * modules/setenv: Likewise.
52963 * modules/vasnprintf: Likewise.
52964 * MODULES.html.sh: Add alloca-opt.
52966 2004-09-28 Simon Josefsson <jas@extundo.com>
52968 * gnulib-tool: New parameter --lgpl, to asseert that modules are
52969 LGPL, and to replace license template from GPL to LGPL.
52971 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
52973 * modules/dummy: Change license to LGPL.
52975 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
52977 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52979 2004-09-24 Simon Josefsson <jas@extundo.com>
52981 * modules/minmax (License): Change from GPL to LGPL.
52983 2004-09-23 Simon Josefsson <jas@extundo.com>
52985 * gnulib-tool (--import): Typo.
52987 2004-09-23 Simon Josefsson <jas@extundo.com>
52989 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52991 2004-09-22 Bruno Haible <bruno@clisp.org>
52993 * modules/*: Add 'License' field.
52994 * gnulib-tool: Accept --extract-license option.
52995 (func_get_license): New function.
52997 2004-09-21 Bruno Haible <bruno@clisp.org>
52999 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53000 Reported by Simon Josefsson.
53002 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53004 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53005 gl_AC_TYPE_LONG_LONG.
53007 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53009 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53011 2004-09-18 Simon Josefsson <jas@extundo.com>
53012 and Paul Eggert <eggert@cs.ucla.edu>
53014 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53015 calls with autoreconf. Define GL_LIB.
53017 2004-09-14 Karl Berry <karl@gnu.org>
53019 * config/srclist.txt: unsync setenv.c, sigh.
53021 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53023 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53024 Problem reported by Bruno Haible in:
53025 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53027 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53029 * config/srclist.txt: Comment out argp-pvh.c.
53031 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53033 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53034 in case some system header has #define'd it. Problem reported by
53035 Soeren D. Schulze in
53036 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53038 2004-09-09 Karl Berry <karl@gnu.org>
53040 * regex.[ch]: delete from the root. These were supposed to be
53041 synced with emacs cvs, but this has not happened for about
53042 a year, and anyway nothing else uses emacs regex.[ch].
53043 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53044 lib/regex[.ch] is untouched.
53046 2004-09-09 Bruno Haible <bruno@clisp.org>
53048 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53050 2004-09-09 Bruno Haible <bruno@clisp.org>
53052 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53054 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53056 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53058 * modules/xvasprintf: New file.
53059 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53061 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53063 * lib/xvasprintf.h: New file.
53064 * lib/xvasprintf.c: New file.
53065 * lib/xasprintf.c: New file.
53067 2004-09-08 Bruno Haible <bruno@clisp.org>
53069 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53071 2004-09-08 Bruno Haible <bruno@clisp.org>
53073 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53074 length is > INT_MAX.
53075 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53078 2004-09-08 Bruno Haible <bruno@clisp.org>
53080 * lib/stdint_.h: New file, taken from GNU clisp.
53082 2004-09-08 Bruno Haible <bruno@clisp.org>
53083 Oskar Liljeblad <oskar@osk.mine.nu>
53085 * modules/stdint: New file.
53086 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53088 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53090 Import from coreutils.
53091 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53092 strings on unbounded length. alloca's performance benefits aren't
53093 that important here.
53094 (V_STRDUP): Remove.
53095 (parse_with_separator): New function, with most of the internals
53096 of the old parse_user_spec. Allow user to omit both user and group,
53097 for compatibility with FreeBSD.
53098 Clone only the user name, not the entire spec.
53099 Do not set *uid, *gid unless entirely successful.
53100 Avoid memory leak in some failing cases.
53101 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53102 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53103 (parse_user_spec): Rewrite to use parse_with_separator.
53105 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53107 * modules/userspec: Don't depend on alloca.
53109 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53111 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53113 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53115 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53116 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53117 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53119 2004-08-16 Simon Josefsson <jas@extundo.com>
53121 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53122 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53123 Add --dry-run for --import.
53124 Let user provided command line parameters override configure.ac
53127 2004-08-12 Simon Josefsson <jas@extundo.com>
53129 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53130 as discussed with Paul Eggert in threads rooted at
53131 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53133 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53134 Before, the test was empty, and relied on ELIDE_CODE in source
53136 (gl_PREREQ_GETOPT): New macro.
53137 (gl_GETOPT): Use them.
53139 2004-08-12 Simon Josefsson <jas@extundo.com>
53141 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53142 * lib/getopt_.h: Renamed from getopt.h.
53144 2004-08-12 Simon Josefsson <jas@extundo.com>
53146 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53147 Change default library name from libfoo to libgnu.
53148 Now, if you have a configure.ac that says:
53151 gl_MODULES(error getopt etcetera)
53153 you can import all you need by running:
53154 ../gnulib/gnulib-tool --import
53156 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53157 (Makefile.am): Rewrite, use logic from argz.
53158 (Include): Use <getopt.h> instead of "getopt.h".
53160 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53162 * modules/argp (Files): Add m4/unlocked-io.m4.
53163 (Depends-on): Add extensions.
53165 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53167 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53168 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53169 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53170 Check for program_invocation_name, program_invocation_short_name,
53171 flockfile, funlockfile, features.h, _getopt_long_only_r.
53173 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53175 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53176 its complicated substitute.
53177 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53178 and program_invocation_name.
53179 (__argp_basename) [!_LIBC]: Remove; the only use was
53180 replaced by its body.
53181 (__argp_short_program_name): Change condition from
53182 !defined __argp_short_program_name to
53183 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53184 to match argp-namefrob.h.
53185 (__argp_failure): Don't assume strerror_r returns char *.
53186 * lib/argp-parse.c (N_): Define unconditionally.
53187 (argp_default_options): Fill out initializers with 0 to avoid
53190 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53192 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53195 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53197 Merge from coreutils.
53199 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53201 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53202 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53204 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53206 Merge from coreutils.
53208 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53209 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53210 for Reliant Unix 5.43.
53212 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53213 (union fooround): Use uintmax_t, not long int.
53214 The rest is a merge from libc:
53215 [defined _LIBC]: Include <shlib-compat.h>.
53216 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53218 * lib/settime.c (settime): Recode to avoid warning with
53221 * lib/strverscmp.c: Convert to UTF-8.
53223 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53225 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53228 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53230 * modules/xalloc-die: New file.
53231 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53233 * modules/md5 (Files): Add m4/uint32_t.m4.
53234 * modules/sha1: Renamed from modules/sha.
53236 Rename lib/sha.h to lib/sha1.h.
53237 Rename lib/sha.c to lib/sha1.c.
53238 Rename m4/sha.m4 to m4/sha1.m4.
53239 (lib_SOURCES): Likewise.
53240 (configure.ac): Rename gl_SHA to gl_SHA1.
53241 (Include): sha.h -> sha1.h.
53243 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53245 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53246 * m4/sha1.m4: Renamed from sha.m4.
53247 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53249 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53251 * lib/obstack.h (obstack_empty_p):
53252 Don't assume that chunk->contents is suitably aligned.
53253 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53254 Likewise. Problem reported by Benno in
53255 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53257 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53258 readable. This could be improved further but it'd take some work.
53260 2004-08-08 Simon Josefsson <jas@extundo.com>
53262 * modules/xgethostname (Depends-on): Remove exit and error (not
53265 * modules/getpass-gnu: Add getpass.h.
53266 (Depends-on): Add stdbool.
53267 * modules/getpass: Add getpass.h.
53269 2004-08-08 Simon Josefsson <jas@extundo.com>
53271 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53272 Check getpass declaration.
53274 2004-08-08 Simon Josefsson <jas@extundo.com>
53276 * lib/xgethostname.c: Don't include error.h (not used).
53278 * lib/getpass.h: Add.
53279 * lib/getpass.c: Include getpass.h first.
53281 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53283 * lib/xalloc-die.c: New file.
53284 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53286 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53287 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53289 (_, N_, xalloc_die): Move to xalloc-die.c.
53290 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53291 so that we needn't mess with xalloc_msg_memory_exhausted.
53293 * lib/sha1.h: Renamed from sha.h.
53294 (SHA1_H): Renamed from _SHA_H.
53295 (sha1_ctx): Renamed from sha_ctx.
53296 (sha1_init_ctx): Renamed from sha_init_ctx.
53297 (sha1_process_block): Renamed from sha_process_block.
53298 (sha1_process_bytes): Renamed from sha_process_bytes.
53299 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53300 (sha1_read_ctx): Renamed from sha_read_ctx.
53301 (sha1_stream): Renamed from sha_stream.
53302 (sha1_buffer): Renamed from sha_buffer.
53303 * lib/sha1.c: Likewise; renamed from sha.c.
53304 Do not include <sys/types.h>.
53305 Include <stddef.h> rather than <stdlib.h>.
53307 2004-08-08 Bruno Haible <bruno@clisp.org>
53309 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53310 FILESYSTEM_PREFIX_LEN.
53311 * lib/progreloc.c: Likewise.
53312 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53314 2004-08-06 Simon Josefsson <jas@extundo.com>
53316 * modules/progname (Depends-on): Don't depend on stdbool.
53318 2004-08-06 Simon Josefsson <jas@extundo.com>
53320 * modules/getsubopt: New file.
53321 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53324 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53326 More merge from coreutils.
53328 * m4/utimens.m4, m4/utimecmp.m4: New files.
53329 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53330 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53331 prereq.m4, sha.m4: Import changes from coreutils.
53333 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53335 More merge from coreutils.
53336 * modules/raise, modules/readtokens0, modules/utimens:
53337 * modules/utimecmp, module/xnanosleep: New files.
53338 * modules/strftime: Add lib/strftime.h.
53339 Change include from <time.h> to "strftime.h".
53340 * modules/yesno: Add lib/yesno.h.
53341 * modules/backupfile: Remove lib/addext.c.
53342 * modules/euidaccess: Add stat-macros.h.
53343 * modules/canonicalize, modules/euidaccess,
53344 modules/filemode, modules/lchown, modules/makepath,
53345 modules/rmdir, modules/stat: Likewise.
53347 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53350 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53351 SIZE_MAX is a valid preprocessor constant.
53352 (__argp_basename): Change from "#ifndef _LIBC"
53353 to "#ifndef __argp_short_program_name", so that
53354 we don't compile these functions for tar.
53356 More merges from coreutils.
53357 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53358 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53359 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53360 * lib/addext.c: Remove; no longer needed.
53361 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53362 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53363 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53364 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53365 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53366 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53367 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53368 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53369 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53370 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53371 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53372 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53373 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53374 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53375 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53376 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53377 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53378 Import changes from coreutils.
53380 2004-08-05 Simon Josefsson <jas@extundo.com>
53382 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53384 2004-08-05 Simon Josefsson <jas@extundo.com>
53386 * m4/getsubopt.m4: New file.
53388 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53390 Merge from coreutils.
53392 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53393 * m4/getcwd-path-max.m4: New files.
53395 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53396 FILESYSTEM_PREFIX_LEN ->
53397 FILE_SYSTEM_PREFIX_LEN.
53398 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53399 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53400 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53401 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53403 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53404 prerequisite modules now handle the DOS stuff.
53405 Don't check for unistd.h.
53407 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53409 Merge from coreutils.
53411 * lib/.gdb-history: Remove; this doesn't belong here.
53413 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53414 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53415 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53416 * lib/getcwd.c: New files.
53418 * lib/dirname.h: Include <stdbool.h>.
53419 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53420 for consistency with POSIX terminology. All uses changed.
53421 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53422 (strip_trailing_slashes): Use bool for booleans.
53423 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53425 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53426 sometimes returns a positive errno value even when it succeeds.
53427 (print_errno_message) [!LIBC]: Fall back on strerror if
53428 __strerror_r fails.
53430 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53431 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53432 (longest_relative_suffix): New function.
53433 (path_concat): Use it. Assume first argument is not NULL.
53434 Port to DOS. Omit redundant separators.
53435 Report an error instead of returning NULL.
53436 Use mempcpy instead of memcpy.
53437 (xpath_concat): Remove: not declared or used.
53439 * lib/same.h: Include <stdbool.h>
53440 (same_name): Return bool, not int.
53441 * lib/same.c (same_name): Likewise.
53442 (errno): Don't declare; we assume C89 or better now.
53444 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53445 if not already defined.
53447 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53448 * lib/dup-safer.c (errno): Likewise.
53450 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53452 Merge from coreutils.
53453 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53454 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53455 * modules/path-concat: Don't depend on strdup.
53457 2004-08-03 Simon Josefsson <jas@extundo.com>
53459 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53460 * lib/progname.h: Don't include stdbool.h.
53462 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53464 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53465 * MODULES.html.sh (func_all_modules): Remove fatal.
53467 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53469 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53471 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53473 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53476 2004-08-02 Simon Josefsson <jas@extundo.com>
53478 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53479 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53480 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53482 2004-08-01 Simon Josefsson <jas@extundo.com>
53484 * lib/xgetdomainname.c: Include stdlib.h, for free().
53486 2004-07-19 Bruno Haible <bruno@clisp.org>
53488 * MODULES.html.sh (func_all_modules): Add dummy.
53490 2004-07-16 Simon Josefsson <jas@extundo.com>
53492 * modules/dummy: New file.
53494 2004-07-16 Simon Josefsson <jas@extundo.com>
53496 * lib/dummy.c: New file.
53498 2004-07-16 Bruno Haible <bruno@clisp.org>
53500 * lib/backupfile.h: Add extern "C" for C++.
53501 * lib/closeout.h: Likewise.
53502 * lib/copy-file.h: Likewise.
53503 * lib/findprog.h: Likewise.
53504 * lib/full-write.h: Likewise.
53505 * lib/pathname.h: Likewise.
53506 * lib/progname.h: Likewise.
53507 * lib/stpcpy.h: Likewise.
53508 * lib/stpncpy.h: Likewise.
53509 * lib/strcase.h: Likewise.
53510 * lib/strstr.h: Likewise.
53511 * lib/xalloc.h: Likewise.
53513 * lib/mbswidth.h: Add extern "C" for C++.
53514 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53516 2004-07-13 Robert Millan <robertmh@gnu.org>
53518 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53520 2004-07-09 Simon Josefsson <jas@extundo.com>
53522 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53523 failed without this.)
53525 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53527 * modules/chown (Files): Add lib/fchown-stub.c, since
53528 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53530 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53532 * lib/fchown-stub.c: New file.
53534 2004-06-24 Jim Meyering <jim@meyering.net>
53536 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53538 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53540 * modules/argz: Omit "#include".
53542 * MODULES.html.sh (func_all_modules): Add calloc, to match
53543 2004-06-01 addition of calloc module.
53545 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53547 * m4/argz.m4: New file, which is autoupdated from libtool.
53549 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53551 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53554 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53556 * config/srclist-update: Don't insist on "USA." before the
53557 close-comment, as libtool omits the period and puts the */ on a
53559 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53560 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53562 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53564 * modules/argz: New file.
53565 * MODULES.html.sh (func_all_modules): Add argz.
53567 2004-06-12 Jim Meyering <jim@meyering.net>
53568 and Paul Eggert <eggert@cs.ucla.edu>
53570 * modules/hash (Files): Add lib/xalloc.h.
53571 * modules/pipe (Depends-on): Add wait-process.
53572 * modules/stat (Depends-on): Add xalloc.
53573 * modules/userspec (Files): Add lib/userspec.h.
53576 Upgrade from gettext-0.13.
53577 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53578 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53579 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53581 2004-06-10 Jim Meyering <jim@meyering.net>
53583 * lib/calloc.c: New file.
53585 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53587 * lib/getdate.y (yylex): Allow space between sign and number.
53588 Problem reported by Dan Jacobson.
53590 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53592 Merge from coreutils CVS.
53594 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53595 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53596 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53597 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53598 xstrtol.m4: Fix copyright date and/or serial number.
53600 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53601 See if we need an fchown replacement.
53602 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53603 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53604 and use the replacement function if we detect either defect.
53606 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53609 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53610 and Jim Meyering <jim@meyering.net>
53612 Merge from coreutils CVS.
53614 * lib/stat-macros.h: New file, with contents from file-type.h
53615 and coreutils' system.h.
53616 * lib/file-type.c: Include "stat-macros.h".
53617 * lib/file-type.h (file_type): Move all macro definitions to new file,
53620 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53621 Wrap old code with this conditional.
53622 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53623 function that does not dereference symlinks.
53624 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53626 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53627 dependency problems.
53628 (xreadlink): Accept new arg SIZE, for efficiency.
53629 All decls and uses changed.
53630 * lib/xreadlink.h: Include <stddef.h>, for size_t.
53632 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53633 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53635 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53638 2004-06-01 Jim Meyering <jim@meyering.net>
53640 * m4/calloc.m4: New file.
53642 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
53644 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53645 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
53646 Also, fix a typo in a diagnostic.
53648 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53650 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53651 or AC_FUNC_REALLOC.
53653 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53655 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53656 macros to be defined.
53657 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53658 the allocator returns NULL because the requested size is zero.
53660 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
53662 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53663 var. Add comment explaining why libc still defines it. This
53664 merges the following patch from glibc:
53665 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53667 2004-05-20 Andreas Schwab <schwab@suse.de>
53669 * m4/free.m4: Replace free if it not known to work, not the other
53672 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
53674 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
53675 present in glibc since revision 1.1 of this file.
53676 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53677 obstack_alignment_mask, obstack_alloc, obstack_base,
53678 obstack_blank, obstack_blank_fast, obstack_chunk_size,
53679 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53680 obstack_grow0, obstack_init, obstack_int_grow,
53681 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53682 obstack_next_free, obstack_object_size, obstack_ptr_grow,
53683 obstack_ptr_grow_fast, obstack_room): Remove declarations of
53684 nonexistent functions.
53686 2004-05-18 Karl Berry <karl@gnu.org>
53688 * config/srclist.txt: break link for vasnprintf.c.
53690 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53692 Port obstack to the AS/400, where pointers are 16 bytes wide and
53693 you cannot cast an integer to a valid pointer. This patch is
53694 currently waiting to be integrated into glibc; see
53695 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53697 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53698 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53699 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53700 (struct obstack): temp member is now a union of a pointer and
53701 an integer, instead of an integer. All integer uses changed.
53702 This does not affect the physical layout of struct obstack,
53703 except on hosts (like the AS/400) where the size or alignment of
53704 void * is greater than that of ptrdiff_t.
53705 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53706 __STDC__)]: Store temporary in pointer member of union, not
53708 * lib/obstack.c: Include <stddef.h>, for offsetof.
53709 (struct fooalign): Remove; it doesn't need a name.
53710 (union fooround): Change double to long double, and add void *.
53711 (DEFAULT_ALIGNMENT): Use offsetof to compute.
53712 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53713 not a macro. Hence the values are always int; so remove all
53714 casts-to-int in uses.
53716 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53718 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53719 we can get this patch merged into glibc.
53721 2004-05-17 Derek R. Price <derek@ximbiot.com>
53722 Paul Eggert <eggert@cs.ucla.edu>
53724 * m4/argp: Depend on alloca.
53726 2004-05-17 Derek R. Price <derek@ximbiot.com>
53727 Paul Eggert <eggert@cs.ucla.edu>
53729 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53732 2004-05-17 Bruno Haible <bruno@clisp.org>
53734 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53735 precision that consists of a '.' followed by an empty digit string.
53736 Patch by Tor Lillqvist <tml@iki.fi>.
53738 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53740 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53741 for backward compatibility with older code. We need our own
53742 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
53743 it under some other name, and our alloca.h will define it.
53745 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53746 Derek Price <derek@ximbiot.com>
53748 * lib/alloca.c: Include <alloca.h>, to get our interface.
53749 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53750 include <alloca.h> first. Use C89 prototype for alloca; this
53751 requires including <stddef.h> for size_t. Use extern "C" if C++.
53752 Use #elif for simplicity, since we can assume C89 now.
53753 Don't try to source the system alloca.h since it will not be found
53754 and to prevent recursively including its replacement.
53755 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53756 * lib/regex.c: Likewise.
53758 2004-05-16 Derek Price <derek@ximbiot.com>
53759 Paul Eggert <eggert@cs.ucla.edu>
53761 getline cleanup. This changes the getndelim2 API: both order of
53762 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53765 * lib/getline.c: Don't include stddef.h or stdio.h, since our
53766 interface does that.
53767 (getline): Always use getdelim, so that we don't have two
53768 copies of this code.
53769 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53771 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53772 (GETNDELIM2_MAXIMUM): New macro.
53773 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
53774 instead of the old practice of delim2==0. All callers changed.
53775 Return -1 on overflow, instead of returning junk.
53776 Do not set *linesize unless allocation succeeds.
53777 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53778 that we include sys/types.h.
53779 * lib/getnline.h: Likewise.
53780 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53781 (getndelim2): Reorder arguments.
53782 * lib/getnline.c (getnline, getndelim):
53783 Don't discard the NMAX argument.
53784 (getnline): Invoke getndelim, to avoid code duplication.
53785 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53786 of (size_t) -1 by callers of the getnline family.
53788 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
53790 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53791 Check for gettimeofday.
53792 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53793 Check for settimeofday, stime.
53795 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
53797 * lib/nanosleep.c (suspended): Change its type from int to
53798 sig_atomic_t volatile.
53799 (first_call): Make it private to rpl_nanosleep, and have it
53800 be zero initially as that's a bit faster.
53801 (my_usleep): Round up fractional times instead of truncating them,
53802 as this is the usual meaning for 'sleep'.
53804 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53806 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53807 (ENOSYS): Define if not defined.
53808 (settime): Fall back on stime if it exists and settimeofday fails.
53809 But don't bother with fallbacks if a method fails with errno == EPERM.
53811 2004-05-11 Jim Meyering <jim@meyering.net>
53813 Prior to this change, the save_cwd caller required read access to the
53814 current directory on most systems (ones with the fchdir function).
53816 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53817 fails, try write-only, and finally, resort to using xgetcwd.
53819 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
53821 * lib/obstack.c, obstack.h: Import changes from libc.
53823 2004-04-28 Bruno Haible <bruno@clisp.org>
53825 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53826 also implicitly appends .exe to executables.
53827 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53828 accepts Windows pathnames.
53829 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53830 Treat Cygwin like Windows, since it now accepts Windows pathnames.
53831 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53832 Treat Cygwin like Windows, since it now accepts Windows pathnames.
53833 Reported by Derek Robert Price <derek@ximbiot.com>.
53835 2004-04-21 Karl Berry <karl@gnu.org>
53837 * config/srclist.txt (localcharset.c): break sync.
53839 2004-04-20 Paul Eggert <eggert@twinsun.com>
53841 * m4/host-os.m4: Add a copyright notice.
53843 2004-04-20 Jim Meyering <jim@meyering.net>
53845 Change UTILS_ to gl_ in AC_DEFINE'd names.
53846 Change utils_- and jm_-prefixed variables, too.
53847 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53848 UTILS_FUNC_MKDIR_TRAILING_SLASH.
53849 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53851 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53852 Don't emit trailing blanks.
53853 Also rename jm_-prefixed variables to have gl_ prefix.
53855 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53856 Also rename jm_-prefixed variables to have gl_ prefix.
53858 * m4/jm-macros.m4: Reflect the renamings.
53859 * m4/prereq.m4: Likewise.
53861 2004-04-20 Jim Meyering <jim@meyering.net>
53863 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53866 2004-04-20 Jim Meyering <jim@meyering.net>
53867 Bruno Haible <bruno@clisp.org>
53869 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53870 memory when realloc fails.
53872 2004-04-19 Jim Meyering <jim@meyering.net>
53874 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53875 now that readutmp.c may call `free (0)'.
53877 2004-04-19 Bruno Haible <bruno@clisp.org>
53879 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53880 * m4/inttypes_h.m4: Likewise.
53881 * m4/stdint_h.m4: Likewise.
53882 * m4/intmax_t.m4: Likewise.
53883 * m4/uintmax_t.m4: Likewise.
53885 2004-04-18 Jim Meyering <jim@meyering.net>
53887 * m4/prereq.m4: Don't forbid jm_ prefix.
53889 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53890 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53891 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53892 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53893 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53894 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53895 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53896 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53897 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53898 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53899 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53900 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53901 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53902 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53903 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53904 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53905 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53906 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53907 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53909 2004-04-18 Jim Meyering <jim@meyering.net>
53911 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53912 failure, don't leak memory and do call END_UTMP_ENT.
53914 2004-04-16 Jim Meyering <jim@meyering.net>
53916 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
53917 coreutils' stat program.
53918 (gl_PREREQ): Don't require jm_PREREQ_STAT.
53920 2004-04-11 Paul Eggert <eggert@twinsun.com>
53922 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53924 (CHAR_BIT): Remove, since we assume C89.
53925 Include <stdint.h> if available, as per current Autoconf CVS advice.
53927 2004-03-31 Jim Meyering <jim@meyering.net>
53929 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53930 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53931 * m4/xalloc.m4: Likewise.
53933 2004-03-30 Paul Eggert <eggert@twinsun.com>
53935 Merge from coreutils.
53937 * m4/inttostr.m4: New file.
53938 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53939 Require AM_STDBOOL_H and gl_TIMESPEC instead.
53940 Require gl_CLOCK_TIME.
53941 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53943 2004-03-30 Paul Eggert <eggert@twinsun.com>
53945 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53946 not bool, to be more consistent with Unix conventions.
53947 Suggested by Bruno Haible.
53949 Merge from coreutils.
53951 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53952 * lib/umaxtostr.c: New files.
53954 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53955 the usual <time.h> dance.
53956 (get_date): Change signature to support fractional time stamps.
53957 All callers changed.
53958 * lib/getdate.y: Include "getdate.h" first, as we can now
53959 assume C89 and don't need to worry about 'const'.
53960 Similarly, include "unlocked-io.h" near start, not in middle.
53961 Include <limits.h>.
53962 (textint.value): Use long int rather than int.
53963 (textint.digits): Use size_t rather than int.
53964 (BILLION, LOG10_BILLION): New constants.
53965 (parser_control): New member rel_ns. Members day_ordinal,
53966 time_zone, month, day, hour, minutes, rel_year, rel_month,
53967 rel_day, rel_hour, rel_minutes, rel_seconds
53968 are now long int, not int. Member seconds is now struct timespec,
53969 not int. New member timespec_seen. Members dates_seen, days_seen,
53970 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53972 (%union.intval): Now long int, not int.
53973 New member timespec.
53974 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53975 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53976 (spec): Now is a timespec or an item list.
53977 (timespec, items): New nonterminals.
53978 (time, rel, relunit, number, get_date):
53979 Add support for fractional seconds.
53980 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53981 (gmtime, localtime, mktime): Remove decls; not needed with C89.
53982 (to_hour): First arg is now long int, not int.
53983 (to_year): Returns long int, not int.
53984 Don't treat year -70 like 70.
53985 (tm_diff): Returns long int, not int.
53986 (lookup_word): Use bool instead of int when appropriate.
53987 (yylex): Use size_t for count, not int.
53988 Detect overflow when parsing large integer constants.
53989 Add support for fractions.
53990 (get_date): Make pointers 'const' if possible.
53991 Use more-portable code to detect integer overflow.
53992 (main) [TEST]: Adjust to above changes. Test for localtime failure.
53993 Don't use ctime; it's not reliable if the year has >4 digits.
53995 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53996 This is for compatibility with BSD.
53998 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53999 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54000 From coreutils' system.h.
54002 * lib/userspec.c: Don't include "posixver.h".
54003 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54004 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54005 compatible extension. Simplify code by removing a boolean int
54006 that was always nonzero if a string was nonnull.
54008 2004-03-30 Jim Meyering <jim@meyering.net>
54010 Merge from coreutils.
54012 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54013 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54014 on some systems one must include <grp.h> before it.
54015 Reported by Christian Krackowizer.
54017 2004-03-30 Jim Meyering <jim@meyering.net>
54019 Merge from coreutils.
54021 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54023 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54024 an empty input stream.
54026 * lib/readtokens.c: Include <stdbool.h>.
54027 (readtoken): Use `size_t' rather than int/long.
54028 All callers adjusted.
54029 Use `bool' rather than `int' where appropriate.
54030 Use memset rather than an explicit loop.
54031 Use x2nrealloc rather than xrealloc.
54032 Allow the use of `\0' as a delimiter.
54033 (readtokens): Likewise.
54034 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54036 2004-03-30 Jim Meyering <jim@meyering.net>
54038 * m4/realloc.m4: Remove file, since now it does no more than
54039 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54040 the `configure.ac' section of module/realloc.
54041 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54043 2004-03-30 Bruno Haible <bruno@clisp.org>
54045 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54048 2004-03-29 Paul Eggert <eggert@twinsun.com>
54050 Merge changes to getloadavg.c from coreutils and Emacs.
54052 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54053 Define to an expression, not to the empty string.
54054 Include cloexec.h and xalloc.h.
54055 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54056 Use set_cloexec_flag rather than rolling our own.
54057 * lib/cloexec.c, lib/cloexec.h: New files.
54059 2004-03-29 Paul Eggert <eggert@twinsun.com>
54061 * m4/cloexec.m4: New file.
54063 2004-03-18 Paul Eggert <eggert@twinsun.com>
54065 * lib/getopt.h: Sync with libc CVS.
54067 2004-03-18 Paul Eggert <eggert@twinsun.com>
54068 Bruno Haible <bruno@clisp.org>
54070 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54073 2004-03-18 Paul Eggert <eggert@twinsun.com>
54074 Bruno Haible <bruno@clisp.org>
54076 * lib/mbswidth.h: Include <wchar.h> only if
54077 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54079 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54081 2004-03-09 Paul Eggert <eggert@twinsun.com>
54083 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54084 Sync with libc CVS.
54085 * lib/getopt_int.h: New file, also synced from libc.
54087 2004-03-09 Paul Eggert <eggert@twinsun.com>
54089 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54090 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54091 Bring back getopt.c, getopt.h, getopt1.c.
54093 2004-03-07 Paul Eggert <eggert@twinsun.com>
54095 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54096 All uses changed. Check for sa_sigaction member; this fixes
54097 a bug first reported by Jason Andrade in
54098 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54100 2004-03-07 Paul Eggert <eggert@twinsun.com>
54102 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54103 '#if' expressions. Unlike the code it replaces, it does not
54104 depend on (defined _SC_PAGESIZE). However, it does depend on
54105 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54106 first reported by Jason Andrade in
54107 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54109 2004-02-25 Simon Josefsson <jas@extundo.com>
54111 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54113 2004-02-25 Simon Josefsson <jas@extundo.com>
54115 * lib/strdup.h: New file.
54116 * lib/strdup.c: Include it.
54117 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54118 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54120 2004-02-23 Karl Berry <karl@gnu.org>
54122 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54123 (from fencepost.gnu.org:/gd/gnuorg).
54125 2004-02-23 Karl Berry <karl@gnu.org>
54127 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54128 * config/srclist.txt: add maintain/standards documents.
54130 2004-02-18 Bruno Haible <bruno@clisp.org>
54132 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54133 Reported by Derek Robert Price <derek@ximbiot.com>.
54135 2004-02-16 Karl Berry <karl@gnu.org>
54137 * config/mkinstalldirs, install-sh: update from automake.
54139 2004-02-06 Karl Berry <karl@gnu.org>
54141 * m4/po.m4: update from gettext 0.14.1.
54143 2004-02-06 Karl Berry <karl@gnu.org>
54145 * lib/config.charset: update from gettext 0.14.1.
54147 2004-02-05 Paul Eggert <eggert@twinsun.com>
54149 Add comments and code, prompted by suggestions from Bruno Haible
54151 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54152 describing the enum quoting_style values.
54153 * lib/quotearg.c (quotearg_alloc): New function.
54154 (quotearg_buffer_restyled): Treat lone { and } as special.
54155 Treat = as special. Work around bug with older shells
54156 that "see" a '\' that is really the 2nd byte of a multibyte char.
54157 Quote empty string with shell_quoting_style.
54159 2004-02-03 Bruno Haible <bruno@clisp.org>
54161 * m4/pipe.m4: New file, from GNU gettext.
54163 2004-02-03 Bruno Haible <bruno@clisp.org>
54165 * lib/pipe.h: New file, from GNU gettext.
54166 * lib/pipe.c: New file, from GNU gettext.
54168 2004-01-27 Bruno Haible <bruno@clisp.org>
54170 * m4/execute.m4: New file, from GNU gettext.
54172 2004-01-27 Bruno Haible <bruno@clisp.org>
54174 * lib/execute.h: New file, from GNU gettext.
54175 * lib/execute.c: New file, from GNU gettext.
54176 * lib/w32spawn.h: New file, from GNU gettext.
54178 2004-01-24 Paul Eggert <eggert@twinsun.com>
54180 Merge from diffutils.
54182 * lib/file-type.c (file_type): Add typed memory objects.
54183 * lib/file-type.h (S_TYPEISTMO): New macro.
54185 * lib/c-stack.h (c_stack_action): Remove argv argument.
54186 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54187 (die): Don't calculate message unless segv_action returns.
54188 (get_stack_location, min_address_from_argv, max_address_from_argv,
54189 volatile stack_base, volatile_stack_size): Remove.
54190 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54191 that every segmentation violation is a stack overflow. (Ouch!)
54192 See Debian bug 136249 (still outstanding) for more info about why
54193 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54195 2004-01-24 Paul Eggert <eggert@twinsun.com>
54197 Exit-status fix from coreutils.
54199 Use exit_failure consistently in place of EXIT_FAILURE,
54200 so that program exit statuses are consistent on failure.
54202 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54203 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54204 * lib/argmatch.h: Comment fix to match the above.
54205 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54206 Now a macro referring to exit_failure, instead of a separate
54207 variable. Include "exitfail.h" to get it.
54208 * lib/xstrtol.h: Include "exitfail.h".
54209 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54211 * lib/long-options.c (parse_long_options): Use prototype
54212 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54215 2004-01-21 Jim Meyering <jim@meyering.net>
54217 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54218 so as not to conflict with a different-sized __mktime_internal
54219 function in GNU libc.
54220 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54221 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54223 2004-01-20 Karl Berry <karl@gnu.org>
54225 * config/config.guess: update from config.
54227 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54229 2004-01-20 Bruno Haible <bruno@clisp.org>
54231 Safer stack allocation.
54232 * lib/setenv.c: Include allocsa.h.
54233 (alloca): Remove fallback definition.
54234 (freea): Remove macro.
54235 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54238 2004-01-20 Bruno Haible <bruno@clisp.org>
54240 * m4/eealloc.m4: New file, from GNU gettext.
54242 2004-01-20 Bruno Haible <bruno@clisp.org>
54244 * m4/allocsa.m4: New file, from GNU gettext.
54246 2004-01-20 Bruno Haible <bruno@clisp.org>
54248 * lib/xallocsa.h: New file, from GNU gettext.
54249 * lib/xallocsa.c: New file, from GNU gettext.
54251 2004-01-20 Bruno Haible <bruno@clisp.org>
54253 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54255 2004-01-20 Bruno Haible <bruno@clisp.org>
54257 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54258 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54261 2004-01-20 Bruno Haible <bruno@clisp.org>
54263 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54266 2004-01-20 Bruno Haible <bruno@clisp.org>
54268 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54270 2004-01-20 Bruno Haible <bruno@clisp.org>
54272 * lib/eealloc.h: New file.
54274 2004-01-20 Bruno Haible <bruno@clisp.org>
54276 * lib/binary-io.h: Avoid warnings on Cygwin.
54278 2004-01-20 Bruno Haible <bruno@clisp.org>
54280 * lib/allocsa.h: New file, from GNU gettext.
54281 * lib/allocsa.c: New file, from GNU gettext.
54283 2004-01-18 Karl Berry <karl@gnu.org>
54285 * doc/gpl.texi, doc/lgpl.texi: new files.
54287 2004-01-18 Karl Berry <karl@gnu.org>
54289 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54290 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54292 2004-01-15 Paul Eggert <eggert@twinsun.com>
54294 Merge from coreutils.
54296 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54297 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54298 (gl_DEFAULT_POSIX2_VERSION): Move
54299 the documentation from 'configure' into 'config.hin',
54300 so that 'configure --help' isn't burdened by it and
54301 we don't have to worry about its formatting there.
54302 Reword the documentation so that it's more succinct
54303 and can be run together into a single paragraph.
54304 * m4/same.m4 (gl_SAME): Check for pathconf.
54306 2004-01-15 Paul Eggert <eggert@twinsun.com>
54308 Merge from coreutils.
54310 * lib/posixver.c: Include posixver.h.
54312 * lib/same.c: Include <stdbool.h>, <limits.h>.
54313 (_POSIX_NAME_MAX): Define if not defined.
54315 (same_name): If file names are silently truncated, report
54316 that the file names are the same if they are the same after
54317 the silent truncation.
54319 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54320 conversion function.
54321 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54322 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54325 2004-01-15 Jim Meyering <jim@meyering.net>
54327 Merge from coreutils.
54329 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54330 if no library is required.
54331 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54332 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54333 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54334 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54335 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54336 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54337 value, $ac_cv_search_crypt, if it's "none required".
54338 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54339 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54340 not gl_FUNC_GETLOADAVG.
54341 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54342 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54344 2004-01-15 Jim Meyering <jim@meyering.net>
54346 Merge from coreutils.
54348 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54349 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54350 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54352 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54353 optional configure-time default.
54355 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54357 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54359 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54361 Merge from coreutils.
54363 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54364 value, $ac_cv_search_nanosleep, if it's "none required".
54366 2004-01-14 Paul Eggert <eggert@twinsun.com>
54368 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54369 with like-named macro in fnmatch.c.
54370 (EXT): Use an internal constant instead.
54372 Merge fnmatch patches from glibc.
54373 * lib/fnmatch.c (mbsinit): Remove define.
54374 Add libc_hidden_ver (__fnmatch, fnmatch).
54375 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54376 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54378 2004-01-14 Karl Berry <karl@gnu.org>
54380 * config/install-sh: update from automake.
54382 2004-01-13 Karl Berry <karl@gnu.org>
54384 * config/install-sh: update from automake.
54386 2004-01-09 Karl Berry <karl@gnu.org>
54388 * config/install-sh: update from automake.
54390 2004-01-05 Karl Berry <karl@gnu.org>
54392 * config/config.{sub,guess}: update from config.
54394 2003-12-31 Karl Berry <karl@gnu.org>
54396 * config/depcomp: update from automake.
54398 2003-12-14 Karl Berry <karl@gnu.org>
54400 * lib/config.charset: update from gettext-runtime.
54402 2003-12-03 Paul Eggert <eggert@twinsun.com>
54404 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54405 Bug reported by Alfred M. Szmidt.
54407 2003-12-03 Bruno Haible <bruno@clisp.org>
54409 * m4/gettext.m4: Upgrade from gettext-0.13.
54410 * m4/po.m4: Upgrade from gettext-0.13.
54411 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54412 * m4/intmax.m4: New file, from gettext-0.13.
54413 * m4/printf-posix.m4: New file, from gettext-0.13.
54415 2003-11-29 Karl Berry <karl@gnu.org>
54417 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54419 2003-11-25 Paul Eggert <eggert@twinsun.com>
54420 Bruno Haible <bruno@clisp.org>
54422 * lib/printf-parse.h: Don't include sys/types.h.
54423 (ARG_NONE): New macro.
54424 (char_directive): Change type of *arg_index fields to size_t.
54425 * lib/printf-parse.c: Don't include sys/types.h.
54426 (SSIZE_MAX): Remove macro.
54427 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54428 Remove unnecessary overflow check.
54429 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54432 2003-11-25 Bruno Haible <bruno@clisp.org>
54434 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54436 2003-11-25 Bruno Haible <bruno@clisp.org>
54438 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54441 2003-11-24 Paul Eggert <eggert@twinsun.com>
54443 * modules/alloca: Remove dependency on xalloc.
54445 2003-11-24 Paul Eggert <eggert@twinsun.com>
54447 * lib/alloca.c: Remove dependency on xalloc module.
54448 (xalloc_die): Remove.
54449 (memory_full) [!defined emacs]: New macro.
54450 [!defined emacs]: Don't include xalloc.h.
54451 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54452 address arithmetic overflows. Change datatypes a bit to avoid
54455 2003-11-22 Jim Meyering <jim@meyering.net>
54457 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54460 2003-11-21 Karl Berry <karl@gnu.org>
54462 * config/config.{sub,guess}: update from config.
54464 2003-11-18 Karl Berry <karl@gnu.org>
54466 * config/config.{sub,guess}: update from config.
54468 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54470 2003-11-17 Paul Eggert <eggert@twinsun.com>
54472 * README: Mention that S+T cannot overflow if S is the size of
54473 an existing object and T is sufficiently small.
54475 2003-11-17 Jim Meyering <jim@meyering.net>
54477 On systems without utime and without a utimes function capable of
54478 dealing with a NULL struct utimbuf* argument, this utime replacement
54479 could -- in unusual circumstances -- leak a file descriptor.
54480 * lib/utime.c: Include <unistd.h> and <errno.h>.
54481 (utime_null): Be sure to close `fd' and to preserve errno.
54482 Reported by Geoff Collyer via Arnold Robbins.
54484 2003-11-17 Bruno Haible <bruno@clisp.org>
54486 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54487 (Depends-on): Add xsize.
54489 2003-11-17 Bruno Haible <bruno@clisp.org>
54491 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54493 2003-11-17 Bruno Haible <bruno@clisp.org>
54495 * lib/vasnprintf.c (alloca): Remove fallback definition.
54496 (freea): Remove definition.
54497 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54498 Reported by Paul Eggert.
54500 2003-11-16 Paul Eggert <eggert@twinsun.com>
54501 Bruno Haible <bruno@clisp.org>
54503 Protect against address arithmetic overflow.
54504 * lib/printf-args.h: Include stddef.h.
54505 (arguments): Change type of field 'count' to size_t.
54506 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54507 'unsigned int' where appropriate.
54508 * lib/printf-parse.h: Include sys/types.h.
54509 (char_directive): Change type of *arg_index fields to ssize_t.
54510 (char_directives): Change type of fields 'count', max_*_length to
54512 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54513 (SSIZE_MAX): Define fallback value.
54514 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54515 instead of 'int' where appropriate. Check a_allocated, d_allocated
54516 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54517 * lib/vasnprintf.c: Include xsize.h.
54518 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54519 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54520 overflow. Avoid wraparound when converting a width or precision from
54523 2003-11-16 Bruno Haible <bruno@clisp.org>
54525 Update from GNU gettext.
54526 * lib/printf-parse.c: Generalize to it can be compiled for wide
54528 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54529 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54530 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54531 SNPRINTF): New macros.
54532 Don't include <alloca.h> if the file is used inside libintl.
54533 (local_wcslen): New function, for Solaris 2.5.1.
54534 (VASNPRINTF): Use it instead of wcslen.
54536 2003-11-16 Bruno Haible <bruno@clisp.org>
54538 * lib/xsize.h (xmax): New function.
54539 (xsum, xsum3, xsum4): Declare as "pure" functions.
54541 2003-11-12 Paul Eggert <eggert@twinsun.com>
54543 * modules/xalloc (Files): Undo latest change, since xalloc.h
54544 no longer needs SIZE_MAX or PTRDIFF_MAX.
54546 2003-11-12 Paul Eggert <eggert@twinsun.com>
54548 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54551 2003-11-12 Paul Eggert <eggert@twinsun.com>
54553 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54554 "return", to pacify some unknown compiler. Problem reported
54555 by Joerg Schilling.
54557 2003-11-12 Paul Eggert <eggert@twinsun.com>
54559 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54560 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54561 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54562 heuristic is just as accurate as far as we know, and it removes a
54563 dependency on size_max.m4 and ptrdiff_max.m4.
54565 2003-11-11 Bruno Haible <bruno@clisp.org>
54567 * modules/xsize (Files): Add m4/size_max.m4.
54568 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54570 2003-11-11 Bruno Haible <bruno@clisp.org>
54572 * m4/size_max.m4: New file.
54573 * m4/ptrdiff_max.m4: New file.
54574 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54575 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54576 (gl_XALLOC): Invoke it.
54578 2003-11-11 Bruno Haible <bruno@clisp.org>
54580 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54581 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54584 2003-11-10 Paul Eggert <eggert@twinsun.com>
54586 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54587 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54588 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54590 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54591 not (size_t) -1, since it's defined here.
54593 2003-11-09 Karl Berry <karl@gnu.org>
54595 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54597 2003-11-06 Paul Eggert <eggert@twinsun.com>
54599 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54600 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54601 Reject sizes of exactly SIZE_MAX bytes.
54602 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54603 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54605 2003-11-05 Bruno Haible <bruno@clisp.org>
54607 * lib/xsize.h: Include limits.h, to avoid a possible collision with
54608 SIZE_MAX defined in <limits.h> on Solaris.
54610 2003-11-04 Jim Meyering <jim@meyering.net>
54612 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54613 variable names, rather than @VAR@.
54614 * modules/poll: Likewise.
54616 2003-11-04 Bruno Haible <bruno@clisp.org>
54618 * modules/xsize: New file.
54619 * modules/linebreak: Depend on xsize.
54620 * MODULES.html.sh (func_all_modules): Add xsize.
54622 2003-11-04 Bruno Haible <bruno@clisp.org>
54624 * m4/xsize.m4: New file.
54626 2003-11-04 Bruno Haible <bruno@clisp.org>
54628 * lib/xsize.h: New file.
54629 * lib/linebreak.c: Include xsize.h.
54630 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54631 argument for overflow.
54632 Suggested by Paul Eggert.
54634 2003-11-03 Karl Berry <karl@gnu.org>
54636 * config/config.{guess,sub}: update from config.
54638 2003-11-03 Jim Meyering <jim@meyering.net>
54640 * modules/userspec (lib_SOURCES): Add userspec.h.
54641 (Include): Add "userspec.h".
54642 Improve description.
54644 2003-11-03 Jim Meyering <jim@meyering.net>
54646 * lib/userspec.c: Include "userspec.h".
54647 * lib/userspec.h: New file.
54649 2003-11-03 Bruno Haible <bruno@clisp.org>
54651 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54653 2003-11-03 Bruno Haible <bruno@clisp.org>
54655 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54656 available, to avoid (extremely rare) race condition.
54657 Suggested by Paul Eggert.
54659 2003-11-02 Karl Berry <karl@gnu.org>
54661 * config/srclist.txt (vasprintf.c): sync broken, sigh.
54663 2003-10-31 Paul Eggert <eggert@twinsun.com>
54665 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54666 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54667 (read_filesystem_list): Set and use me_type_malloced.
54668 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54669 whatever the type happens to be), for brevity and consistency.
54670 Check for size calculation overflow on Alphas running OSF/1.
54672 2003-10-31 Jim Meyering <jim@meyering.net>
54674 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54676 * lib/linebuffer.c: Include <string.h> for declaration of memset.
54678 2003-10-30 Paul Eggert <eggert@twinsun.com>
54679 Bruno Haible <bruno@clisp.org>
54681 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54682 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54684 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
54686 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54687 netbsd*-gnu*. Suggested by Robert Millan.
54689 2003-10-29 Paul Eggert <eggert@twinsun.com>
54691 * modules/group-member: Depend on stdbool.
54693 2003-10-29 Paul Eggert <eggert@twinsun.com>
54695 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54697 2003-10-29 Paul Eggert <eggert@twinsun.com>
54699 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
54700 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
54701 after the 'gnu' in these cases. This fixes some bugs in the
54702 previous change, and is based on suggestions by Robert Millan.
54704 2003-10-29 Paul Eggert <eggert@twinsun.com>
54706 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54707 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
54709 * lib/quotearg.c (quotearg_n_options): Use it.
54710 * lib/group-member.c: Include <stdbool.h>.
54711 (free_group_info): Arg is now const *; don't free arg.
54712 (get_group_info): Now returns bool and accepts struct group_info *,
54713 rather than returning a malloc'ed struct group_info *.
54714 All uses changed. Check for overflow in internal size calculation.
54716 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54717 rather than xmalloc/xrealloc.
54718 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54719 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
54720 conformance bug: the old code used a pointer after freeing the
54721 storage that it addressed.
54722 * lib/hash.c (hash_initialize): Simplify the code by using
54723 xalloc_oversized rather than doing it by hand.
54724 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54725 the buffer preserved. Use free and xmalloc instead.
54726 * lib/quotearg.c (quotearg_n_options): Likewise.
54727 Use a simpler test for size overflow. Don't use xalloc_oversized
54728 because unsigned int might be wider than size_t (!); this suggests
54729 that we should switch from unsigned int to size_t for slot numbers.
54731 2003-10-28 Paul Eggert <eggert@twinsun.com>
54733 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54734 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
54735 NetBSD kernels. Requested by Richard Stallman.
54737 2003-10-27 Paul Eggert <eggert@twinsun.com>
54739 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54740 to allocate the returned structure. Do not allocate a subarray,
54741 as x2nrealloc will do that.
54742 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54743 instead of xnrealloc.
54744 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54746 2003-10-27 Bruno Haible <bruno@clisp.org>
54748 * lib/stdbool_.h: Better support for BeOS.
54750 2003-10-26 Paul Eggert <eggert@twinsun.com>
54752 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54755 2003-10-26 Paul Eggert <eggert@twinsun.com>
54757 * lib/xalloc.h (xalloc_oversized): New static inline function, for
54758 callers that want to do their own size-overflow checking. Include
54759 <stdbool.h>, since xalloc_oversized returns bool.
54760 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
54761 to use xalloc_oversized.
54763 Add two functions x2realloc, x2nrealloc, for programs that grow
54764 arrays dynamically by doubling their sizes.
54765 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54766 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54769 Port to C99 semantics for 'inline' of external functions.
54770 Bug reported by Bruno Haible.
54771 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54772 with the old contents of xnmalloc.
54773 (xnmalloc, xmalloc): Use it.
54774 (xnrealloc_inline): New static inline function,
54775 with the old contents of xnrealloc.
54776 (xnrealloc, xrealloc): Use it.
54778 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54781 2003-10-26 Karl Berry <karl@gnu.org>
54783 * config/srclist.txt (COPYING.DOC): no longer available from
54784 /gd/gnuorg; don't know where the ultimate source is.
54786 2003-10-25 Paul Eggert <eggert@twinsun.com>
54788 Fix several address-calculation bugs in the hash modules,
54789 plus some minor code cleanup.
54791 * lib/hash.h: Include <stdbool.h>, for bool.
54792 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54793 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54794 hash_get_n_entries, hash_get_max_bucket_length,
54795 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54796 hash_rehash): Use size_t rather than unsigned.
54797 * lib/hash.c (struct hash_table, hash_get_n_buckets,
54798 hash_get_n_buckets_used, hash_get_n_entries,
54799 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54800 hash_get_entries, hash_do_for_each, hash_string, is_prime,
54801 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54803 (SIZE_MAX): Define if not defined.
54804 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54805 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54807 Use const * when possible.
54808 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54809 (check_tuning): Fix bug: if tuning parameters were very close to
54810 0 or 1, rounding errors could have caused subscript violations.
54811 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54812 (hash_initialize): Add 'fail:' label
54813 to free table and return NULL, and use it to simplify code.
54814 Use calloc rather than clearing the storage ourself.
54815 (hash_initialize, hash_rehash): Check for arithmetic overflow in
54816 buffer size calculations.
54817 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54818 Include <stddef.h>, for size_t.
54819 * lib/hash-pjw.c (hash_pjw): Likewise.
54820 Switch to method described by Bruno Haible.
54821 Include <limits.h>, for CHAR_BIT.
54822 (SIZE_BITS): New macro.
54824 2003-10-23 Paul Eggert <eggert@twinsun.com>
54826 * m4/getline.m4 (AM_FUNC_GETLINE):
54827 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54828 hosts. Problem reported by Derek Robert Price in
54829 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54830 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54831 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54833 2003-10-21 Paul Eggert <eggert@twinsun.com>
54835 * lib/getndelim2.c (getndelim2): When size calculation overflows,
54836 ceiling the allocation at NMAX bytes rather than silently
54837 discarding input bytes before NMAX is reached. This makes
54838 a difference only if NMAX exceeds SIZE_MAX / 2.
54840 * lib/obstack.c: Merge from glibc.
54841 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54842 Add libc_hidden_def (_obstack_newchunk).
54843 (_obstack_free) [! defined _LIBC]: Remove.
54844 [defined _LIBC]: Make a strong alias from obstack_free, rather than
54845 a clone of the function body.
54846 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54847 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54849 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54851 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54854 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54855 (obstack_ptr_grow_fast, obstack_int_grow_fast):
54856 Don't use lvalue casts, as GCC plans to remove support for them
54857 in GCC 3.5. Reported by Joseph S. Myers. This bug
54858 was also present in the non-GCC version, indicating that this
54859 code had always been buggy and had never been widely used.
54860 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54861 Use the fast variant of each macro, rather than copying the
54862 definiens of the fast variant; that way, we'll be more likely to
54863 catch future bugs in the fast variants.
54865 2003-10-20 Bruno Haible <bruno@clisp.org>
54867 * modules/wait-process: New file.
54868 * MODULES.html.sh (func_all_modules): Add wait-process.
54870 2003-10-20 Bruno Haible <bruno@clisp.org>
54872 * m4/wait-process.m4: New file.
54874 2003-10-20 Bruno Haible <bruno@clisp.org>
54876 * lib/wait-process.h: New file, from GNU gettext.
54877 * lib/wait-process.c: New file, from GNU gettext.
54879 2003-10-19 Jim Meyering <jim@meyering.net>
54881 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54884 2003-10-18 Karl Berry <karl@gnu.org>
54886 * config/config.guess: update from config.
54888 2003-10-16 Paul Eggert <eggert@twinsun.com>
54890 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54891 (getgroups): First arg is int, not size_t.
54892 Don't let 'free' mangle errno.
54894 2003-10-16 Paul Eggert <eggert@twinsun.com>
54896 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54898 2003-10-16 Karl Berry <karl@gnu.org>
54900 * config/config.{guess,sub}: update from config.
54902 2003-10-16 Jim Meyering <jim@meyering.net>
54904 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54907 2003-10-15 Paul Eggert <eggert@twinsun.com>
54909 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54910 (SIZE_MAX): Remove.
54911 (new_exclude, add_exclude_file): Initial size no longer needs to
54913 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54914 our own address arithmetic overflow checking.
54916 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54917 (fnmatch): Do not alloca more than 2000 wide characters;
54918 instead, use malloc for large buffers.
54919 Check for address arithmetic overflow, and return -1
54920 with errno set to ENOMEM in that case.
54921 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54922 (NEW_PATTERN): Do not alloca more than 8000 bytes;
54923 instead, return -1. Check for address arithmetic overflow.
54925 2003-10-14 Paul Eggert <eggert@twinsun.com>
54927 Handle invalid suffixes and overflow independently, so that
54928 callers can treat them independently as needed. Fix some bugs in
54929 suffix handling, e.g., "100k@" was not diagnosed as an invalid
54930 suffix for a human-readable blocksize. The major caller-visible
54931 change is the addition of a new
54932 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54933 that both overflow and suffix chars were found.
54935 * lib/human.c (humblock): Don't check separately for invalid suffix
54936 char; that is xstrtoumax's job (now that its bug is fixed).
54937 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54938 INTMAX_MAX]: New macros.
54939 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54940 TYPE_MAXIMUM): New macros.
54941 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54942 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54943 if overflow occurs, as it's what __strtol does and it's more useful
54945 (__xstrtol): If __strtol reports some error other than ERANGE,
54946 reflect it to the caller as LONGINT_INVALID. If it reports
54947 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54948 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54949 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54951 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
54952 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54953 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54954 [defined UINTMAX_MAX]: New macros.
54956 2003-10-14 Bruno Haible <bruno@clisp.org>
54958 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54960 2003-10-14 Bruno Haible <bruno@clisp.org>
54962 * m4/sig_atomic_t: New file, from GNU gettext.
54963 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54965 2003-10-14 Bruno Haible <bruno@clisp.org>
54967 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54968 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54969 Also use volatile where needed.
54971 2003-10-12 Paul Eggert <eggert@twinsun.com>
54973 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
54974 Change maintainer from Bruno Haible to 'all'.
54976 2003-10-12 Paul Eggert <eggert@twinsun.com>
54978 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54980 2003-10-12 Paul Eggert <eggert@twinsun.com>
54982 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54983 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54984 and define in terms of the other primitives.
54985 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54986 (SIZE_MAX): Define if not already defined.
54987 (array_size_overflow): New function.
54988 (xalloc_die): Abort instead of exiting if 'error' returns.
54989 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54990 (xmalloc, xrealloc): Use them.
54991 (xcalloc): Check for address arithmetic overflow.
54992 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54993 a bit faster than strcpy.
54995 2003-10-10 Simon Josefsson <jas@extundo.com>
54997 * modules/argp (Depends-on): Add restrict and strcase.
54999 2003-10-10 Simon Josefsson <jas@extundo.com>
55001 * m4/argp.m4: Add AC_C_INLINE.
55003 2003-10-08 Paul Eggert <eggert@twinsun.com>
55005 Merge getpass from libc, plus a few fixes.
55007 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55008 Include <stdbool.h>.
55009 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55010 __fsetlocking to empty.
55011 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55012 do include <bits/libc-lock.h>.
55013 Do not include <fcntl.h>; not needed.
55014 [_LIBC]: Include <wchar.h>.
55015 (NOTCANCEL_MODE): New macro.
55016 (flockfile, funlockfile) [_LIBC]: New macros.
55017 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55018 [!_LIBC]: New macros.
55019 (call_fclose): New function.
55020 (getpass): Use it. Save tty stream separately; this simplifies the
55021 code and makes it more reliable if stdin happens to equal stdout.
55022 Invoke __fsetlocking on tty.
55023 Handle thread cancellation if needed.
55024 Namespace cleanup (use __tcgetattr, __getline).
55025 Use bool for Booleans.
55026 [USE_IN_LIBIO]: Handle wide streams.
55027 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55028 stream might go where.
55030 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55031 doesn't have to include <stdio.h> before us.
55032 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55033 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55034 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55035 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55036 if not declared, so that we can use getpass.c code from libc without
55038 (flockfile, ftrylockfile, funlockfile): New macros.
55040 2003-10-08 Paul Eggert <eggert@twinsun.com>
55042 * modules/getpass: Depend on stdbool.
55044 2003-10-08 Paul Eggert <eggert@twinsun.com>
55046 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55048 2003-10-07 Karl Berry <karl@gnu.org>
55050 * config/config.{guess,sub}: update from config.
55052 2003-10-06 Jim Meyering <jim@meyering.net>
55053 Bruno Haible <bruno@clisp.org>
55055 This lets translators provide better translations for the
55056 "Written by ..." part of --version output.
55057 * lib/version-etc.h: Include stdarg.h.
55058 (version_etc_copyright): Declare as readonly.
55059 (version_etc): Make this function variadic with a NULL-terminated list
55060 of author name strings.
55061 (version_etc_va): New declaration.
55062 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55063 (version_etc_copyright): Declare as readonly.
55064 (version_etc_va): New function. Provide a different translatable string
55065 for each possible number of authors < 10. Abbreviate when there are 10
55067 (version_etc): Make this function variadic. Call version_etc_va.
55068 Suggestion from Gary V. Vaughan.
55070 * lib/long-options.h (parse_long_options): Change prototype: the
55071 authors string is moved to the end and becomes variadic.
55072 * lib/long-options.c: Include stdarg.h.
55073 (parse_long_options): Make this function variadic, too.
55074 Call version_etc_va, not version_etc.
55076 2003-10-06 Bruno Haible <bruno@clisp.org>
55078 * modules/version-etc-2: Remove file.
55079 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55081 2003-10-06 Bruno Haible <bruno@clisp.org>
55083 * modules/fatal-signal: New file.
55084 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55086 2003-10-06 Bruno Haible <bruno@clisp.org>
55088 * m4/fatal-signal.m4: New file.
55089 * m4/signalblocking.m4: New file, from GNU gettext.
55091 2003-10-06 Bruno Haible <bruno@clisp.org>
55093 * lib/version-etc-2.h: Remove file.
55094 * lib/version-etc-2.c: Remove file.
55096 2003-10-06 Bruno Haible <bruno@clisp.org>
55098 * lib/fatal-signal.h: New file, from GNU gettext.
55099 * lib/fatal-signal.c: New file, from GNU gettext.
55101 2003-10-05 Paul Eggert <eggert@twinsun.com>
55103 * README: Rework advice for preventing empty .o files.
55104 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55107 2003-10-04 Karl Berry <karl@gnu.org>
55109 * lib/argp*: update from libc.
55111 2003-10-04 Karl Berry <karl@gnu.org>
55113 * config/config.{guess,sub}: update from config.
55115 2003-10-02 Bruno Haible <bruno@clisp.org>
55117 * modules/lchown (Include): Add lchown.h.
55118 * modules/time_r (Include): Use "..." syntax.
55119 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55121 2003-10-01 Simon Josefsson <jas@extundo.com>
55123 * MODULES.html.sh (func_all_modules): Move gethostname from section
55124 'based on' to section 'lacking' POSIX:2001.
55126 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55128 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55129 to output mode on the same stream.
55131 2003-09-29 Paul Eggert <eggert@twinsun.com>
55133 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55134 Fix arg typo in previous patch.
55136 2003-09-28 Jim Meyering <jim@meyering.net>
55138 * lib/error.c: Correct cpp indentation.
55140 2003-09-27 Paul Eggert <eggert@twinsun.com>
55142 * modules/free: New file.
55144 2003-09-27 Paul Eggert <eggert@twinsun.com>
55146 * m4/free.m4: New file.
55148 2003-09-27 Paul Eggert <eggert@twinsun.com>
55150 * lib/minmax.h (MIN, MAX)
55151 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55152 Omit the special code that used __typeof__, since we worry that
55153 it could be more trouble than it's worth. See:
55154 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55155 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55157 * lib/free.c: New file.
55159 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55161 Trivial fixes to Makefile.am parts of module listings.
55162 * modules/strstr: Append strstr.h to lib_SOURCES.
55163 * modules/strcase: Likewise, for strcase.h.
55165 2003-09-27 Karl Berry <karl@gnu.org>
55167 * config/mkinstalldirs: update from automake.
55169 2003-09-26 Paul Eggert <eggert@twinsun.com>
55171 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55172 (error_tail): Do not loop, reallocating temporary buffer, since
55173 the output cannot contain more wide characters than the input
55174 contains bytes, the size must be big enough already. This avoids
55175 one potential size overflow calculation. Check for size overflow
55176 when calculating temporary buffer size. Free temporary buffer
55177 when done, if it was allocated with malloc; this plugs a memory
55178 leak. Remove casts from void * to pointers, that are no longer
55179 needed now that we're assuming C89 or better.
55181 Merge error changes from glibc.
55183 * lib/error.c, error.h: Update copyright notice header to match glibc.
55184 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55185 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55186 Disable cancellation while printing error.
55187 * lib/error.h: Prepend __ to parameter names.
55189 2003-09-26 Jim Meyering <jim@meyering.net>
55191 * lib/error.c (error_tail): Move some declarations
55192 into inner scope where the local variables are used.
55194 2003-09-26 Bruno Haible <bruno@clisp.org>
55196 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55198 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55200 2003-09-26 Bruno Haible <bruno@clisp.org>
55202 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55203 (stpncpy): Define as alias for gnu_stpncpy.
55204 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55206 2003-09-25 Simon Josefsson <jas@extundo.com>
55208 * lib/xgetdomainname.h: New file.
55209 * lib/xgetdomainname.c: New file.
55211 2003-09-25 Simon Josefsson <jas@extundo.com>
55212 Bruno Haible <bruno@clisp.org>
55214 * modules/getdomainname: New file.
55215 * modules/xgetdomainname: New file.
55216 * MODULES.html.sh (func_all_modules): Add getdomainname,
55219 2003-09-25 Simon Josefsson <jas@extundo.com>
55220 Bruno Haible <bruno@clisp.org>
55222 * m4/getdomainname.m4: New file.
55224 2003-09-25 Simon Josefsson <jas@extundo.com>
55225 Bruno Haible <bruno@clisp.org>
55227 * lib/getdomainname.h: New file.
55228 * lib/getdomainname.c: New file.
55230 2003-09-25 Karl Berry <karl@gnu.org>
55232 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55234 2003-09-25 Karl Berry <karl@gnu.org>
55236 * config/install-sh: update from automake.
55238 2003-09-25 Bruno Haible <bruno@clisp.org>
55240 * modules/version-etc-2: New file, from modules/version-etc with
55242 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55244 2003-09-25 Bruno Haible <bruno@clisp.org>
55246 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55247 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55249 2003-09-24 Simon Josefsson <jas@extundo.com>
55251 * modules/xgethostname: Add xgethostname.h.
55253 2003-09-24 Paul Eggert <eggert@twinsun.com>
55255 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55256 the buffer associated with the argument. Bug reported by
55259 2003-09-24 Paul Eggert <eggert@twinsun.com>
55261 * README: Document assumptions that 'int' is at least 32 bits
55262 wide, that integer arithmetic is 2's complement without overflow,
55263 that there are no holes in integer values, that adding sizes of
55264 two nonoverlapping objects can't overflow, and that all-bits-zero
55265 yields scalar zero. Fix spelling and capitalization typos.
55267 2003-09-19 Karl Berry <karl@gnu.org>
55269 * lib/argp.h: update from libc.
55271 2003-09-17 Paul Eggert <eggert@twinsun.com>
55273 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55274 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55275 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55277 2003-09-17 Paul Eggert <eggert@twinsun.com>
55279 * gnulib-tool: Use "test -h", not "test -L", for portability
55280 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55281 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55282 (sed_extract_prog): Issue s commands one-by-one, rather than
55283 using \| in one s command.
55285 2003-09-16 Paul Eggert <eggert@twinsun.com>
55287 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55288 input error, instead of returning NULL the next time we are called
55289 (and therefore losing track of errno).
55291 2003-09-16 Bruno Haible <bruno@clisp.org>
55293 * gnulib-tool (func_create_testdir): Warn about duplicated
55296 2003-09-15 Paul Eggert <eggert@twinsun.com>
55298 * modules/argmatch, modules/fatal, modules/obstack,
55299 modules/xalloc, modules/xgethostname: Sort dependencies by
55300 importance, not alphabetically.
55302 2003-09-15 Paul Eggert <eggert@twinsun.com>
55304 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55305 fails, so that the caller gets the proper errno.
55307 * lib/readutmp.c (read_utmp): Likewise.
55308 Check for fstat error. Close stream and free storage
55311 2003-09-14 Karl Berry <karl@gnu.org>
55313 * config/srclist.txt (strdup.c): disable for c89 changes.
55315 2003-09-14 Jim Meyering <jim@meyering.net>
55317 * lib/getloadavg.c: Correct cpp indentation.
55318 * lib/strdup.c: Likewise.
55319 * lib/vasnprintf.c: Likewise.
55321 2003-09-14 Bruno Haible <bruno@clisp.org>
55323 * modules/fwriteerror: New file.
55324 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55326 2003-09-14 Bruno Haible <bruno@clisp.org>
55328 * lib/fwriteerror.h: New file.
55329 * lib/fwriteerror.c: New file.
55331 2003-09-12 Paul Eggert <eggert@twinsun.com>
55333 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55334 modules/xgethostname, modules/xalloc: Depend on exit.
55336 2003-09-12 Paul Eggert <eggert@twinsun.com>
55338 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55340 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55341 and AC_MINIX, too, so that their extensions are available.
55343 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55344 This macro has been superseded by gl_BACKUPFILE.
55346 More patches to assume C89 or better.
55348 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55350 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55352 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55353 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55354 Include <string.h>, <stdlib.h> unconditionally.
55355 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55356 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55357 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55358 headers or for string.h.
55359 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55362 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55364 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55365 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55366 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55367 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55368 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55369 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55371 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55372 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55373 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55375 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55376 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55377 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55380 2003-09-12 Paul Eggert <eggert@twinsun.com>
55382 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55383 * lib/obstack.c [!defined _LIBC]: Likewise.
55384 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55385 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55386 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55388 More changes to assume C89 or better.
55390 * lib/error.c (error_tail): Assume vprintf.
55392 * lib/argmatch.c (getenv): Remove decl.
55393 * lib/progreloc.c (get_full_program_name): Define via prototype.
55394 * lib/setenv.c (clearenv): Likewise.
55395 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55397 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55398 (malloc, memcpy): Remove decls.
55399 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55400 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55401 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55402 (memcpy): Remove macro.
55403 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55404 (__P): Remove. All uses removed.
55405 (PTR): Remove. All uses changed to void *.
55406 (CHAR_BIT, NULL): Remove.
55407 (spaces, zeros, memset_space, memset_zero)
55408 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55410 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55411 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55412 Define with prototype.
55413 Remove now-unnecessary prototype decl.
55414 (extra_args_spec): Assume ANSI C. All uses changed.
55415 (extra_args_spec_iso): Remove.
55416 (my_strftime, emacs_strftimeu): Define via prototype.
55417 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55419 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55420 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55421 (strtoul, strtol): Remove decls.
55422 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55424 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55425 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55426 (LOCALE_PARAM_PROTO): New macro.
55427 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55428 (INTERNAL (strtol), strtol): Define with a prototype.
55429 (PARAMS): Remove. All uses removed.
55430 * lib/tempname.c: Include <string.h> unconditionally.
55431 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55432 * lib/xgethostname.c (main): Define with a prototype.
55433 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55434 Include <stdlib.h> unconditionally.
55435 (calloc, malloc, realloc, free): Remove decls.
55436 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55437 Include <stdlib.h> unconditionally. Sort include file names.
55439 (xstrtod): Define with a prototype.
55440 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55441 (strtol, strtoul): Remove decls.
55443 2003-09-11 Paul Eggert <eggert@twinsun.com>
55445 More patches to assume C89 or better.
55446 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55447 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55448 string.h, memchr, STDC_HEADERS.
55450 2003-09-11 Paul Eggert <eggert@twinsun.com>
55452 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55453 Include <stdlib.h>, <string.h> unconditionally.
55454 Remove now-unnecessary cast to char *.
55455 * lib/strnlen.c: Include <string.h> unconditionally.
55456 * lib/yesno.c (yesno): Define with a prototype.
55458 2003-09-11 Bruno Haible <bruno@clisp.org>
55460 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55462 2003-09-10 Jim Meyering <jim@meyering.net>
55464 * lib/error.c: Correct indentation of cpp directives.
55466 2003-09-10 Bruno Haible <bruno@clisp.org>
55468 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55469 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55470 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55471 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55472 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55473 <stdlib.h> and <string.h> checks.
55474 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55475 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55477 2003-09-10 Bruno Haible <bruno@clisp.org>
55479 * lib/strcspn.c: Include <string.h> unconditionally.
55480 * lib/strpbrk.c: Include <string.h> unconditionally.
55481 * lib/strstr.c: Include <string.h> unconditionally.
55482 * lib/unicodeio.c: Include <string.h> unconditionally.
55483 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55484 * lib/unsetenv.c: Likewise.
55485 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55486 * lib/yesno.c: Include <stdlib.h> unconditionally.
55487 (rpmatch): Add prototype.
55489 2003-09-09 Paul Eggert <eggert@twinsun.com>
55491 More patches to assume C89 or better.
55492 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55493 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55494 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55496 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55498 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55500 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55502 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55503 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55504 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55506 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55507 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55509 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55511 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55512 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55513 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55514 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55515 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55516 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55518 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55519 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55520 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55521 C headers, or for string.h.
55522 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55523 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55524 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55525 headers, memory.h, stdlib.h, string.h, strings.h.
55526 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55527 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55528 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55530 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55531 headers, memory.h, string.h.
55532 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55533 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55535 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55537 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55538 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55539 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55540 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55541 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55543 2003-09-09 Paul Eggert <eggert@twinsun.com>
55547 * lib/acosl.c (main): Use a prototype.
55548 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55551 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55553 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55554 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55555 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55557 * lib/getopt.c (const): Remove macro.
55558 Include <string.h> unconditionally.
55559 (my_index): Remove; all uses changed to strchr.
55560 (strlen): Remove decl.
55561 (exchange): Remove forward decl; no longer needed.
55562 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55563 Define with prototype.
55564 * lib/getopt1.c (const): Remove macro.
55565 (getopt_long, getopt_long_only, main): Define with prototype.
55567 * lib/getugroups.c: Include <string.h> unconditionally.
55569 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55570 (getusershell, setusershell, endusershell, readname, main):
55571 Define with prototypes.
55573 * lib/group-member.c: Include group-member.h first.
55574 Include <stdlib.h> unconditionally.
55576 * lib/hard-locale.c: Include hard-locale.h first.
55577 Include <stdlib.h>, <string.h> unconditionally.
55579 * lib/hash.c (free, malloc): Remove decls.
55580 Include <stdlib.h> unconditionally.
55582 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55583 (getenv): Do not declare.
55585 * lib/idcache.c: Include <string.h> unconditionally.
55587 * lib/long-options.c: Include long-options.h first, to test interface.
55588 Include <stdlib.h> unconditionally.
55590 * lib/makepath.c: Include makepath.h first, to test interface.
55591 Include <stdlib.h> and <string.h> unconditionally.
55593 * lib/linebuffer.c: Include <stdlib.h>.
55594 (free): Remove decl.
55596 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55597 stddef.h. rpl_malloc returns void *, not char *.
55598 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55601 * lib/md5.h: Include <limits.h> unconditionally.
55602 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55603 (__P): Remove; all uses removed.
55604 * lib/md5.c: Include "md5.h" first.
55605 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55606 md5_buffer, md5_process_bytes, md5_process_block):
55607 Define with prototypes.
55608 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
55609 * lib/sha.c: Include "sha.h" first.
55610 Include <stdlib.h>, <string.h> unconditionally.
55612 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55613 * lib/memcmp.c (__ptr_t): Likewise.
55614 * lib/memrchr.c (__ptr_t): Likewise.
55615 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55616 Include <string.h> unconditionally.
55617 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55618 * lib/memchr.c: Include <stdlib.h> unconditionally.
55619 * lib/memchr.c (LONG_MAX): Remove.
55620 * lib/memrchr.c (LONG_MAX): Likewise.
55621 * lib/memchr.c (__memchr): Define via a prototype.
55622 * lib/memrchr.c (__memrchr): Likewise.
55623 * lib/memcmp.c (__P): Remove, and remove all uses.
55624 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55625 Remove forward decls; no longer needed.
55626 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55627 Use types required by C89 in prototype.
55629 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55630 * lib/savedir.c: Likewise.
55631 * lib/mkdir.c (free): Remove decl.
55632 * lib/rmdir.c (rmdir): Define with a prototype.
55633 * lib/savedir.c: Include savedir.h first, to test interface.
55635 * lib/mktime.c (STDC_HEADERS): Remove.
55636 Include <stdlib.h>, <string.h> unconditionally.
55638 * lib/modechange.c: Include <stdlib.h> unconditionally.
55639 (malloc): Remove decl.
55641 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55642 (free): Remove decl.
55644 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55645 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55646 (This type really should be intptr_t, but that's a C99ism.)
55647 (_obstack_memcpy): Remove: all uses changed to memcpy.
55648 Include <string.h> unconditionally.
55649 (struct obstack): Assume __STDC__ for types of members
55650 chunkfun, freefun, extra_arg.
55651 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55652 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55653 obstack_begin, obstack_specify_allocation,
55654 obstack_specify_allocation_with_arg, obstack_chunkfun,
55655 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55656 Remove unprototyped decls and the macros that use them.
55657 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
55658 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55659 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55660 (defined __STDC__ && __STDC__)]:
55661 Remove nonprototyped code.
55662 Include <stdlib.h> unconditionally.
55663 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55664 _obstack_allocated_p, _obstack_free, obstack_free,
55665 _obstack_memory_used, print_and_abort):
55666 Define using prototypes.
55667 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55668 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55669 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55670 obstack_next_free, obstack_object_size, obstack_room) [0]:
55671 Remove unused, unprototyped code.
55673 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55675 * lib/physmem.c (physmem_total, physmem_available, main): Define
55678 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55679 (main): Define with a prototype.
55681 * lib/posixver.c (getenv): Remove decl.
55683 * lib/putenv.c (malloc): Returns void *, not char *.
55684 Include <string.h> unconditionally.
55685 (strchr, memcpy, NULL): Do not define.
55687 * lib/readtokens.c: Include readtokens.h first, to test interface.
55688 Include <stdlib.h>, <string.h> unconditionally.
55689 (init_tokenbuffer): Define with a prototype.
55691 * lib/regex.c (PARAMS): Remove. All uses removed.
55692 All uses of _RE_ARGS removed, too.
55693 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55695 (bzero): Assume memset exists.
55696 (memcmp, memcpy, NULL): Remove.
55697 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55698 char, or assignments to local vars of type signed char.
55699 (init_syntax_once, PREFIX(extract_number_and_incr),
55700 PREFIX(print_partial_compiled_pattern),
55701 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55702 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55703 PREFIX(regex_grow_registers), PREFIX(regex_compile),
55704 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55705 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55706 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55707 wcs_compile_range, byte_compile_range, truncate_wchar,
55708 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55709 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55710 count_mbs_length, wcs_re_match_2_internal,
55711 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55712 PREFIX(alt_match_null_string_p),
55713 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55714 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55715 regfree, PREFIX(extract_number)): Define with prototype. Remove
55716 now-unnecessary declaration, if any.
55717 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55719 Remove now-unnecessary casts among pointer types.
55720 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
55722 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55723 (free): Remove decl.
55725 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55727 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55728 (free): Remove decl.
55730 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55731 * lib/xgetcwd.c: Likewise.
55733 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55734 (free): Remove decl.
55736 * lib/strchrnul.c (strchrnul): Define with a prototype.
55737 Fix bug: c_in was not converted to char before searching.
55739 The following changes are not K&R related:
55741 * lib/group-member.h: Include <sys/types.h>, so that this file is
55743 * lib/makepath.h: Likewise.
55745 * lib/getusershell.c (readname, default_index, line_size, readname):
55746 Use size_t, not int, for sizes.
55747 (readname): If the size overflows, report an error instead of
55750 2003-09-09 Paul Eggert <eggert@twinsun.com>
55752 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55755 2003-09-09 Paul Eggert <eggert@twinsun.com>
55757 * README: New section: portability guidelines.
55759 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55761 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55764 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55766 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55768 2003-09-08 Paul Eggert <eggert@twinsun.com>
55770 Assume C89 or better; remove K&R cruft.
55771 A few of these changes were first proposed by Derek Robert Price
55772 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55774 * lib/addext.c: Include <string.h> unconditionally.
55775 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55776 Don't declare getenv or malloc.
55778 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55779 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55781 (find_stack_direction, alloca): Use prototypes.
55783 * lib/atexit.c (atexit): Define using a prototype.
55785 * lib/basename.c, dirname.c, stripslash.c:
55786 Include <string.h> unconditionally.
55788 * lib/bcopy.c: Include <stddef.h>.
55789 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55791 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55793 * lib/error.h (error, error_at_line, error_print_progname)
55794 [! (defined (__STDC__) && __STDC__)]: Remove decls.
55795 * lib/error.c: Include error.h first, to check interface.
55796 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55797 (VA_START): Remove; all uses changeed to va_start.
55798 (exit, strerror): Remove decls.
55799 (error_print_progname): Prototype uncondionally.
55800 Don't include <errno.h>; no longer needed.
55801 (private_strerror): Remove.
55802 (error_tail): Always define.
55803 (error, error_at_line): Assume C89 or better; always use prototypes.
55804 * lib/fatal.c: Include "fatal.h" first, to test interface.
55805 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55806 (VA_START): Remove; all uses changed to va_start.
55807 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55809 (exit): Remove decl.
55810 (fatal): Prototype unconditionally. Assume va_start works.
55811 Abort at end, to pacify gcc.
55813 * lib/euidaccess.c (main): Define with a prototype.
55815 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55817 * lib/exitfail.c: Include <stdlib.h> unconditionally.
55819 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
55821 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55822 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55823 (getenv): Remove decl.
55824 (fnmatch): Define using a prototype.
55825 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55826 (FCT): Define using a prototype.
55828 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55830 * lib/gethostname.c: Include <stddef.h>.
55831 (gethostname): Define with prototype. Length is size_t, not int.
55833 2003-09-08 Paul Eggert <eggert@twinsun.com>
55835 Assume C89 or better; remove K&R cruft.
55836 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55837 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55838 string.h, getenv, malloc.
55839 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55841 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55842 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55843 do not check for strerror.
55844 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55845 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55846 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55847 do not check for doprnt or vprintf.
55848 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
55849 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55851 2003-09-08 Paul Eggert <eggert@twinsun.com>
55853 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55854 getversion.c should have been removed then, but was accidentally
55857 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55858 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55860 2003-09-08 Karl Berry <karl@gnu.org>
55862 * config/config.sub, config.guess, srclistvars.sh: update from savannah
55863 config, forget about prep.
55865 * config/depcomp, missing: update from automake.
55867 2003-09-07 Paul Eggert <eggert@twinsun.com>
55869 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
55870 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55872 2003-09-07 Paul Eggert <eggert@twinsun.com>
55874 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55875 copy_tm_result. Bug reported by Simon Josefsson in
55876 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55878 2003-09-06 Paul Eggert <eggert@twinsun.com>
55880 * m4/time_r.m4: New file.
55881 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55882 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55883 is. Check for timegm declaration.
55884 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55885 Do not check for gmtime_r.
55886 Replace mktime if __mktime_internal does not exist and if mktime
55887 hasn't been replaced already.
55889 2003-09-06 Paul Eggert <eggert@twinsun.com>
55891 * lib/time_r.c, lib/time_r.h: New files.
55893 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55895 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
55896 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55898 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55900 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55901 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55902 Include <time_r.h>.
55904 * lib/timegm.c: Switch to glibc implementation, with the following
55906 [defined HAVE_CONFIG_H]: Include <config.h>.
55907 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55908 (__mktime_internal) [!defined _LIBC]: New decl.
55909 (__gmtime_r) [!defined _LIBC]: New macro and function.
55910 (timegm): Use a prototype, since gnulib assumes C89.
55911 Do not bother declaring tmp to be const, as it's not really usefu.
55912 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55913 (timegm): Declare only if HAVE_DECL_TIMEGM.
55915 2003-09-06 Paul Eggert <eggert@twinsun.com>
55917 * MODULES.html.sh (func_all_modules): Add time_r.
55918 * modules/time_r: New file.
55919 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55920 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
55922 2003-09-03 Paul Eggert <eggert@twinsun.com>
55924 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55925 Bug reported by Lute Kamstra in
55926 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55928 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55929 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
55930 course with correspondingly smaller numbers for tomorrow and
55931 yesterday. From Tadayoshi Funaba. Originally installed into
55932 sh-utils on 1999-08-07, but the patch got lost (I guess during the
55935 2003-08-31 Simon Josefsson <jas@extundo.com>
55937 * modules/timegm: New file.
55938 * MODULES.html.sh (func_all_modules): Add timegm.
55940 2003-08-31 Simon Josefsson <jas@extundo.com>
55942 * m4/timegm.m4: New file.
55944 2003-08-31 Simon Josefsson <jas@extundo.com>
55946 * lib/timegm.h: New file.
55947 * lib/timegm.c: New file. Based on
55948 wget-1.8.2/src/http.c:mktime_from_utc.
55950 2003-08-31 Karl Berry <karl@gnu.org>
55952 * lib/argp.h: update from libc.
55954 2003-08-28 Bruno Haible <bruno@clisp.org>
55956 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55957 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55958 followed by '#define fnmatch fnmatch_posix' gives an error.
55960 2003-08-28 Bruno Haible <bruno@clisp.org>
55962 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55963 warning on QNX, which defines O_BINARY to 000000.
55965 2003-08-27 Jim Meyering <jim@meyering.net>
55967 * m4/mkstemp.m4: Require that the system mkstemp be able to create
55968 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
55969 would fail after 32. Reported by Danny Levinson. Details here:
55970 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55972 2003-08-24 Bruno Haible <bruno@clisp.org>
55974 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55975 MSVC7 <stdio.h> is included later.
55977 2003-08-22 Simon Josefsson <jas@extundo.com>
55979 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55981 2003-08-20 Karl Berry <karl@gnu.org>
55983 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55985 2003-08-20 Bruno Haible <bruno@clisp.org>
55987 * modules/progname: New file.
55988 * MODULES.html.sh (func_all_modules): Add progname.
55990 2003-08-20 Bruno Haible <bruno@clisp.org>
55992 * lib/progname.h: New file, from GNU gettext.
55993 * lib/progname.c: New file, from GNU gettext.
55994 * lib/progreloc.c: New file, from GNU gettext.
55996 2003-08-19 Jim Meyering <jim@meyering.net>
55998 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55999 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56001 2003-08-19 Bruno Haible <bruno@clisp.org>
56003 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56006 2003-08-19 Bruno Haible <bruno@clisp.org>
56008 * lib/xstrdup.c: Assume <string.h> exists.
56010 2003-08-18 Paul Eggert <eggert@twinsun.com>
56012 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56015 2003-08-18 Jim Meyering <jim@meyering.net>
56017 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56018 * m4/lib-ld.m4: Likewise.
56020 2003-08-18 Jim Meyering <jim@meyering.net>
56022 * lib/setenv.h: Indent nested cpp directive.
56023 * lib/vasnprintf.c: Remove trailing blanks.
56025 2003-08-17 Simon Josefsson <jas@extundo.com>
56027 * modules/xstrndup: New file.
56028 * MODULES.html.sh (func_all_modules): Add xstrndup.
56030 2003-08-17 Simon Josefsson <jas@extundo.com>
56032 * modules/argp: Fix autoconf macro name. Add more dependencies.
56034 2003-08-17 Simon Josefsson <jas@extundo.com>
56036 * m4/xstrndup.m4: New file.
56038 2003-08-17 Simon Josefsson <jas@extundo.com>
56040 * m4/argp.m4: New file.
56042 2003-08-17 Simon Josefsson <jas@extundo.com>
56043 Bruno Haible <bruno@clisp.org>
56045 * lib/xstrndup.h: New file.
56046 * lib/xstrndup.c: New file.
56048 2003-08-17 Bruno Haible <bruno@clisp.org>
56050 * modules/strndup (Files, Include): Add lib/strndup.h.
56052 2003-08-17 Bruno Haible <bruno@clisp.org>
56054 * modules/euidaccess (Files): Add lib/euidaccess.h.
56056 2003-08-17 Bruno Haible <bruno@clisp.org>
56058 * lib/strndup.h: New file.
56060 2003-08-17 Bruno Haible <bruno@clisp.org>
56062 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56063 like AC_GNU_SOURCE.
56064 * modules/extensions (configure.ac): Comment out the invocation of
56065 gl_USE_SYSTEM_EXTENSIONS.
56067 2003-08-16 Paul Eggert <eggert@twinsun.com>
56069 Merges from coreutils, etc.
56070 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56071 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56072 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56074 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56075 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56077 2003-08-16 Paul Eggert <eggert@twinsun.com>
56079 Document merge from coreutils.
56080 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56081 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56082 * modules/utime: Add m4/utimes-null.m4.
56084 2003-08-16 Paul Eggert <eggert@twinsun.com>
56086 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56087 space, undoing this 2003-08-12 change:
56088 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56090 2003-08-16 Paul Eggert <eggert@twinsun.com>
56092 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56093 strtoul.c from libc, undoing this 2003-08-12 change:
56094 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56096 2003-08-16 Jim Meyering <jim@meyering.net>
56098 Merges from coreutils.
56099 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56100 prefix. Adjust cache variables similarly. Create 500 rather than
56101 just 300 files, to exercise bug on Darwin6.5, too.
56102 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56104 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56105 AM_SYS_POSIX_TERMIOS.
56106 Reported by mkc@mathdogs.com.
56107 Also change use of $am_cv_sys_posix_termios
56108 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56109 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56110 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56111 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56112 in /proc/mounts until it finds one with matching device number. This
56113 is unnecessary when the FILE argument *is* a mount point. No stat call
56114 is necessary in that case. So, disable the statvfs-testing code on
56115 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56116 as RedHat bug# 84846.
56117 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56118 to 1MB, so as not to render systems with no stack size limit (e.g.,
56119 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56120 Include <unistd.h>. On some systems,
56121 it is required for the definition of _SC_PAGESIZE.
56123 2003-08-16 Jim Meyering <jim@meyering.net>
56125 Merge from coreutils.
56126 * lib/xstrtoimax.c: #else #if -> #elif.
56127 * lib/xstrtoumax.c: Likewise.
56129 2003-08-16 Jim Meyering <jim@meyering.net>
56131 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56132 * m4/utimes.m4: Removed.
56133 * m4/utimes-null.m4: Renamed from utimes.m4.
56135 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56136 to 1MB, so as not to render systems with no stack size limit (e.g.,
56137 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56138 Include <unistd.h>. On some systems,
56139 it is required for the definition of _SC_PAGESIZE.
56141 2003-08-16 Jim Meyering <jim@meyering.net>
56142 and Paul Eggert <eggert@cs.ucla.edu>
56144 Merges from coreutils, etc.
56146 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56147 using the latest version from cvs. This avoids problems with #line
56148 directives using a vendor (Sun) compiler.
56149 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56150 Don't set GETGROUPS_LIB here; now it's
56151 done via getgroups.m4's wrapper function.
56152 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56153 rather than just in sh-util/configure.in, so that the
56154 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56156 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56157 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56158 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56159 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56160 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56161 Remove code that is now done by the newly-required macros.
56162 Append $(EXEEXT) to DF_PROG.
56163 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56164 Do not invoke or require the following here,
56165 since prereq.m4 or some gnulib .m4 now does this for us:
56166 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56167 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56168 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56169 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56170 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56171 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56172 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56174 Do not replace the following functions, as this is now the job
56175 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56176 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56177 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56178 atexit getpass, strdup, getpagesize.
56180 Do not check for the following functions, as this is now the job
56181 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56182 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56184 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56185 Check for sys/sysctl.h.
56186 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56187 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56188 of checking for ssize_t ourselves.
56190 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56191 Require every macro that gnulib/modules/* suggests for us.
56192 (jm_PREREQ_ADDEXT): New macro.
56193 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56194 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56196 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56197 (gl_PHYSMEM): Use it.
56198 Also check for `table' function.
56199 Check for new headers and functions.
56200 Add check for sys/sysmp.h.
56201 With suggestions from Kaveh Ghazi.
56202 Ignore headers that are present but cannot be compiled. This
56203 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56206 2003-08-15 Paul Eggert <eggert@twinsun.com>
56208 Document merge from coreutils.
56209 * modules/userspec: Depend on posixver.
56210 * modules/strftime: Depend on tzset.
56212 2003-08-15 Paul Eggert <eggert@twinsun.com>
56214 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56215 rather than tab, after '#' in shell-script copyright notices.
56216 Suggested by Bruno Haible.
56218 2003-08-15 Paul Eggert <eggert@twinsun.com>
56220 * config/srclist-update: Use three spaces, rather than tab, after '#'
56221 in shell-script copyright notices. Suggested by Bruno Haible.
56222 Remove unnecessary parenthesization in regular expression.
56224 2003-08-15 Jim Meyering <jim@meyering.net>
56226 Merge from coreutils.
56227 * lib/xgethostname.c: Include <stdlib.h>.
56228 (xghostname): Don't exit for anything other than memory-related
56229 failure; just return NULL.
56230 * lib/userspec.c: Include "posixver.h".
56231 (parse_user_spec): Accept `.' as a separator only
56232 in pre-POSIX-200112 mode.
56233 * lib/strtoimax.c: Use #elif rather than #else #if.
56234 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56235 Remove function, now that we can rely on a working tzset function.
56236 [!_LIBC]: Ensure that the required autoconf test has been run.
56237 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56238 Use underlying_strftime for %r.
56239 * lib/sha.c: Merge in some clean-up and optimization changes from
56241 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56242 Ensure that it is a multiple of 64.
56243 Rearrange loop exit tests so as to avoid performing an
56244 additional fread after encountering an error or EOF.
56245 * lib/realloc.c: Update copyright date.
56247 2003-08-15 Jim Meyering <jim@meyering.net>
56248 and Paul Eggert <eggert@twinsun.com>
56250 Merge from coreutils.
56251 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56252 member but strut utmpx does not. Needed for AIX 4.3.3.
56253 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56255 2003-08-15 Jim Meyering <jim@meyering.net>
56256 and Paul Eggert <eggert@cs.ucla.edu>
56258 Merges from coreutils, etc.
56259 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56260 Require gl_FUNC_TZSET_CLOBBER.
56261 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56262 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56265 2003-08-14 Paul Eggert <eggert@twinsun.com>
56267 Help the merge from coreutils.
56268 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56269 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56270 * m4/tzset.m4: Use it too.
56272 2003-08-14 Paul Eggert <eggert@twinsun.com>
56274 * modules/tzset: New file.
56276 2003-08-14 Jim Meyering <jim@meyering.net>
56278 Merges from coreutils.
56279 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56280 variable names, rather than @FNMATCH_H@.
56281 * modules/alloca: Likewise for $(ALLOCA_H).
56283 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56284 the three copies of the literal target, `fnmatch.h'.
56285 * modules/alloca (alloca.h): Likewise.
56287 2003-08-14 Jim Meyering <jim@meyering.net>
56289 Merge from coreutils.
56290 * m4/tzset.m4: New file.
56291 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56292 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56293 otherwise, AIX 5.1 systems would end up using the latter.
56294 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56295 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56296 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56297 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56299 2003-08-14 Jim Meyering <jim@meyering.net>
56301 Merge from coreutils.
56302 * lib/obstack.h: Whitespace changes.
56303 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56304 and xcalloc return values.
56305 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56306 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56307 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56308 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56309 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56311 Use mntctl's return value to drive the entry-processing loop, since
56312 we can't rely on the value of the vmt_length member in the last
56313 entry. On some systems doing so could result in exhausting
56314 virtual memory. Based in part on a patch from Mike Jetzer.
56316 2003-08-14 Jim Meyering <jim@meyering.net>
56317 and Paul Eggert <eggert@twinsun.com>
56319 Merges from coreutils, plus other fixes.
56320 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56321 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56322 for credits and details. Thanks to Kaveh Ghazi for helping
56323 to keep these files in sync.
56324 (ARRAY_SIZE): Define it.
56325 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56326 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56327 (memcasecmp): Don't assume size_t fits in unsigned int.
56328 Remove casts and duplicate code.
56329 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56330 (memcpy): Remove definition.
56331 Merge in some clean-up and optimization changes from glibc.
56332 [BLOCKSIZE]: Move definition to top of file.
56333 Ensure that it is a multiple of 64.
56334 Rearrange loop exit tests so as to avoid performing an
56335 additional fread after encountering an error or EOF.
56336 * lib/md5.h (md5_uintptr): Define.
56337 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56338 return to the initial working directory. Preserve errno
56340 * lib/idcache.c: Include "xalloc.h".
56341 (xmalloc, xrealloc): Remove decls.
56342 (getuser): Remove casts no longer required in C89.
56343 * lib/human.c: Include stdio.h, for sprintf.
56344 * lib/group-member.c: Include "xalloc.h".
56345 (xmalloc, xrealloc): Remove decls.
56346 (get_group_info): Remove casts no longer required in C89.
56347 * lib/getusershell.c (readname): Remove casts no longer required in
56349 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56350 * lib/getline.c: Whitespace fix, from coreutils.
56352 2003-08-13 Paul Eggert <eggert@twinsun.com>
56354 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56357 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56358 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56359 Undo previous (whitespace-only) change.
56361 2003-08-13 Paul Eggert <eggert@twinsun.com>
56363 * lib/exclude.c: Include <ctype.h>
56364 (IN_CTYPE_DOMAIN): New macro.
56365 (is_space): New fn.
56366 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56369 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56370 Undo previous (whitespace-only) change.
56372 2003-08-13 Paul Eggert <eggert@twinsun.com>
56374 * config/srclist-update: Change update back to the old behavior,
56375 leaving whitespace alone. Use one 'sed' command rather than a
56377 (fixlicense): Now a variable, not a function.
56378 (remove_trailing_blanks): Remove.
56379 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56380 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56381 Undo previous (whitespace-only) change.
56383 2003-08-12 Paul Eggert <eggert@twinsun.com>
56385 Merge from coreutils.
56386 * modules/euidaccess: Add lib_SOURCES, include for new
56389 2003-08-12 Paul Eggert <eggert@twinsun.com>
56391 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56392 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56393 Normalize leading white space and remove trailing white space.
56395 Merge from coreutils
56396 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56398 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56399 0.12.1. These files are now being upgraded automatically by
56400 ../config/srclist-update.
56402 2003-08-12 Paul Eggert <eggert@twinsun.com>
56404 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56405 Normalize leading white space and remove trailing white space.
56406 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56407 notice, as per ../config/srclist-update.
56409 Merge from coreutils.
56410 * lib/euidaccess.h: New file.
56411 * lib/euidaccess.c: Include it.
56412 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56413 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56414 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56416 2003-08-12 Paul Eggert <eggert@twinsun.com>
56418 * config/srclist-update: Add copyright notice.
56419 (remove_id_lines, remove_trailing_blanks): New constants.
56420 (fixfile): Use them to normalize spacing a bit in copied files.
56421 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56422 Normalize leading white space and remove trailing white space.
56424 * config/texinfo.tex: Sync with texinfo.
56426 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56427 strtoul.c from libc, to merge coreutils whitespace changes.
56429 * config/srclist.txt: Get the following m4 files from gettext:
56430 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56431 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56432 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56435 2003-08-12 Karl Berry <karl@gnu.org>
56437 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56440 2003-08-11 Paul Eggert <eggert@twinsun.com>
56442 * modules/gnu-source, m4/gnu-source.m4:
56443 Remove; we're assuming Autoconf 2.54 or later now.
56444 Suggested by Bruno Haible.
56445 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56447 2003-08-11 Bruno Haible <bruno@clisp.org>
56449 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56451 2003-08-11 Bruno Haible <bruno@clisp.org>
56453 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56454 (vasnprintf): Use it instead of wcslen.
56456 2003-08-11 Bruno Haible <bruno@clisp.org>
56458 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56459 value to ensure that _Bool promotes to int. Use #define for _Bool when
56460 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56462 2003-08-10 Karl Berry <karl@gnu.org>
56464 * lib/regex.h: update from libc (whitespace fix).
56466 2003-08-09 Paul Eggert <eggert@twinsun.com>
56468 Merge some files from coreutils. These changes were
56469 originally made by Jim Meyering.
56470 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56471 many older Unixes require this.
56472 * lib/alloca.c (alloca): Remove cast to argument of free;
56473 no longer needed in C89.
56474 * lib/alloca_.h, regex.h: Fix white space to match
56475 what GNU indent does.
56477 2003-08-09 Paul Eggert <eggert@twinsun.com>
56479 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56480 apparently Emacs's Unicode mode got confused before my 2003-08-05
56483 2003-08-08 Paul Eggert <eggert@twinsun.com>
56485 * m4/extensions.m4: New file.
56486 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56487 Require gl_USE_SYSTEM_EXTENSIONS.
56488 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56489 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56491 2003-08-08 Paul Eggert <eggert@twinsun.com>
56493 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56494 * modules/extensions, modules/gnu-source: New files.
56495 * modules/timespec, modules/unlocked-io: Depend on extensions.
56497 2003-08-07 Paul Eggert <eggert@twinsun.com>
56499 * modules/restrict: New file.
56500 * MODULES.html.sh (func_all_modules): Add restrict.
56501 * modules/regex: Depend on restrict.
56503 2003-08-07 Paul Eggert <eggert@twinsun.com>
56505 * m4/restrict.m4: New file.
56506 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56508 2003-08-07 Bruno Haible <bruno@clisp.org>
56510 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56511 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56513 2003-08-07 Bruno Haible <bruno@clisp.org>
56515 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56516 makes the module 'getndelim2' compatible with the module 'getline'.
56518 2003-08-05 Paul Eggert <eggert@twinsun.com>
56520 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56521 byte with "\201" to avoid glitches when editing that source file
56522 with multi-gnome-terminal.
56524 2003-08-05 Paul Eggert <eggert@twinsun.com>
56526 * lib/bumpalloc.h: Remove.
56528 2003-08-05 Paul Eggert <eggert@twinsun.com>
56530 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56531 * modules/bumpalloc: Remove.
56533 2003-08-04 Paul Eggert <eggert@twinsun.com>
56535 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56538 Merge from coreutils.
56539 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56541 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56542 from Karl Berry, implemented by Jim Meyering.
56543 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56544 from Dmitry V. Levin.
56545 Remove anachronistic cast of xrealloc.
56546 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56547 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56548 type. Otherwise, it wouldn't compile with at least /bin/cc on
56549 ymp-cray-unicos9.0.2.X.
56550 Combine two mostly-identical uses of alloca into one.
56551 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56553 2003-08-04 Dave Love <d.love@dl.ac.uk>
56557 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56558 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56559 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56560 obsolete NLIST_NAME_UNION.
56561 [__GNU__]: Undef BSD and FSCALE.
56562 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56564 2003-08-03 Paul Eggert <eggert@twinsun.com>
56566 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56567 an enum type, so that it's guaranteed to promote to int. See:
56568 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56570 2003-08-03 Karl Berry <karl@gnu.org>
56572 * config/depcomp: update from automake.
56574 2003-07-31 Paul Eggert <eggert@twinsun.com>
56576 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56577 (strerror): Don't assume that a printable int fits in 14 bytes.
56579 2003-07-31 Bruno Haible <bruno@clisp.org>
56581 * modules/getpass-gnu: New file.
56582 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56584 2003-07-31 Bruno Haible <bruno@clisp.org>
56586 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56588 2003-07-24 Karl Berry <karl@gnu.org>
56590 * config/missing: update from automake.
56592 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56593 Bruno Haible <bruno@clisp.org>
56595 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56596 * lib/getline.c (getline, getdelim): Likewise.
56597 Remove _GNU_SOURCE define; now it's defined in config.h through
56600 2003-07-23 Karl Berry <karl@gnu.org>
56602 * config/config.sub: update from prep.
56604 2003-07-22 Paul Eggert <eggert@twinsun.com>
56606 * modules/xalloc (Depends-on): Add exitfail.
56607 * modules/xmemcoll: Likewise.
56609 2003-07-22 Paul Eggert <eggert@twinsun.com>
56611 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56612 over-parenthesization in macros.
56614 Sync with coreutils.
56616 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56619 Use `exit_failure' for xalloc and xmemcoll instead of their own
56620 private exit-failure variables.
56621 * lib/xalloc.h (xalloc_exit_failure): Remove.
56622 * lib/xmalloc.c: Likewise. Include exitfail.h.
56623 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56624 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56625 * lib/xmemcoll.c: Likewise. Include exitfail.h.
56626 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56628 2003-07-20 Jim Meyering <jim@meyering.net>
56630 * modules/closeout (Depends-on): Add exitfail.
56631 Suggestion from Bruno Haible.
56633 2003-07-19 Karl Berry <karl@gnu.org>
56635 * config/config.sub: update from prep.
56637 2003-07-18 Paul Eggert <eggert@twinsun.com>
56639 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56641 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
56642 to test that it can stand by itself. Include "exitfail.h".
56643 Clients should set exit_failure instead.
56644 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
56646 2003-07-18 Bruno Haible <bruno@clisp.org>
56648 * modules/getndelim2: New file.
56649 * modules/getline: Share files with module getndelim2.
56650 * modules/getnline: Depend on getndelim2 instead of sharing files with
56651 it. Add getnline.c to lib_SOURCES.
56652 * MODULES.html.sh (func_all_modules): Add getndelim2.
56654 2003-07-18 Bruno Haible <bruno@clisp.org>
56656 * m4/getndelim2.m4: New file.
56657 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56658 invoke gl_PREREQ_GETNDELIM2.
56659 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56660 gl_PREREQ_GETNDELIM2.
56661 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56664 2003-07-18 Bruno Haible <bruno@clisp.org>
56666 * lib/getndelim2.h: New file.
56667 * lib/getndelim2.c: Make into a module of its own. Include config.h,
56669 (getndelim2): Make non-static. Change return type to ssize_t.
56670 * lib/getline.h: Change argument names.
56671 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56672 * lib/getnline.c: Include getndelim2.h.
56674 2003-07-18 Andreas Schwab <schwab@suse.de>
56676 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56678 2003-07-17 Karl Berry <karl@gnu.org>
56680 * config/config.sub: update from prep.
56682 2003-07-17 Bruno Haible <bruno@clisp.org>
56684 * modules/getnline: New file.
56685 * modules/getline: Add lib/getndelim2.c to source file list.
56686 * MODULES.html.sh (func_all_modules): Add getnline.
56688 2003-07-17 Bruno Haible <bruno@clisp.org>
56690 * m4/getnline.m4: New file.
56692 2003-07-17 Bruno Haible <bruno@clisp.org>
56694 * m4/Makefile.am.in: Remove file.
56695 * m4/Makefile.am: Remove file.
56696 * m4/Makefile.in: Remove file.
56698 2003-07-17 Bruno Haible <bruno@clisp.org>
56700 * lib/getnline.h: New file.
56701 * lib/getnline.c: New file.
56702 * lib/getndelim2.c: New file, extracted from getline.c.
56703 (getndelim2): Renamed from getdelim2, with added nmax argument.
56704 * lib/getline.c: Include getndelim2.c.
56705 (getdelim2): Moved out to getndelim2.c.
56706 (getline, getdelim): Update.
56708 2003-07-17 Bruno Haible <bruno@clisp.org>
56710 * lib/Makefile.am: Remove file.
56711 * lib/Makefile.in: Remove file.
56713 2003-07-17 Bruno Haible <bruno@clisp.org>
56715 * configure.in: Remove file.
56716 * Makefile.in: Remove file.
56718 2003-07-17 Bruno Haible <bruno@clisp.org>
56720 * MODULES.html.sh: Put the </BODY> right before </HTML>.
56722 2003-07-16 Karl Berry <karl@gnu.org>
56724 * config/srclist-update: was running fixlicense twice, which caused
56725 texinfo.tex to be nullified for some reason. Simplify,
56726 $gplsrc is no longer needed as far as I can see?
56728 2003-07-16 Jim Meyering <jim@meyering.net>
56730 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
56732 2003-07-15 Paul Eggert <eggert@twinsun.com>
56734 * config/srclist.txt: Get the following files from gettext-runtime/intl
56735 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56736 ref-del.sin. From Bruno Haible.
56737 * config/srclist-update (fixfile): Change grep pattern again, since the
56738 previous fix didn't work (there was another trailing $). Use
56739 '[$]' to escape the $s.
56741 2003-07-15 Karl Berry <karl@gnu.org>
56743 * lib/vasnprintf.c: update from gettext.
56745 2003-07-15 Karl Berry <karl@gnu.org>
56747 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56748 gets expanded when surrounded by '$'.
56750 2003-07-15 Jim Meyering <jim@meyering.net>
56752 * modules/save-cwd: Don't depend on error. From Derek Price.
56754 2003-07-15 Jim Meyering <jim@meyering.net>
56756 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56758 2003-07-14 Simon Josefsson <jas@extundo.com>
56760 * modules/mempcpy: New file.
56761 * MODULES.html.sh (func_all_modules): Add mempcpy.
56763 2003-07-14 Simon Josefsson <jas@extundo.com>
56765 * m4/mempcpy.m4: New file.
56767 2003-07-14 Simon Josefsson <jas@extundo.com>
56769 * lib/mempcpy.h: New file.
56770 * lib/mempcpy.c: New file.
56772 2003-07-14 Paul Eggert <eggert@twinsun.com>
56774 * modules/getdate, modules/posixtm: Depend on mktime.
56776 2003-07-14 Paul Eggert <eggert@twinsun.com>
56778 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56779 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56780 unicodeio.c, unicodeio.h, unlocked-io.h:
56781 Switch from LGPL to GPL.
56783 2003-07-14 Paul Eggert <eggert@twinsun.com>
56785 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56786 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56787 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56788 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56789 vasprintf.c, vasprintf.h: Regenerate. These files are now being
56790 updated automatically by ../config/srclist-update. This changes
56791 their license from LPGL to GPL.
56793 2003-07-14 Paul Eggert <eggert@twinsun.com>
56795 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
56796 assumed to refer to the root of the most recent stable gettext version.
56797 * config/srclistvars.sh: Add defaults for eggert.
56798 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56799 Match "This program" as well as "The program". This is needed
56802 2003-07-14 Jim Meyering <jim@meyering.net>
56804 Don't emit diagnostics. Let callers do that.
56805 * lib/save-cwd.c: Don't include "error.h".
56806 (save_cwd): Don't call error. Ensure that errno is valid
56807 when returning nonzero.
56809 * lib/save-cwd.h (restore_cwd): Update prototype.
56810 * lib/save-cwd.c (restore_cwd): Remove two parameters.
56811 Simplify. Don't call error upon failure. Let callers do that.
56812 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56813 when auditing is enabled. But don't bother updating the #if.
56815 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
56817 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56818 it breaks C++ compilation.
56819 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56821 2003-07-10 Simon Josefsson <jas@extundo.com>
56823 * modules/strchrnul (Makefile.am): Add strchrnul.h.
56825 2003-07-10 Jim Meyering <jim@meyering.net>
56827 * m4/clock_time.m4: Remove trailing blank.
56828 * m4/intmax_t.m4: Likewise.
56830 2003-07-10 Jim Meyering <jim@meyering.net>
56832 * lib/vasnprintf.c: Remove trailing blanks.
56833 Make cpp indentation consistent.
56835 2003-07-09 Paul Eggert <eggert@twinsun.com>
56837 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56838 posixver.c, strftime.c, strnlen.c, strverscmp.c:
56839 Switch from LGPL to GPL.
56841 2003-07-09 Paul Eggert <eggert@twinsun.com>
56843 * config/srclist.txt: Sort sublists. Add
56844 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56845 that differ from gnulib for one reason or another; we'd like this list
56846 to be smaller but for now let's document what we have.
56848 2003-07-08 Paul Eggert <eggert@twinsun.com>
56850 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56851 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
56852 and sweeter "eval x=$x".
56853 * config/srclist.txt: Get lib/argp* from glibc.
56855 2003-07-07 Paul Eggert <eggert@twinsun.com>
56857 * lib/mktime.c: Fix some boundary cases and remove need for floating
56860 Issue a compile-time diagnostic if time_t is floating point, or if
56861 two's complement arithmetic is not in effect, or if arithmetic
56862 right shift does not propagate the sign. These assumptions were
56863 all in the original code but they weren't checked.
56865 (TIME_T_MIDPOINT, verify): New macros.
56866 (__isleap): Remove; it has integer overflow problems.
56867 (leapyear): New function, without those problems.
56868 (ydhms_tm_diff): Remove; splitting into two parts.
56869 (ydhms_diff): New function, containing the arithmetic part of
56870 the old ydhms_tm_diff function. Issue a compile-time
56871 diagnostic if we are not using C99 integer division.
56872 Avoid casts when possible.
56873 (guess_time_tm): New function, containing the checking part of
56874 the old ydhms_tm_diff function. Return the new value, rather than
56875 the difference between it and the old. Accept a new argument T
56876 so that *T specifies the old value. Check for overflow in the result.
56878 (__mktime_internal): Use a time_t offset, not a long int offset.
56879 This undoes the 2003-06-04 change, which is no longer needed now
56880 that we have better overflow checking.
56881 (localtime_offset): Likewise.
56883 (__mktime_internal): Avoid harmful overflow on hosts where time_t
56884 and long are 64-bit but int is only 32-bit.
56885 (ydhms_diff): Use long int to store year1 and yday1.
56886 Issue a compile-time diagnostic if long int is not wide enough.
56888 (__mktime_internal): Use long int to store adjusted year and yday.
56889 Use plain C rather than preprocessor commands, if that doesn't
56891 Check for overflow (and try to repair) after each probe
56892 rather than checking only at the very end. This avoids some bugs
56893 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56894 does not equal GMT offset at maximum time).
56895 Use integer to check for overflow rather than floating point; this
56896 is more portable to non-IEEE hosts, and is a tad faster.
56897 When we detect that we are oscillating between two values,
56898 don't check whether tm_isdst has the requested value, since
56899 we already know the answer. When tm_isdst has the wrong value,
56900 use a different heuristic to find the right one, based on the
56901 extreme values actually observed in practice in tz2003a,
56902 rather than the (overly optimistic) "previous 3 calendar quarters".
56904 (not_equal_tm, print_tm, check_result): Use "const T" rather than
56905 "T const" to accommodate glibc style.
56906 (check_result): Use less-confusing report format. "long" -> "long int.
56908 Don't loop if the iteration overflows time_t.
56909 Allow a negative step in the iteration.
56911 2003-07-06 Karl Berry <karl@gnu.org>
56913 * config/depcomp: update from automake.
56914 * config/config.sub: update from prep.
56916 2003-07-03 Karl Berry <karl@gnu.org>
56918 * config/config.guess: update from prep.
56920 2003-07-01 Paul Eggert <eggert@twinsun.com>
56922 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56923 xreadlink.c now includes it unconditionally.
56925 2003-07-01 Paul Eggert <eggert@twinsun.com>
56927 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56928 having it depend on HAVE_SYS_TYPES_H.
56930 2003-07-01 Bruno Haible <bruno@clisp.org>
56932 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56933 <sys/types.h> should be sufficient.
56934 Reported by Paul Eggert.
56936 2003-06-26 Karl Berry <karl@gnu.org>
56938 * config/depcomp: update from automake.
56940 2003-06-26 Bruno Haible <bruno@clisp.org>
56942 * modules/human: Depend on module stdbool.
56944 2003-06-25 Bruno Haible <bruno@clisp.org>
56946 * modules/readlink: New file.
56947 * modules/xreadlink: Depend on it.
56948 * MODULES.html.sh (func_all_modules): Add readlink.
56950 2003-06-25 Bruno Haible <bruno@clisp.org>
56952 * m4/readlink.m4: New file.
56954 2003-06-25 Bruno Haible <bruno@clisp.org>
56956 * lib/readlink.c: New file.
56958 2003-06-22 Karl Berry <karl@gnu.org>
56960 * config/srclist.txt: update mkinstalldirs from automake.
56961 * config/mkinstalldirs: update.
56963 2003-06-22 Bruno Haible <bruno@clisp.org>
56965 Portability to mingw32.
56966 * m4/ssize_t.m4: New file, from GNU gettext.
56967 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56968 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56970 2003-06-22 Bruno Haible <bruno@clisp.org>
56972 * modules/safe-read: Add m4/ssize_t.m4.
56973 * modules/xreadlink: Add m4/ssize_t.m4.
56975 2003-06-20 Bruno Haible <bruno@clisp.org>
56977 Assume C89, so PARAMS isn't needed.
56978 * lib/unicodeio.h (PARAMS): Remove.
56979 * lib/unicodeio.c: Don't use PARAMS.
56981 2003-06-18 Karl Berry <karl@gnu.org>
56983 * config/config.{guess,sub}: update from prep.
56985 2003-06-18 Jim Meyering <jim@meyering.net>
56987 Merge changes from coreutils.
56988 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56989 Remove explicit declarations of xmalloc and realloc.
56991 (read_utmp): Remove anachronistic cast of xmalloc.
56993 2003-06-17 Paul Eggert <eggert@twinsun.com>
56995 Assume C89, so PARAMS isn't needed.
56996 * lib/backupfile.h (PARAMS): Remove. All uses removed.
56997 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56998 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56999 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57000 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57001 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57002 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57003 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57004 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57005 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57006 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57007 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57008 no longer needed. Anyway, config.h should always be included before any
57011 2003-06-11 Simon Josefsson <jas@extundo.com>
57013 * modules/sysexits: New file.
57014 * MODULES.html.sh (func_all_modules): Add sysexits.
57016 2003-06-11 Simon Josefsson <jas@extundo.com>
57018 * lib/sysexit_.h: New file.
57020 2003-06-11 Derek Price <derek@ximbiot.com>
57022 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57025 2003-06-11 Bruno Haible <bruno@clisp.org>
57027 * m4/sysexits.m4: New file.
57029 2003-06-10 Simon Josefsson <jas@extundo.com>
57031 * lib/argp.h: New file, from glibc.
57032 * lib/argp-ba.c: New file, from glibc.
57033 * lib/argp-eexst.c: New file, from glibc.
57034 * lib/argp-fmtstream.c: New file, from glibc.
57035 * lib/argp-fmtstream.h: New file, from glibc.
57036 * lib/argp-fs-xinl.c: New file, from glibc.
57037 * lib/argp-help.c: New file, from glibc.
57038 * lib/argp-namefrob.h: New file, from glibc.
57039 * lib/argp-parse.c: New file, from glibc.
57040 * lib/argp-pv.c: New file, from glibc.
57041 * lib/argp-pvh.c: New file, from glibc.
57042 * lib/argp-xinl.c: New file, from glibc.
57044 2003-06-10 Simon Josefsson <jas@extundo.com>
57046 * modules/strchrnul: New file.
57048 2003-06-10 Simon Josefsson <jas@extundo.com>
57050 * modules/argp: New file.
57052 2003-06-10 Simon Josefsson <jas@extundo.com>
57054 * m4/strchrnul.m4: New file.
57056 2003-06-10 Simon Josefsson <jas@extundo.com>
57058 * lib/strchrnul.h: New file.
57059 * lib/strchrnul.c: New file.
57061 2003-06-10 Bruno Haible <bruno@clisp.org>
57063 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57065 2003-06-07 Karl Berry <karl@gnu.org>
57067 * config/config.{guess,sub}: update from prep.
57069 2003-06-07 Jim Meyering <jim@meyering.net>
57071 * modules/strtod: Use $(...) notation, not @...@ for
57072 AC_REPLACE'd variables.
57073 * modules/localcharset: Likewise.
57075 2003-06-07 Jim Meyering <jim@meyering.net>
57077 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57078 in place of my name in the copyright comment.
57079 Remove definition and uses of __P.
57082 * lib/stat.c: Don't declare xmalloc explicitly.
57083 Instead, include "xalloc.h".
57084 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57085 xrealloc, and xcalloc return values.
57086 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57088 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57090 2003-06-07 Bruno Haible <bruno@clisp.org>
57092 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57093 avoid AC_CONFIG_LINKS.
57094 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57095 fnmatch.h, to avoid AC_CONFIG_LINKS.
57096 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57098 2003-06-07 Bruno Haible <bruno@clisp.org>
57100 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57101 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57102 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57104 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57105 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57108 2003-06-06 Jim Meyering <jim@meyering.net>
57110 Merge from coreutils.
57111 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57112 Consolidate declarations and initializations of *_base* locals.
57114 Merge from coreutils.
57115 This avoids a core dump on systems without GNU putenv,
57116 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57117 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57118 (unsetenv): New static function, from GNU libc.
57119 (rpl_putenv): Use it.
57121 * lib/modechange.c: Remove trailing blanks.
57123 Merge from coreutils.
57124 * lib/fsusage.c: Remove declaration of statfs.
57125 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57127 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57129 2003-06-06 Jim Meyering <jim@meyering.net>
57131 * lib/stdbool_.h: Renamed from stdbool.h.in.
57133 2003-06-06 Jim Meyering <jim@meyering.net>
57134 Bruno Haible <bruno@clisp.org>
57136 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57137 Adjust Makefile.am snippet not to redirect directly to target.
57138 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57140 2003-06-05 Paul Eggert <eggert@twinsun.com>
57142 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57143 mismatch, look in future quarters as well as past. This fixes a
57144 bug when processing fall-backwards gaps immediately after a long
57145 period of daylight-saving time.
57147 * lib/mktime.c: Assume freestanding C89 or better.
57148 (HAVE_LIMITS_H): Remove. Assume it's 1.
57149 (__P): Remove; not used.
57150 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57151 (mktime, not_equal_tm, print_tm, check_result,
57152 main): Use prototypes. Use const * where appropriate.
57153 (main): Fix typo in testing code that uncovered by above changes.
57154 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57156 2003-06-04 Paul Eggert <eggert@twinsun.com>
57158 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57159 locale.h, localeconv. This merges changes from coreutils.
57161 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57162 It can be removed after the next Autoconf is released.
57163 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57166 2003-06-04 Paul Eggert <eggert@twinsun.com>
57168 * lib/mktime.c: Fix Debian bug 177940
57169 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57170 (localtime_offset): Now long int, not time_t, because we want it
57171 to be guaranteed to be signed. All uses changed.
57172 (__mktime_internal): If overflow would occur when adding offset,
57175 Merge 'human' changes from coreutils. Rewrite to support
57176 locale-specific notations like thousands separators.
57177 * lib/human.c: Simplify authorship notice.
57178 Include human.h immediately after config.h.
57179 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57180 <limits.h>: Do not include, since human.h does.
57181 (SIZE_MAX, UINTMAX_MAX): New macros.
57182 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57183 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57184 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57185 (power_letter): Renamed from suffixes.
57186 (generate_suffix_backwards): Remove.
57187 (adjust_value): Now takes int style (because of human.h changes)
57188 and long double value (for greater precision on some platforms).
57189 (group_number): New function.
57190 (human_readable): Use it. Use integer options, not enum.
57191 Put the options before the sizes in the arg list.
57192 Support all the new options.
57193 The old human_readable function has been removed;
57194 use inttostr.h instead.
57195 (human_readable, default_block_size, humblock):
57196 Use uintmax_t, not int, for block sizes.
57197 (human_readable_inexact, block_size_types): Remove.
57198 (block_size_opts): New constant.
57199 (human_options): Renamed from human_block_size, with new signature
57200 that allows block sizes up to UINTMAX_MAX. All callers changed.
57201 * lib/human.h: Add copyright and authorship notice.
57202 Include <limits.h> and <stdbool.h> unconditionally.
57203 (PARAMS): Remove. All uses removed.
57204 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57205 (enum human_inexact_style): Remove tag; now a nameless enum.
57206 (human_floor, human_ceiling, human_round_to_even): Now have
57207 values 2, 0, 1 rather than -1, 1, 0.
57208 (human_group_digits, human_suppress_point_zero, human_autoscale,
57209 human_base_1024, human_SI, human_B): New constants.
57210 (human_readable_inexact, human_block_size): Remove.
57211 (human_readable): Size args are now uintmax_t, not int.
57212 (human_options): New decl.
57214 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57215 unnecessary now that we assume C89 or better. This change
57216 imported from coreutils.
57218 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57219 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57220 in the 2003-05-30 sync from glibc.
57222 .h files should stand alone, but we shouldn't include <sys/types.h>
57223 if we can get away with just <stddef.h>.
57225 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57226 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57227 rather than <sys/types.h>, as we merely need size_t.
57228 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57230 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57231 Include <stdio.h>, to get FILE.
57232 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57233 memcasecmp.h has included <stddef.h> and all we need is size_t.
57234 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57235 our interface, instead of including <sys/types.h>
57237 2003-06-04 Paul Eggert <eggert@twinsun.com>
57239 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57240 now, as glibc mktime is buggy on non-glibc systems.
57242 2003-06-03 Karl Berry <karl@gnu.org>
57244 * config/config.sub: update from prep.
57246 2003-06-02 Paul Eggert <eggert@twinsun.com>
57249 Fix some minor time-related bugs with POSIX time arguments.
57250 Some valid time stamps were being rejected (notably -1, and
57251 time stamps before 1900 on 64-bit hosts). And some invalid
57252 time stamps were being accepted, e.g. September 31.
57254 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57255 that we can return (time_t) -1 successfully.
57256 * lib/posixtm.c: Likewise.
57257 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57258 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57259 (t): Remove static var.
57260 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57261 of static var. All uses changed.
57262 (year): Do not reject years before 1900; they can occur with
57264 (posix_time_parse): Do not check for out-of-range components;
57265 that is now the caller's responsibility, since our checks were
57266 only approximations.
57267 (posixtime): Use mktime to check for out-of-range components,
57268 since it knows them exactly.
57269 If mktime returns (time_t) -1, check whether an error actually occurred
57270 by invoking localtime on -1.
57271 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57272 posixtime failures better.
57273 Improve the test data (in comments only).
57275 2003-06-02 Karl Berry <karl@gnu.org>
57277 * config/mkinstalldirs (version): new variable.
57278 (--version): new option.
57279 (usage): improve message.
57281 2003-05-30 Karl Berry <karl@gnu.org>
57283 * lib/mktime.c: update from libc.
57285 2003-05-30 Bruno Haible <bruno@clisp.org>
57287 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57288 * config/config.rpath: Upgrade to gettext-0.12.1.
57290 2003-05-30 Bruno Haible <bruno@clisp.org>
57292 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57293 * m4/nls.m4: New file, from gettext-0.12.1.
57294 * m4/po.m4: New file, from gettext-0.12.1.
57295 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57297 2003-05-30 Bruno Haible <bruno@clisp.org>
57299 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57300 * lib/localcharset.h: Likewise.
57301 * lib/localcharset.c: Likewise.
57303 2003-05-29 Karl Berry <karl@gnu.org>
57305 * config/config.rpath: update from gettext.
57307 2003-05-28 Paul Eggert <eggert@twinsun.com>
57309 Assume the headers required for C89 freestanding compilers.
57310 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57311 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57312 * m4/human.m4 (gl_HUMAN): Likewise.
57313 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57314 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57315 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57316 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57317 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57318 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57320 2003-05-28 Paul Eggert <eggert@twinsun.com>
57322 Assume the headers required for C89 freestanding compilers.
57323 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57324 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57325 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57326 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57327 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57328 define, since <limits.h> is guaranteed to do that.
57329 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57330 * lib/exclude.c: Include <stdbool.h> unconditionally.
57331 * lib/tempname.c: Include <stddef.h> unconditionally.
57332 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57333 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57334 <stddef.h> does that.
57335 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57336 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57337 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57339 * lib/xstrtol.c: Likewise.
57340 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57341 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57343 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57344 warnings on some platforms.
57346 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57349 2003-05-26 Jim Meyering <jim@meyering.net>
57351 Merge in a change from coreutils:
57352 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57353 that is guaranteed to be `no'. Use `no_such_member' to indicate
57354 that condition, rather than `-1' which is slightly misleading.
57355 Change the name of the cache variable to have the gl_ prefix.
57356 Prompted by a patch from Richard Dawe for DJGPP.
57358 2003-05-24 Karl Berry <karl@gnu.org>
57360 * config/config.guess: update from prep.
57362 2003-05-22 Karl Berry <karl@gnu.org>
57364 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57366 2003-05-20 Karl Berry <karl@gnu.org>
57368 * config/config.guess: update from prep.
57370 2003-05-18 Karl Berry <karl@gnu.org>
57372 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57373 might actually be set by the user.
57375 * config/depcomp, install-sh, mdate-sh: update from automake.
57377 2003-05-17 Bruno Haible <bruno@clisp.org>
57379 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57380 invalid expansion for AC_EGREP_CPP.
57381 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57382 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57383 Suggested by Akim Demaille <akim@epita.fr> in
57384 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57386 2003-05-12 Jim Meyering <jim@meyering.net>
57388 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57389 the space-padded-by-default conversion specifiers, %e, %k, %l.
57391 2003-05-12 Bruno Haible <bruno@clisp.org>
57393 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57394 the string is longer than 4 KB.
57396 2003-05-11 Karl Berry <karl@gnu.org>
57398 * config/config.{guess,sub}: update from prep.
57400 2003-05-09 Bruno Haible <bruno@clisp.org>
57402 * modules/error: Add m4/strerror_r.m4 to file list.
57404 2003-05-03 Bruno Haible <bruno@clisp.org>
57406 Upgrade to Unicode-4.0.
57407 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57408 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57409 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57410 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57411 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57412 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57413 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57414 Change width of U+E0100..U+E01EF from 1 to 0.
57416 2003-04-25 Jim Meyering <jim@meyering.net>
57418 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57419 of type size_t, not int.
57421 2003-04-25 Bruno Haible <bruno@clisp.org>
57423 * lib/copy-file.c: Include <stddef.h>, for size_t.
57425 2003-04-21 Paul Eggert <eggert@twinsun.com>
57427 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57428 code which expansion is under static control. Patch imported from
57429 Akim Demaille's patch to Bison; see
57430 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57432 2003-04-14 Bruno Haible <bruno@clisp.org>
57434 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57436 2003-04-11 Jim Meyering <jim@meyering.net>
57438 Merge changes from Coreutils.
57440 2003-03-22 Jim Meyering <jim@meyering.net>
57442 * lib/strftime.c (widen): Cast alloca return value to proper type.
57444 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57447 * lib/strftime.c (my_strftime): Handle very large width
57448 specifications for numeric values correctly. Improve checks for
57451 2003-01-19 Jim Meyering <jim@meyering.net>
57453 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57455 (nl_get_alt_digit) [! defined my_strftime]: Define.
57456 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57457 _nl_get_alt_digit and _nl_get_walt_digit.
57459 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57460 libc. These changes have no effect outside of _LIBC.
57462 2003-04-10 Bruno Haible <bruno@clisp.org>
57464 * modules/findprog: New file.
57465 * MODULES.html.sh (func_all_modules): Add it.
57467 2003-04-10 Bruno Haible <bruno@clisp.org>
57469 * m4/findprog.m4: New file.
57470 * m4/eaccess.m4: New file.
57472 2003-04-10 Bruno Haible <bruno@clisp.org>
57474 * lib/findprog.h: New file, from GNU gettext.
57475 * lib/findprog.c: New file, from GNU gettext.
57477 2003-04-05 Jim Meyering <jim@meyering.net>
57479 Merge changes from Coreutils.
57481 * lib/exclude.h (PARAMS): Remove definition and uses.
57482 * lib/exclude.c: Remove uses of `PARAMS'.
57484 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57485 Add test-cases for DOS filenames. Declare program_name.
57486 (main): Set up program_name. Patch by Rich Dawe.
57488 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57490 Use mntctl's return value to drive the entry-processing loop, since
57491 we can't rely on the value of the vmt_length member in the last
57492 entry. On some systems doing so could result in exhausting
57493 virtual memory. Based in part on a patch from Mike Jetzer.
57495 2003-04-04 Bruno Haible <bruno@clisp.org>
57497 * modules/linebreak: New file.
57498 * MODULES.html.sh (func_all_modules): Add it.
57500 2003-04-04 Bruno Haible <bruno@clisp.org>
57502 * m4/linebreak.m4: New file.
57504 2003-04-04 Bruno Haible <bruno@clisp.org>
57506 * lib/linebreak.h: New file, from GNU gettext.
57507 * lib/linebreak.c: New file, from GNU gettext with slight
57509 * lib/lbrkprop.h: New file, from GNU gettext.
57511 2003-04-03 Bruno Haible <bruno@clisp.org>
57513 * modules/utf8-ucs4: New file.
57514 * modules/utf16-ucs4: New file.
57515 * modules/ucs4-utf8: New file.
57516 * modules/ucs4-utf16: New file.
57517 * MODULES.html.sh (func_all_modules): Add them.
57519 2003-04-03 Bruno Haible <bruno@clisp.org>
57521 * m4/utf-ucs4.m4: New file.
57522 * m4/ucs4-utf.m4: New file.
57524 2003-04-03 Bruno Haible <bruno@clisp.org>
57526 * lib/utf8-ucs4.h: New file, from GNU gettext.
57527 * lib/utf16-ucs4.h: New file, from GNU gettext.
57528 * lib/ucs4-utf8.h: New file, from GNU gettext.
57529 * lib/ucs4-utf16.h: New file, from GNU gettext.
57531 2003-04-02 Bruno Haible <bruno@clisp.org>
57533 * modules/binary-io: New file.
57534 * MODULES.html.sh (func_all_modules): Add it.
57536 2003-04-02 Bruno Haible <bruno@clisp.org>
57538 * lib/binary-io.h: New file, from GNU gettext.
57540 2003-04-01 Bruno Haible <bruno@clisp.org>
57542 * modules/pathname: New file.
57543 * MODULES.html.sh (func_all_modules): Add it.
57545 2003-04-01 Bruno Haible <bruno@clisp.org>
57547 * lib/pathname.h: New file, from GNU gettext.
57548 * lib/concatpath.c: New file, from GNU gettext.
57550 2003-03-30 Bruno Haible <bruno@clisp.org>
57552 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57554 2003-03-30 Bruno Haible <bruno@clisp.org>
57556 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57557 function chown() doesn't exist.
57559 2003-03-28 Bruno Haible <bruno@clisp.org>
57561 * modules/copy-file: New file.
57562 * MODULES.html.sh (func_all_modules): Add it.
57564 2003-03-28 Bruno Haible <bruno@clisp.org>
57566 * m4/copy-file.m4: New file.
57568 2003-03-28 Bruno Haible <bruno@clisp.org>
57570 * lib/copy-file.h: New file, from GNU gettext.
57571 * lib/copy-file.c: New file, from GNU gettext.
57573 2003-03-18 Jim Meyering <jim@meyering.net>
57575 * lib/quote.c (quote_n): Fix typo in comment.
57577 2003-03-18 Bruno Haible <bruno@clisp.org>
57579 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57581 * m4/onceonly_2_57.m4: Likewise.
57583 2003-03-17 Bruno Haible <bruno@clisp.org>
57585 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57586 (m4_quote): Remove macro.
57587 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57589 2003-03-14 Jim Meyering <jim@meyering.net>
57591 Merge changes from Coreutils.
57592 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57593 to be const, in order to avoid warnings.
57594 (obstack_room): Likewise.
57595 (obstack_empty_p): Likewise.
57597 2003-03-14 Bruno Haible <bruno@clisp.org>
57599 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57600 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57602 2003-03-13 Paul Eggert <eggert@twinsun.com>
57604 Merge changes from Bison.
57605 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57606 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57607 when compiling Bison 1.875's `bitset bset = obstack_alloc
57608 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
57609 * lib/hash.c: Include <stdbool.h> unconditionally.
57611 2003-03-13 Paul Eggert <eggert@twinsun.com>
57613 * m4/onceonly.m4 (m4_quote): New macro.
57614 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57615 Quote AC_FOREACH variable-expansions properly.
57617 2003-03-13 Paul Eggert <eggert@twinsun.com>
57619 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57621 2003-03-09 Paul Eggert <eggert@twinsun.com>
57623 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57624 Reported by Bruce Becker; see:
57625 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57627 2003-03-03 Paul Eggert <eggert@twinsun.com>
57628 Bruno Haible <bruno@clisp.org>
57630 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57631 Reported by John Hughes, see
57632 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57634 2003-02-20 Bruno Haible <bruno@clisp.org>
57636 * MODULES.html.sh (func_all_modules): Add poll.
57638 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57640 * modules/poll: New file.
57642 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57644 * lib/poll_.h: New file.
57645 * lib/poll.c: New file.
57647 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57649 * m4/poll.m4: New file.
57651 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57653 * modules/mathl: New file.
57655 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57657 * lib/mathl.h: New file.
57658 * lib/acosl.c: New file.
57659 * lib/asinl.c: New file.
57660 * lib/atanl.c: New file.
57661 * lib/ceill.c: New file.
57662 * lib/cosl.c: New file.
57663 * lib/expl.c: New file.
57664 * lib/floorl.c: New file.
57665 * lib/frexpl.c: New file.
57666 * lib/ldexpl.c: New file.
57667 * lib/logl.c: New file.
57668 * lib/sincosl.c: New file.
57669 * lib/sinl.c: New file.
57670 * lib/sqrtl.c: New file.
57671 * lib/tanl.c: New file.
57672 * lib/trigl.c: New file.
57673 * lib/trigl.h: New file.
57675 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57677 * m4/mathl.m4: New file.
57679 2003-02-18 Bruno Haible <bruno@clisp.org>
57681 * MODULES.html.sh (func_all_modules): Add mathl.
57683 2003-02-17 Bruno Haible <bruno@clisp.org>
57685 * modules/mkdtemp: New module.
57686 * MODULES.html.sh (func_all_modules): Add it.
57688 2003-02-17 Bruno Haible <bruno@clisp.org>
57690 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57692 2003-02-17 Bruno Haible <bruno@clisp.org>
57694 * lib/mkdtemp.h: New file, from GNU gettext.
57695 * lib/mkdtemp.c: New file, from GNU gettext.
57697 2003-02-02 Jim Meyering <jim@meyering.net>
57699 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57702 2003-01-31 Bruno Haible <bruno@clisp.org>
57704 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57706 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57708 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57710 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57713 2003-01-31 Bruno Haible <bruno@clisp.org>
57715 * lib/rename.c: #undef rename before defining rpl_rename.
57716 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57718 2003-01-30 Bruno Haible <bruno@clisp.org>
57720 * modules/vasnprintf, modules/vasprintf: New modules.
57721 * MODULES.html.sh (func_all_modules): Add them.
57723 2003-01-30 Bruno Haible <bruno@clisp.org>
57725 * m4/signed.m4: New file, from GNU gettext.
57726 * m4/longdouble.m4: New file, from GNU gettext.
57727 * m4/wchar_t.m4: New file, from GNU gettext.
57728 * m4/wint_t.m4: New file, from GNU gettext.
57729 * m4/vasnprintf.m4: New file.
57730 * m4/vasprintf.m4: New file.
57732 2003-01-30 Bruno Haible <bruno@clisp.org>
57734 * lib/printf-args.h: New file, from GNU gettext.
57735 * lib/printf-args.c: New file, from GNU gettext.
57736 * lib/printf-parse.h: New file, from GNU gettext.
57737 * lib/printf-parse.c: New file, from GNU gettext.
57738 * lib/vasnprintf.h: New file, from GNU gettext.
57739 * lib/vasnprintf.c: New file, from GNU gettext.
57740 * lib/asnprintf.c: New file, from GNU gettext.
57741 * lib/vasprintf.h: New file, from GNU gettext with modifications.
57742 * lib/vasprintf.c: New file, from GNU gettext.
57743 * lib/asprintf.c: New file, from GNU gettext.
57745 2003-01-29 Bruno Haible <bruno@clisp.org>
57747 * modules/stpncpy: New module.
57748 * MODULES.html.sh (func_all_modules): Add it.
57750 2003-01-29 Bruno Haible <bruno@clisp.org>
57752 * m4/stpncpy.m4: New file.
57754 2003-01-29 Bruno Haible <bruno@clisp.org>
57756 * lib/stpncpy.h: New file, from GNU gettext with modifications.
57757 * lib/stpncpy.c: New file, from GNU gettext with modifications.
57759 2003-01-28 Bruno Haible <bruno@clisp.org>
57761 * modules/c-ctype: New module.
57762 * MODULES.html.sh (func_all_modules): Add it.
57764 2003-01-28 Bruno Haible <bruno@clisp.org>
57766 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57768 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57771 2003-01-27 Bruno Haible <bruno@clisp.org>
57773 * modules/xsetenv: New module.
57774 * MODULES.html.sh (func_all_modules): Add it.
57776 2003-01-27 Bruno Haible <bruno@clisp.org>
57778 * lib/xsetenv.h: New file, from GNU gettext.
57779 * lib/xsetenv.c: New file, from GNU gettext.
57781 2003-01-23 Jim Meyering <jim@meyering.net>
57783 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57784 from working on systems without dirfd (at least Irix and OSF1/Tru64).
57786 2003-01-23 Bruno Haible <bruno@clisp.org>
57788 * modules/minmax: New module.
57789 * MODULES.html.sh (func_all_modules): Add it.
57791 2003-01-23 Bruno Haible <bruno@clisp.org>
57793 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57796 2003-01-22 Bruno Haible <bruno@clisp.org>
57798 * modules/exit: New module.
57799 * MODULES.html.sh (func_all_modules): Add it.
57801 2003-01-22 Bruno Haible <bruno@clisp.org>
57803 * lib/exit.h: New file, from GNU gettext.
57805 2003-01-19 Bruno Haible <bruno@clisp.org>
57807 * gnulib-tool: Recognize option --extract-maintainer.
57808 (func_get_maintainer): New function.
57809 * modules/*: Add Maintainer entry.
57811 2003-01-16 Jim Meyering <jim@meyering.net>
57813 * m4/regex.m4: The `regex' struct is both input and output.
57814 Initialize it before each use. Patch by Tim Waugh.
57816 2003-01-16 Bruno Haible <bruno@clisp.org>
57818 * MODULES.html.sh: Add a table of contents. Add the module name as
57819 leftmost column. Add hyperlinks.
57821 2003-01-15 Bruno Haible <bruno@clisp.org>
57823 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57825 2003-01-15 Bruno Haible <bruno@clisp.org>
57827 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57828 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57831 2003-01-15 Bruno Haible <bruno@clisp.org>
57833 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57835 2003-01-15 Bruno Haible <bruno@clisp.org>
57837 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57838 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57840 2003-01-14 Jim Meyering <jim@meyering.net>
57842 * lib/same.c (same_name): Tweak a comment.
57844 2003-01-14 Bruno Haible <bruno@clisp.org>
57846 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57847 when a string comparison is sufficient.
57849 2003-01-14 Bruno Haible <bruno@clisp.org>
57851 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57854 2003-01-14 Bruno Haible <bruno@clisp.org>
57856 * lib/hash-pjw.c: Add comment about low quality of this function.
57858 2003-01-13 Bruno Haible <bruno@clisp.org>
57860 * modules/stpcpy: Distribute lib/stpcpy.h.
57861 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57863 2003-01-13 Bruno Haible <bruno@clisp.org>
57865 * modules/*: Add a description.
57866 * modules/strpbrk: Fix Makefile.am snippet.
57867 * modules/strtoimax: Fix dependencies.
57868 * modules/strtoumax: Likewise.
57870 2003-01-13 Bruno Haible <bruno@clisp.org>
57872 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57873 * modules/alloca (Makefile.am): All object files depend on alloca.h.
57874 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57876 2003-01-13 Bruno Haible <bruno@clisp.org>
57878 * gnulib-tool (func_create_testdir): Store config/* files in the main
57880 * config.rpath: Move to ...
57881 * config/config.rpath: ... here.
57882 * modules/gettext: Contains config/config.rpath, not config.rpath.
57883 * modules/iconv: Likewise.
57885 2003-01-12 Paul Eggert <eggert@twinsun.com>
57887 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57888 to avoid collisions with libcurses and libreadline.
57890 * m4/getstr.m4: Remove.
57891 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57893 2003-01-12 Paul Eggert <eggert@twinsun.com>
57895 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57896 to avoid collisions with libcurses and libreadline.
57898 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57899 * lib/getstr.h, getstr.c: Remove.
57900 * lib/getline.c: Include "getline.h", to check interface.
57901 Move body of old getstr.c here: this defines MIN_CHUNK and
57902 declares getdelim2, which is renamed from getstr.
57903 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57905 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57907 * lib/linebuffer.h: Likewise.
57908 (readline): Remove backward-compatibility macro.
57910 2003-01-12 Paul Eggert <eggert@twinsun.com>
57912 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57913 to avoid collisions with libcurses and libreadline.
57915 * MODULES.html.sh: Remove getstr.
57916 * modules/getline: Depend on unlocked-io, not getstr.
57918 2003-01-12 Jim Meyering <jim@meyering.net>
57920 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
57922 2003-01-10 Bruno Haible <bruno@clisp.org>
57924 * modules/alloca: Change Makefile.am requirements. Simplify Include
57925 requirements. Add lib/alloca_.h to file list.
57927 2003-01-10 Bruno Haible <bruno@clisp.org>
57929 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57931 2003-01-10 Bruno Haible <bruno@clisp.org>
57933 * lib/alloca_.h: New file.
57934 * lib/getdate.y: Unconditionally include alloca.h.
57935 * lib/makepath.c: Likewise.
57936 * lib/setenv.c: Likewise.
57937 * lib/userspec.c: Likewise.
57939 2003-01-09 Karl Berry <karl@gnu.org>
57941 * MODULES.html.sh: include `dirname $0` in PATH, to find
57944 2003-01-09 Bruno Haible <bruno@clisp.org>
57946 * modules/stdbool: Change configure.ac, Makefile.am requirements.
57947 Simplify Include requirements. Add lib/stdbool.h.in to file list.
57949 2003-01-09 Bruno Haible <bruno@clisp.org>
57951 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57953 2003-01-09 Bruno Haible <bruno@clisp.org>
57955 * lib/stdbool.h.in: New file.
57957 2003-01-09 Bruno Haible <bruno@clisp.org>
57959 * gnulib-tool (func_all_modules): Ignore files ending in ~.
57960 * MODULES.html.sh: Likewise.
57962 2003-01-08 Jim Meyering <jim@meyering.net>
57964 * lib/full-write.c: Undefine and define-away `const' after inclusion
57965 of errno.h, not before. Suggestion from Bruno Haible.
57967 2003-01-08 Bruno Haible <bruno@clisp.org>
57969 * modules/full-read: Depend on full-write.
57971 2003-01-08 Bruno Haible <bruno@clisp.org>
57973 * lib/safe-read.c: Include specification header first, to ensure its
57975 * lib/full-write.c: Likewise.
57977 2003-01-07 Jim Meyering <jim@meyering.net>
57979 * lib/full-write.c: Rework so that it may serve to define full_read,
57981 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57983 2003-01-07 Bruno Haible <bruno@clisp.org>
57985 * lib/strtoimax.c: Include <stdint.h> as an alternative to
57987 * lib/xstrtol.h: Likewise.
57988 * lib/xstrtoimax.c: Likewise.
57989 * lib/xstrtoumax.c: Likewise.
57990 * lib/human.h: Likewise.
57992 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57993 on systems that have <inttypes.h> but not <stdint.h>.
57995 2003-01-07 Bruno Haible <bruno@clisp.org>
57997 * MODULES.html.sh: Add copyright notice.
57998 (missed_files): Omit CVS directory entries.
57999 (func_module): Make it work with sed-3.02.
58000 * MODULES.txt: Remove file.
58002 2003-01-06 Jim Meyering <jim@meyering.net>
58004 * lib/version-etc.c: Update year in translatable copyright string.
58006 2003-01-03 Karl Berry <karl@gnu.org>
58008 * config/config.{guess,sub}: update from prep.
58010 2003-01-02 Karl Berry <karl@gnu.org>
58012 * doc/COPYING.DOC: belatedly updated to 1.2.
58014 2003-01-01 Karl Berry <karl@gnu.org>
58016 * gnulib-tool (func_verify_module): report module name $module in
58017 error message, not $1.
58018 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58019 be created, only if it doesn't exist.
58020 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58022 2002-12-31 Paul Eggert <eggert@twinsun.com>
58024 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58026 2002-12-31 Paul Eggert <eggert@twinsun.com>
58028 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58029 memcmp if strcoll doesn't work.
58031 2002-12-31 Bruno Haible <bruno@clisp.org>
58033 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58036 2002-12-31 Bruno Haible <bruno@clisp.org>
58038 * lib/memcoll.c (STRCOLL): New macro.
58041 2002-12-31 Bruno Haible <bruno@clisp.org>
58043 * lib/localcharset.h: New file.
58044 * lib/localcharset.c: Include it.
58045 * lib/unicodeio.c: Likewise.
58047 2002-12-31 Bruno Haible <bruno@clisp.org>
58049 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58050 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58052 2002-12-31 Bruno Haible <bruno@clisp.org>
58054 * lib/getline.h: Include <stddef.h>, for size_t.
58056 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58057 * lib/unicodeio.c: Don't include <stddef.h>.
58059 2002-12-31 Bruno Haible <bruno@clisp.org>
58061 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58064 2002-12-24 Karl Berry <karl@gnu.org>
58066 * config/config.guess: update from prep.
58068 2002-12-24 Bruno Haible <bruno@clisp.org>
58070 General infrasructure.
58071 * m4/README: Rewritten.
58072 * m4/onceonly.m4: New file.
58073 * m4/onceonly_2_57.m4: New file.
58076 * m4/atexit.m4: New file.
58079 * m4/strtod.m4: New file.
58082 * m4/strtol.m4: New file.
58085 * m4/strtoul.m4: New file.
58088 * m4/memchr.m4: New file.
58091 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58092 (jm_FUNC_MEMCMP): Invoke it.
58095 * m4/memcpy.m4: New file.
58098 * m4/memmove.m4: New file.
58101 * m4/memset.m4: New file.
58104 * m4/strcspn.m4: New file.
58107 * m4/strpbrk.m4: New file.
58110 * m4/strstr.m4: New file.
58113 * m4/strerror.m4: New file.
58116 * m4/mktime.m4: Renamed from jm-mktime.m4.
58117 (gl_PREREQ_MKTIME): New macro.
58118 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58121 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58122 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58123 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58126 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58127 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58128 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58131 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58132 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58133 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58135 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58138 * m4/xalloc.m4: New file.
58141 * m4/alloca.m4: New file.
58144 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58145 (jm_FUNC_PUTENV): Invoke it.
58148 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58149 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58150 when invoked twice.
58151 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58155 * m4/memrchr.m4: New file.
58158 * m4/stpcpy.m4: New file.
58161 * m4/strcase.m4: New file.
58164 * m4/strdup.m4: New file.
58167 * m4/strnlen.m4: New file.
58170 * m4/strndup.m4: New file.
58173 * m4/xstrtod.m4: New file.
58176 * m4/xstrtol.m4: New file.
58179 * m4/getdate.m4: New file.
58181 Module unlocked-io.
58182 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58183 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58184 * m4/jm-glibc-io.m4n: Remove file.
58186 Module long-options.
58187 * m4/long-options.m4: New file.
58190 * m4/md5.m4: New file.
58193 * m4/sha.m4: New file.
58196 * m4/getstr.m4: New file.
58199 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58200 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58201 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58202 simply getline. Infoke gl_PREREQ_GETLINE.
58205 * m4/obstack.m4: New file.
58208 * m4/hash.m4: New file.
58211 * m4/readtokens.m4: New file.
58214 * m4/strverscmp.m4: New file.
58217 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58221 * m4/strtoll.m4: New file.
58224 * m4/strtoull.m4: New file.
58227 * m4/strtoimax.m4: New file.
58230 * m4/strtoumax.m4: New file.
58233 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58234 jm_AC_PREREQ_XSTRTOIMAX.
58235 Moved the strtol prerequisites to strtol.m4.
58236 Moved the strtoll prerequisites to strtoll.m4.
58237 Moved the strtoimax prerequisites to strtoimax.m4.
58240 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58241 jm_AC_PREREQ_XSTRTOUMAX.
58242 Moved the strtoul prerequisites to strtoul.m4.
58243 Moved the strtoull prerequisites to strtoull.m4.
58244 Moved the strtoumax prerequisites to strtoumax.m4.
58247 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58248 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58251 * m4/dup2.m4: New file.
58254 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58255 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58258 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58259 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58261 Module gettimeofday.
58262 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58263 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58264 gl_PREREQ_GETTIMEOFDAY.
58267 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58268 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58271 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58272 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58273 jm_AC_TYPE_UINTMAX_T.
58274 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58277 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58278 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58281 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58282 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58285 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58286 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58287 * m4/st_mtim.m4: Indentation.
58290 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58291 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58292 gl_PREREQ_NANOSLEEP.
58295 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58296 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58297 (gl_REGEX): New macro.
58300 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58301 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58304 * m4/rmdir.m4: New file.
58307 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58308 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58309 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58312 * m4/dirname.m4: New file.
58315 * m4/getopt.m4: New file.
58317 Module unistd-safer.
58318 * m4/unistd-safer.m4: New file.
58321 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58323 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58324 (gl_FUNC_FNMATCH_POSIX): New macro.
58325 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58326 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58330 * m4/exclude.m4: New file.
58333 * m4/human.m4: New file.
58339 * m4/backupfile.m4: New file.
58340 * m4/d-ino.m4: Indentation.
58343 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58344 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58345 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58348 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58352 * m4/euidaccess.m4: New file.
58355 * m4/file-type.m4: New file.
58358 * m4/fileblocks.m4: New file.
58361 * m4/filemode.m4: New file.
58364 * m4/isdir.m4: New file.
58367 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58368 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58371 * m4/makepath.m4: New file.
58374 * m4/modechange.m4: New file.
58377 * m4/mountlist.m4: New file.
58378 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58381 Module path-concat.
58382 * m4/path-concat.m4: New file.
58385 * m4/pathmax.m4: New file.
58388 * m4/same.m4: New file.
58391 * m4/save-cwd.m4: New file.
58394 * m4/savedir.m4: New file.
58397 * m4/xgetcwd.m4: New file.
58398 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58401 * m4/xreadlink.m4: New file.
58404 * m4/safe-read.m4: New file.
58407 * m4/safe-write.m4: New file.
58410 * m4/closeout.m4: New file.
58412 Module stdio-safer.
58413 * m4/stdio-safer.m4: New file.
58416 * m4/getpass.m4: New file.
58419 * m4/getugroups.m4: New file.
58421 Module group-member.
58422 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58423 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58426 * m4/idcache.m4: New file.
58429 * m4/userspec.m4: New file.
58432 * m4/clock_time.m4: New file.
58433 * m4/gettime.m4: New file.
58436 * m4/settime.m4: New file.
58439 * m4/posixtm.m4: New file.
58441 Module gethostname.
58442 * m4/gethostname.m4: New file.
58445 * m4/canon-host.m4: New file.
58448 * m4/codeset.m4: New file, from gettext-0.11.5.
58449 * m4/gettext.m4: New file, from gettext-0.11.5.
58450 * m4/glibc21.m4: New file, from gettext-0.11.5.
58451 * m4/iconv.m4: New file, from gettext-0.11.5.
58452 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58453 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58454 * m4/inttypes.m4: New file, from gettext-0.11.5.
58455 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58456 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58457 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58458 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58459 * m4/lib-link.m4: New file, from gettext-0.11.5.
58460 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58461 * m4/progtest.m4: New file, from gettext-0.11.5.
58462 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58463 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58464 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58466 Module localcharset.
58467 * m4/localcharset.m4: New file.
58469 Module hard-locale.
58470 * m4/hard-locale.m4: New file.
58473 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58475 * m4/mbrtowc.m4: Add comment.
58478 * m4/memcasecmp.m4: New file.
58481 * m4/memcoll.m4: New file.
58484 * m4/unicodeio.m4: New file.
58487 * m4/rpmatch.m4: New file.
58490 * m4/yesno.m4: New file.
58493 * m4/exitfail.m4: New file.
58496 * m4/c-stack.m4 (gl_C_STACK): New macro.
58497 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58500 * m4/error.m4 (gl_ERROR): New macro.
58501 (jm_PREREQ_ERROR): Use onceonly macros.
58504 * m4/fatal.m4: New file.
58507 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58508 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58510 Module getpagesize.
58511 * m4/getpagesize.m4: New file.
58513 Module getusershell.
58514 * m4/getusershell.m4: New file.
58517 * m4/physmem.m4: New file.
58520 * m4/posixver.m4: New file.
58523 * m4/quotearg.m4: New file.
58526 * m4/quote.m4: New file.
58529 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58532 * m4/sig2str.m4: New file.
58535 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58537 * m4/intmax_t.m4: New file.
58538 * m4/d-type.m4: Indentation.
58539 * m4/jm-macros.m4: Update.
58540 * m4/prereq.m4 (jm_PREREQ): Update.
58541 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58542 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58543 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58544 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58545 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58546 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58547 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58548 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58549 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58550 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58551 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58552 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58553 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58554 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58555 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58556 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58557 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58558 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58559 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58561 2002-12-24 Bruno Haible <bruno@clisp.org>
58563 * MODULES.txt: Update according to m4/ changes.
58566 * config.rpath: New file, from gettext-0.11.5.
58568 * modules/*: New module descriptions.
58569 * gnulib-tool: New file.
58570 * MODULES.html.sh: New file.
58572 2002-12-21 Karl Berry <karl@gnu.org>
58574 * doc/fdl.texi: update to version 1.2.
58576 2002-12-19 Karl Berry <karl@gnu.org>
58578 * config/config.guess: update from prep.
58580 2002-12-18 Bruno Haible <bruno@clisp.org>
58582 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58583 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58585 2002-12-17 Bruno Haible <bruno@clisp.org>
58587 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58588 stdlib.h, string.h.
58590 2002-12-17 Bruno Haible <bruno@clisp.org>
58592 * lib/canon-host.c (strdup): Remove unused declaration.
58594 * lib/fsusage.c: Include full_read.h.
58595 (get_fs_usage): Use full_read instead of safe_read.
58597 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58599 2002-12-12 Karl Berry <karl@gnu.org>
58601 * config/config.guess: update from prep.
58603 2002-12-11 Bruno Haible <bruno@clisp.org>
58605 * m4/setenv.m4: New file, from gettext-0.11.5.
58607 2002-12-11 Bruno Haible <bruno@clisp.org>
58609 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58611 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58614 2002-12-11 Bruno Haible <bruno@clisp.org>
58616 * setenv.c (alloca): Fall back to malloc.
58617 (freea): New macro.
58618 (setenv): Use freea() to free memory allocated with alloca().
58620 2002-11-13 Bruno Haible <bruno@clisp.org>
58622 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58623 function declarations.
58624 * unsetenv.c (unsetenv): Likewise.
58626 2002-03-04 Bruno Haible <bruno@clisp.org>
58628 Portability to AIX 4.3.3.
58629 * unsetenv.c: New file, extracted from setenv.c.
58630 * setenv.c: Move the unsetenv() function to unsetenv.c.
58632 2001-12-20 Bruno Haible <bruno@clisp.org>
58634 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58635 use malloc instead. For SunOS 4.
58637 2001-12-11 Bruno Haible <bruno@clisp.org>
58639 * setenv.c: Declare alloca.
58640 (compar_fn_t): New typedef.
58641 (KNOWN_VALUE, STORE_VALUE): Use it.
58643 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58646 2002-12-10 Paul Eggert <eggert@twinsun.com>
58648 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58649 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58650 Choose values that are less likely to collide with system fnmatch
58652 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58653 defined (e.g., a pure POSIX system).
58654 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58655 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58657 2002-12-06 Paul Eggert <eggert@twinsun.com>
58659 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58660 a pain in practice to deal with generated m4 files. This change
58661 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58663 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58664 and jm-glibc-io.m4, as they are no longer a special case.
58665 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58666 kludge and the auto-generation stuff. Check only whether the
58667 functions are declared, not whether they exist, since older hosts
58668 that don't declare the functions can't use the optimization anyway.
58670 2002-12-06 Jim Meyering <jim@meyering.net>
58672 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58674 Merge in changes from libc's misc/error.c, in preparation
58675 for the merge of gnulib's changes back into libc.
58677 * lib/error.c (_): Define only if not already defined.
58678 Move definition to follow all #include directives.
58679 Include unlocked-io.h only if !_LIBC.
58680 [_LIBC]: Include <libio/libioP.h>.
58681 [USE_IN_LIBIO]: Include <libio/iolibio.h>
58682 (fflush): Tweak definition to use INTUSE.
58685 2002-12-05 Paul Eggert <eggert@twinsun.com>
58687 * lib/alloca.c [defined emacs]: Include "lisp.h".
58688 (xalloc_die) [defined emacs]: New macro.
58689 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58690 [! defined emacs]: Include <xalloc.h>.
58691 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58692 (pointer): Typedef to POINTER_TYPE *.
58693 (malloc): Remove decl; we now always use xmalloc.
58694 (alloca): Use old-style definition, since Emacs needs this.
58695 Check for arithmetic overflow when computing combined size.
58697 2002-12-04 Paul Eggert <eggert@twinsun.com>
58699 Do not generate unlocked-io.h automatically, since it's easier to
58700 maintain it by hand.
58702 * lib/unlocked-io.h: New file, from GNU diffutils,
58703 but with proper copyright notice and attribution.
58704 * lib/gen-uio: Remove.
58705 * lib/Makefile.am: Add copyright notice.
58706 (libfetish_a_SOURCES): Add unlocked-io.h.
58707 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58708 (DISTCLEANFILES, io_functions): Remove macros.
58709 (EXTRA_DIST): Remove gen_uio.
58710 (unlocked-io.h): Remove rule.
58712 2002-12-04 Jim Meyering <jim@meyering.net>
58714 Reflect the fact that stat.c and lstat.c are no longer generated.
58715 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58716 (DISTCLEANFILES): Likewise.
58717 (EXTRA_DIST): Likewise.
58718 (all_local): Don't depend on stat.c or lstat.c.
58719 (stat.c, lstat.c): Remove rules.
58720 (EXTRA_DIST): Remove xstat.in.
58722 * lib/xstat.in: Remove file. Contents moved into stat.c.
58723 * lib/stat.c: New file. Contents mostly from xstat.in.
58724 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58725 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58727 * lib/safe-read.c: Rework so that it may serve to define safe_write,
58729 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58731 2002-12-03 Jim Meyering <jim@meyering.net>
58733 * lib/safe-read.c, safe-write.c: Change variable names and comments,
58734 but not semantics, to minimize the differences between these two files.
58735 (safe_read): Change comment to mention SAFE_READ_ERROR.
58737 * lib/safe-read.c (IS_EINTR): Define.
58738 (safe_read): Use IS_EINTR in place of in-function cpp directives.
58740 2002-12-02 Jim Meyering <jim@meyering.net>
58742 * lib/safe-read.c (EINTR): Define.
58743 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58744 (INT_MAX): Provide fallback.
58745 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58747 * lib/safe-read.h (SAFE_READ_ERROR): Define.
58749 2002-12-02 Bruno Haible <bruno@clisp.org>
58751 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58752 Define, taken from safe-read.c.
58753 (INT_MAX): Provide fallback.
58754 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58755 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58757 * lib/safe-read.c (EINTR): Remove definition.
58758 (safe_read): Don't use EINTR if it is absent.
58760 2002-12-01 Jim Meyering <jim@meyering.net>
58762 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58764 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58766 2002-11-27 Paul Eggert <eggert@twinsun.com>
58768 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58769 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58770 with `if (! (value < limit)) abort ();', for readability.
58772 2002-11-26 Karl Berry <karl@gnu.org>
58774 * lib/strdup.c: copy from libc again, with jim's ok.
58775 * lib/.cppi-disable: re-add strdup.c
58777 2002-11-25 Karl Berry <karl@gnu.org>
58779 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58780 instead of "strtol.c".
58782 2002-11-25 Karl Berry <karl@gnu.org>
58784 * config/install-sh: update from automake for variable quoting, $0 in
58787 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58788 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58791 2002-11-25 Jim Meyering <jim@meyering.net>
58793 * lib/mktime.c: Sync from libc, now that it has the latest fix.
58795 2002-11-24 Karl Berry <karl@gnu.org>
58797 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58798 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58800 2002-11-24 Jim Meyering <jim@meyering.net>
58802 Update from coreutils:
58804 * lib/mktime.c: Merge in changes from libc.
58806 Avoid a link-time failure on some Linux systems.
58807 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58809 (__mon_yday): Declare with the STATIC attribute.
58810 (__mktime_internal): Likewise.
58811 Based on a report from Greg Schafer.
58813 2002-11-23 Jim Meyering <jim@meyering.net>
58815 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58816 Use `unsigned', not `int', as type of index.
58818 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58820 * lib/fsusage.c: Remove unneeded parentheses around operands of
58823 2002-11-22 Paul Eggert <eggert@twinsun.com>
58825 * lib/quotearg.h: Allow multiple inclusion by surrounding with
58826 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
58827 so that we can be included first.
58828 (PARAMS): Remove; we now assume C89 or later. All uses removed.
58829 * lib/quotearg.c: Include quotearg.h immediately after config.h.
58830 No need to include stddef.h or sys/types.h any more.
58831 Surround local include files with "", not "<>".
58832 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58833 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58834 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58835 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58836 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58837 (ISPRINT): Remove; no longer needed now that we assume C89.
58839 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58842 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58843 quotearg_char): Use SIZE_MAX rather than
58844 (size_t) -1 when we are talking about "infinity".
58846 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58848 2002-11-22 Paul Eggert <eggert@twinsun.com>
58850 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58851 hint that one should use `if (! x) abort ();' rather than `assert
58852 (x);', and anyway it's one less thing to worry about configuring.
58853 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58854 hash_rehash, hash_insert): Use abort rather than assert.
58856 2002-11-22 Bruno Haible <bruno@clisp.org>
58858 * lib/safe-read.h: Assume C89. Add comments.
58859 (safe_read): Change return type to size_t.
58860 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58861 byte counts > SSIZE_MAX correctly.
58862 * lib/safe-write.h: New file.
58863 * lib/safe-write.c: New file.
58864 * lib/full-read.h: New file.
58865 * lib/full-read.c: New file.
58866 * lib/full-write.h: Assume C89. Add comments.
58867 * lib/full-write.c: Include safe-write.h.
58868 (full_write): Rewritten to use safe_write.
58869 Suggested by Jim Meyering and Paul Eggert.
58871 2002-11-21 Jim Meyering <jim@meyering.net>
58873 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58875 Merge in changes from the coreutils.
58877 2002-09-25 Paul Eggert <eggert@twinsun.com>
58878 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58880 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58881 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58882 int. Work more efficiently if X is the same width as uintmax_t.
58883 Do not compare X to -1, to avoid bogus compiler warning.
58884 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58885 Don't assume that f_frsize and f_bsize are the same type.
58887 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58888 warning on FreeBSD.
58890 * lib/makepath.c (make_path): Restore umask *before* creating the final
58892 (make_path): Minor reformatting.
58894 * lib/xmalloc.c: Adjust to work with new autoconf macros,
58895 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58896 HAVE_MALLOC/HAVE_REALLOC.
58898 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58899 dummy ones. At least on GNU/Linux systems, `auto' means something
58901 From Michael Stone.
58903 2002-11-21 Bruno Haible <bruno@clisp.org>
58905 Remove case insensitive option matching.
58906 * lib/argmatch.h (argcasematch): Remove declaration.
58907 (ARGCASEMATCH): Remove macro.
58908 (__xargmatch_internal): Remove case_sensitive argument.
58909 (XARGMATCH): Update.
58910 (XARGCASEMATCH): Remove macro.
58911 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58912 case_sensitive argument.
58913 (argcasematch): Remove function.
58914 (__xargmatch_internal): Remove case_sensitive argument.
58915 (main): Use XARGMATCH instead of XARGCASEMATCH.
58917 * lib/xmalloc.c: Change compile-time error message. Add comment about
58918 required autoconf version.
58920 2002-11-20 Paul Eggert <eggert@twinsun.com>
58922 Merge argmatch cleanups from Bison. Assume C89.
58924 * lib/argmatch.c: Include config.h here, not in argmatch.h.
58925 Include stdlib.h, for EXIT_FAILURE.
58926 Always include <string.h>, since we assume C89.
58927 (EXIT_FAILURE): Remove pre-C89 bug workaround.
58928 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58929 Include <stddef.h> instead, since it's all we need for size_t.
58930 (PARAMS): Remove. All uses removed.
58931 (ARRAY_CARDINALITY): Do not bother to #undef.
58932 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58933 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58934 Remove unnecessary parentheses.
58935 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58936 Insert necessary parentheses.
58937 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58938 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58940 2002-11-19 Bruno Haible <bruno@clisp.org>
58942 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58943 * lib/mbswidth.h: Include <stddef.h>, for size_t.
58945 * lib/mbswidth.h (PARAMS): Remove macro.
58946 (mbswidth, mbsnwidth): Use ANSI C function declarations.
58947 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58949 * lib/gcd.h (PARAMS): Remove macro.
58950 (gcd): Use ANSI C function declarations.
58951 * lib/gcd.c (gcd): Likewise.
58953 2002-11-15 Bruno Haible <bruno@clisp.org>
58955 * lib/strcspn.c: Include <stddef.h>.
58956 (strcspn): Use ANSI C function declaration. Change return type to
58958 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58959 (strpbrk): Use NULL.
58960 * lib/strpbrk.h (PARAMS): Remove macro.
58961 (strpbrk): Use ANSI C function declaration.
58962 * lib/strstr.c: Don't include <sys/types.h>.
58963 * lib/strstr.h (PARAMS): Remove macro.
58964 (strstr): Use ANSI C function declarations.
58966 2002-11-14 Karl Berry <karl@gnu.org>
58968 * config/mkinstalldirs: `do' on separate line, instead of
58971 2002-11-06 Bruno Haible <bruno@clisp.org>
58973 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58974 * lib/gcd.c (gcd): Likewise.
58976 2002-11-05 Bruno Haible <bruno@clisp.org>
58978 * lib/gcd.h: New file, from gettext-0.11.5.
58979 * lib/gcd.c: New file, from gettext-0.11.5.
58981 2002-11-05 Bruno Haible <bruno@clisp.org>
58983 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58984 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58985 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58986 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58988 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58990 * lib/makepath.c: Include gettext.h instead of <locale.h> and
58993 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58994 * lib/human.c: Include gettext.h instead of <libintl.h>.
58995 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58996 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58997 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58998 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58999 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59000 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59001 (textdomain): Remove definition.
59002 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59004 * lib/long-options.c: Remove include of <libintl.h> and definition of
59006 * lib/same.c: Remove include of <libintl.h> and definition of _.
59008 2002-11-04 Owen Taylor <otaylor@redhat.com>
59010 * lib/config.charset: A few additions for Solaris.
59012 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59014 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59015 * lib/localcharset.c (locale_charset): Declare as extern "C".
59017 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59019 * lib/config.charset: msdos in uk_UA uses CP1125.
59021 2002-11-04 Bruno Haible <bruno@clisp.org>
59023 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59024 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59025 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59026 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59027 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59029 2002-11-04 Bruno Haible <bruno@clisp.org>
59031 * lib/localcharset.c (locale_charset): Don't return an empty string.
59033 2002-11-04 Bruno Haible <bruno@clisp.org>
59035 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59038 2002-11-04 Bruno Haible <bruno@clisp.org>
59040 * lib/config.charset: Update for newest glibc. Add canonical names
59041 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59043 2002-11-04 Bruno Haible <bruno@clisp.org>
59045 * lib/config.charset: Add support for NetBSD.
59047 2002-11-04 Bruno Haible <bruno@clisp.org>
59049 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59051 2002-11-01 Bruno Haible <bruno@clisp.org>
59053 * configure.in: Add AC_CONFIG_AUX_DIR call.
59054 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59056 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59058 2002-09-28 Karl Berry <karl@gnu.org>
59060 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59061 installed automake until the next release, since changes have been
59064 2002-09-25 Karl Berry <karl@gnu.org>
59066 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59067 * lib/getopt*: copy from libc/posix.
59068 * lib/gettext.h: copy from gettext.
59069 * lib/.cppi-disable: add strdup.c, gettext.h.
59071 2002-09-25 Karl Berry <karl@gnu.org>
59073 * config/srclist.txt: enable gettext.h check.
59074 * config/config.{guess,sub}: update from prep.
59075 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59076 from automake 1.6.3.
59079 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59081 * regex.c (PATFETCH): Remove the translating fetch.
59082 (PATFETCH_RAW): Rename to PATFETCH.
59083 (set_image_of_range): New fun.
59084 (SET_RANGE_TABLE_WORK_AREA): Use it.
59085 (regex_compile): Don't translate the pattern chars so eagerly.
59086 Only do it when inserting an `exactn' bytecode or when handling
59088 (mutually_exclusive_p): Avoid empty statement.
59090 2002-07-06 Jim Meyering <meyering@lucent.com>
59092 * m4/README: Don't mention Makefile.am.in.
59093 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59095 2002-07-01 Jim Meyering <meyering@lucent.com>
59097 * lib/c-stack.c: Include sys/time.h.
59098 From Volker Borchert.
59100 2002-06-26 Paul Eggert <eggert@twinsun.com>
59102 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59104 2002-06-26 Paul Eggert <eggert@twinsun.com>
59106 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59107 New macro. Use it uniformly instead of
59108 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59109 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59110 reported by Vin Shelton.
59112 2002-06-22 Paul Eggert <eggert@twinsun.com>
59114 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59115 Do not assume SA_SIGINFO behavior.
59116 Bug reported by Jim Meyering on NetBSD 1.5.2.
59118 2002-06-22 Jim Meyering <meyering@lucent.com>
59120 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59121 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59123 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59124 now that configure.ac uses AC_GNU_SOURCE.
59125 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59126 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59128 Update to latest tools. Suggestions from Paul Eggert.
59129 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59130 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59131 * m4/fnmatch.m4: Likewise.
59132 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59133 to AC_HEADER_STDBOOL
59135 2002-06-22 Jim Meyering <meyering@lucent.com>
59137 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59138 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59140 2002-06-22 Jim Meyering <meyering@lucent.com>
59142 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59144 * lib/exitfail.c, exitfail.h: Likewise.
59145 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59147 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59149 (EXTRA_DIST): Add fnmatch_loop.c.
59150 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59152 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59153 * lib/fnmatch.c: Update from diffutils-2.8.2.
59154 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59155 * lib/fnmatch.h: Remove file.
59157 2002-06-21 Jim Meyering <meyering@lucent.com>
59159 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59160 * m4/mbrtowc.m4: Likewise.
59162 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59163 * m4/mbswidth.m4: Reflect name change:
59164 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59165 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59167 * m4/lib-link.m4: Update from gettext-0.11.2.
59168 * m4/gettext.m4: Likewise.
59170 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59171 From Alfred M. Szmidt.
59173 2002-06-18 Paul Eggert <eggert@twinsun.com>
59175 * lib/file-type.h: Report an error if neither S_ISREG nor
59176 S_IFREG is defined, instead of using a test specific to glibc
59177 2.2. This should be safe, since POSIX requires S_ISREG and
59178 Unix Version 7 had S_IFREG. We don't need to check for
59179 <sys/types.h> since we don't use any symbols that it defines.
59181 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59183 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59184 $@-t, so that each temporary file name is unique and valid in the first
59185 8 characters, for operation under DOS.
59187 2002-06-15 Paul Eggert <eggert@twinsun.com>
59189 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59191 2002-06-15 Jim Meyering <meyering@lucent.com>
59193 Work even with DJGPP 2.03, which lacks support for symlinks.
59195 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59197 * lib/lchown.c (S_ISLNK): Likewise.
59199 2002-06-15 Jim Meyering <meyering@lucent.com>
59201 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59202 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59203 have been included before this file.
59205 2002-06-14 Jim Meyering <meyering@lucent.com>
59207 * lib/file-type.h: Use the version from diffutils-2.8.2.
59208 * lib/file-type.c: Likewise.
59210 2002-06-07 Jim Meyering <meyering@lucent.com>
59212 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59213 They're needed at least for NetBSD 1.5.2.
59214 ($statxfs_includes): Include those same headers.
59215 ($statxfs_includes): Include sys/vfs.h if available.
59216 ($statxfs_includes): Likewise for sys/statvfs.h.
59217 Check for the following members in both structs statfs and statvfs:
59218 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59220 2002-06-01 Jim Meyering <meyering@lucent.com>
59222 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59223 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59225 2002-05-28 Jim Meyering <meyering@lucent.com>
59227 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59228 Reported by Volker Borchert.
59230 2002-05-27 Jim Meyering <meyering@lucent.com>
59232 Fix a problem seen only on nonconforming systems whereby ls.c's
59233 use of localtime, and then of gettimeofday would cause trouble:
59234 the localtime call used to initialize rpl_gettimeofday's save
59235 mechanism would clobber ls's current local time information so
59236 that in any long listing the first file would always be listed
59237 with date 1970-01-01. Analysis by Volker Borchert.
59239 * lib/gettimeofday.c (localtime): Undefine.
59240 (rpl_localtime): New function.
59242 2002-05-27 Jim Meyering <meyering@lucent.com>
59244 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59247 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59248 use the replacement function; it wouldn't resolve at link time.
59249 Reported by Volker Borchert.
59251 2002-05-22 Jim Meyering <meyering@lucent.com>
59253 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59255 * lib/file-type.h: New file.
59256 * lib/file-type.c (file_type): New file/function. Extracted from
59259 2002-04-30 Jim Meyering <meyering@lucent.com>
59261 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59263 2002-04-29 Paul Eggert <eggert@twinsun.com>
59265 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59267 2002-04-29 Paul Eggert <eggert@twinsun.com>
59269 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59270 Do not check for alloca.h (no longer used) or stdbool.h (was never
59271 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59273 2002-04-29 Paul Eggert <eggert@twinsun.com>
59275 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59277 2002-04-29 Jim Meyering <meyering@lucent.com>
59279 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59280 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59281 Use AC_FUNC_STRNLEN here instead.
59283 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59284 With autoconf-2.53a, it's part of AC_PROG_CC.
59286 2002-04-28 Paul Eggert <eggert@twinsun.com>
59288 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59289 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59291 2002-04-28 Paul Eggert <eggert@twinsun.com>
59293 * lib/sig2str.h, lib/sig2str.c: New files.
59294 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59296 2002-04-28 Paul Eggert <eggert@twinsun.com>
59298 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59299 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59300 of 127, since 64 is the largest conceivable number for ancient
59302 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59304 2002-04-28 Jim Meyering <meyering@lucent.com>
59306 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59308 2002-04-24 Jim Meyering <meyering@lucent.com>
59310 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59311 (jm_PREREQ): Use it.
59313 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59314 mach/mach.h fcntl.h.
59315 Check for this function: setlocale.
59317 2002-04-24 Jim Meyering <meyering@lucent.com>
59319 * lib/gettext.h: New file, from Gettext.
59320 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59321 (libfetish_a_SOURCES): Add gettext.h.
59323 2002-04-16 Jim Meyering <meyering@lucent.com>
59325 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59326 ut_pid, ut_id, ut_exit.
59328 2002-04-16 Jim Meyering <meyering@lucent.com>
59330 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59331 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59332 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59334 2002-04-12 Jim Meyering <meyering@lucent.com>
59336 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59337 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59338 existence of the getmntinfo function. Needed for Darwin 5.3.
59340 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59341 This is necessary at least on Darwin 5.3.
59343 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59344 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59345 strnlen.o in the library, and that makes some versions of ranlib
59348 2002-04-12 Jim Meyering <meyering@lucent.com>
59350 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59352 2002-04-09 Jim Meyering <meyering@lucent.com>
59354 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59355 to be more precise. Rather than saying we're checking whether the
59356 function `works', say what we're testing.
59357 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59358 Reported by Bruno Haible.
59360 2002-03-10 Jim Meyering <meyering@lucent.com>
59362 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59363 Suggestion from Santiago Vila.
59365 2002-03-08 Jim Meyering <meyering@lucent.com>
59367 * lib/rename.c: Mention that this wrapper is needed also on
59368 mips-dec-ultrix4.4 systems.
59370 2002-03-02 Jim Meyering <meyering@lucent.com>
59372 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59373 not HAVE_CLOCK_SETTIME.
59375 2002-02-27 Paul Eggert <eggert@twinsun.com>
59377 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59378 Check for clock_settime.
59380 2002-02-27 Paul Eggert <eggert@twinsun.com>
59382 * lib/nanosleep.h: Rename to....
59383 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59385 * lib/gettime.c: New file.
59386 * lib/settime.c: New file.
59387 * lib/stime.c: Remove.
59389 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59390 timespec.h. Remove nanosleep.h.
59392 2002-02-25 Paul Eggert <eggert@twinsun.com>
59394 * m4/acl.m4: New file.
59395 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59396 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59398 2002-02-25 Paul Eggert <eggert@twinsun.com>
59400 * lib/acl.c, lib/acl.h: New files.
59401 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59403 2002-02-24 Jim Meyering <meyering@lucent.com>
59405 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59406 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59407 cause trouble. Reported by Nelson Beebe.
59409 2002-02-23 Paul Eggert <eggert@twinsun.com>
59411 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59412 compilers that don't know that xalloc_die never returns.
59414 2002-02-20 Jim Meyering <meyering@lucent.com>
59416 * lib/getdate.c: Regenerate using bison-1.33.
59418 2002-02-17 Jim Meyering <meyering@lucent.com>
59420 * config/config.guess (main): Don't use `head -1'; it's no longer
59421 portable. Use `sed 1q' instead.
59423 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59425 * m4/codeset.m4: Upgrade to gettext-0.11.
59426 * m4/gettext.m4: Upgrade to gettext-0.11.
59427 * m4/glibc21.m4: Upgrade to gettext-0.11.
59428 * m4/iconv.m4: Upgrade to gettext-0.11.
59429 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59430 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59431 * m4/lib-ld.m4: New file, from gettext-0.11.
59432 * m4/lib-link.m4: New file, from gettext-0.11.
59433 * m4/lib-prefix.m4: New file, from gettext-0.11.
59434 * m4/progtest.m4: Upgrade to gettext-0.11.
59436 2002-02-15 Paul Eggert <eggert@twinsun.com>
59438 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59439 (jm_PREREQ): Use it.
59441 2002-02-15 Paul Eggert <eggert@twinsun.com>
59443 * lib/posixver.c, lib/posixver.h: New files.
59444 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59446 2002-02-02 Paul Eggert <eggert@twinsun.com>
59447 Bruno Haible <bruno@clisp.org>
59449 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59450 (fwrite_success_callback): New declaration.
59451 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59452 print_unicode_char. Call failure callback instead of error.
59453 (fwrite_success_callback): New function.
59454 (exit_failure_callback): New function.
59455 (fallback_failure_callback): New function.
59456 (print_unicode_char): Call unicode_to_mb.
59458 2002-01-26 Jim Meyering <meyering@lucent.com>
59460 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59461 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59463 2002-01-26 Jim Meyering <meyering@lucent.com>
59465 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59467 2002-01-22 Paul Eggert <eggert@twinsun.com>
59469 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59471 2002-01-22 Jim Meyering <meyering@lucent.com>
59473 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59474 Otherwise, some versions of automake would omit the rule that makes
59475 Makefile from Makefile.in.
59477 2002-01-21 Paul Eggert <eggert@twinsun.com>
59479 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59480 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59481 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59482 (memcoll): Set errno to zero if there is no error.
59484 * lib/quotearg.c (quotearg_buffer_restyled):
59485 Fix bug with quoting buffers containing NUL when backslashing escapes.
59486 This bug was exposed by the other changes in this patch.
59487 (quotearg_n_options): New arg ARGSIZE.
59488 All callers changed.
59489 (quoting_options_from_style): New function.
59490 (quotearg_n_style): Use it.
59491 (quotearg_n_style_mem): New function.
59493 * lib/quotearg.h (quotearg_n_style_mem): New function.
59495 2002-01-19 Jim Meyering <meyering@lucent.com>
59497 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59498 Remove useless quotes: DF_PROG="df".
59499 * m4/strnlen.m4: New file.
59501 2002-01-16 Paul Eggert <eggert@twinsun.com>
59503 * lib/backupfile.c (ISDIGIT): Comment fix.
59504 * lib/getdate.y (ISDIGIT): Likewise.
59505 * lib/posixtm.c (ISDIGIT, year): Likewise.
59506 * lib/strverscmp.c (ISDIGIT): Likewise.
59507 * lib/userspec.c (ISDIGIT): Likewise.
59509 2002-01-16 Jim Meyering <meyering@lucent.com>
59511 * lib/getdate.y: Add three semicolons, each just before a closing
59512 brace. Bison (as of version 1.31) no longer papers over that mistake.
59514 2002-01-05 Jim Meyering <meyering@lucent.com>
59516 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59518 2001-12-19 Paul Eggert <eggert@twinsun.com>
59520 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59521 not silently exit merely because the output buffer happens to
59522 have nothing pending.
59524 2001-12-18 Paul Eggert <eggert@twinsun.com>
59526 See the big note in ../ChangeLog.
59527 * lib/human.c (suffixes): Prefer K to k for 1024.
59528 (generate_suffix_backwards): New function.
59529 (human_readable_inexact): Use it.
59530 * lib/xstrtol.c (__xstrtol): If there is no number but there
59531 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59532 Accept 'K' as well as 'k'.
59534 2001-12-15 Jim Meyering <meyering@lucent.com>
59536 * lib/regex.h (__restrict_arr): Update from libc.
59538 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59539 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59542 2001-12-14 Jim Meyering <meyering@lucent.com>
59544 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59545 Suggestion from Bruno Haible.
59547 2001-12-10 Jim Meyering <meyering@lucent.com>
59549 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59550 xrealloc, Instead, include "xalloc.h".
59551 (initbuffer): Don't cast xmalloc return value to char*.
59552 (readline): Reword comment.
59553 Don't cast xrealloc return value to char*
59554 Return NULL, not 0.
59556 2001-12-09 Jim Meyering <meyering@lucent.com>
59558 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59559 about `signed and unsigned type in conditional expression'.
59560 * lib/posixtm.c (posix_time_parse): Likewise.
59562 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59564 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59565 to avoid a pedantic warning.
59567 * lib/getstr.c: Don't include assert.h.
59568 (getstr): Remove warning-evoking assertions.
59569 Return -1 if offset parameter is out of bounds.
59570 Change the type of a local from int to size_t.
59572 * lib/strftime.c (my_strftime_localtime_r): Include this function
59573 definition in the `#if ! HAVE_TM_GMTOFF' block.
59575 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59576 Include xalloc.h instead.
59578 2001-12-02 Jim Meyering <meyering@lucent.com>
59580 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59581 2001-11-18. It's no longer necessary, now that stdlib.h is always
59584 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59585 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59587 2001-11-30 Akim Demaille <akim@epita.fr>
59589 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59590 before being defined.
59592 2001-11-27 Paul Eggert <eggert@twinsun.com>
59594 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59595 First arg is int, not unsigned.
59596 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59597 (SIZE_MAX, UINT_MAX): New macros.
59598 (quotearg_n_options): Abort if N is negative.
59599 Avoid overflow check on hosts where size_t is 64 bits and int
59600 is 32 bits, as overflow is impossible there.
59601 Fix off-by-one typo that caused unnecessary reallocation.
59603 2001-11-27 Jim Meyering <meyering@lucent.com>
59605 * lib/tempname.c: Merge with version from libc.
59606 * lib/regex.c: Likewise.
59608 * lib/tempname.c: Include stdlib.h unconditionally. On some old
59609 systems for which STDC_HEADERS is 0, it was not included, resulting in
59610 a warning about an integer-to-pointer conversion problem with getenv.
59611 Reported by Volker Borchert.
59613 2001-11-26 Jim Meyering <meyering@lucent.com>
59615 * lib/gtod.h: Remove file.
59616 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59617 * lib/gettimeofday.c: Don't include gtod.h.
59618 (GTOD_init): Remove function.
59619 (rpl_gettimeofday): Do its job here instead, rather than aborting.
59620 Suggestion from Volker Borchert.
59622 2001-11-23 Jim Meyering <meyering@lucent.com>
59624 * lib/hash.h (struct hash_table): Don't define here. Merely declare
59626 * lib/hash.c (struct hash_table): Define it here instead.
59628 2001-11-22 Jim Meyering <meyering@lucent.com>
59630 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59632 2001-11-20 Jim Meyering <meyering@lucent.com>
59634 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59635 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59637 2001-11-19 Jim Meyering <meyering@lucent.com>
59639 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59640 directory. Use "conftestXXXXXX" as the template.
59641 Suggestion from Paul Eggert.
59643 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59644 immediately, so the test doesn't mistakenly hit the max-open-files
59647 2001-11-18 Paul Eggert <eggert@twinsun.com>
59649 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59650 (TEMPORARIES): New macro.
59651 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
59652 removes an artificial limitation (e.g. HP-UX 10.20, where
59655 2001-11-18 Jim Meyering <meyering@lucent.com>
59657 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59659 2001-11-18 Jim Meyering <meyering@lucent.com>
59661 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59664 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59665 files will be created before anything else.
59667 2001-11-17 Paul Eggert <eggert@twinsun.com>
59669 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59670 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59672 2001-11-17 Jim Meyering <meyering@lucent.com>
59674 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59675 Prompted by a report from Bob Proulx.
59677 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59678 Instead, require UTILS_FUNC_MKSTEMP.
59680 2001-11-17 Jim Meyering <meyering@lucent.com>
59682 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59683 Now, that's done as part of AC_FUNC_STRTOD.
59685 2001-11-17 Jim Meyering <meyering@lucent.com>
59687 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59688 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59689 rather than group writable. Patch by Juan F. Codagnone.
59691 * lib/readtokens.c: Remove explicit declarations of xmalloc and
59692 xrealloc, Instead, include "xalloc.h".
59694 * lib/mountlist.c: Include unlocked-io.h after all system headers.
59695 Remove explicit declarations of xmalloc, xrealloc,
59696 and xstrdup. Instead, include "xalloc.h".
59698 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59700 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59702 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59704 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59705 Reported by Padraig Brady.
59707 * lib/mkstemp.c: #undef mkstemp.
59709 (rpl_mkstemp): Rename from mkstemp.
59712 2001-11-16 Jim Meyering <meyering@lucent.com>
59714 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59715 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59716 determine the amount of total physical memory, use pstat_getstatic.
59717 HPUX-11 doesn't define _SC_PHYS_PAGES.
59718 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59719 If sysconf couldn't be used to determine the amount of available
59720 physical memory, use both pstat_getstatic and pstat_getdynamic.
59721 Based on a patch from Bob Proulx.
59723 2001-11-10 Jim Meyering <meyering@lucent.com>
59725 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59726 (jm_PREREQ): Use it.
59728 2001-11-09 Jim Meyering <meyering@lucent.com>
59730 * m4/jm-macros.m4: Require autoconf-2.52f.
59731 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59732 Use these AC_-prefixed names, not the AM_-prefixed ones.
59734 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
59736 2001-11-05 Jim Meyering <meyering@lucent.com>
59738 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59740 2001-11-04 Jim Meyering <meyering@lucent.com>
59742 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59745 2001-11-03 Jim Meyering <meyering@lucent.com>
59747 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59750 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59751 know the name of the variable in the macro definition.
59753 2001-11-03 Jim Meyering <meyering@lucent.com>
59755 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59756 in argmatch_to_argument call.
59758 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59761 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59762 e.g., a fault due to an attempt to free a NULL pointer.
59764 2001-11-01 Jim Meyering <meyering@lucent.com>
59766 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59767 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59769 2001-11-01 Jim Meyering <meyering@lucent.com>
59771 * lib/dirfd.c, lib/dirfd.h: New files.
59772 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59774 * lib/hash.c (hash_print) [TESTING]: Clean up.
59776 2001-10-22 Paul Eggert <eggert@twinsun.com>
59778 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59779 to avoid a warning if -Wall.
59781 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
59784 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59785 (per RMS's instructions, this is now the canonical source)
59786 * lgpl/, gpl/: New directories.
59788 2001-10-21 Paul Eggert <eggert@twinsun.com>
59790 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59792 2001-10-21 Jim Meyering <meyering@lucent.com>
59794 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
59795 this code would end up calling gettext even in packages built
59796 with --disable-nls.
59797 * lib/getopt.c (_): Likewise.
59798 * lib/regex.c (_): Likewise.
59800 2001-10-20 Paul Eggert <eggert@twinsun.com>
59802 * m4/error.m4 (jm_PREREQ_ERROR):
59803 Do not invoke AC_CHECK_FUNCS with strerror_r, as
59804 AC_FUNC_STRERROR_R does that.
59805 Check for strerror declaration.
59807 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59808 are supposed to have them these days.
59809 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59810 Merge changes from latest Autoconf CVS.
59811 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59812 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59813 POSIX decided to standardize on the int flavor of strerror_r.
59815 2001-10-20 Paul Eggert <eggert@twinsun.com>
59817 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59818 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59819 Use strerror_r that is only a macro, even if it is not a function.
59820 (strerror): Check for HAVE_DECL_STRERROR before declaring.
59821 (private_strerror): Use prototypes, not old-style function definition.
59822 (print_errno_message): New function.
59823 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59824 char*-flavored one.
59825 (error_tail, error, error_at_line): Use it.
59827 2001-10-11 Jim Meyering <meyering@lucent.com>
59829 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59830 and quote_n (1, ... to avoid clobbering a buffer.
59832 2001-10-05 Jim Meyering <meyering@lucent.com>
59834 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59836 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59837 * lib/hash-pjw.h: New file.
59839 2001-09-30 Jim Meyering <meyering@lucent.com>
59841 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59842 `struct fsstat' has the `f_fstypename' member.
59843 Use that to define FS_TYPE, which is now used to make
59844 the getfsstat link test tighter.
59846 2001-09-30 Jim Meyering <meyering@lucent.com>
59848 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59849 Include <sys/ucred.h>, for Apple Darwin.
59850 Include sys/mount.h and sys/fs_types.h only if available.
59852 (read_filesystem_list): Use FS_TYPE.
59854 2001-09-29 Paul Eggert <eggert@twinsun.com>
59856 * lib/exclude.c (excluded_filename): 0 -> false, since it's
59859 2001-09-29 Jim Meyering <meyering@lucent.com>
59861 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59862 [one-argument getmntent function]): Include stdio.h before mntent.h.
59863 SunOS 4.1.x needs it for the declaration of `FILE'.
59864 Patch by Volker Borchert.
59866 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59867 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59868 sys/fs_types.h, and make the link-test for getfsstat guard #include
59869 directives with appropriate #if HAVE_*_H tests so that we can
59870 detect getfsstat on Apple Darwin1.3.7 systems.
59871 Reported by Nelson Beebe.
59872 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59874 2001-09-28 Paul Eggert <eggert@twinsun.com>
59876 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59877 #defines strtoimax. Also treat the other strto* functions
59880 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59881 Check for strtoul and strtoumax,
59882 as those declarations are made even in the signed case.
59883 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59884 Likewise, for strtol and strtoimax.
59886 2001-09-28 Paul Eggert <eggert@twinsun.com>
59888 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59889 #defines strtoimax. Also treat the other strto* functions
59892 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59893 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59894 (strtoimax, strtoumax): Do not declare if already defined as a macro.
59896 2001-09-26 Jim Meyering <meyering@lucent.com>
59898 Most macros in unlocked-io.h had the wrong number of arguments.
59899 * lib/gen-uio: New script.
59900 (USE_UNLOCKED_IO): Define to 1 if not already defined.
59901 * lib/unlocked-io.hin: Remove file.
59902 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59903 rather than trying to embed it here.
59904 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
59905 Reported by Padraig Brady.
59907 2001-09-25 Volker Borchert <bt@teknon.de>
59909 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59912 2001-09-24 Jim Meyering <meyering@lucent.com>
59914 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59916 2001-09-23 Jim Meyering <meyering@lucent.com>
59918 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59919 instead of the mere test for existence of mntent.h. The latter
59920 would get a false-positive on AIX 3.4 systems.
59921 In the outer getmntent if-block, don't die if neither of the getmntent
59922 tests succeeds. Instead, just fall through and continue with the
59925 2001-09-23 Jim Meyering <meyering@lucent.com>
59927 * lib/mountlist.c: Remove useless parentheses in #if directives.
59928 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59929 the deprecated MOUNTED symbol is no longer defined in mntent.h.
59931 2001-09-22 Jim Meyering <meyering@lucent.com>
59933 * m4/gettext.m4: New file. From gettext.
59934 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59935 * m4/progtest.m4: Likewise
59936 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59937 * m4/glibc21.m4: Likewise.
59939 * m4/libintl.m4: Remove. No longer used.
59941 2001-09-22 Jim Meyering <meyering@lucent.com>
59943 * lib/localcharset.c: Update from latest gettext.
59944 * lib/config.charset: Likewise.
59946 2001-09-20 Jim Meyering <meyering@lucent.com>
59948 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59950 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59953 2001-09-20 Jim Meyering <meyering@lucent.com>
59955 * lib/xstrtol.c (strtoimax): Guard declaration with
59956 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59957 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59958 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59959 (strtoumax): Likewise, for completeness (it wasn't necessary).
59961 2001-09-17 Paul Eggert <eggert@twinsun.com>
59963 * lib/strtoimax.c (HAVE_LONG_LONG):
59964 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59965 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59966 to work around bug in IBM C compiler.
59968 2001-09-17 Jim Meyering <meyering@lucent.com>
59970 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59971 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59972 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59973 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59974 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59975 whenever the right hand side need not be expanded by the shell.
59977 2001-09-16 Paul Eggert <eggert@twinsun.com>
59979 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59980 library. It's not correct, as some older glibcs are buggy.
59981 fnmatch wasn't fixed until glibc 2.2.
59983 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59984 special shell magic here.
59986 2001-09-16 Jim Meyering <meyering@lucent.com>
59988 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59989 * m4/jm-macros.m4: Require it.
59991 2001-09-16 Jim Meyering <meyering@lucent.com>
59993 * lib/mkdir.c: New file.
59995 2001-09-15 Jim Meyering <meyering@lucent.com>
59997 * m4/jm-macros.m4: Check for help2man.
59999 2001-09-11 Jim Meyering <meyering@lucent.com>
60001 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60002 The body, by Paul Eggert, was moved here from configure.in.
60003 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60005 2001-09-04 Paul Eggert <eggert@twinsun.com>
60007 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60008 (jm_PREREQ): Use it.
60010 2001-09-04 Paul Eggert <eggert@twinsun.com>
60012 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60013 Use ssize_t, not int, to store result of readlink.
60014 Check for ssize_t overflow as well as size_t overflow,
60015 as POSIX says the result of readlink is implementation-defined
60016 when ssize_t overflows.
60017 Remove unnecessary cast to char*.
60018 Use free+malloc instead of realloc, as the storage doesn't need
60019 to be preserved and it's clearer and can be more efficient that way.
60020 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60021 * lib/xreadlink.h (xreadlink): Update prototype.
60023 2001-09-04 Paul Eggert <eggert@twinsun.com>
60025 * lib/xgetcwd.c: Revert some of the previous change; intead,
60026 fix the HAVE_GETCWD_NULL code to behave more like the
60027 !HAVE_GETCWD_NULL code used to.
60029 Include "xalloc.h".
60030 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60033 2001-09-03 Paul Eggert <eggert@twinsun.com>
60035 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60036 sys/param.h, as pathmax.h includes them.
60038 2001-09-03 Paul Eggert <eggert@twinsun.com>
60040 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60041 (jm_PREREQ_XGETCWD): New macro.
60043 * m4/getcwd.m4: New file.
60045 2001-09-03 Paul Eggert <eggert@twinsun.com>
60047 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60048 like the HAVE_GETCWD_NULL code.
60049 Include pathmax.h if not HAVE_GETCWD.
60050 Do not include xalloc.h.
60051 (INITIAL_BUFFER_SIZE): New symbol.
60052 Do not use xmalloc / xrealloc, since the caller is responsible for
60053 handling errors. Preserve errno around `free' during failure.
60054 Do not overrun buffer when using getwd.
60056 2001-09-03 Paul Eggert <eggert@twinsun.com>
60058 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60059 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60062 2001-09-03 Paul Eggert <eggert@twinsun.com>
60064 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60065 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60066 spotted by Jim Meyering.
60068 2001-09-03 Jim Meyering <meyering@lucent.com>
60070 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60073 2001-09-02 Jim Meyering <meyering@lucent.com>
60075 * lib/error.c: Update from GNU libc.
60077 2001-09-01 Jim Meyering <meyering@lucent.com>
60079 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60082 2001-09-01 Jim Meyering <meyering@lucent.com>
60084 * lib/xreadlink.c: New file.
60085 * lib/xreadlink.h: New file.
60086 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60089 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60090 doesn't conflict with sparc Solaris 7's definition in
60091 /usr/include/sys/int_types.h.
60093 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60095 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60096 and strncasecmp as r-values. Unixware didn't have declarations.
60098 2001-08-31 Paul Eggert <eggert@twinsun.com>
60100 * lib/xstrtol.h: Add copyright notice.
60101 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60102 LONGINT_INVALID_SUFFIX_CHAR.
60104 2001-08-31 Paul Eggert <eggert@twinsun.com>
60106 * lib/xstrtol.c (strtoimax): New decl.
60108 2001-08-31 Paul Eggert <eggert@twinsun.com>
60110 * lib/xgetcwd.c: Don't include pathmax.h.
60111 Include stdlib.h and unistd.h if available.
60113 (xmalloc, xstrdup, free): Remove decls.
60114 (xgetcwd): Don't assume sizes fit in unsigned.
60115 Check for overflow when computing sizes.
60116 Simplify reallocation code.
60118 2001-08-31 Paul Eggert <eggert@twinsun.com>
60120 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60121 a directory's st_size can have an arbitrary value, so the old
60122 usage could waste an arbitrary amount of memory. All uses
60124 * lib/savedir.h: Update prototype.
60126 2001-08-31 Paul Eggert <eggert@twinsun.com>
60128 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60130 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60133 Also, make the following further changes to make this file's
60134 configuration more similar to that of strtol.c:
60135 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60136 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60137 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60138 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60139 changed to signed values.
60141 And make the following changes as well:
60142 Fix copyright notice, as 1999 was missing.
60143 (verify): New macro.
60144 (strtoimax): Check sizes at compile-time, not run-time.
60145 Prefer strtol to strtoll if both work.
60146 (main): Remove; it was not that useful and was a pain to maintain.
60148 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60150 2001-08-31 Jim Meyering <meyering@lucent.com>
60152 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60153 Use an initial, malloc'd, buffer of length 128 rather than
60154 a statically allocated one of length 1024.
60156 2001-08-30 Paul Eggert <eggert@twinsun.com>
60158 Simplify code, partly by assuming autoconf 2.52 semantics.
60160 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60162 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60163 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60165 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60166 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60167 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60168 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60169 jm_AC_HEADER_INTTYPES_H.
60170 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60172 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60174 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60175 Quote first arg of AC_DEFUN.
60176 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60177 since they are needed to parse the include file even if we need
60178 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60179 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60180 but with opposite signedness.
60182 2001-08-30 Paul Eggert <eggert@twinsun.com>
60184 Merge 'exclude' changes from tar 1.13.22.
60185 This fixes one or two unlikely storage allocation overflow bugs,
60186 but doesn't change user-visible behavior otherwise.
60188 2001-08-30 Paul Eggert <eggert@twinsun.com>
60190 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60191 (jm_PREREQ_EXCLUDE): New macro.
60193 2001-08-30 Paul Eggert <eggert@twinsun.com>
60195 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60198 2001-08-30 Paul Eggert <eggert@twinsun.com>
60200 * lib/hash.c: Remove '2001' from copyright notice.
60202 2001-08-30 Paul Eggert <eggert@twinsun.com>
60204 * lib/full-write.h: New file.
60205 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60206 * lib/full-write.c: Correct credits, as cccp.c no longer
60207 exists and anyway it was so heavily changed from the old cccp
60208 code as to be unrecognizable. Include full-write.h.
60209 (full_write) Return size_t, with short writes meaning failure.
60210 All callers changed. This fixes a bug with large buffers
60212 * lib/utime.c: Include full-write.h.
60214 2001-08-30 Paul Eggert <eggert@twinsun.com>
60216 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60217 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60218 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60219 Include if available.
60220 (<xalloc.h>): Include
60221 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60222 (verify): New macro. Use it to verify that EXCLUDE macros do not
60223 collide with FNM macros.
60224 (struct patopts): New struct.
60225 (struct exclude): Use it, as exclude patterns now come with options.
60226 (new_exclude): Support above changes.
60227 (new_exclude, add_exclude_file):
60228 Initial size must now be a power of two to simplify overflow checking.
60229 (free_exclude, fnmatch_no_wildcards): New function.
60230 (excluded_filename): No longer requires options arg, as the options
60231 are determined by add_exclude. Now returns bool, not int.
60232 (excluded_filename, add_exclude):
60233 Add support for the fancy new exclusion options.
60234 (add_exclude, add_exclude_file): Now takes int options arg.
60235 Check for arithmetic overflow when computing sizes.
60236 (add_exclude_file): xrealloc might modify errno, so don't
60237 realloc until after errno might be used.
60239 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60241 (free_exclude): New decl.
60242 (add_exclude, add_exclude_file): Now takes int options arg.
60243 (excluded_filename): No longer requires options arg, as the options
60244 are determined by add_exclude. Now returns bool, not int.
60246 2001-08-30 Paul Eggert <eggert@twinsun.com>
60248 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60250 2001-08-27 Jim Meyering <meyering@lucent.com>
60252 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60254 * lib/version-etc.c (N_): Remove definition.
60255 Revert most of last change.
60256 Instead, simply don't mark the `Copyright...' string for translation.
60257 Based on advice from Paul Eggert.
60259 * lib/strtoxmax.c: Tweak comment.
60261 2001-08-26 Jim Meyering <meyering@lucent.com>
60263 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60265 * m4/xstrtoimax.m4: New file.
60266 * m4/xstrtoumax.m4: Add comments explaining why we
60267 AC_REPLACE_FUNCS(strtol).
60269 2001-08-26 Jim Meyering <meyering@lucent.com>
60271 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60272 of copyright with `%s' so translators don't get an untranslated
60274 (COPYRIGHT_YEAR): Define.
60275 (version_etc): Use fprintf rather than fputs.
60276 Suggestion from Ulrich Drepper.
60278 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60280 * lib/strtoll.c: New file, from GNU libc.
60281 * lib/xstrtoimax.c: New file.
60283 * lib/xstrtol.h: Add xstrtoimax.
60284 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60285 * lib/strtoimax.c: New file. Likewise, but first define
60288 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60290 * lib/strtoxmax.c: ... then renamed to this.
60292 2001-08-18 Paul Eggert <eggert@twinsun.com>
60294 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60295 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60296 (jm_AC_TYPE_INTMAX_T): New macro.
60297 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60299 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60301 * m4/longlong.m4: Renamed from ulonglong.m4.
60302 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60303 * m4/uintmax_t.m4: Removed.
60305 2001-08-13 Paul Eggert <eggert@twinsun.com>
60307 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60308 Port to Solaris 8, where 'sed' requires a space after the 'r'
60309 command, and where sh dislikes "$/". Clean up the spacing a bit.
60310 Redirect output to $tmp just once.
60312 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60314 * lib/addext.c (<errno.h>): Include.
60315 (errno): Declare if not defined.
60316 (addext): Work correctly when pathconf returns -1 and leaves
60317 errno alone because there is no limit. Also, work even if
60318 pathconf returns a value greater than SIZE_MAX.
60320 2001-08-12 Jim Meyering <meyering@lucent.com>
60322 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60323 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60324 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60325 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60326 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60327 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60328 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60329 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60330 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60331 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60332 utime.m4, utimes.m4, xstrtoumax.m4:
60333 Quote the first argument in each use of AC_DEFUN.
60335 2001-08-12 Jim Meyering <meyering@lucent.com>
60337 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60338 Simply `return getcwd (NULL, 0);'.
60339 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60340 Use 1300 as initial value for length, not PATH_MAX.
60342 * lib/pathmax.h: Clean up cpp syntax.
60344 2001-08-12 Jim Meyering <meyering@lucent.com>
60346 * lib/gettimeofday.c: New file.
60347 * lib/gtod.h: New file.
60348 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60350 2001-08-05 Jim Meyering <meyering@lucent.com>
60352 * m4/jm-macros.m4: Require autoconf-2.52.
60354 2001-08-04 Jim Meyering <meyering@lucent.com>
60356 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60357 stmt, to get in sync with glibc.
60359 2001-08-03 Paul Eggert <eggert@twinsun.com>
60361 The following changes are from gettext 0.10.39 as maintained by
60364 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60365 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60366 with inverted sense. All uses changed.
60368 * lib/mbswidth.c: Don't include <limits.h>.
60369 Include <stdlib.h> and <string.h> unconditionally.
60370 (iswcntrl, mbsinit, ISCNTRL): New macros.
60371 (mbsnwidth): Use K&R style function declarations.
60372 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60373 can optimize it when MB_CUR_MAX == 1.
60374 The width of control characters is zero, not 1.
60376 2001-08-03 Paul Eggert <eggert@twinsun.com>
60378 The following changes are from gettext 0.10.39 as maintained by
60379 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60381 * m4/codeset.m4: Upgrade to serial AM1.
60382 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60383 all uses changed. Quote first arg of AC_DEFUN.
60384 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60386 * m4/iconv.m4: Upgrade to serial AM2.
60387 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60388 Add --with-libconv-prefix.
60389 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60390 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60391 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60392 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60393 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60395 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60396 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60397 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60398 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60399 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60400 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60401 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60402 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60403 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60405 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60408 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60409 not the default value.
60411 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60412 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60413 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60414 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60415 Also check for iswcntrl, used for wcwidth fallback.
60416 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60419 2001-08-03 Jim Meyering <meyering@lucent.com>
60421 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60422 as it was in the original. Reported by Paul Eggert.
60424 2001-07-16 Jim Meyering <meyering@lucent.com>
60426 * m4/gettimeofday.m4: New file.
60427 Prompted by a report from Bernhard Baehr.
60429 2001-07-15 Jim Meyering <meyering@lucent.com>
60431 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60432 stuff. Now it's in ../Makefile.cfg.
60434 2001-07-15 Jim Meyering <meyering@lucent.com>
60436 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60437 (BUILT_SOURCES): Add unlocked-io.h.
60438 (io_functions): Define.
60439 (unlocked-io.h): New rule.
60440 (DISTCLEANFILES): Add unlocked-io.h.
60441 (all-local): Depend on unlocked-io.h, to ensure it is created.
60443 * lib/unlocked-io.hin: New file
60445 * lib/regex.c: Update from glibc.
60447 2001-07-05 Jim Meyering <meyering@lucent.com>
60449 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60451 (libfetish_a_SOURCES): Put all .h files here instead.
60452 Remove a thus-exposed (better checks in automake) duplicate and
60453 two unnecessary .h files.
60455 2001-07-04 Jim Meyering <meyering@lucent.com>
60457 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60458 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60461 2001-07-02 Jim Meyering <meyering@lucent.com>
60463 The following changes were prompted by suggestions from Bruno Haible.
60465 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60467 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60468 definition of EXTRA_DIST.
60469 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60470 ensure that the generated file is created/updated whenever the list
60471 of $(unlocked_functions) is changed.
60472 (jm-glibc-io.m4): New rule.
60473 (unlocked-io.h): New rule -- currently unused.
60475 2001-06-24 Jim Meyering <meyering@lucent.com>
60477 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60478 unmatched right bracket, rather than kludging it with an extra,
60479 falsely-matching quote in a comment. Patch by Akim Demaille.
60481 2001-06-11 Jim Meyering <meyering@lucent.com>
60483 * lib/regex.c: Update from GNU libc.
60485 2001-05-27 Jim Meyering <meyering@lucent.com>
60487 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60488 Check for ut_type in struct utmp.
60490 2001-05-27 Jim Meyering <meyering@lucent.com>
60492 * lib/readutmp.h (UT_TYPE): Define.
60494 2001-05-24 Jim Meyering <meyering@lucent.com>
60496 * lib/argmatch.c: Include "quote.h".
60497 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60498 quote function. Reported by Göran Uddeborg.
60500 2001-05-22 Jim Meyering <meyering@lucent.com>
60502 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60503 now that we use the package-supplied version unconditionally.
60504 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60506 2001-05-21 Jim Meyering <meyering@lucent.com>
60508 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60509 shell syntax errors.
60511 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60513 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60515 2001-05-20 Paul Eggert <eggert@twinsun.com>
60517 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60518 Don't bother to check library strftime, since
60519 we'll be using our own my_strftime function anyway.
60520 Define my_strftime instead of strftime.
60522 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60524 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60525 which is not yet declared.
60527 2001-05-15 Jim Meyering <meyering@lucent.com>
60529 * m4/regex.m4: Use proper quoting so brackets appear in the test
60531 Reported by, and with help from, Bruno Haible.
60533 2001-05-13 Jim Meyering <meyering@lucent.com>
60535 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60538 2001-05-11 Paul Eggert <eggert@twinsun.com>
60540 dirname code cleanup. base_name now behaves more compatibly
60541 with POSIX basename when given file names that have trailing
60542 slashes, and similarly for dir_name. Add new primitives
60543 base_len and dir_len. Put the directory-name-related decls
60546 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60547 * lib/backupfile.c (base_name): Likewise.
60548 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60549 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60550 * lib/makepath.c (strip_trailing_slashes): Likewise.
60551 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60552 ISSLASH): Likewise.
60553 * lib/rename.c (strip_trailing_slashes): Likewise.
60554 * lib/same.c (base_name): Likewise.
60555 * lib/stripslash.c (ISSLASH): Likewise.
60557 * lib/addext.c: Include <dirname.h> after size_t is defined.
60558 * lib/backupfile.c: Likewise.
60560 * lib/addext.c (addext): Use base_len to trim redundant
60561 trailing slashes instead of doing it ourselves.
60562 But do not trim the last slash if it is not redundant.
60564 * lib/backupfile.c (find_backup_file_name,
60565 max_backup_version): Use base_len instead of rolling it ourselves.
60566 Handle the case of "" and (on DOS) "C:" correctly.
60568 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60569 needed. Include <string.h>, <dirname.h>.
60570 (base_name): Allow file names ending in slashes, other than names
60571 that are all slashes. In this case, return the basename followed
60572 by the slashes. This is more general, and can be used in places
60573 where the original base_name purposely had an assertion failure.
60574 (base_len): New function.
60576 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60577 Do not include <assert.h>; no longer needed.
60579 (memrchr): Remove decl.
60580 (dir_name_r): Remove.
60581 (dir_len): Renamed from dirlen. All callers changed.
60582 Rewrite in terms of base_name, for simplicity and consistency.
60583 (dir_name): Never return NULL. All callers changed.
60584 Do not include <stdlib.h> in test program; no longer needed.
60585 return 0; is fine for test program.
60587 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60589 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60591 * lib/path-concat.c (path_concat): Use base_len to compute
60592 base length, not strlen; this means we cannot rely on memcpy
60595 * lib/same.c (STREQ): Remove.
60596 (same_name): Handle the case where the basename ends in trailing '/'.
60598 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60599 a slash was stripped. Do not strip the last slash after a
60600 file system prefix.
60602 2001-05-11 Paul Eggert <eggert@twinsun.com>
60604 * lib/Makefile.am (libfetish_a_SOURCES):
60605 Add strftime.c, since we now compile it on all hosts.
60607 * lib/strftime.c (my_strftime):
60608 Define to nstrftime if emacs, but only if my_strftime is not defined.
60609 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60610 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60611 Add one more extra argument: a nanoseconds value.
60614 (my_strftime function): Add %N format.
60615 (emacs_strftimeu): Renamed from emacs_strftime,
60616 with extra ut argument.
60618 2001-05-09 Paul Eggert <eggert@twinsun.com>
60620 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60622 2001-04-21 Jim Meyering <meyering@lucent.com>
60624 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60627 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60629 * m4/ftruncate.m4: Check for chsize.
60630 Link with ftruncate.o unconditionally if ftruncate is missing.
60631 This was required when cross-compiling to i586-mingw32msvc.
60633 2001-04-08 Jim Meyering <meyering@lucent.com>
60635 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60636 recomputed; that's necessary when the offset spans a DST transition.
60637 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
60639 2001-04-02 Jim Meyering <meyering@lucent.com>
60641 * lib/regex.h, regex.c: Update from GNU libc.
60643 2001-03-24 Jim Meyering <meyering@lucent.com>
60645 * m4/jm-macros.m4: Require autoconf-2.49d.
60647 2001-03-20 Bruno Haible <haible@clisp.cons.org>
60649 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60651 2001-03-19 Paul Eggert <eggert@twinsun.com>
60653 * lib/version-etc.c (version_etc_copyright): Update to 2001.
60655 2001-03-17 Jim Meyering <meyering@lucent.com>
60657 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60658 now that the version in autoconf is equivalent.
60659 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60661 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60662 Suggestion from Akim Demaille.
60664 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60665 (jm_PREREQ_TEMPNAME): New function.
60667 2001-03-16 Paul Eggert <eggert@twinsun.com>
60669 * lib/tempname.c (uint64_t): Define to uintmax_t if
60670 not defined, and if UINT64_MAX is not defined.
60671 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60672 Reported by John David Anglin.
60674 2001-03-15 Bruno Haible <haible@clisp.cons.org>
60676 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60677 resolve alias if codeset is empty.
60678 * lib/config.charset (BeOS): Use wildcard syntax.
60680 2001-03-13 Jim Meyering <meyering@lucent.com>
60682 * lib/path-concat.c (path_concat)
60683 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60684 concatenating e.g., `C:' and `foo'.
60687 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60689 * lib/localcharset.c (locale_charset): Don't use
60690 setlocale(LC_CTYPE,NULL). Don't return NULL.
60691 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60693 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60695 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60696 support for DOS/DJGPP.
60698 2001-03-01 Paul Eggert <eggert@twinsun.com>
60700 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60701 lacks mkstemp. Compile our own tempname.c if we compile our own
60702 mkstemp.c, as mkstemp relies on tempname.
60704 2001-03-01 Jim Meyering <meyering@lucent.com>
60706 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60707 AH_VERBATIM really does output its argument verbatim.
60709 2001-02-28 Paul Eggert <eggert@twinsun.com>
60711 * lib/Makefile.am (libfetish_a_SOURCES):
60712 Add dup-safer.c, fopen-safer.c.
60713 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60715 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60716 * lib/unistd-safer.h: New files.
60718 2001-02-25 Paul Eggert <eggert@twinsun.com>
60720 The mkstemp replacement is taken from glibc 2.2.2, with some
60721 portability fixes for use outside glibc, as follows:
60723 * lib/tempname.c (struct_stat64): New macro.
60724 (direxists, __gen_tempname): Use it.
60725 This avoids a portability problem with Solaris 8.
60727 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60728 (<stddef.h>, <stdint.h>, <string.h>):
60729 Include only if STDC_HEADERS || _LIBC.
60730 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60731 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60732 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60733 (__set_errno): Define this macro if <errno.h> doesn't.
60734 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60735 Define these macros if <stdio.h> doesn't.
60736 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60737 Define these macros if <sys/stat.h>
60738 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60739 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60740 __xstat64): Define if not _LIBC.
60741 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60742 (__gen_tempname): Invoke gettimeofday only if
60743 HAVE_GETTIMEOFDAY || _LIBC;
60744 otherwise, fall back on plain "time".
60745 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60747 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60749 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60751 2001-02-18 Paul Eggert <eggert@twinsun.com>
60753 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60755 2001-02-17 Paul Eggert <eggert@twinsun.com>
60757 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60758 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60759 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60760 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60762 2001-02-17 Paul Eggert <eggert@twinsun.com>
60764 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60765 Remove workaround macros for hosts that have mbrtowc but not
60766 mbstate_t, as we now insist on proper declarations for both
60767 before using mbrtowc.
60769 2001-02-17 Jim Meyering <meyering@lucent.com>
60771 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60772 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60773 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60776 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60777 rather than AC_CACHE_VAL.
60779 2001-02-17 Jim Meyering <meyering@lucent.com>
60781 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
60782 around included file name.
60784 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60786 * lib/strftime.c: Update from GNU libc (the only changes were to
60789 2001-02-17 Jim Meyering <meyering@lucent.com>
60791 * lib/regex.c: Update from libc.
60793 2001-02-17 Bruno Haible <haible@clisp.cons.org>
60795 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60798 2001-02-16 Paul Eggert <eggert@twinsun.com>
60800 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60801 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
60802 Reported by Mark Hounschell via Paul Eggert.
60804 2001-02-07 Jim Meyering <meyering@lucent.com>
60806 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60808 2001-02-05 Jim Meyering <meyering@lucent.com>
60810 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60811 it includes the patch required for `large file' support with at least
60812 HP-UX's 10.20 /bin/cc.
60814 2001-02-03 Jim Meyering <meyering@lucent.com>
60816 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60817 AS_IF, now that it works once again (mysteriously).
60818 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60820 2001-01-30 Jim Meyering <meyering@lucent.com>
60822 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60823 * m4/chown.m4: Rename conftestchown to conftest.chown.
60824 * m4/rename.m4: s/conftestdir/conftest.d1/ and
60825 s/conftestdir2/conftest.d2/.
60826 * m4/utimes.m4: s/conftestdata/conftest.data/
60827 Inspired by Pavel Roskin's change in autoconf.
60829 2001-01-30 Bruno Haible <haible@clisp.cons.org>
60831 * lib/config.charset: Update for FreeBSD 4.2.
60833 2001-01-27 Jim Meyering <meyering@lucent.com>
60835 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60837 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60839 2001-01-26 Jim Meyering <meyering@lucent.com>
60841 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60842 quotearg.c includes it.
60844 2001-01-26 Jim Meyering <meyering@lucent.com>
60846 * lib/quotearg.c: Include stddef.h.
60847 * lib/quote.c: Include stddef.h.
60848 Reported by Axel Kittenberger.
60850 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60851 line in double quotes so that it evokes a better diagnostic.
60852 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60853 Reported by Axel Kittenberger.
60855 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
60857 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60858 as if it was a `charset'.
60860 2001-01-21 Bruno Haible <haible@clisp.cons.org>
60862 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60865 2001-01-21 Bruno Haible <haible@clisp.cons.org>
60867 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60868 to avoid a warning. Add back 'const' to inptr.
60870 2001-01-20 Jim Meyering <meyering@lucent.com>
60872 Be sure that headers are checked before used in code compiled
60873 for the type checks.
60874 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60875 In place of that, invoke jm_CHECK_ALL_TYPES.
60876 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60877 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60878 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60879 The check for ssize_t was mistakenly run before the test for unistd.h.
60881 The configure-time check for stdbool.h was missing.
60882 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60883 (jm_PREREQ_HASH): New function.
60885 2001-01-17 Jim Meyering <meyering@lucent.com>
60887 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60888 for autoconf-2.49c.
60889 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60891 2001-01-16 Jim Meyering <meyering@lucent.com>
60893 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60896 2001-01-14 Jim Meyering <meyering@lucent.com>
60898 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60899 foo and bar. Create conftestdir/ in the script, not in the C code.
60900 Remove directories in the script, not in the C code.
60901 Remove conftestdir{,2} before trying to create the directory.
60902 Make the entire configure script fail if the mkdir fails.
60904 2001-01-14 Jim Meyering <meyering@lucent.com>
60906 * lib/rename.c: New file. From Volker Borchert.
60907 Include stdlib.h, string.h or strings.h, and xalloc.h.
60908 Use strip_trailing_slashes rather than open-coding it.
60910 2001-01-03 Paul Eggert <eggert@twinsun.com>
60912 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60914 2001-01-03 Jim Meyering <meyering@lucent.com>
60916 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60917 of local `inptr' to avoid warning with some system declarations of
60920 2001-01-02 Volker Borchert <bt@teknon.de>
60922 * m4/rename.m4: New file.
60923 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60925 2001-01-01 Jim Meyering <meyering@lucent.com>
60927 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60928 even on systems with utmpx.h. It's necessary for the declaration of
60929 utmp's ut_user member. Reported by Andreas Jaeger.
60931 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60932 available. They are required for the declarations of getgrgid and
60934 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60935 Reported by Andreas Jaeger.
60937 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
60939 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60940 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60941 so `make install' also works in VPATH builds.
60943 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
60945 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60946 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60947 can be used in subdirectories.
60949 2000-12-29 Paul Eggert <eggert@twinsun.com>
60951 * lib/modechange.c: Do not assume that mode_t uses the
60952 traditional octal encoding. E.g. "chmod 1 FOO" should set
60953 the other-execute bit of FOO even if S_IXOTH != 1.
60955 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60956 WOTH, XOTH, ALLM): New macros.
60957 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60958 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60960 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60961 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60963 No need to use uintmax_t; unsigned long is long enough.
60964 Don't bother to get suffix since we don't use it.
60966 2000-12-26 Jim Meyering <meyering@lucent.com>
60968 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60969 better with autoheader.
60971 2000-12-24 Jim Meyering <meyering@lucent.com>
60973 * lib/hash.c (is_prime): Return explicit boolean values.
60974 (hash_get_first): Return NULL to appease Irix5.6's 89.
60975 Reported by Nelson Beebe.
60977 2000-12-19 Bruno Haible <haible@clisp.cons.org>
60979 * lib/localcharset.c (locale_charset): Add support for Win32.
60981 2000-12-18 Paul Eggert <eggert@twinsun.com>
60983 * lib/physmem.h, lib/physmem.c: New files.
60985 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60986 (noinst_HEADERS): Add physmem.h.
60988 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60989 't' for compatibility with Solaris 8 sort.
60991 2000-12-18 Bruno Haible <haible@clisp.cons.org>
60993 * lib/config.charset: Add support for BeOS.
60995 2000-12-17 Jim Meyering <meyering@lucent.com>
60997 * m4/dos.m4 (jm_AC_DOS): New file and macro.
60998 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61000 2000-12-16 Jim Meyering <meyering@lucent.com>
61002 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61003 N and M) would have treated it like `chown N:N FILE'.
61005 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61007 2000-12-16 Jim Meyering <meyering@lucent.com>
61009 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61010 SHELLS_FILE to a file name that's useful on djgpp systems.
61012 (ADDITIONAL_DEFAULT_SHELLS): Define.
61013 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61014 Based mostly on a patch from Prashant TR.
61016 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61018 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61019 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61020 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61022 2000-12-08 Andreas Schwab <schwab@suse.de>
61024 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61025 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61027 2000-12-07 Jim Meyering <meyering@lucent.com>
61029 * lib/stripslash.c (ISSLASH): Define.
61030 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61034 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61035 (dir_name_r): Declare this function as static.
61036 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61037 manifest itself on a name containing a mix of slashes and
61039 Make this function work with names starting with a DOS-style
61040 drive letter and colon prefix.
61041 (dir_name): Append `.' if necessary.
61042 Based mostly on patches from Prashant TR and Eli Zaretskii.
61044 * lib/dirname.h (dir_name_r): Remove prototype.
61046 2000-12-06 Paul Eggert <eggert@twinsun.com>
61048 * m4/off_t-format.m4: Remove this file.
61049 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61051 2000-12-06 Jim Meyering <meyering@lucent.com>
61053 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61054 replacement strtoull, we may well need the replacement strtoul, too.
61055 Check for declarations of strtoul and strtoull.
61056 Check for strtol. Mainly as a cue to cause automake to include
61057 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61058 Check for limits.h -- strtol.c needs it.
61060 2000-12-05 Jim Meyering <meyering@lucent.com>
61062 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61064 2000-12-04 Jim Meyering <meyering@lucent.com>
61066 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61067 Also include memory.h, stdlib.h, unistd.h if appropriate.
61068 Reported by Andreas Jaeger (conflicting declaration of malloc).
61070 2000-12-02 Jim Meyering <meyering@lucent.com>
61072 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61073 * m4/jm-macros.m4 (jm_MACROS): require it.
61075 2000-12-02 Jim Meyering <meyering@lucent.com>
61077 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61079 2000-12-01 Paul Eggert <eggert@twinsun.com>
61081 * lib/memrchr.c: Include <config.h> before any system include file.
61083 2000-11-30 Jim Meyering <meyering@lucent.com>
61085 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61087 2000-11-30 Jim Meyering <meyering@lucent.com>
61089 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61091 2000-11-29 Paul Eggert <eggert@twinsun.com>
61093 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61095 2000-11-26 Jim Meyering <meyering@lucent.com>
61097 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61099 2000-11-22 Paul Eggert <eggert@twinsun.com>
61101 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61102 size of (size_t) -1; it's not portable.
61104 2000-11-17 Jim Meyering <meyering@lucent.com>
61106 * lib/strstr.c: Update from GNU libc.
61108 2000-11-17 Akim Demaille <akim@epita.fr>
61110 * lib/obstack.h: Formatting changes.
61111 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61112 prevent type checking.
61113 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61114 cast the value to (void *): assigning a `foo *' to a `void *'
61116 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61118 2000-11-16 Jim Meyering <meyering@lucent.com>
61120 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61122 2000-11-11 Jim Meyering <meyering@lucent.com>
61124 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61126 2000-11-10 Jim Meyering <meyering@lucent.com>
61128 * lib/obstack.h: Update from GNU libc.
61129 * lib/obstack.c: Likewise.
61131 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61133 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61135 2000-11-06 Paul Eggert <eggert@twinsun.com>
61137 * lib/getusershell.c (setusershell): Use rewind rather than
61138 fseek/fseeko, to avoid configuration hassles with fseeko.
61139 Don't bother opening SHELLS_FILE if shellstream is NULL;
61140 it's not necessary.
61142 2000-11-05 Jim Meyering <meyering@lucent.com>
61144 * lib/makepath.h (make_dir): Declare.
61145 * lib/makepath.c (make_dir): Remove `static' attribute.
61148 2000-11-04 Jim Meyering <meyering@lucent.com>
61150 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61152 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61154 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61155 last one in a bucket, advance to the next bucket.
61157 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61159 * lib/fnmatch.c: Do not comment out all the code if we are using
61160 the GNU C library, because in some cases we are replacing buggy
61161 code in the GNU C library itself.
61163 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61165 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61166 (regex_compile): Catch bogus \(\1\).
61168 2000-10-30 Paul Eggert <eggert@twinsun.com>
61170 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61171 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61172 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61174 2000-10-30 Paul Eggert <eggert@twinsun.com>
61176 * lib/error.h, getline.h, modechange.h:
61177 Remove "2000" from Copyright line, as the file hasn't been
61178 changed this year other than in the copyright notice.
61180 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61181 was changed this year.
61183 2000-10-29 Jim Meyering <meyering@lucent.com>
61185 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61187 * m4/ls-mntd-fs.m4: Likewise
61189 2000-10-29 Jim Meyering <meyering@lucent.com>
61191 * lib/xstat.in: Fix grammar in comment.
61193 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61195 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61196 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61197 doesn't define __restrict_arr.
61199 2000-10-28 Jim Meyering <meyering@lucent.com>
61201 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61202 (jm_PREREQ_MEMCHR): New function.
61204 2000-10-28 Jim Meyering <meyering@lucent.com>
61206 * lib/memchr.c: Update from libc.
61207 Adjust for portability:
61208 [HAVE_STDLIB_H]: Include stdlib.h.
61209 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61210 Undef __memchr, too.
61211 [!weak_alias]: Define __memchr to memchr.
61213 * lib/regex.c: Update from libc.
61214 * lib/regex.h: Likewise.
61215 * lib/getopt1.c: Likewise.
61216 * lib/memcmp.c: Likewise.
61218 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61219 Avoid using fseek, when possible -- it's broken by design.
61220 Patch by Ulrich Drepper.
61222 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61224 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61225 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61226 Giving in to popular pressure to shut up the compiler with casts.
61228 2000-10-26 Jim Meyering <meyering@lucent.com>
61230 * lib/strftime.c: Update from libc.
61232 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61234 * regex.c: More `unsigned char' -> `re_char' changes.
61235 Also change several `int' into `re_wchar_t'.
61236 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61237 (PUSH_FAILURE_POINTER): Don't cast any more.
61238 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61239 We want GCC to complain, since this piece of code makes
61240 re_match non-reentrant, which *should* be fixed.
61241 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61242 (EXTEND_BUFFER): Use RETALLOC.
61243 (SET_LIST_BIT): Don't cast.
61244 (re_wchar_t): New type.
61245 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61246 that those two functions will always properly return.
61247 (IMMEDIATE_QUIT_CHECK): Cast to void.
61248 (analyse_first): Use recursion rather than an explicit stack.
61249 (re_compile_fastmap): Can't fail anymore.
61250 (re_search_2): Don't check re_compile_fastmap for failure.
61251 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61252 Now also sets the new value (passed in a new argument).
61253 (re_match_2_internal): Use it.
61254 Also, use a new var `reg' of type size_t when looping through regs
61255 rather than reuse the inappropriate `mcnt'.
61257 2000-10-25 Jim Meyering <meyering@lucent.com>
61259 * lib/obstack.c: Update from libc.
61261 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61263 * regex.c (regex_compile): Change the way of handling a range from
61264 a char less than 256 to a char not less than 256.
61266 2000-10-24 Andrew Innes <andrewi@gnu.org>
61268 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61270 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61271 so that re_search functions only quit when callers expect them to.
61273 2000-10-23 Jim Meyering <meyering@lucent.com>
61275 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61276 wrong. That set_locale call must not have any side effects.
61279 2000-10-22 Jim Meyering <meyering@lucent.com>
61281 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61282 [CYCLIC]: Remove now-unused definition.
61284 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61285 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61286 Suggestion from Ulrich Drepper.
61288 2000-10-21 Jim Meyering <meyering@lucent.com>
61290 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61291 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61292 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61294 2000-10-21 Jim Meyering <meyering@lucent.com>
61296 * lib/dirname.c (memrchr): Declare if necessary.
61297 (dir_name): Remove the restriction that there be no
61298 trailing slashes. Now, this code skips past them, effectively
61300 [TEST_DIRNAME] (main): New unit tests.
61302 * lib/memrchr.c: New file from GNU libc.
61303 Undef __memrchr, too.
61304 [!weak_alias]: Define __memrchr to memrchr.
61305 Guard weak_alias use with `#ifdef weak_alias'.
61307 2000-10-21 Jim Meyering <meyering@lucent.com>
61309 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61310 (dir_name): Use dir_name_r.
61311 * lib/dirname.h (dir_name_r): Declare it.
61313 2000-10-17 Jim Meyering <meyering@lucent.com>
61315 * lib/quote.h (PARAMS): Define and use.
61316 Reported by Akim Demaille.
61318 * lib/getopt.c: Update from libc.
61320 2000-10-16 Jim Meyering <meyering@lucent.com>
61322 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61326 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61328 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61330 2000-09-25 Jim Meyering <meyering@lucent.com>
61332 * lib/md5.h (rol): Define (from GnuPG).
61334 * lib/sha.c: Give credit (GnuPG) where due.
61335 (M): Use rol rather than open-coding it.
61336 Add a FIXME comment.
61338 2000-09-21 Jim Meyering <meyering@lucent.com>
61340 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61341 Reported by Michael Stone.
61343 2000-09-20 Jim Meyering <meyering@lucent.com>
61345 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61346 (noinst_HEADERS): Add sha.h.
61347 Based on code from Scott G. Miller and from GnuPG.
61349 2000-09-18 Jim Meyering <meyering@lucent.com>
61351 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61352 LIBS. Otherwise, everyone ends up linking with -lelf for some
61354 Reported by Mike Stone.
61356 2000-09-15 Jim Meyering <meyering@lucent.com>
61358 * lib/regex.c: Update from libc.
61360 2000-09-10 Jim Meyering <meyering@lucent.com>
61362 * lib/getopt.c (_getopt_internal): Update from glibc.
61364 2000-09-09 Jim Meyering <meyering@lucent.com>
61366 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61367 think it should be used as a general replacement for isascii.
61368 * lib/fnmatch.c: Likewise.
61369 * lib/mbswidth.c: Likewise
61370 * lib/regex.c: Likewise.
61373 * lib/userspec.c: Include sys/param.h and limits.h.
61375 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61376 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61377 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61378 UID, GID. Check range.
61380 2000-09-06 Jim Meyering <meyering@lucent.com>
61382 * lib/getopt.c (_getopt_internal): Update from glibc.
61384 2000-08-30 Jim Meyering <meyering@lucent.com>
61386 * lib/strftime.c: Merge in changes from GNU libc.
61388 2000-08-26 Jim Meyering <meyering@lucent.com>
61390 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61391 * m4/fpending.m4: New file.
61393 2000-08-26 Jim Meyering <meyering@lucent.com>
61395 * lib/closeout.c: Include "__fpending.h".
61396 (close_stdout_status): Return right away if there's nothing to flush.
61398 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61399 * lib/__fpending.c: New file.
61400 * lib/__fpending.h: New file.
61402 2000-08-20 Jim Meyering <meyering@lucent.com>
61404 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61405 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61406 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61408 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61410 Improve fileutils installation on systems where running
61411 programs (like install) can't be unlinked.
61412 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61413 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61415 2000-08-07 Paul Eggert <eggert@twinsun.com>
61417 Standardize on "memory exhausted" instead of "Memory exhausted"
61418 or "virtual memory exhausted".
61419 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61420 "virtual memory exhausted".
61421 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61423 * lib/userspec.c (parse_user_spec): Likewise.
61424 * lib/bumpalloc.h: comment fix
61425 * lib/same.c, userspec.c: Include xalloc.h.
61427 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61428 not char *const and pointing to a constant array.
61429 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61430 (xrealloc): Comment fix.
61432 * lib/userspec.c (parse_user_spec):
61433 Don't translate a message until just before returning,
61434 to avoid unnecessary translation.
61436 2000-08-07 Jim Meyering <meyering@lucent.com>
61438 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61439 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61440 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61441 getgroups.c, gethostname.c, getopt.h, group-member.c,
61442 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61443 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61444 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61445 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61446 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61447 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61448 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61449 yesno.c: Back out Copyright date changes for each file with no change
61450 this year. This eases coordination with other programs using the same
61451 source code modules. From Paul Eggert.
61453 2000-08-06 Paul Eggert <eggert@twinsun.com>
61455 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61456 not char, for compatibility with glibc 2.1.3 strftime.c.
61458 2000-08-03 Greg McGary <greg@mcgary.org>
61460 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61461 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61462 (EXTEND_BUFFER): Use them.
61464 2000-08-01 Jim Meyering <meyering@lucent.com>
61466 * lib/dirname.c (ISSLASH): Define.
61467 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61468 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61469 both `\' and `/' may be use as path separators.
61470 Based on a patch from Prashant TR.
61472 2000-07-31 Paul Eggert <eggert@twinsun.com>
61474 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61475 slot vector a constant, since it might get modified.
61477 2000-07-31 Jim Meyering <meyering@lucent.com>
61479 * lib/xmalloc.c: Use `virtual memory exhausted', not
61480 `Memory exhausted'.
61481 * lib/obstack.c (print_and_abort): Likewise.
61483 2000-07-30 Paul Eggert <eggert@twinsun.com>
61485 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61486 buffer, so that the caller can always quote one small
61487 component of a "memory exhausted" message in slot 0.
61488 From a suggestion by Jim Meyering.
61490 2000-07-30 Jim Meyering <meyering@lucent.com>
61492 * lib/makepath.c (make_path): Quote the other instance, too.
61494 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61495 (STATIC_BUF_SIZE): Define.
61496 (quotearg_n_options): Use only statically allocated storage when
61497 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61498 than STATIC_BUF_SIZE.
61500 2000-07-29 Jim Meyering <meyering@lucent.com>
61502 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61503 * lib/dirname.c (dir_name): Likewise.
61505 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61508 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61509 (dir_name): Assert that there are no trailing slashes.
61511 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61513 * lib/mbswidth.h (mbswidth): Add a flags argument.
61514 (mbswidth): New declaration.
61515 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61516 * lib/mbswidth.c (mbswidth): Add a flags argument.
61517 (mbsnwidth): New function.
61519 2000-07-24 Jim Meyering <meyering@lucent.com>
61521 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61523 2000-07-23 Paul Eggert <eggert@twinsun.com>
61525 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61527 2000-07-23 Paul Eggert <eggert@twinsun.com>
61529 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61530 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61531 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61532 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61533 invoke multibyte primitives.
61535 2000-07-23 Paul Eggert <eggert@twinsun.com>
61538 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61539 so that mbstate_t is always defined.
61541 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61542 be 1 in at least one GCC installation, and this configuration
61543 error is likely to be common. Ignoring MB_LEN_MAX hurts
61544 performance on hosts that have mbrtowc but have only unibyte
61545 locales, but I assume these hosts are rare.
61547 2000-07-23 Paul Eggert <eggert@twinsun.com>
61549 * lib/mbswidth.c (_XOPEN_SOURCE):
61550 Don't define; this causes problems on Solaris 7.
61551 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61553 2000-07-23 Jim Meyering <meyering@lucent.com>
61555 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61556 too: getgrgid, getpwuid, getuid.
61558 2000-07-23 Jim Meyering <meyering@lucent.com>
61560 * lib/basename.c (base_name): Add an assertion.
61562 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61564 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61565 shadow its mbsinit function.
61567 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61569 * lib/mbswidth.h: New file.
61570 * lib/mbswidth.c: New file.
61571 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61572 (noinst_HEADERS): Add mbswidth.h.
61574 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61576 * lib/config.charset: Add support for FreeBSD. Improve support for
61579 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61581 * m4/mbswidth.m4: New file.
61582 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61584 2000-07-15 Jim Meyering <meyering@lucent.com>
61586 * lib/makepath.c: Include quote.h.
61587 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61588 corresponding argument in a `quote (...)' call.
61589 Give better diagnostics.
61591 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61592 (noinst_HEADERS): Add quote.h.
61594 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61595 from tar's src/misc.c.
61596 * lib/quote.h: New file. Prototypes for same.
61598 2000-07-14 Paul Eggert <eggert@twinsun.com>
61600 From a suggestion by Bruno Haible.
61601 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61602 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61603 to decide whether to define the BeOS workaround macro;
61604 this adjusts to the change to AC_MBSTATE_T.
61606 2000-07-14 Jim Meyering <meyering@lucent.com>
61608 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61609 jm_AC_TYPE_UINTMAX_T.
61611 2000-07-13 Paul Eggert <eggert@twinsun.com>
61613 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61615 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61616 quotearg_buffer_restyled): Add support for
61617 clocale_quoting_style. Undo previous change to
61618 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61619 and "{RIGHT QUOTATION MARK}" msgids.
61621 2000-07-10 Paul Eggert <eggert@twinsun.com>
61623 From a suggestion by Bruno Haible.
61624 * m4/mbstate_t.m4 (AC_MBSTATE_T):
61625 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
61626 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61627 and mbstate_t, to a single-part test that simply defines mbstate_t.
61628 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61629 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61631 2000-07-10 Jim Meyering <meyering@lucent.com>
61633 * m4/strerror_r.m4: Mirror the correction made in autoconf.
61635 * m4/gnu-source.m4: Output to confdefs.h directly.
61636 Suggestion from Akim Demaille.
61638 2000-07-09 Paul Eggert <eggert@twinsun.com>
61640 The old behavior of quoting `like this' doesn't look good with
61641 newer, ISO-style fonts. See:
61642 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61644 Instead, quote "like this" by default. Let the translator
61645 tailor the locale-specific quoting behavior by providing
61646 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61648 * lib/quotearg.c (N_): New macro.
61649 (gettext_default): New function.
61650 (quotearg_buffer_restyled): Use
61651 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61652 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61654 2000-07-09 Jim Meyering <meyering@lucent.com>
61656 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61657 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
61659 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61660 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61662 2000-07-09 Jim Meyering <meyering@lucent.com>
61664 * lib/Most files: Update copyright dates to include 2000.
61666 2000-07-08 Jim Meyering <meyering@lucent.com>
61668 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61670 (xgethostname): Remove now-unnecessary #ifdef.
61671 Move declaration of `err' into loop where it's used.
61673 2000-07-05 Paul Eggert <eggert@twinsun.com>
61674 and Bruno Haible <haible@clisp.cons.org>
61676 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61677 only if the test for an object-type mbstate_t fails. This
61678 prevents us from mistakenly reporting that mbstate_t is a
61679 system object type after we "#define mbstate_t int" to work
61682 2000-07-05 Paul Eggert <eggert@twinsun.com>
61683 and Bruno Haible <haible@clisp.cons.org>
61685 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61687 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61689 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61691 Include <ctype.h> for use of isalpha.
61693 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61695 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61696 by allocating a larger buffer. Test the gethostname return value for
61697 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
61698 returns an error and ENAMETOOLONG isn't defined.
61700 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61702 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61705 2000-07-04 Jim Meyering <meyering@lucent.com>
61707 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61708 of the deprecated AC_CHECKING.
61710 2000-07-04 Jim Meyering <meyering@lucent.com>
61712 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61713 Reported by Bruno Haible.
61715 2000-07-04 Jim Meyering <meyering@lucent.com>
61717 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61718 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
61721 2000-07-03 Paul Eggert <eggert@twinsun.com>
61723 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61724 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61726 2000-07-03 Paul Eggert <eggert@twinsun.com>
61727 and Bruno Haible <haible@clisp.cons.org>
61729 * lib/quotearg.c (mbrtowc):
61730 Assign to *pwc, and return 1 only if result is nonzero.
61731 (iswprint): Use ISPRINT when substituting our own mbrtowc.
61733 2000-07-03 Jim Meyering <meyering@lucent.com>
61735 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61737 2000-07-03 Jim Meyering <meyering@lucent.com>
61739 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61740 This is necessary to get a definition of e.g., UTMP_FILE on
61744 2000-07-02 Jim Meyering <meyering@lucent.com>
61746 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61748 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61749 AC_LIBOBJ(function_name).
61750 * m4/chown.m4: Likewise.
61751 * m4/fnmatch.m4: Likewise.
61752 * m4/ftruncate.m4: Likewise.
61753 * m4/getgroups.m4: Likewise.
61754 * m4/getline.m4: Likewise.
61755 * m4/group-member.m4: Likewise.
61756 * m4/jm-macros.m4: Likewise.
61757 * m4/lstat.m4: Likewise.
61758 * m4/malloc.m4: Likewise.
61759 * m4/memcmp.m4: Likewise.
61760 * m4/nanosleep.m4: Likewise.
61761 * m4/putenv.m4: Likewise.
61762 * m4/realloc.m4: Likewise.
61763 * m4/regex.m4: Likewise.
61764 * m4/stat.m4: Likewise.
61765 * m4/strftime.m4: Likewise.
61767 2000-07-02 Jim Meyering <meyering@lucent.com>
61769 * lib/quotearg.c (mbstate_t): Don't define here.
61771 2000-07-02 Jim Meyering <meyering@lucent.com>
61773 * lib/nanosleep.c (SIGCONT): Define if not already defined.
61775 2000-07-01 Jim Meyering <meyering@lucent.com>
61777 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61779 2000-07-01 Jim Meyering <meyering@lucent.com>
61781 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61784 2000-07-01 Bruno Haible <haible@clisp.cons.org>
61786 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61787 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61789 2000-07-01 Bruno Haible <haible@clisp.cons.org>
61791 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61792 per change in ../m4/ls-mntd-fs.m4.
61793 (read_filesystem_list): Ignore symbolic links.
61795 2000-06-29 Jim Meyering <meyering@lucent.com>
61797 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61798 for declaration of strcmp.
61800 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61802 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61803 Avoid warning by casting result to `char *' to remove `const'.
61805 2000-06-28 Jim Meyering <meyering@lucent.com>
61807 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
61808 included by quotearg.c, for which we perform this test. From
61811 2000-06-27 Bruno Haible <haible@clisp.cons.org>
61813 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61814 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61815 <utmpx.h> exists, put readutmp.o into LIBOBJS.
61817 2000-06-27 Bruno Haible <haible@clisp.cons.org>
61819 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61821 2000-06-26 Paul Eggert <eggert@twinsun.com>
61823 savedir now sets errno on failure and invokes xmalloc to get memory.
61824 Fix a couple of other minor bugs while we're at it.
61826 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61827 (NAMLEN): Remove macro.
61828 (malloc, realloc): Remove decls.
61829 (stpcpy): Likewise.
61830 ("xalloc.h"): Include.
61831 (NAME_SIZE_DEFAULT): New macro.
61832 (savedir): Use xmalloc / xrealloc to allocate memory.
61833 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61834 Skip "" directory entries.
61835 Use strlen to calculate directory entry length, since the old method
61836 is rarely used these days and isn't worth supporting.
61837 Don't use a pointer after freeing it.
61838 Check for integer overflow when calculating allocation size.
61839 Use memcpy to copy entries, instead of stpcpy.
61840 Set errno properly when returning NULL.
61841 Check for readdir error.
61843 2000-06-26 Jim Meyering <meyering@lucent.com>
61845 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61847 2000-06-25 Jim Meyering <meyering@lucent.com>
61849 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61850 Linux header bug when _XOPEN_SOURCE is defined to 500.
61852 2000-06-25 Bruno Haible <haible@clisp.cons.org>
61854 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61857 2000-06-25 Bruno Haible <haible@clisp.cons.org>
61859 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61861 Don't include <stdlib.h>. Don't declare malloc, realloc.
61863 2000-06-24 Jim Meyering <meyering@lucent.com>
61865 * m4/strerror_r.m4: Revive this file -- to try out an experimental
61866 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61867 for which strerror does return char*, but which lacks a conveniently
61868 accessible declaration of the function. If the compile-test says
61869 strerror_r doesn't work, then resort to a `run'-test that works on
61870 BeOS and segfaults on DEC Unix.
61872 2000-06-24 Jim Meyering <meyering@lucent.com>
61874 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61876 2000-06-23 Paul Eggert <eggert@twinsun.com>
61878 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61879 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
61881 2000-06-23 Paul Eggert <eggert@twinsun.com>
61883 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61884 (mbrtowc, mbstate_t): Define substitutes if
61885 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61886 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61887 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61889 2000-06-23 Jim Meyering <meyering@lucent.com>
61891 * m4/afs.m4: Add missing AC_MSG_RESULT.
61892 Reported by Bruno Haible.
61894 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61895 Suggestion from Bruno Haible.
61897 2000-06-23 Jim Meyering <meyering@lucent.com>
61899 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
61901 2000-06-21 Jim Meyering <meyering@lucent.com>
61903 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61905 2000-06-21 Jim Meyering <meyering@lucent.com>
61907 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61908 (noinst_HEADERS): Add getstr.h.
61910 * lib/getline.c (getstr): Move into a separate file.
61911 * lib/getstr.c (getstr): New file, extracted from getline.c, with
61912 the following changes: new parameter, delim2; both delim[12]
61913 parameters have type `int', not `char'. The latter would lose
61914 with 8-bit delimiters.
61915 * lib/getstr.h: New file.
61917 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61919 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61920 than 1024, return a memory chunk of least possible size, instead
61921 of size PATH_MAX + 2. In the loop, increment the size proportionally.
61922 Use free/xmalloc instead of xrealloc to avoid copying for very long
61925 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61927 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61930 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61932 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61933 address, not strdup. Include <stdlib.h> and don't declare free().
61935 2000-06-19 Jim Meyering <meyering@lucent.com>
61937 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61939 2000-06-18 Jim Meyering <meyering@lucent.com>
61941 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61943 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61944 `checking whether...' message to be consistent with that of the
61947 2000-06-18 Jim Meyering <meyering@lucent.com>
61949 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61950 Besides, these days every porting target provides a mkdir function.
61952 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61953 needed. (this snippet comes from src/system.h).
61955 2000-06-16 Bruno Haible <haible@clisp.cons.org>
61957 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61959 2000-06-15 Paul Eggert <eggert@twinsun.com>
61961 * lib/human.c (adjust_value): New function.
61962 (human_readable_inexact): Apply rounding style even when
61963 printing approximate values.
61965 2000-06-14 Paul Eggert <eggert@twinsun.com>
61967 * lib/human.c (human_readable_inexact): Allow an input block
61968 size that is not a multiple of the output block size, and vice versa.
61969 Reported by Piergiorgio Sartor.
61971 2000-06-14 Paul Eggert <eggert@twinsun.com>
61973 * lib/getdate.y (get_date): Apply relative times after time
61974 zone indicator, not before. Reported by Todd A. Jacobs.
61976 2000-06-13 Jim Meyering <meyering@lucent.com>
61978 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61980 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61982 2000-06-12 Paul Eggert <eggert@twinsun.com>
61984 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61986 2000-06-12 Jim Meyering <meyering@lucent.com>
61988 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61989 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61991 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61992 the optional argument, `lib'.
61994 2000-06-08 Jim Meyering <meyering@lucent.com>
61996 * m4/largefile.m4: Remove file (now that it's part of autoconf).
61998 2000-06-04 Paul Eggert <eggert@twinsun.com>
62000 Rewrite largefile configuration so that we don't need to run
62001 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62002 AC_CANONICAL_HOST in configure.in -- jmm]
62004 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62005 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62006 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62007 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62008 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62010 Instead of inspecting the output of getconf, try to compile the
62011 test program without and with the macro definition.
62012 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62013 for getconf. Instead, check for the needed flags by compiling
62016 2000-06-04 Paul Eggert <eggert@twinsun.com>
62018 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62020 2000-06-04 Jim Meyering <meyering@lucent.com>
62022 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62023 SunOS 4.1.4 for which gid_t is an unsigned type.
62025 2000-06-03 Jim Meyering <meyering@lucent.com>
62027 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62028 now that autoconf requires that.
62030 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62031 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62032 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62034 2000-06-03 Jim Meyering <meyering@lucent.com>
62036 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62038 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62040 * m4/glibc21.m4: New file.
62041 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62043 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62045 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62046 newer, don't install charset.alias.
62047 * lib/config.charset: Change the Linux/glibc rules so they become empty
62048 on glibc-2.1 or newer.
62050 2000-06-02 Jim Meyering <meyering@lucent.com>
62052 * lib/mountlist.c: Back out last change. Instead, do this...
62053 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62054 me_dummy member using the same `ignore'-testing code.
62055 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62059 2000-05-29 Jim Meyering <meyering@lucent.com>
62061 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62062 mounts with the `ignore' attribute. Based on a patch from
62065 2000-05-28 Jim Meyering <meyering@lucent.com>
62067 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62068 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62069 * m4/stat.m4: Likewise.
62070 * m4/lstat.m4: Likewise.
62071 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62073 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62074 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62076 2000-05-26 Jim Meyering <meyering@lucent.com>
62078 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62080 2000-05-24 Jim Meyering <meyering@lucent.com>
62082 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62083 autoconf requires that.
62084 * m4/lib-check.m4: Likewise.
62085 * m4/jm-macros.m4: Likewise.
62086 * m4/strftime.m4: Likewise.
62088 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62089 AC_CHECK_DECLS, now that autoconf requires that.
62091 2000-05-22 Jim Meyering <meyering@lucent.com>
62093 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62094 * m4/lstat.m4: Likewise.
62096 2000-05-22 Jim Meyering <meyering@lucent.com>
62098 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62100 2000-05-20 Jim Meyering <meyering@lucent.com>
62102 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62103 (jm_PREREQ): Use it.
62105 2000-05-18 Jim Meyering <meyering@lucent.com>
62107 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62108 back, too, since it may have been modified by allocate_entry.
62109 (hash_delete): Rewrite to use neither the assignment operator
62110 nor the comma operator in an if-expression.
62112 2000-05-15 Paul Eggert <eggert@twinsun.com>
62115 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62116 Remove; no longer needed.
62117 "quotearg.h": Add include.
62118 (file_name): Do not bother to explicitly initialize to NULL; it's less
62119 efficient on some hosts.
62120 (close_stdout_status): Remove test as to whether stdout was already
62121 closed; it breaks for the case "echo x | sort >&-".
62122 Quote file name colons.
62123 Do not assume that _("write error") lacks format strings.
62125 2000-05-15 Jim Meyering <meyering@lucent.com>
62127 * lib/version-etc.c (version_etc_copyright): Update the copyright
62128 string used in all --version output.
62130 2000-05-14 Jim Meyering <meyering@lucent.com>
62132 * lib/closeout.c (close_stdout_set_file_name): New function.
62133 (close_stdout_status): Use new file-scoped global.
62134 Return right away if fstat says the stdout file descriptor is invalid.
62135 * lib/closeout.h (close_stdout_set_file_name): Declare.
62137 2000-05-10 Jim Meyering <meyering@lucent.com>
62139 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62140 (close_stdout_set_status): New function.
62141 * lib/closeout.h (close_stdout_set_status): Declare.
62143 2000-05-09 Jim Meyering <meyering@lucent.com>
62145 * m4/gettext.m4: Rename this...
62146 * m4/libintl.m4: ...to this.
62148 2000-05-08 Jim Meyering <meyering@lucent.com>
62150 * lib/long-options.c: Don't include closeout.h.
62151 (parse_long_options): Don't call close_stdout for --version.
62153 2000-05-06 Paul Eggert <eggert@twinsun.com>
62155 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62156 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62157 2.1.3 bug. This avoids a clash when files like regex.c define
62160 2000-05-06 Jim Meyering <meyering@lucent.com>
62162 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62163 (AC_REPLACE_FUNCS): Add strnlen.
62165 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62166 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62168 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62169 AC_SEARCH_LIBS call for nanosleep.
62170 (LIB_NANOSLEEP): Set and AC_SUBST.
62172 2000-05-06 Jim Meyering <meyering@lucent.com>
62174 * lib/strnlen.c: Undefine __strnlen and strnlen.
62175 [!weak_alias]: Define __strnlen to strnlen.
62177 * lib/atexit.c: New file, from libiberty.
62179 2000-05-06 Jim Meyering <meyering@lucent.com>
62181 * lib/closeout.c (close_stdout_status): Also check for errors on the
62184 2000-05-05 Jim Meyering <meyering@lucent.com>
62186 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62187 AC_SEARCH_LIBS call for clock_gettime.
62188 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62190 * m4/search-libs.m4: Update from autoconf.
62192 su doesn't work on Solaris 2.6.
62193 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62194 <shadow.h>. Reported by Dragos Harabor.
62196 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62198 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62199 memcpy instead of xmalloc, xrealloc, path_concat.
62200 (locale_charset): Treat empty environment variables as absent.
62201 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62203 2000-05-04 Jim Meyering <meyering@lucent.com>
62205 * lib/getopt.c: Update from glibc.
62206 * lib/obstack.c: Likewise.
62207 * lib/obstack.h: Likewise.
62208 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62211 * lib/regex.h: Likewise.
62212 * lib/strndup.c: Likewise.
62213 * lib/strnlen.c: New file, from glibc.
62215 2000-05-03 Jim Meyering <meyering@lucent.com>
62217 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62219 2000-05-02 Paul Eggert <eggert@twinsun.com>
62221 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62222 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62223 compile-time test, rather than inspecting host and OS, to
62224 decide whether to define _LARGEFILE_SOURCE.
62226 2000-05-01 Jim Meyering <meyering@lucent.com>
62228 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62230 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62231 Based on a patch from Bruno Haible.
62233 2000-05-01 Jim Meyering <meyering@lucent.com>
62235 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62237 2000-04-29 Jim Meyering <meyering@lucent.com>
62239 * lib/path-concat.c: Declare strdup only if it's not defined.
62240 * lib/canon-host.c: Likewise.
62242 2000-04-28 Jim Meyering <meyering@lucent.com>
62244 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62245 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62246 is included first, then limits.h is included by locale.h by libintl.h.
62247 From John David Anglin.
62249 2000-04-25 Jim Meyering <meyering@lucent.com>
62251 * lib/makepath.c (S_IRWXUGO): Define.
62252 (make_path): Always perform explicit chmod if MODE specifies any
62253 of the `special' permission bits. Prompted by a bug report against
62254 install from Mate Wierdl and Joost van Baal.
62256 2000-04-18 Jim Meyering <meyering@lucent.com>
62258 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62259 (jm_PREREQ): Use it.
62261 2000-04-18 Jim Meyering <meyering@lucent.com>
62263 * lib/README: New file.
62265 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62266 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62268 2000-04-17 Jim Meyering <meyering@lucent.com>
62271 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62272 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62273 Suggestion from Akim Demaille.
62275 2000-04-17 Jim Meyering <meyering@lucent.com>
62277 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62278 the definition of it to rpl_strftime also defined-away the system's
62281 2000-04-15 Jim Meyering <meyering@lucent.com>
62283 Use `C' to denote so-called `contiguous' files, the same way
62285 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62286 (ftypelet): Use S_ISCTG.
62287 From Michael Deutschmann.
62289 2000-04-14 Jim Meyering <meyering@lucent.com>
62291 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62292 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62295 2000-04-14 Jim Meyering <meyering@lucent.com>
62297 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62299 2000-04-13 Jim Meyering <meyering@lucent.com>
62301 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62302 AH_VERBATIM to insert required #ifndef into config.h.in.
62303 Suggestion from Akim Demaille.
62305 2000-04-12 Jim Meyering <meyering@lucent.com>
62307 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62308 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62309 Christian Krackowizer.
62311 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62312 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62313 (AC_SYS_LARGEFILE): Require.
62314 (AM_C_PROTOTYPES): Require.
62316 2000-04-08 Jim Meyering <meyering@lucent.com>
62318 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62319 names don't conflict. Reported by Eli Zaretskii.
62321 2000-04-07 Jim Meyering <meyering@lucent.com>
62323 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62324 sys/types.h, to work around system header problems on AIX 3.2.5.
62327 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62329 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62330 bug. Deal with the different error behavior of Irix iconv.
62332 2000-04-05 Paul Eggert <eggert@twinsun.com>
62334 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62335 IRIX if the installer said otherwise.
62337 2000-04-05 Jim Meyering <meyering@lucent.com>
62339 Portability tweaks required for ultrix4.3.
62340 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62341 (jm_CHECK_DECLS): Add getutent to the list of functions.
62342 (_jm_DECL_HEADERS): Add utmpx.h.
62343 From John David Anglin.
62345 * m4/strftime.m4: Back out the 2000-04-02 change.
62346 Instead of that change, simply undefine putenv in the test program.
62348 2000-04-05 Jim Meyering <meyering@lucent.com>
62350 Portability tweaks required for ultrix4.3.
62351 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62353 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62354 * lib/canon-host.c: Declare strdup.
62355 * lib/path-concat.c: Likewise.
62356 From John David Anglin.
62358 2000-04-04 Jim Meyering <meyering@lucent.com>
62360 Be more DOS 8.3-friendly.
62361 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62362 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62363 * lib/Makefile.am: Reflect renaming.
62364 Reported by Eli Zaretskii.
62366 Use a temporary file name that won't clash with `charset.alias'
62367 in the DOS 8.3 name space.
62368 * lib/Makefile.am (charset_tmp): Define.
62369 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62370 (uninstall-local): Likewise.
62371 Reported by Eli Zaretskii.
62373 2000-04-03 Jim Meyering <meyering@lucent.com>
62375 * m4/gettext.m4: Fix typo in comment.
62377 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62378 textutils/configure.in). Suggestion from Paul Eggert.
62379 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62381 2000-04-02 Paul Eggert <eggert@twinsun.com>
62383 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62384 variable in the shell rather than using putenv, which isn't
62385 portable. This avoids the configure-time inter-test dependency
62386 on the potentially-renamed putenv function.
62388 2000-03-30 Paul Eggert <eggert@twinsun.com>
62390 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62391 before checking struct stat.st_blksize, so that
62392 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62394 2000-03-29 Paul Eggert <eggert@twinsun.com>
62396 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62397 since strftime.c uses HAVE_STRFTIME to decide whether to use
62398 the underlying strftime.
62400 2000-03-29 Paul Eggert <eggert@twinsun.com>
62402 * lib/time/strftime.c (my_strftime): Make sure we call the system
62403 strftime, not ourselves, when invoking the underlying strftime.
62405 2000-03-24 Jim Meyering <meyering@lucent.com>
62407 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62408 (charset_alias): Define.
62409 (install-exec-local): Factor out common code.
62410 (uninstall-local): Split lines longer than 80.
62411 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62412 (SUFFIXES): Define.
62413 (.sed.in.sed): New rule. Don't redirect directly to $@.
62414 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62416 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62418 * lib/config.charset: Output a line containing "Packages using this
62420 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62421 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62422 ref-del.sed): New rules.
62424 2000-03-17 Jim Meyering <meyering@lucent.com>
62426 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62427 Otherwise, include <strings.h>
62429 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62431 * lib/unicodeio.c (utf8_wctomb): New function.
62432 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62433 format instead of in UCS-4 with platform dependent endianness.
62435 2000-03-10 Jim Meyering <meyering@lucent.com>
62437 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62438 From Marco Franzen.
62440 2000-03-07 Paul Eggert <eggert@twinsun.com>
62442 * lib/savedir.c (savedir): Work even if directory size is
62443 negative; this can happen with some screwy NFS configurations.
62445 2000-03-06 Jim Meyering <meyering@lucent.com>
62447 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62448 if it's NULL (because we ran out of memory). From Bruno Haible.
62450 2000-03-05 Jim Meyering <meyering@lucent.com>
62452 * lib/localcharset.c ("path-concat.h"): Include.
62453 (get_charset_aliases): Use path_concat instead of ANSI string
62456 * lib/unicodeio.h (PARAMS): Define.
62457 Use it to guard prototype.
62459 2000-03-04 Jim Meyering <meyering@lucent.com>
62461 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62462 for lib/localcharset.c.
62464 2000-03-04 Jim Meyering <meyering@lucent.com>
62466 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62467 installing into it.
62468 (uninstall-local): Uncomment this rule so `make distcheck' works
62471 * lib/unicodeio.c (<errno.h>): Include it.
62472 (errno): Declare if not defined.
62474 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62476 * lib/config.charset: New version, incorporating remarks from a linux
62477 i18n mailing list. From Bruno Haible.
62479 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62481 * m4/codeset.m4: New file.
62482 * m4/iconv.m4: New file.
62483 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62485 2000-03-03 Jim Meyering <meyering@lucent.com>
62487 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62489 2000-03-02 Jim Meyering <meyering@lucent.com>
62491 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62492 the messages come out on separate lines.
62494 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62495 rather than jm_CHECK_DECLARATIONS.
62496 * m4/decl.m4: Remove now-unused file.
62498 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62501 2000-03-02 Jim Meyering <meyering@lucent.com>
62503 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62505 2000-03-01 Jim Meyering <meyering@lucent.com>
62507 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62508 * lib/unicodeio.c: Likewise.
62510 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62512 * lib/config.charset: New file.
62513 * lib/localcharset.c: New file.
62514 * lib/unicodeio.h, lib/unicodeio.c: New files.
62515 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62516 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62517 (noinst_HEADERS): Add unicodeio.h.
62518 (all-local, install-exec-local, charset.alias): New targets.
62520 2000-02-28 Paul Eggert <eggert@twinsun.com>
62522 * lib/quotearg.c (ALERT_CHAR): New macro.
62523 (quotearg_buffer_restyled): Use it.
62525 2000-02-27 Jim Meyering <meyering@lucent.com>
62527 * m4/check-decl.m4: Add getenv to the list.
62529 2000-02-27 Jim Meyering <meyering@lucent.com>
62531 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62532 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62534 * lib/backupfile.c: Guard inclusion of stdlib.h with
62535 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62536 Declare malloc if needed.
62538 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62539 `#ifndef HAVE_DECL..'
62540 now that autoconf always defines the HAVE_DECL_ symbols.
62541 * lib/human.c: Likewise.
62542 * lib/same.c: Likewise.
62543 * lib/strtoumax.c: Likewise.
62545 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62546 declaration check was not run.
62547 * lib/hash.c: Likewise.
62548 * lib/human.c: Likewise.
62549 * lib/same.c: Likewise.
62550 * lib/strtoumax.c: Likewise.
62552 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62553 `.', then first look up the entire `.'-containing string as a login
62556 2000-02-23 Jim Meyering <meyering@lucent.com>
62558 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62559 in place of my hack.
62561 2000-02-18 Paul Eggert <eggert@twinsun.com>
62563 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62564 (textint): New typedef.
62565 (parser_control): Member year changed from int to textint.
62567 (YYSTYPE): Removed; replaced by %union with int and textint members.
62568 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62569 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62570 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62571 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62572 (date, number, to_year): Use width of number in digits, not its value,
62573 to determine whether it's a 2-digit year, or a 2-digit time.
62574 (yylex): Store number of digits of numeric tokens.
62575 Reported by John Kendall.
62577 (parser_control): Changed from struct parser_control to typedef (for
62578 consistency). All uses changed.
62580 (tID): Removed; not used.
62581 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62583 2000-02-14 Paul Eggert <eggert@twinsun.com>
62585 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62586 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62588 2000-02-12 Jim Meyering <meyering@lucent.com>
62590 * lib/userspec.c (ISDIGIT): Define it.
62591 (isdigit): Remove definition.
62592 (is_number): Use ISDIGIT, not isdigit.
62593 <libintl.h>: Include.
62594 (_ and N_): Define.
62595 (parse_user_spec): Mark translatable strings.
62597 2000-02-10 Jim Meyering <meyering@lucent.com>
62599 With these changes, nanosleep.[ch] are finally enough like the other
62600 lib/* replacement files to compile on a few more losing systems.
62602 * lib/nanosleep.h: Don't include config.h.
62603 Remove prototype from declaration of nanosleep.
62604 (PARAMS): Remove now-unneeded definition.
62605 * lib/nanosleep.c: #undef nanosleep.
62606 (rpl_nanosleep): Rename from nanosleep.
62608 2000-02-10 Jim Meyering <meyering@lucent.com>
62610 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62611 gnu_nanosleep to rpl_nanosleep.
62613 2000-02-09 Jim Meyering <meyering@lucent.com>
62615 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62616 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
62618 2000-02-08 Akim Demaille <akim@epita.fr>
62620 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62621 `[' and `]' and remove uses of `changequote'.
62622 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62623 (AC_SYS_LARGEFILE): Likewise.
62624 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62625 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62627 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62628 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62629 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62630 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62632 2000-02-05 Jim Meyering <meyering@lucent.com>
62634 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62635 Remove explicit use of AC_HEADER_TIME. It is required by
62636 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
62637 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62638 in autoconf whereby the expansion of the latter ended up preceding
62639 the expansion of its prerequisite, AC_HEADER_TIME.
62640 Reported by Volker Borchert.
62642 2000-02-03 Jim Meyering <meyering@lucent.com>
62644 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62646 2000-02-03 Jim Meyering <meyering@lucent.com>
62648 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62649 rather than with `#if HAVE_UTMPNAME'.
62651 2000-02-02 Jim Meyering <meyering@lucent.com>
62653 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62654 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62655 Reported by Eli Zaretskii.
62657 2000-02-01 Jim Meyering <meyering@lucent.com>
62659 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
62661 2000-01-31 Jim Meyering <meyering@lucent.com>
62663 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62664 functions. Add the time.h and sys/time.h headers along with the
62665 AC_REQUIRE'ment of AC_HEADER_TIME.
62667 2000-01-31 Jim Meyering <meyering@lucent.com>
62669 * lib/nanosleep.h (nanosleep): Guard declaration with
62670 `#if ! HAVE_DECL_NANOSLEEP'.
62671 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62672 the declaration in that vendor's sys/timers.h.
62673 Reported by Christian Krackowizer.
62675 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62676 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62677 (ISPRINT): Likewise.
62678 Reported by Tom Tromey.
62680 2000-01-30 Jim Meyering <meyering@lucent.com>
62682 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62684 * m4/prereq.m4 (utmp_includes): Define.
62685 Check for ut_user and ut_name members in both struct utmpx
62688 2000-01-30 Jim Meyering <meyering@lucent.com>
62690 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62691 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
62692 header files where only utmpx.ut_user is declared.
62694 * lib/readutmp.h (UT_USER): Define.
62696 2000-01-29 Jim Meyering <meyering@lucent.com>
62698 * m4/lib-check.m4: New file containing library-related checks from
62699 fileutils and sh-utils (textutils had none).
62701 2000-01-28 Jim Meyering <meyering@lucent.com>
62703 * m4/perl.m4: Change format of warning message to look more like that
62704 from the missing script. Suggestion from François Pinard.
62706 2000-01-25 Jim Meyering <meyering@lucent.com>
62708 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62709 well as time.h in the compile check.
62710 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62711 Fix typo in cross-compiling case: s/yes/no/.
62713 2000-01-23 Jim Meyering <meyering@lucent.com>
62715 * m4/jm-macros.m4: Move df-related tests here from
62716 fileutils/configure.in
62718 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62719 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62721 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
62722 s/space/ac_fsusage_space/.
62723 (jm_FILE_SYSTEM_USAGE): Take two parameters.
62725 * m4/ftruncate.m4: New file (derived from part of
62726 fileutils/configure.in).
62727 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62728 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62730 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62731 AC_SUBST these here, rather than just in sh-util/configure.in, so
62732 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62734 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62735 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62736 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62737 (AC_SUBST(POW_LIBM)): Likewise.
62738 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62740 2000-01-23 Jim Meyering <meyering@lucent.com>
62742 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62745 2000-01-22 Jim Meyering <meyering@lucent.com>
62747 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62749 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62751 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62753 (AC_CHECK_HEADERS): Likewise for sh-utils.
62754 (AC_CHECK_HEADERS): Likewise for textutils.
62755 Merge the three lists of headers.
62757 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
62758 from fileutils' configure.in.
62760 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62761 code. Moved tests into their own function (_jm_DECL_HEADERS) in
62764 * m4/check-decl.m4: Use #if rather than #ifdef.
62765 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62766 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62767 (_jm_DECL_HEADERS): Define new function.
62768 (jm_CHECK_DECLARATIONS): Require it.
62770 2000-01-22 Jim Meyering <meyering@lucent.com>
62772 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62773 [! HAVE_DECL_STRTOULL]: Declare strtoull.
62774 Required for some AIX systems. Reported by Christian Krackowizer.
62775 [TESTING] (main): New function.
62777 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
62778 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62781 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62784 * lib/strverscmp.c (ISDIGIT): Define.
62785 (strverscmp): Use ISDIGIT, not isdigit.
62787 2000-01-19 Jim Meyering <meyering@lucent.com>
62789 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62790 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
62791 defines `struct timespec' in <sys/time.h>
62793 * m4/c-bs-a.m4: Remove uses of changequote altogether.
62794 Thanks to Akim for explaining.
62796 2000-01-17 Paul Eggert <eggert@twinsun.com>
62798 * lib/nanosleep.c (nanosleep):
62799 Don't use SA_INTERRUPT to decide whether to call sigaction, as
62800 POSIX.1 doesn't require SA_INTERRUPT and some systems
62801 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
62802 it's been part of POSIX.1 since day 1 (in 1988).
62804 2000-01-17 Jim Meyering <meyering@lucent.com>
62806 * lib/interlock: Remove unused file. Reported by François Pinard.
62808 2000-01-16 Paul Eggert <eggert@twinsun.com>
62810 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62811 alert, backslash, formfeed, and vertical tab unnecessarily in
62812 shell quoting style.
62814 2000-01-16 Jim Meyering <meyering@lucent.com>
62816 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62817 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62818 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62819 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62821 2000-01-16 Jim Meyering <meyering@lucent.com>
62823 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62824 because the latter didn't work.
62826 2000-01-15 Jim Meyering <meyering@lucent.com>
62828 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62829 (AC_REPLACE_FUNCS): Add memcpy and memset.
62830 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62832 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62834 2000-01-12 Jim Meyering <meyering@lucent.com>
62836 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62837 (jm_PREREQ): Use it.
62838 (jm_PREREQ_READUTMP): New macro.
62839 (jm_PREREQ): Use it.
62841 2000-01-11 Paul Eggert <eggert@twinsun.com>
62843 Quote multibyte characters correctly.
62844 * m4/c-bs-a.m4: New file.
62845 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62846 (jm_PREREQ): Use it.
62848 2000-01-11 Paul Eggert <eggert@twinsun.com>
62850 * m4/uintmax_t.m4: Port to autoconf 2.13.
62852 2000-01-08 Jim Meyering <meyering@ascend.com>
62854 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62855 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62857 2000-01-04 Jim Meyering <meyering@ascend.com>
62859 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62860 jm_STRUCT_DIRENT_D_TYPE.
62861 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62862 jm_STRUCT_DIRENT_D_INO.
62863 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62865 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62867 * m4/utime.m4: Likewise.
62869 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62870 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62872 2000-01-03 Paul Eggert <eggert@twinsun.com>
62874 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62875 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62877 2000-01-02 Jim Meyering <meyering@ascend.com>
62879 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
62880 remember if this is necessary.
62882 1999-12-26 Jim Meyering <meyering@ascend.com>
62884 * m4/jm-macros.m4: Use it here.
62885 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62887 1999-12-23 Jim Meyering <meyering@ascend.com>
62889 * m4/jm-macros.m4: Check for clock_gettime (moved from
62890 fileutils/configure.in)
62891 Check for gettimeofday.
62893 1999-12-20 Jim Meyering <meyering@ascend.com>
62895 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62896 autoconf-2.14a-1999-12-20.
62898 1999-12-19 Jim Meyering <meyering@ascend.com>
62900 * m4/lstat-slash.m4: New file.
62901 * m4/jm-macros.m4: Use the new macro:
62902 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62904 1999-12-07 Jim Meyering <meyering@ascend.com>
62906 * m4/perl.m4: Require that File::Compare be available, too.
62907 Too many systems seem to lack it.
62909 * m4/strftime.m4: Add checks for most of the cpp macros tested in
62910 GNU's strftime.c. Prompted by a patch from Paul Eggert.
62912 1999-11-18 Paul Eggert <eggert@twinsun.com>
62914 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62915 problem with the QNX 4.25 shell, which doesn't propagate exit
62916 status of failed commands inside shell assignments.
62918 1999-11-17 Jim Meyering <meyering@ascend.com>
62920 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62922 1999-11-07 Jim Meyering <meyering@ascend.com>
62924 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62926 1999-11-06 Jim Meyering <meyering@ascend.com>
62928 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62929 * m4/jm-macros.m4 (jm_MACROS): Use it here.
62931 1999-11-05 Jim Meyering <meyering@ascend.com>
62933 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62934 configure.in of textutils, fileutils, and sh-utils into this one
62935 (shared between those packages) file.
62936 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62937 AC_STRUCT_ST_BLKSIZE.
62939 1999-11-03 Jim Meyering <meyering@ascend.com>
62941 * m4/ssize_t.m4: Remove file. No longer needed since the new version
62942 of AC_CHECK_TYPE checks includes unistd.h.
62943 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62944 Suggestion from Akim Demaille.
62946 1999-10-30 Jim Meyering <meyering@ascend.com>
62948 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
62950 * m4/ls-mntd-fs.m4: Likewise.
62951 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
62952 * m4/jm-winsz1.m4: Likewise.
62954 * m4/const.m4: Remove file, since the fix made it into the experimental
62955 version of autoconf.
62956 * m4/mktime.m4: Likewise.
62958 * m4/check-type.m4: Remove file, now that the latest version of
62959 AC_CHECK_TYPE takes a third arg to specify additional #includes.
62961 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62962 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62965 1999-10-04 Jim Meyering <meyering@ascend.com>
62967 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62969 1999-09-22 Paul Eggert <eggert@twinsun.com>
62971 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62972 2.95.1 bug with HP-UX 10.20.
62974 1999-09-17 Jim Meyering <meyering@ascend.com>
62976 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62977 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62978 due to missing strdup (against sh-utils-2.0).
62980 1999-08-29 Jim Meyering <meyering@ascend.com>
62982 * m4/jm-macros.m4: Require jm_BISON.
62983 * m4/bison.m4: New file.
62985 1999-08-17 Paul Eggert <eggert@twinsun.com>
62987 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62988 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62990 1999-08-05 Jim Meyering <meyering@ascend.com>
62992 * m4/getline.m4: Rename test file from conftestdata to conftest.data
62993 to avoid conflicts with `conftest' on 8+3 filesystems.
62994 Suggestion from Eli Zaretskii.
62996 1999-08-04 Jim Meyering <meyering@ascend.com>
62998 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62999 fileutils and sh-utils (textutils's getline test was inadequate).
63000 (AM_FUNC_GETLINE): Run this test.
63001 (AC_CHECK_FUNCS): Check for getdelim.
63002 Reported by Bob Proulx.
63004 1999-08-02 Jim Meyering <meyering@ascend.com>
63006 * m4/jm-macros.m4: Add a comment.
63008 1999-08-01 Paul Eggert <eggert@twinsun.com>
63010 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63011 <inttypes.h> defines strtoumax as a macro (and not as a
63014 1999-08-01 Paul Eggert <eggert@twinsun.com>
63016 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63017 that we can shift, multiply and divide unsigned long long
63018 values; Ultrix cc can't do it.
63020 1999-08-01 Paul Eggert <eggert@twinsun.com>
63022 * m4/mktime.m4: New file, which is a preview of what should appear
63023 in the next public autoconf release.
63025 1999-08-01 Paul Eggert <eggert@twinsun.com>
63027 * m4/lfs.m4: Remove this file.
63028 * m4/largefile.m4: New file. It contains the old contents of
63029 lfs.m4, except that all names with prefix AC_LFS have been
63030 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63031 compatible with future autoconf versions. Also, some minor m4
63032 quoting problems have been fixed.
63034 1999-08-01 Paul Eggert <eggert@twinsun.com>
63036 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63037 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63038 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63039 and simplify the shell code.
63041 1999-08-01 Jim Meyering <meyering@ascend.com>
63043 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63046 1999-07-20 Jim Meyering <meyering@ascend.com>
63048 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63050 1999-07-15 Jim Meyering <meyering@ascend.com>
63052 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63054 1999-05-22 Jim Meyering <meyering@ascend.com>
63056 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63058 1999-05-20 Jim Meyering <meyering@ascend.com>
63060 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63061 Add a colon after each `then' in case $4 is empty.
63063 1999-05-16 Jim Meyering <meyering@ascend.com>
63065 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63067 1999-05-10 Jim Meyering <meyering@ascend.com>
63069 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63071 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63074 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63076 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63078 1999-05-04 Paul Eggert <eggert@twinsun.com>
63080 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63081 not CPPFLAGS, so that linking works correctly in IRIX.
63083 1999-04-30 Paul Eggert <eggert@twinsun.com>
63085 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63087 1999-04-20 Paul Eggert <eggert@twinsun.com>
63089 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63090 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63091 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63092 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63093 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63095 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63097 1999-04-20 Jim Meyering <meyering@ascend.com>
63099 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63100 AC_REPLACE xstroull if necessary. From Paul Eggert.
63101 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63103 1999-04-18 Jim Meyering <meyering@ascend.com>
63105 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63106 * m4/jm-macros.m4: Use it.
63108 1999-04-06 Jim Meyering <meyering@ascend.com>
63110 * m4/strftime.m4: Remove test for %f.
63112 1999-03-29 Jim Meyering <meyering@ascend.com>
63114 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63115 superset of the AC_TYPE_* checks in the textutils, fileutils,
63116 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63119 1999-03-28 Jim Meyering <meyering@ascend.com>
63121 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63122 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63123 replaced e.g., in the *.sh files of the sh-utils.
63125 1999-03-20 Jim Meyering <meyering@ascend.com>
63127 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63128 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63129 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63131 1999-03-19 Jim Meyering <meyering@ascend.com>
63133 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63135 1999-03-12 Jim Meyering <meyering@ascend.com>
63137 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63139 1999-03-07 Jim Meyering <meyering@ascend.com>
63141 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63144 1999-02-17 Jim Meyering <meyering@ascend.com>
63146 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63147 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63149 1999-02-07 Jim Meyering <meyering@ascend.com>
63151 * m4/group-member.m4: New file -- extracted from sh-utils'
63154 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63155 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63157 1999-02-06 Jim Meyering <meyering@ascend.com>
63159 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63160 * m4/fnmatch.m4: Likewise.
63161 * m4/getgroups.m4: Likewise.
63162 * m4/lstat.m4: Likewise.
63163 * m4/malloc.m4: Likewise.
63164 * m4/putenv.m4: Likewise.
63165 * m4/realloc.m4: Likewise.
63166 * m4/regex.m4: Likewise.
63167 * m4/stat.m4: Likewise.
63168 * m4/strftime.m4: Likewise.
63169 Suggestion from Alain Magloire.
63171 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63172 * m4/fnmatch.m4: Likewise.
63173 * m4/getgroups.m4: Likewise.
63174 * m4/getline.m4: Likewise.
63175 * m4/lstat.m4: Likewise.
63176 * m4/malloc.m4: Likewise.
63177 * m4/memcmp.m4: Likewise.
63178 * m4/putenv.m4: Likewise.
63179 * m4/realloc.m4: Likewise.
63180 * m4/regex.m4: Likewise.
63181 * m4/stat.m4: Likewise.
63182 * m4/strftime.m4: Likewise.
63183 Suggestion from Alain Magloire.
63185 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63188 * m4/regex.m4: Add a run-time Test for proper operation of
63189 re_compile_pattern.
63191 1999-01-31 Jim Meyering <meyering@ascend.com>
63193 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63195 1999-01-30 Jim Meyering <meyering@ascend.com>
63197 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63199 * m4/jm-mktime.m4: Make this a wrapper around the official
63200 AM_FUNC_MKTIME rather than my private copy, now that the official one
63202 * m4/mktime.m4: Remove file.
63204 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63205 * m4/uptime.m4: Likewise.
63206 * m4/uintmax_t.m4: Likewise.
63208 1999-01-28 Jim Meyering <meyering@ascend.com>
63210 * m4/jm-macros.m4: Use jm_AFS.
63211 * m4/afs.m4: New file (from fileutils' configure.in).
63213 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63214 * m4/chown.m4: Likewise.
63215 * m4/d-ino.m4: Likewise.
63216 * m4/d-type.m4: Likewise.
63217 * m4/fnmatch.m4: Likewise.
63218 * m4/getgroups.m4: Likewise.
63219 * m4/gettext.m4: Likewise.
63220 * m4/jm-mktime.m4: Likewise.
63221 * m4/jm-winsz2.m4: Likewise.
63222 * m4/lcmessage.m4: Likewise.
63223 * m4/ls-mntd-fs.m4: Likewise.
63224 * m4/malloc.m4: Likewise.
63225 * m4/memcmp.m4: Likewise.
63226 * m4/putenv.m4: Likewise.
63227 * m4/realloc.m4: Likewise.
63228 * m4/st_mtim.m4: Likewise.
63229 * m4/strftime.m4: Likewise.
63231 1999-01-16 Jim Meyering <meyering@ascend.com>
63233 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63234 (ARGMATCH_DIE_DECL): Define.
63236 1999-01-12 Jim Meyering <meyering@ascend.com>
63238 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63239 Reported by Lars Hecking.
63241 1999-01-10 Jim Meyering <meyering@ascend.com>
63243 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63245 * m4/inttypes_h.m4: Likewise.
63246 * m4/lstat.m4: Likewise.
63247 * m4/malloc.m4: Likewise.
63248 * m4/readdir.m4: Likewise.
63249 * m4/realloc.m4: Likewise.
63250 * m4/st_dm_mode.m4: Likewise.
63251 * m4/stat.m4: Likewise.
63252 * m4/utimbuf.m4: Likewise.
63253 * m4/utimes.m4: Likewise.
63255 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63256 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63257 comments in config.h.in are meaningful.
63259 * m4/jm-macros.m4: Require autoconf-2.13 here.
63261 * m4/regex.m4: By default, don't use the included regex.c on systems
63262 with glibc 2. Suggestion from Uli Drepper.
63264 1999-01-02 Jim Meyering <meyering@ascend.com>
63266 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63268 1998-12-18 Jim Meyering <meyering@ascend.com>
63270 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63271 Based on a suggestion from Lars Hecking.
63273 1998-11-16 Paul Eggert <eggert@twinsun.com>
63275 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63277 1998-11-16 Jim Meyering <meyering@ascend.com>
63279 * m4/lfs.m4: Double-quote the `uname...` expression.
63281 1998-11-14 Jim Meyering <meyering@ascend.com>
63283 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63284 * m4/stat.m4: Likewise.
63286 1998-11-03 Jim Meyering <meyering@ascend.com>
63288 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63289 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63291 1998-10-18 Jim Meyering <meyering@ascend.com>
63293 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63295 1998-10-17 Jim Meyering <meyering@ascend.com>
63297 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63298 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63299 calls for those previously hard-coded headers. Instead, take a new
63301 (jm_CHECK_DECLARATIONS): Reflect interface change.
63302 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63303 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63305 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63307 1998-10-14 Jim Meyering <meyering@ascend.com>
63309 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63310 instead of "TZ=America/Vancouver". From Paul Eggert.
63312 1998-10-11 Jim Meyering <meyering@ascend.com>
63314 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63315 This adds a test for a recently added compatibility fix for mktime.c.
63316 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63318 1998-09-27 Jim Meyering <meyering@ascend.com>
63320 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63322 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63323 ../configure.in, including a change from Gordon Matzigkeit to allow
63324 cross-compiling for the Hurd.
63326 * m4/glibc.m4: New file/macro to test for the GNU C Library
63327 versions 1 and 2. From Gordon Matzigkeit.
63330 1998-09-21 Jim Meyering <meyering@ascend.com>
63332 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63334 1998-08-18 Paul Eggert <eggert@twinsun.com>
63336 Port nanosecond-resolution times to UnixWare 2.1.2 and
63337 pedantic Solaris 2.6.
63339 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63341 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63342 Generate name of ns member, instead of just 1 or undef.
63343 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63345 1998-08-15 Jim Meyering <meyering@ascend.com>
63347 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63348 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63349 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63350 instead of jm_TYPE_SSIZE_T.
63352 1998-08-12 Jim Meyering <meyering@ascend.com>
63354 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63356 1998-08-02 Jim Meyering <meyering@ascend.com>
63358 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63359 in acconfig.h manually.
63361 1998-07-31 Paul Eggert <eggert@twinsun.com>
63363 * m4/st_mtim.m4: New file.
63365 1998-07-28 Jim Meyering <meyering@ascend.com>
63367 * m4/utimes.m4: Undef stat.
63369 1998-07-25 Jim Meyering <meyering@ascend.com>
63371 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63372 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63374 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63376 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63377 uid and gid actually remain unchanged.
63379 1998-07-07 Jim Meyering <meyering@ascend.com>
63381 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63383 1998-07-04 Jim Meyering <meyering@ascend.com>
63385 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63386 to prove that this macro can be used in packages without regex.c.
63388 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63390 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63393 1998-07-03 Jim Meyering <meyering@ascend.com>
63395 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63397 * m4/gettext.m4: New file -- from gettext-0.10.35.
63398 * m4/lcmessage.m4: Likewise.
63399 * m4/progtest.m4: Likewise.
63401 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63402 * m4/jm-macros.m4: Require the new macro.
63404 1998-06-29 Jim Meyering <meyering@ascend.com>
63406 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63407 for the definition of NGROUPS (used in a system header included
63410 1998-06-28 Jim Meyering <meyering@ascend.com>
63412 * m4/ls-mntd-fs.m4: New file.
63413 * m4/fstypename.m4: New file.
63415 * m4/jm-macros.m4: Require the new macro.
63416 * m4/jm-glibc-io.m4: New file.
63418 1998-05-19 Jim Meyering <meyering@ascend.com>
63420 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63421 * m4/lchown.m4: New file.
63423 * m4/Makefile.am.in: New file.
63424 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63426 1998-05-14 Jim Meyering <meyering@ascend.com>
63428 * m4/Makefile.am (EXTRA_DIST): Add them.
63429 * m4/jm-macros.m4: New file.
63430 * m4/utimbuf.m4: New file.
63432 1998-05-12 Jim Meyering <meyering@ascend.com>
63434 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63436 1998-05-11 Jim Meyering <meyering@ascend.com>
63438 * m4/isc-posix.m4: New file.
63440 1998-05-10 Jim Meyering <meyering@ascend.com>
63442 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63444 1998-05-09 Jim Meyering <meyering@ascend.com>
63446 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63447 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63450 * m4/ssize_t.m4: New file.
63451 * m4/mktime.m4: Remove file -- the new automake has this now.
63453 1998-04-26 Jim Meyering <meyering@ascend.com>
63455 * m4/assert.m4: New file.
63456 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63458 1998-04-05 Jim Meyering <meyering@ascend.com>
63460 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63461 (jm_PREREQ): Use it here.
63463 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63465 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63468 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63470 * m4/prereq.m4: New file.
63471 * m4/error.m4: New file.
63472 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63474 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63476 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63477 cache-check for the same variable -- that defeated the purpose of
63478 the test; the test program was never run. This was a problem only
63479 on systems with losing getline functions -- HP-UX 10.20 is one.
63480 Reported by Bjorn Helgaas.
63482 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63484 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63486 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63488 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63490 * m4/const.m4: New file. Use an initializer in this declaration
63491 typedef int charset[2]; const charset x;
63492 Reported by Bob Glickstein.
63494 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63496 * m4/chown.m4: Fix reversed types on -1 args to chown.
63499 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63501 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63502 Add lseek and memchr.
63504 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63505 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63506 have a 20-character limit on names.
63508 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63510 * m4/inttypes_h.m4: New file.
63511 * m4/uintmax_t.m4: New file.
63512 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63521 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63523 Copying and distribution of this file, with or without
63524 modification, are permitted provided the copyright notice
63525 and this notice are preserved.